Deleted Added
full compact
configure (180746) configure (180750)
1#! /bin/sh
1#! /bin/sh
2# From configure.ac Revision: 1.397 .
2# From configure.ac Revision: 1.409 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if (set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if (set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597# include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687TEST_SHELL
688PATH_GROUPADD_PROG
689PATH_USERADD_PROG
690MAKE_PACKAGE_SUPPORTED
691STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG
694LD
695SSHDLIBS
696LIBEDIT
697INSTALL_SSH_RAND_HELPER
698SSH_PRIVSEP_USER
699PROG_LS
700PROG_NETSTAT
701PROG_ARP
702PROG_IFCONFIG
703PROG_JSTAT
704PROG_PS
705PROG_SAR
706PROG_W
707PROG_WHO
708PROG_LAST
709PROG_LASTLOG
710PROG_DF
711PROG_VMSTAT
712PROG_UPTIME
713PROG_IPCS
714PROG_TAIL
715INSTALL_SSH_PRNG_CMDS
716OPENSC_CONFIG
717PRIVSEP_PATH
718xauth_path
719STRIP_OPT
720XAUTH_PATH
721NROFF
722MANTYPE
723mansubdir
724user_path
725piddir
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if (set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if (set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597# include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687TEST_SHELL
688PATH_GROUPADD_PROG
689PATH_USERADD_PROG
690MAKE_PACKAGE_SUPPORTED
691STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG
694LD
695SSHDLIBS
696LIBEDIT
697INSTALL_SSH_RAND_HELPER
698SSH_PRIVSEP_USER
699PROG_LS
700PROG_NETSTAT
701PROG_ARP
702PROG_IFCONFIG
703PROG_JSTAT
704PROG_PS
705PROG_SAR
706PROG_W
707PROG_WHO
708PROG_LAST
709PROG_LASTLOG
710PROG_DF
711PROG_VMSTAT
712PROG_UPTIME
713PROG_IPCS
714PROG_TAIL
715INSTALL_SSH_PRNG_CMDS
716OPENSC_CONFIG
717PRIVSEP_PATH
718xauth_path
719STRIP_OPT
720XAUTH_PATH
721NROFF
722MANTYPE
723mansubdir
724user_path
725piddir
726TEST_SSH_IPV6
726LIBOBJS
727LTLIBOBJS'
728ac_subst_files=''
729 ac_precious_vars='build_alias
730host_alias
731target_alias
732CC
733CFLAGS
734LDFLAGS
735LIBS
736CPPFLAGS
737CPP'
738
739
740# Initialize some variables set by options.
741ac_init_help=
742ac_init_version=false
743# The variables have the same names as the options, with
744# dashes changed to underlines.
745cache_file=/dev/null
746exec_prefix=NONE
747no_create=
748no_recursion=
749prefix=NONE
750program_prefix=NONE
751program_suffix=NONE
752program_transform_name=s,x,x,
753silent=
754site=
755srcdir=
756verbose=
757x_includes=NONE
758x_libraries=NONE
759
760# Installation directory options.
761# These are left unexpanded so users can "make install exec_prefix=/foo"
762# and all the variables that are supposed to be based on exec_prefix
763# by default will actually change.
764# Use braces instead of parens because sh, perl, etc. also accept them.
765# (The list follows the same order as the GNU Coding Standards.)
766bindir='${exec_prefix}/bin'
767sbindir='${exec_prefix}/sbin'
768libexecdir='${exec_prefix}/libexec'
769datarootdir='${prefix}/share'
770datadir='${datarootdir}'
771sysconfdir='${prefix}/etc'
772sharedstatedir='${prefix}/com'
773localstatedir='${prefix}/var'
774includedir='${prefix}/include'
775oldincludedir='/usr/include'
776docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
777infodir='${datarootdir}/info'
778htmldir='${docdir}'
779dvidir='${docdir}'
780pdfdir='${docdir}'
781psdir='${docdir}'
782libdir='${exec_prefix}/lib'
783localedir='${datarootdir}/locale'
784mandir='${datarootdir}/man'
785
786ac_prev=
787ac_dashdash=
788for ac_option
789do
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
793 ac_prev=
794 continue
795 fi
796
797 case $ac_option in
798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 # Accept the important Cygnus configure options, so we can diagnose typos.
803
804 case $ac_dashdash$ac_option in
805 --)
806 ac_dashdash=yes ;;
807
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
812
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
817
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
824
825 --config-cache | -C)
826 cache_file=config.cache ;;
827
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
832
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
839
840 -disable-* | --disable-*)
841 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_$ac_feature=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
858
859 -enable-* | --enable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=\$ac_optarg ;;
867
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
876
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
879 with_gas=yes ;;
880
881 -help | --help | --hel | --he | -h)
882 ac_init_help=long ;;
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
887
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
892
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894 ac_prev=htmldir ;;
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896 | --ht=*)
897 htmldir=$ac_optarg ;;
898
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
905
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
907 ac_prev=infodir ;;
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
910
911 -libdir | --libdir | --libdi | --libd)
912 ac_prev=libdir ;;
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
914 libdir=$ac_optarg ;;
915
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
922
923 -localedir | --localedir | --localedi | --localed | --locale)
924 ac_prev=localedir ;;
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
927
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
934
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936 ac_prev=mandir ;;
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938 mandir=$ac_optarg ;;
939
940 -nfp | --nfp | --nf)
941 # Obsolete; use --without-fp.
942 with_fp=no ;;
943
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
946 no_create=yes ;;
947
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950 no_recursion=yes ;;
951
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
960
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962 ac_prev=prefix ;;
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964 prefix=$ac_optarg ;;
965
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
972
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
979
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
996
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998 ac_prev=pdfdir ;;
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1001
1002 -psdir | --psdir | --psdi | --psd | --ps)
1003 ac_prev=psdir ;;
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005 psdir=$ac_optarg ;;
1006
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1009 silent=yes ;;
1010
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012 ac_prev=sbindir ;;
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014 | --sbi=* | --sb=*)
1015 sbindir=$ac_optarg ;;
1016
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1020 | --sha | --sh)
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025 | --sha=* | --sh=*)
1026 sharedstatedir=$ac_optarg ;;
1027
1028 -site | --site | --sit)
1029 ac_prev=site ;;
1030 -site=* | --site=* | --sit=*)
1031 site=$ac_optarg ;;
1032
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034 ac_prev=srcdir ;;
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1037
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1044
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1049
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051 verbose=yes ;;
1052
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1055
1056 -with-* | --with-*)
1057 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=\$ac_optarg ;;
1064
1065 -without-* | --without-*)
1066 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=no ;;
1073
1074 --x)
1075 # Obsolete; use --with-x.
1076 with_x=yes ;;
1077
1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079 | --x-incl | --x-inc | --x-in | --x-i)
1080 ac_prev=x_includes ;;
1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083 x_includes=$ac_optarg ;;
1084
1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087 ac_prev=x_libraries ;;
1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090 x_libraries=$ac_optarg ;;
1091
1092 -*) { echo "$as_me: error: unrecognized option: $ac_option
1093Try \`$0 --help' for more information." >&2
1094 { (exit 1); exit 1; }; }
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1102 { (exit 1); exit 1; }; }
1103 eval $ac_envvar=\$ac_optarg
1104 export $ac_envvar ;;
1105
1106 *)
1107 # FIXME: should be removed in autoconf 3.0.
1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 ;;
1113
1114 esac
1115done
1116
1117if test -n "$ac_prev"; then
1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119 { echo "$as_me: error: missing argument to $ac_option" >&2
1120 { (exit 1); exit 1; }; }
1121fi
1122
1123# Be sure to have absolute directory names.
1124for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128do
1129 eval ac_val=\$$ac_var
1130 case $ac_val in
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133 esac
1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1135 { (exit 1); exit 1; }; }
1136done
1137
1138# There might be people who depend on the old broken behavior: `$host'
1139# used to hold the argument of --host etc.
1140# FIXME: To remove some day.
1141build=$build_alias
1142host=$host_alias
1143target=$target_alias
1144
1145# FIXME: To remove some day.
1146if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1152 cross_compiling=yes
1153 fi
1154fi
1155
1156ac_tool_prefix=
1157test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158
1159test "$silent" = yes && exec 6>/dev/null
1160
1161
1162ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163ac_ls_di=`ls -di .` &&
1164ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 { echo "$as_me: error: Working directory cannot be determined" >&2
1166 { (exit 1); exit 1; }; }
1167test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 { echo "$as_me: error: pwd does not report name of working directory" >&2
1169 { (exit 1); exit 1; }; }
1170
1171
1172# Find the source files, if location was not specified.
1173if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$0" ||
1177$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$0" : 'X\(//\)[^/]' \| \
1179 X"$0" : 'X\(//\)$' \| \
1180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1181echo X"$0" |
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)[^/].*/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\).*/{
1195 s//\1/
1196 q
1197 }
1198 s/.*/./; q'`
1199 srcdir=$ac_confdir
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 srcdir=..
1202 fi
1203else
1204 ac_srcdir_defaulted=no
1205fi
1206if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1209 { (exit 1); exit 1; }; }
1210fi
1211ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1212ac_abs_confdir=`(
1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1214 { (exit 1); exit 1; }; }
1215 pwd)`
1216# When building in place, set srcdir=.
1217if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 srcdir=.
1219fi
1220# Remove unnecessary trailing slashes from srcdir.
1221# Double slashes in file names in object file debugging info
1222# mess up M-x gdb in Emacs.
1223case $srcdir in
1224*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225esac
1226for ac_var in $ac_precious_vars; do
1227 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_${ac_var}_value=\$${ac_var}
1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1231done
1232
1233#
1234# Report the --help message.
1235#
1236if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1239 cat <<_ACEOF
1240\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1241
1242Usage: $0 [OPTION]... [VAR=VALUE]...
1243
1244To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245VAR=VALUE. See below for descriptions of some of the useful variables.
1246
1247Defaults for the options are specified in brackets.
1248
1249Configuration:
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1259
1260Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 [PREFIX]
1265
1266By default, \`make install' will install all the files in
1267\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269for instance \`--prefix=\$HOME'.
1270
1271For better control, use the options below.
1272
1273Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --libdir=DIR object code libraries [EPREFIX/lib]
1281 --includedir=DIR C header files [PREFIX/include]
1282 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285 --infodir=DIR info documentation [DATAROOTDIR/info]
1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287 --mandir=DIR man documentation [DATAROOTDIR/man]
1288 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1289 --htmldir=DIR html documentation [DOCDIR]
1290 --dvidir=DIR dvi documentation [DOCDIR]
1291 --pdfdir=DIR pdf documentation [DOCDIR]
1292 --psdir=DIR ps documentation [DOCDIR]
1293_ACEOF
1294
1295 cat <<\_ACEOF
1296
1297System types:
1298 --build=BUILD configure for building on BUILD [guessed]
1299 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1300_ACEOF
1301fi
1302
1303if test -n "$ac_init_help"; then
1304 case $ac_init_help in
1305 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1306 esac
1307 cat <<\_ACEOF
1308
1309Optional Features:
1310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1312 --disable-largefile omit support for large files
1313 --disable-strip Disable calling strip(1) on install
1314 --disable-etc-default-login Disable using PATH from /etc/default/login no
1315 --disable-lastlog disable use of lastlog even if detected no
1316 --disable-utmp disable use of utmp even if detected no
1317 --disable-utmpx disable use of utmpx even if detected no
1318 --disable-wtmp disable use of wtmp even if detected no
1319 --disable-wtmpx disable use of wtmpx even if detected no
1320 --disable-libutil disable use of libutil (login() etc.) no
1321 --disable-pututline disable use of pututline() etc. (uwtmp) no
1322 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1323
1324Optional Packages:
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1327 --without-stackprotect Don't use compiler's stack protection
1328 --without-rpath Disable auto-added -R linker paths
1329 --with-cflags Specify additional flags to pass to compiler
1330 --with-cppflags Specify additional flags to pass to preprocessor
1331 --with-ldflags Specify additional flags to pass to linker
1332 --with-libs Specify additional libraries to link with
1333 --with-Werror Build main code with -Werror
1334 --with-solaris-contracts Enable Solaris process contracts (experimental)
1335 --with-osfsia Enable Digital Unix SIA
1336 --with-zlib=PATH Use zlib in PATH
1337 --without-zlib-version-check Disable zlib version check
1338 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1339 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1340 --with-libedit[=PATH] Enable libedit support for sftp
1341 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1342 --with-ssl-dir=PATH Specify path to OpenSSL installation
1343 --without-openssl-header-check Disable OpenSSL version consistency check
1344 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1345 --with-pam Enable PAM support
1346 --with-rand-helper Use subprocess to gather strong randomness
1347 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1348 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1349 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1350 --with-privsep-user=user Specify non-privileged user for privilege separation
1351 --with-sectok Enable smartcard support using libsectok
1352 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1353 --with-selinux Enable SELinux support
1354 --with-kerberos5=PATH Enable Kerberos 5 support
1355 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1356 --with-xauth=PATH Specify path to xauth program
1357 --with-mantype=man|cat|doc Set man page type
1358 --with-md5-passwords Enable use of MD5 passwords
1359 --without-shadow Disable shadow password support
1360 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1361 --with-default-path= Specify default \$PATH environment for server
1362 --with-superuser-path= Specify different path for super-user
1363 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1364 --with-bsd-auth Enable BSD auth support
1365 --with-pid-dir=PATH Specify location of ssh.pid file
1366 --with-lastlog=FILE|DIR specify lastlog location common locations
1367
1368Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 LIBS libraries to pass to the linker, e.g. -l<library>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CPP C preprocessor
1377
1378Use these variables to override the choices made by `configure' or to help
1379it to find libraries and programs with nonstandard names/locations.
1380
1381Report bugs to <openssh-unix-dev@mindrot.org>.
1382_ACEOF
1383ac_status=$?
1384fi
1385
1386if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" || continue
1390 ac_builddir=.
1391
1392case "$ac_dir" in
1393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394*)
1395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402esac
1403ac_abs_top_builddir=$ac_pwd
1404ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405# for backward compatibility:
1406ac_top_builddir=$ac_top_build_prefix
1407
1408case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421esac
1422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1432 else
1433 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 fi || ac_status=$?
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1436 done
1437fi
1438
1439test -n "$ac_init_help" && exit $ac_status
1440if $ac_init_version; then
1441 cat <<\_ACEOF
1442OpenSSH configure Portable
1443generated by GNU Autoconf 2.61
1444
1445Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1447This configure script is free software; the Free Software Foundation
1448gives unlimited permission to copy, distribute and modify it.
1449_ACEOF
1450 exit
1451fi
1452cat >config.log <<_ACEOF
1453This file contains any messages produced by compilers while
1454running configure, to aid debugging if configure makes a mistake.
1455
1456It was created by OpenSSH $as_me Portable, which was
1457generated by GNU Autoconf 2.61. Invocation command line was
1458
1459 $ $0 $@
1460
1461_ACEOF
1462exec 5>>config.log
1463{
1464cat <<_ASUNAME
1465## --------- ##
1466## Platform. ##
1467## --------- ##
1468
1469hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1470uname -m = `(uname -m) 2>/dev/null || echo unknown`
1471uname -r = `(uname -r) 2>/dev/null || echo unknown`
1472uname -s = `(uname -s) 2>/dev/null || echo unknown`
1473uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474
1475/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1476/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477
1478/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1479/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1480/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1481/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1482/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1483/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1484/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485
1486_ASUNAME
1487
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 echo "PATH: $as_dir"
1494done
1495IFS=$as_save_IFS
1496
1497} >&5
1498
1499cat >&5 <<_ACEOF
1500
1501
1502## ----------- ##
1503## Core tests. ##
1504## ----------- ##
1505
1506_ACEOF
1507
1508
1509# Keep a trace of the command line.
1510# Strip out --no-create and --no-recursion so they do not pile up.
1511# Strip out --silent because we don't want to record it for future runs.
1512# Also quote any args containing shell meta-characters.
1513# Make two passes to allow for proper duplicate-argument suppression.
1514ac_configure_args=
1515ac_configure_args0=
1516ac_configure_args1=
1517ac_must_keep_next=false
1518for ac_pass in 1 2
1519do
1520 for ac_arg
1521 do
1522 case $ac_arg in
1523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1525 | -silent | --silent | --silen | --sile | --sil)
1526 continue ;;
1527 *\'*)
1528 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1529 esac
1530 case $ac_pass in
1531 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 2)
1533 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1534 if test $ac_must_keep_next = true; then
1535 ac_must_keep_next=false # Got value, back to normal.
1536 else
1537 case $ac_arg in
1538 *=* | --config-cache | -C | -disable-* | --disable-* \
1539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1541 | -with-* | --with-* | -without-* | --without-* | --x)
1542 case "$ac_configure_args0 " in
1543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1544 esac
1545 ;;
1546 -* ) ac_must_keep_next=true ;;
1547 esac
1548 fi
1549 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 ;;
1551 esac
1552 done
1553done
1554$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1555$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556
1557# When interrupted or exit'd, cleanup temporary files, and complete
1558# config.log. We remove comments because anyway the quotes in there
1559# would cause problems or look ugly.
1560# WARNING: Use '\'' to represent an apostrophe within the trap.
1561# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1562trap 'exit_status=$?
1563 # Save into config.log some information that might help in debugging.
1564 {
1565 echo
1566
1567 cat <<\_ASBOX
1568## ---------------- ##
1569## Cache variables. ##
1570## ---------------- ##
1571_ASBOX
1572 echo
1573 # The following way of writing the cache mishandles newlines in values,
1574(
1575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1576 eval ac_val=\$$ac_var
1577 case $ac_val in #(
1578 *${as_nl}*)
1579 case $ac_var in #(
1580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1581echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1582 esac
1583 case $ac_var in #(
1584 _ | IFS | as_nl) ;; #(
1585 *) $as_unset $ac_var ;;
1586 esac ;;
1587 esac
1588 done
1589 (set) 2>&1 |
1590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1591 *${as_nl}ac_space=\ *)
1592 sed -n \
1593 "s/'\''/'\''\\\\'\'''\''/g;
1594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1595 ;; #(
1596 *)
1597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ;;
1599 esac |
1600 sort
1601)
1602 echo
1603
1604 cat <<\_ASBOX
1605## ----------------- ##
1606## Output variables. ##
1607## ----------------- ##
1608_ASBOX
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 cat <<\_ASBOX
1622## ------------------- ##
1623## File substitutions. ##
1624## ------------------- ##
1625_ASBOX
1626 echo
1627 for ac_var in $ac_subst_files
1628 do
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1636 fi
1637
1638 if test -s confdefs.h; then
1639 cat <<\_ASBOX
1640## ----------- ##
1641## confdefs.h. ##
1642## ----------- ##
1643_ASBOX
1644 echo
1645 cat confdefs.h
1646 echo
1647 fi
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1651 } >&5
1652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1654 exit $exit_status
1655' 0
1656for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658done
1659ac_signal=0
1660
1661# confdefs.h avoids OS command line length limits that DEFS can exceed.
1662rm -f -r conftest* confdefs.h
1663
1664# Predefined preprocessor variables.
1665
1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_NAME "$PACKAGE_NAME"
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_VERSION "$PACKAGE_VERSION"
1678_ACEOF
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define PACKAGE_STRING "$PACKAGE_STRING"
1683_ACEOF
1684
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688_ACEOF
1689
1690
1691# Let the site file select an alternate cache file if it wants to.
1692# Prefer explicitly selected file to automatically selected ones.
1693if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697else
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
1700fi
1701shift
1702for ac_site_file
1703do
1704 if test -r "$ac_site_file"; then
1705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1708 . "$ac_site_file"
1709 fi
1710done
1711
1712if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1721 esac
1722 fi
1723else
1724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1727fi
1728
1729# Check that the precious variables saved in the cache have kept the same
1730# value.
1731ac_cache_corrupted=false
1732for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1747 *)
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1756 fi;;
1757 esac
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 esac
1768 fi
1769done
1770if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1776fi
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802ac_ext=c
1803ac_cpp='$CPP $CPPFLAGS'
1804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807
1808
1809
1810
1811
1812ac_config_headers="$ac_config_headers config.h"
1813
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843IFS=$as_save_IFS
1844
1845fi
1846fi
1847CC=$ac_cv_prog_CC
1848if test -n "$CC"; then
1849 { echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6; }
1851else
1852 { echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6; }
1854fi
1855
1856
1857fi
1858if test -z "$ac_cv_prog_CC"; then
1859 ac_ct_CC=$CC
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861set dummy gcc; ac_word=$2
1862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881done
1882done
1883IFS=$as_save_IFS
1884
1885fi
1886fi
1887ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888if test -n "$ac_ct_CC"; then
1889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890echo "${ECHO_T}$ac_ct_CC" >&6; }
1891else
1892 { echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6; }
1894fi
1895
1896 if test "x$ac_ct_CC" = x; then
1897 CC=""
1898 else
1899 case $cross_compiling:$ac_tool_warned in
1900yes:)
1901{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1902whose name does not start with the host triplet. If you think this
1903configuration is useful to you, please write to autoconf@gnu.org." >&5
1904echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1905whose name does not start with the host triplet. If you think this
1906configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1907ac_tool_warned=yes ;;
1908esac
1909 CC=$ac_ct_CC
1910 fi
1911else
1912 CC="$ac_cv_prog_CC"
1913fi
1914
1915if test -z "$CC"; then
1916 if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1918set dummy ${ac_tool_prefix}cc; ac_word=$2
1919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1921if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1934 ac_cv_prog_CC="${ac_tool_prefix}cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938done
1939done
1940IFS=$as_save_IFS
1941
1942fi
1943fi
1944CC=$ac_cv_prog_CC
1945if test -n "$CC"; then
1946 { echo "$as_me:$LINENO: result: $CC" >&5
1947echo "${ECHO_T}$CC" >&6; }
1948else
1949 { echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6; }
1951fi
1952
1953
1954 fi
1955fi
1956if test -z "$CC"; then
1957 # Extract the first word of "cc", so it can be a program name with args.
1958set dummy cc; ac_word=$2
1959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1966else
1967 ac_prog_rejected=no
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1976 ac_prog_rejected=yes
1977 continue
1978 fi
1979 ac_cv_prog_CC="cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983done
1984done
1985IFS=$as_save_IFS
1986
1987if test $ac_prog_rejected = yes; then
1988 # We found a bogon in the path, so make sure we never use it.
1989 set dummy $ac_cv_prog_CC
1990 shift
1991 if test $# != 0; then
1992 # We chose a different compiler from the bogus one.
1993 # However, it has the same basename, so the bogon will be chosen
1994 # first if we set CC to just the basename; use the full file name.
1995 shift
1996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1997 fi
1998fi
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011fi
2012if test -z "$CC"; then
2013 if test -n "$ac_tool_prefix"; then
2014 for ac_prog in cl.exe
2015 do
2016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020if test "${ac_cv_prog_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2036 fi
2037done
2038done
2039IFS=$as_save_IFS
2040
2041fi
2042fi
2043CC=$ac_cv_prog_CC
2044if test -n "$CC"; then
2045 { echo "$as_me:$LINENO: result: $CC" >&5
2046echo "${ECHO_T}$CC" >&6; }
2047else
2048 { echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6; }
2050fi
2051
2052
2053 test -n "$CC" && break
2054 done
2055fi
2056if test -z "$CC"; then
2057 ac_ct_CC=$CC
2058 for ac_prog in cl.exe
2059do
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061set dummy $ac_prog; ac_word=$2
2062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069else
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_ac_ct_CC="$ac_prog"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2080 fi
2081done
2082done
2083IFS=$as_save_IFS
2084
2085fi
2086fi
2087ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088if test -n "$ac_ct_CC"; then
2089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090echo "${ECHO_T}$ac_ct_CC" >&6; }
2091else
2092 { echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6; }
2094fi
2095
2096
2097 test -n "$ac_ct_CC" && break
2098done
2099
2100 if test "x$ac_ct_CC" = x; then
2101 CC=""
2102 else
2103 case $cross_compiling:$ac_tool_warned in
2104yes:)
2105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2106whose name does not start with the host triplet. If you think this
2107configuration is useful to you, please write to autoconf@gnu.org." >&5
2108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2109whose name does not start with the host triplet. If you think this
2110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2111ac_tool_warned=yes ;;
2112esac
2113 CC=$ac_ct_CC
2114 fi
2115fi
2116
2117fi
2118
2119
2120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2125
2126# Provide some information about the compiler.
2127echo "$as_me:$LINENO: checking for C compiler version" >&5
2128ac_compiler=`set X $ac_compile; echo $2`
2129{ (ac_try="$ac_compiler --version >&5"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler --version >&5") 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139{ (ac_try="$ac_compiler -v >&5"
2140case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -v >&5") 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149{ (ac_try="$ac_compiler -V >&5"
2150case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153esac
2154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_compiler -V >&5") 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159
2160cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175ac_clean_files_save=$ac_clean_files
2176ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177# Try to create an executable without -o first, disregard a.out.
2178# It will help us diagnose broken compilers, and finding out an intuition
2179# of exeext.
2180{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2182ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183#
2184# List of possible output files, starting from the most likely.
2185# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2186# only as a last resort. b.out is created by i960 compilers.
2187ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2188#
2189# The IRIX 6 linker writes into existing files which may not be
2190# executable, retaining their permissions. Remove them first so a
2191# subsequent execution test works.
2192ac_rmfiles=
2193for ac_file in $ac_files
2194do
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2198 esac
2199done
2200rm -f $ac_rmfiles
2201
2202if { (ac_try="$ac_link_default"
2203case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_link_default") 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2213# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2214# in a Makefile. We should not override ac_cv_exeext if it was cached,
2215# so that the user can short-circuit this test for compilers unknown to
2216# Autoconf.
2217for ac_file in $ac_files ''
2218do
2219 test -f "$ac_file" || continue
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2222 ;;
2223 [ab].out )
2224 # We found the default executable, but exeext='' is most
2225 # certainly right.
2226 break;;
2227 *.* )
2228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 then :; else
2230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 fi
2232 # We set ac_cv_exeext here because the later test for it is not
2233 # safe: cross compilers may not add the suffix if given an `-o'
2234 # argument, so we may need to know it at that point already.
2235 # Even if this section looks crufty: it has the advantage of
2236 # actually working.
2237 break;;
2238 * )
2239 break;;
2240 esac
2241done
2242test "$ac_cv_exeext" = no && ac_cv_exeext=
2243
2244else
2245 ac_file=''
2246fi
2247
2248{ echo "$as_me:$LINENO: result: $ac_file" >&5
2249echo "${ECHO_T}$ac_file" >&6; }
2250if test -z "$ac_file"; then
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: C compiler cannot create executables
2257See \`config.log' for more details." >&2;}
2258 { (exit 77); exit 77; }; }
2259fi
2260
2261ac_exeext=$ac_cv_exeext
2262
2263# Check that the compiler produces executables we can run. If not, either
2264# the compiler is broken, or we cross compile.
2265{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2266echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2267# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2268# If not cross compiling, check that we can run a simple program.
2269if test "$cross_compiling" != yes; then
2270 if { ac_try='./$ac_file'
2271 { (case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 cross_compiling=no
2281 else
2282 if test "$cross_compiling" = maybe; then
2283 cross_compiling=yes
2284 else
2285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286If you meant to cross compile, use \`--host'.
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot run C compiled programs.
2289If you meant to cross compile, use \`--host'.
2290See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292 fi
2293 fi
2294fi
2295{ echo "$as_me:$LINENO: result: yes" >&5
2296echo "${ECHO_T}yes" >&6; }
2297
2298rm -f a.out a.exe conftest$ac_cv_exeext b.out
2299ac_clean_files=$ac_clean_files_save
2300# Check that the compiler produces executables we can run. If not, either
2301# the compiler is broken, or we cross compile.
2302{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2304{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305echo "${ECHO_T}$cross_compiling" >&6; }
2306
2307{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2309if { (ac_try="$ac_link"
2310case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_link") 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321# work properly (i.e., refer to `conftest.exe'), while it won't with
2322# `rm'.
2323for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 break;;
2329 * ) break;;
2330 esac
2331done
2332else
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2336See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest$ac_cv_exeext
2341{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2342echo "${ECHO_T}$ac_cv_exeext" >&6; }
2343
2344rm -f conftest.$ac_ext
2345EXEEXT=$ac_cv_exeext
2346ac_exeext=$EXEEXT
2347{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2348echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2349if test "${ac_cv_objext+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
2358
2359int
2360main ()
2361{
2362
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367rm -f conftest.o conftest.obj
2368if { (ac_try="$ac_compile"
2369case "(($ac_try" in
2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371 *) ac_try_echo=$ac_try;;
2372esac
2373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2374 (eval "$ac_compile") 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in conftest.o conftest.obj conftest.*; do
2379 test -f "$ac_file" || continue;
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383 break;;
2384 esac
2385done
2386else
2387 echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6; }
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408 cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h. */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h. */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419 choke me
2420#endif
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (ac_try="$ac_compile"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_compile") 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest.$ac_objext; then
2443 ac_compiler_gnu=yes
2444else
2445 echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_compiler_gnu=no
2449fi
2450
2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454fi
2455{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457GCC=`test $ac_compiler_gnu = yes && echo yes`
2458ac_test_CFLAGS=${CFLAGS+set}
2459ac_save_CFLAGS=$CFLAGS
2460{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462if test "${ac_cv_prog_cc_g+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 ac_save_c_werror_flag=$ac_c_werror_flag
2466 ac_c_werror_flag=yes
2467 ac_cv_prog_cc_g=no
2468 CFLAGS="-g"
2469 cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h. */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h. */
2475
2476int
2477main ()
2478{
2479
2480 ;
2481 return 0;
2482}
2483_ACEOF
2484rm -f conftest.$ac_objext
2485if { (ac_try="$ac_compile"
2486case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } && {
2498 test -z "$ac_c_werror_flag" ||
2499 test ! -s conftest.err
2500 } && test -s conftest.$ac_objext; then
2501 ac_cv_prog_cc_g=yes
2502else
2503 echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 CFLAGS=""
2507 cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h. */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h. */
2513
2514int
2515main ()
2516{
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.$ac_objext
2523if { (ac_try="$ac_compile"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && {
2536 test -z "$ac_c_werror_flag" ||
2537 test ! -s conftest.err
2538 } && test -s conftest.$ac_objext; then
2539 :
2540else
2541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_c_werror_flag=$ac_save_c_werror_flag
2545 CFLAGS="-g"
2546 cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (ac_try="$ac_compile"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2578 ac_cv_prog_cc_g=yes
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583
2584fi
2585
2586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587fi
2588
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591
2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 ac_c_werror_flag=$ac_save_c_werror_flag
2594fi
2595{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2597if test "$ac_test_CFLAGS" = set; then
2598 CFLAGS=$ac_save_CFLAGS
2599elif test $ac_cv_prog_cc_g = yes; then
2600 if test "$GCC" = yes; then
2601 CFLAGS="-g -O2"
2602 else
2603 CFLAGS="-g"
2604 fi
2605else
2606 if test "$GCC" = yes; then
2607 CFLAGS="-O2"
2608 else
2609 CFLAGS=
2610 fi
2611fi
2612{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2613echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2614if test "${ac_cv_prog_cc_c89+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 ac_cv_prog_cc_c89=no
2618ac_save_CC=$CC
2619cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
2625#include <stdarg.h>
2626#include <stdio.h>
2627#include <sys/types.h>
2628#include <sys/stat.h>
2629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2630struct buf { int x; };
2631FILE * (*rcsopen) (struct buf *, struct stat *, int);
2632static char *e (p, i)
2633 char **p;
2634 int i;
2635{
2636 return p[i];
2637}
2638static char *f (char * (*g) (char **, int), char **p, ...)
2639{
2640 char *s;
2641 va_list v;
2642 va_start (v,p);
2643 s = g (p, va_arg (v,int));
2644 va_end (v);
2645 return s;
2646}
2647
2648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2649 function prototypes and stuff, but not '\xHH' hex character constants.
2650 These don't provoke an error unfortunately, instead are silently treated
2651 as 'x'. The following induces an error, until -std is added to get
2652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2653 array size at least. It's necessary to write '\x00'==0 to get something
2654 that's true only with -std. */
2655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2656
2657/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2658 inside strings and character constants. */
2659#define FOO(x) 'x'
2660int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2661
2662int test (int i, double x);
2663struct s1 {int (*f) (int a);};
2664struct s2 {int (*f) (double a);};
2665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2666int argc;
2667char **argv;
2668int
2669main ()
2670{
2671return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678do
2679 CC="$ac_save_CC $ac_arg"
2680 rm -f conftest.$ac_objext
2681if { (ac_try="$ac_compile"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2697 ac_cv_prog_cc_c89=$ac_arg
2698else
2699 echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702
2703fi
2704
2705rm -f core conftest.err conftest.$ac_objext
2706 test "x$ac_cv_prog_cc_c89" != "xno" && break
2707done
2708rm -f conftest.$ac_ext
2709CC=$ac_save_CC
2710
2711fi
2712# AC_CACHE_VAL
2713case "x$ac_cv_prog_cc_c89" in
2714 x)
2715 { echo "$as_me:$LINENO: result: none needed" >&5
2716echo "${ECHO_T}none needed" >&6; } ;;
2717 xno)
2718 { echo "$as_me:$LINENO: result: unsupported" >&5
2719echo "${ECHO_T}unsupported" >&6; } ;;
2720 *)
2721 CC="$CC $ac_cv_prog_cc_c89"
2722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2723echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2724esac
2725
2726
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733ac_aux_dir=
2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 break
2739 elif test -f "$ac_dir/install.sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 break
2743 elif test -f "$ac_dir/shtool"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 break
2747 fi
2748done
2749if test -z "$ac_aux_dir"; then
2750 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2751echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2752 { (exit 1); exit 1; }; }
2753fi
2754
2755# These three variables are undocumented and unsupported,
2756# and are intended to be withdrawn in a future Autoconf release.
2757# They can cause serious problems if a builder's source tree is in a directory
2758# whose full name contains unusual characters.
2759ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2760ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2761ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2762
2763
2764# Make sure we can run config.sub.
2765$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2767echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2768 { (exit 1); exit 1; }; }
2769
2770{ echo "$as_me:$LINENO: checking build system type" >&5
2771echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2772if test "${ac_cv_build+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 ac_build_alias=$build_alias
2776test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778test "x$ac_build_alias" = x &&
2779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2781 { (exit 1); exit 1; }; }
2782ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2784echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2785 { (exit 1); exit 1; }; }
2786
2787fi
2788{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2789echo "${ECHO_T}$ac_cv_build" >&6; }
2790case $ac_cv_build in
2791*-*-*) ;;
2792*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2793echo "$as_me: error: invalid value of canonical build" >&2;}
2794 { (exit 1); exit 1; }; };;
2795esac
2796build=$ac_cv_build
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_build
2799shift
2800build_cpu=$1
2801build_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805build_os=$*
2806IFS=$ac_save_IFS
2807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808
2809
2810{ echo "$as_me:$LINENO: checking host system type" >&5
2811echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2812if test "${ac_cv_host+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 if test "x$host_alias" = x; then
2816 ac_cv_host=$ac_cv_build
2817else
2818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2820echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2821 { (exit 1); exit 1; }; }
2822fi
2823
2824fi
2825{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2826echo "${ECHO_T}$ac_cv_host" >&6; }
2827case $ac_cv_host in
2828*-*-*) ;;
2829*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2830echo "$as_me: error: invalid value of canonical host" >&2;}
2831 { (exit 1); exit 1; }; };;
2832esac
2833host=$ac_cv_host
2834ac_save_IFS=$IFS; IFS='-'
2835set x $ac_cv_host
2836shift
2837host_cpu=$1
2838host_vendor=$2
2839shift; shift
2840# Remember, the first character of IFS is used to create $*,
2841# except with old shells:
2842host_os=$*
2843IFS=$ac_save_IFS
2844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845
2846
2847
2848ac_ext=c
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2854echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2855# On Suns, sometimes $CPP names a directory.
2856if test -n "$CPP" && test -d "$CPP"; then
2857 CPP=
2858fi
2859if test -z "$CPP"; then
2860 if test "${ac_cv_prog_CPP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863 # Double quotes because CPP needs to be expanded
2864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2865 do
2866 ac_preproc_ok=false
2867for ac_c_preproc_warn_flag in '' yes
2868do
2869 # Use a header file that comes with gcc, so configuring glibc
2870 # with a fresh cross-compiler works.
2871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872 # <limits.h> exists even on freestanding compilers.
2873 # On the NeXT, cc -E runs the code through the compiler's parser,
2874 # not just through cpp. "Syntax error" is here to catch this case.
2875 cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
2881#ifdef __STDC__
2882# include <limits.h>
2883#else
2884# include <assert.h>
2885#endif
2886 Syntax error
2887_ACEOF
2888if { (ac_try="$ac_cpp conftest.$ac_ext"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } >/dev/null && {
2901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 }; then
2904 :
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 # Broken: fails on valid input.
2910continue
2911fi
2912
2913rm -f conftest.err conftest.$ac_ext
2914
2915 # OK, works on sane cases. Now check whether nonexistent headers
2916 # can be detected and how.
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923#include <ac_nonexistent.h>
2924_ACEOF
2925if { (ac_try="$ac_cpp conftest.$ac_ext"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null && {
2938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 }; then
2941 # Broken: success on invalid input.
2942continue
2943else
2944 echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 # Passes both tests.
2948ac_preproc_ok=:
2949break
2950fi
2951
2952rm -f conftest.err conftest.$ac_ext
2953
2954done
2955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956rm -f conftest.err conftest.$ac_ext
2957if $ac_preproc_ok; then
2958 break
2959fi
2960
2961 done
2962 ac_cv_prog_CPP=$CPP
2963
2964fi
2965 CPP=$ac_cv_prog_CPP
2966else
2967 ac_cv_prog_CPP=$CPP
2968fi
2969{ echo "$as_me:$LINENO: result: $CPP" >&5
2970echo "${ECHO_T}$CPP" >&6; }
2971ac_preproc_ok=false
2972for ac_c_preproc_warn_flag in '' yes
2973do
2974 # Use a header file that comes with gcc, so configuring glibc
2975 # with a fresh cross-compiler works.
2976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977 # <limits.h> exists even on freestanding compilers.
2978 # On the NeXT, cc -E runs the code through the compiler's parser,
2979 # not just through cpp. "Syntax error" is here to catch this case.
2980 cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
2986#ifdef __STDC__
2987# include <limits.h>
2988#else
2989# include <assert.h>
2990#endif
2991 Syntax error
2992_ACEOF
2993if { (ac_try="$ac_cpp conftest.$ac_ext"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null && {
3006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3007 test ! -s conftest.err
3008 }; then
3009 :
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 # Broken: fails on valid input.
3015continue
3016fi
3017
3018rm -f conftest.err conftest.$ac_ext
3019
3020 # OK, works on sane cases. Now check whether nonexistent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028#include <ac_nonexistent.h>
3029_ACEOF
3030if { (ac_try="$ac_cpp conftest.$ac_ext"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null && {
3043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 }; then
3046 # Broken: success on invalid input.
3047continue
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 # Passes both tests.
3053ac_preproc_ok=:
3054break
3055fi
3056
3057rm -f conftest.err conftest.$ac_ext
3058
3059done
3060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061rm -f conftest.err conftest.$ac_ext
3062if $ac_preproc_ok; then
3063 :
3064else
3065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3066See \`config.log' for more details." >&5
3067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3068See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3070fi
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078
3079{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3080echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3081if test "${ac_cv_path_GREP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 # Extract the first word of "grep ggrep" to use in msg output
3085if test -z "$GREP"; then
3086set dummy grep ggrep; ac_prog_name=$2
3087if test "${ac_cv_path_GREP+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090 ac_path_GREP_found=false
3091# Loop through the user's path and test for each of PROGNAME-LIST
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_prog in grep ggrep; do
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3100 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3101 # Check for GNU ac_path_GREP and select it if it is found.
3102 # Check for GNU $ac_path_GREP
3103case `"$ac_path_GREP" --version 2>&1` in
3104*GNU*)
3105 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3106*)
3107 ac_count=0
3108 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3109 while :
3110 do
3111 cat "conftest.in" "conftest.in" >"conftest.tmp"
3112 mv "conftest.tmp" "conftest.in"
3113 cp "conftest.in" "conftest.nl"
3114 echo 'GREP' >> "conftest.nl"
3115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3117 ac_count=`expr $ac_count + 1`
3118 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3119 # Best one so far, save it but keep looking for a better one
3120 ac_cv_path_GREP="$ac_path_GREP"
3121 ac_path_GREP_max=$ac_count
3122 fi
3123 # 10*(2^10) chars as input seems more than enough
3124 test $ac_count -gt 10 && break
3125 done
3126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3127esac
3128
3129
3130 $ac_path_GREP_found && break 3
3131 done
3132done
3133
3134done
3135IFS=$as_save_IFS
3136
3137
3138fi
3139
3140GREP="$ac_cv_path_GREP"
3141if test -z "$GREP"; then
3142 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3143echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3144 { (exit 1); exit 1; }; }
3145fi
3146
3147else
3148 ac_cv_path_GREP=$GREP
3149fi
3150
3151
3152fi
3153{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3154echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3155 GREP="$ac_cv_path_GREP"
3156
3157
3158{ echo "$as_me:$LINENO: checking for egrep" >&5
3159echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3160if test "${ac_cv_path_EGREP+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3164 then ac_cv_path_EGREP="$GREP -E"
3165 else
3166 # Extract the first word of "egrep" to use in msg output
3167if test -z "$EGREP"; then
3168set dummy egrep; ac_prog_name=$2
3169if test "${ac_cv_path_EGREP+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 ac_path_EGREP_found=false
3173# Loop through the user's path and test for each of PROGNAME-LIST
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_prog in egrep; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3183 # Check for GNU ac_path_EGREP and select it if it is found.
3184 # Check for GNU $ac_path_EGREP
3185case `"$ac_path_EGREP" --version 2>&1` in
3186*GNU*)
3187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3188*)
3189 ac_count=0
3190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3191 while :
3192 do
3193 cat "conftest.in" "conftest.in" >"conftest.tmp"
3194 mv "conftest.tmp" "conftest.in"
3195 cp "conftest.in" "conftest.nl"
3196 echo 'EGREP' >> "conftest.nl"
3197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3199 ac_count=`expr $ac_count + 1`
3200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3201 # Best one so far, save it but keep looking for a better one
3202 ac_cv_path_EGREP="$ac_path_EGREP"
3203 ac_path_EGREP_max=$ac_count
3204 fi
3205 # 10*(2^10) chars as input seems more than enough
3206 test $ac_count -gt 10 && break
3207 done
3208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3209esac
3210
3211
3212 $ac_path_EGREP_found && break 3
3213 done
3214done
3215
3216done
3217IFS=$as_save_IFS
3218
3219
3220fi
3221
3222EGREP="$ac_cv_path_EGREP"
3223if test -z "$EGREP"; then
3224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3225echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3226 { (exit 1); exit 1; }; }
3227fi
3228
3229else
3230 ac_cv_path_EGREP=$EGREP
3231fi
3232
3233
3234 fi
3235fi
3236{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3237echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3238 EGREP="$ac_cv_path_EGREP"
3239
3240
3241{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3242echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3243if test "${ac_cv_header_stdc+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252#include <stdlib.h>
3253#include <stdarg.h>
3254#include <string.h>
3255#include <float.h>
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_header_stdc=yes
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ac_cv_header_stdc=no
3288fi
3289
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291
3292if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#include <string.h>
3301
3302_ACEOF
3303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3305 :
3306else
3307 ac_cv_header_stdc=no
3308fi
3309rm -f conftest*
3310
3311fi
3312
3313if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321#include <stdlib.h>
3322
3323_ACEOF
3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev/null 2>&1; then
3326 :
3327else
3328 ac_cv_header_stdc=no
3329fi
3330rm -f conftest*
3331
3332fi
3333
3334if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3337 :
3338else
3339 cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
3345#include <ctype.h>
3346#include <stdlib.h>
3347#if ((' ' & 0x0FF) == 0x020)
3348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350#else
3351# define ISLOWER(c) \
3352 (('a' <= (c) && (c) <= 'i') \
3353 || ('j' <= (c) && (c) <= 'r') \
3354 || ('s' <= (c) && (c) <= 'z'))
3355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3356#endif
3357
3358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359int
3360main ()
3361{
3362 int i;
3363 for (i = 0; i < 256; i++)
3364 if (XOR (islower (i), ISLOWER (i))
3365 || toupper (i) != TOUPPER (i))
3366 return 2;
3367 return 0;
3368}
3369_ACEOF
3370rm -f conftest$ac_exeext
3371if { (ac_try="$ac_link"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 :
3391else
3392 echo "$as_me: program exited with status $ac_status" >&5
3393echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396( exit $ac_status )
3397ac_cv_header_stdc=no
3398fi
3399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400fi
3401
3402
3403fi
3404fi
3405{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3406echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3407if test $ac_cv_header_stdc = yes; then
3408
3409cat >>confdefs.h <<\_ACEOF
3410#define STDC_HEADERS 1
3411_ACEOF
3412
3413fi
3414
3415# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3426 inttypes.h stdint.h unistd.h
3427do
3428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3429{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440$ac_includes_default
3441
3442#include <$ac_header>
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (ac_try="$ac_compile"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 eval "$as_ac_Header=yes"
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 eval "$as_ac_Header=no"
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471ac_res=`eval echo '${'$as_ac_Header'}'`
3472 { echo "$as_me:$LINENO: result: $ac_res" >&5
3473echo "${ECHO_T}$ac_res" >&6; }
3474if test `eval echo '${'$as_ac_Header'}'` = yes; then
3475 cat >>confdefs.h <<_ACEOF
3476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3477_ACEOF
3478
3479fi
3480
3481done
3482
3483
3484{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3485echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3486if test "${ac_cv_c_bigendian+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 # See if sys/param.h defines the BYTE_ORDER macro.
3490cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h. */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h. */
3496#include <sys/types.h>
3497#include <sys/param.h>
3498
3499int
3500main ()
3501{
3502#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3503 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3504 bogus endian macros
3505#endif
3506
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (ac_try="$ac_compile"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 # It does; now see whether it defined to BIG_ENDIAN or not.
3529cat >conftest.$ac_ext <<_ACEOF
3530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
3535#include <sys/types.h>
3536#include <sys/param.h>
3537
3538int
3539main ()
3540{
3541#if BYTE_ORDER != BIG_ENDIAN
3542 not big endian
3543#endif
3544
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (ac_try="$ac_compile"
3551case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554esac
3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3566 ac_cv_c_bigendian=yes
3567else
3568 echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 ac_cv_c_bigendian=no
3572fi
3573
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # It does not; compile a test program.
3580if test "$cross_compiling" = yes; then
3581 # try to guess the endianness by grepping values into an object file
3582 ac_cv_c_bigendian=unknown
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3590short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3591void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3592short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3593short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3594void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3595int
3596main ()
3597{
3598 _ascii (); _ebcdic ();
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext
3604if { (ac_try="$ac_compile"
3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3621 ac_cv_c_bigendian=yes
3622fi
3623if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3624 if test "$ac_cv_c_bigendian" = unknown; then
3625 ac_cv_c_bigendian=no
3626 else
3627 # finding both strings is unlikely to happen, but who knows?
3628 ac_cv_c_bigendian=unknown
3629 fi
3630fi
3631else
3632 echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636fi
3637
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639else
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646$ac_includes_default
3647int
3648main ()
3649{
3650
3651 /* Are we little or big endian? From Harbison&Steele. */
3652 union
3653 {
3654 long int l;
3655 char c[sizeof (long int)];
3656 } u;
3657 u.l = 1;
3658 return u.c[sizeof (long int) - 1] == 1;
3659
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest$ac_exeext
3665if { (ac_try="$ac_link"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_link") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678esac
3679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_c_bigendian=no
3685else
3686 echo "$as_me: program exited with status $ac_status" >&5
3687echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690( exit $ac_status )
3691ac_cv_c_bigendian=yes
3692fi
3693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3694fi
3695
3696
3697fi
3698
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700fi
3701{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3702echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3703case $ac_cv_c_bigendian in
3704 yes)
3705
3706cat >>confdefs.h <<\_ACEOF
3707#define WORDS_BIGENDIAN 1
3708_ACEOF
3709 ;;
3710 no)
3711 ;;
3712 *)
3713 { { echo "$as_me:$LINENO: error: unknown endianness
3714presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3715echo "$as_me: error: unknown endianness
3716presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3717 { (exit 1); exit 1; }; } ;;
3718esac
3719
3720
3721# Checks for programs.
3722for ac_prog in gawk mawk nawk awk
3723do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725set dummy $ac_prog; ac_word=$2
3726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3728if test "${ac_cv_prog_AWK+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if test -n "$AWK"; then
3732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_AWK="$ac_prog"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746done
3747IFS=$as_save_IFS
3748
3749fi
3750fi
3751AWK=$ac_cv_prog_AWK
3752if test -n "$AWK"; then
3753 { echo "$as_me:$LINENO: result: $AWK" >&5
3754echo "${ECHO_T}$AWK" >&6; }
3755else
3756 { echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6; }
3758fi
3759
3760
3761 test -n "$AWK" && break
3762done
3763
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3771# On Suns, sometimes $CPP names a directory.
3772if test -n "$CPP" && test -d "$CPP"; then
3773 CPP=
3774fi
3775if test -z "$CPP"; then
3776 if test "${ac_cv_prog_CPP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 # Double quotes because CPP needs to be expanded
3780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3781 do
3782 ac_preproc_ok=false
3783for ac_c_preproc_warn_flag in '' yes
3784do
3785 # Use a header file that comes with gcc, so configuring glibc
3786 # with a fresh cross-compiler works.
3787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788 # <limits.h> exists even on freestanding compilers.
3789 # On the NeXT, cc -E runs the code through the compiler's parser,
3790 # not just through cpp. "Syntax error" is here to catch this case.
3791 cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h. */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h. */
3797#ifdef __STDC__
3798# include <limits.h>
3799#else
3800# include <assert.h>
3801#endif
3802 Syntax error
3803_ACEOF
3804if { (ac_try="$ac_cpp conftest.$ac_ext"
3805case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808esac
3809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 }; then
3820 :
3821else
3822 echo "$as_me: failed program was:" >&5
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 # Broken: fails on valid input.
3826continue
3827fi
3828
3829rm -f conftest.err conftest.$ac_ext
3830
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
3839#include <ac_nonexistent.h>
3840_ACEOF
3841if { (ac_try="$ac_cpp conftest.$ac_ext"
3842case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null && {
3854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3856 }; then
3857 # Broken: success on invalid input.
3858continue
3859else
3860 echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 # Passes both tests.
3864ac_preproc_ok=:
3865break
3866fi
3867
3868rm -f conftest.err conftest.$ac_ext
3869
3870done
3871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872rm -f conftest.err conftest.$ac_ext
3873if $ac_preproc_ok; then
3874 break
3875fi
3876
3877 done
3878 ac_cv_prog_CPP=$CPP
3879
3880fi
3881 CPP=$ac_cv_prog_CPP
3882else
3883 ac_cv_prog_CPP=$CPP
3884fi
3885{ echo "$as_me:$LINENO: result: $CPP" >&5
3886echo "${ECHO_T}$CPP" >&6; }
3887ac_preproc_ok=false
3888for ac_c_preproc_warn_flag in '' yes
3889do
3890 # Use a header file that comes with gcc, so configuring glibc
3891 # with a fresh cross-compiler works.
3892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3893 # <limits.h> exists even on freestanding compilers.
3894 # On the NeXT, cc -E runs the code through the compiler's parser,
3895 # not just through cpp. "Syntax error" is here to catch this case.
3896 cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
3902#ifdef __STDC__
3903# include <limits.h>
3904#else
3905# include <assert.h>
3906#endif
3907 Syntax error
3908_ACEOF
3909if { (ac_try="$ac_cpp conftest.$ac_ext"
3910case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913esac
3914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 }; then
3925 :
3926else
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 # Broken: fails on valid input.
3931continue
3932fi
3933
3934rm -f conftest.err conftest.$ac_ext
3935
3936 # OK, works on sane cases. Now check whether nonexistent headers
3937 # can be detected and how.
3938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h. */
3944#include <ac_nonexistent.h>
3945_ACEOF
3946if { (ac_try="$ac_cpp conftest.$ac_ext"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null && {
3959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 }; then
3962 # Broken: success on invalid input.
3963continue
3964else
3965 echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 # Passes both tests.
3969ac_preproc_ok=:
3970break
3971fi
3972
3973rm -f conftest.err conftest.$ac_ext
3974
3975done
3976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977rm -f conftest.err conftest.$ac_ext
3978if $ac_preproc_ok; then
3979 :
3980else
3981 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3982See \`config.log' for more details." >&5
3983echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3984See \`config.log' for more details." >&2;}
3985 { (exit 1); exit 1; }; }
3986fi
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999if test "${ac_cv_prog_RANLIB+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 if test -n "$RANLIB"; then
4003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022RANLIB=$ac_cv_prog_RANLIB
4023if test -n "$RANLIB"; then
4024 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4025echo "${ECHO_T}$RANLIB" >&6; }
4026else
4027 { echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_RANLIB"; then
4034 ac_ct_RANLIB=$RANLIB
4035 # Extract the first word of "ranlib", so it can be a program name with args.
4036set dummy ranlib; ac_word=$2
4037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4039if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 if test -n "$ac_ct_RANLIB"; then
4043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_RANLIB="ranlib"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4063if test -n "$ac_ct_RANLIB"; then
4064 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4065echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4066else
4067 { echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6; }
4069fi
4070
4071 if test "x$ac_ct_RANLIB" = x; then
4072 RANLIB=":"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077whose name does not start with the host triplet. If you think this
4078configuration is useful to you, please write to autoconf@gnu.org." >&5
4079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080whose name does not start with the host triplet. If you think this
4081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4082ac_tool_warned=yes ;;
4083esac
4084 RANLIB=$ac_ct_RANLIB
4085 fi
4086else
4087 RANLIB="$ac_cv_prog_RANLIB"
4088fi
4089
4090# Find a good install program. We prefer a C program (faster),
4091# so one script is as good as another. But avoid the broken or
4092# incompatible versions:
4093# SysV /etc/install, /usr/sbin/install
4094# SunOS /usr/etc/install
4095# IRIX /sbin/install
4096# AIX /bin/install
4097# AmigaOS /C/install, which installs bootblocks on floppy discs
4098# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4099# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4100# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4101# OS/2's system install, which has a completely different semantic
4102# ./install, which can be erroneously created by make from ./install.sh.
4103{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4104echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4105if test -z "$INSTALL"; then
4106if test "${ac_cv_path_install+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 # Account for people who put trailing slashes in PATH elements.
4115case $as_dir/ in
4116 ./ | .// | /cC/* | \
4117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4119 /usr/ucb/* ) ;;
4120 *)
4121 # OSF1 and SCO ODT 3.0 have their own names for install.
4122 # Don't use installbsd from OSF since it installs stuff as root
4123 # by default.
4124 for ac_prog in ginstall scoinst install; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4127 if test $ac_prog = install &&
4128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4129 # AIX install. It has an incompatible calling convention.
4130 :
4131 elif test $ac_prog = install &&
4132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # program-specific install script used by HP pwplus--don't use.
4134 :
4135 else
4136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4137 break 3
4138 fi
4139 fi
4140 done
4141 done
4142 ;;
4143esac
4144done
4145IFS=$as_save_IFS
4146
4147
4148fi
4149 if test "${ac_cv_path_install+set}" = set; then
4150 INSTALL=$ac_cv_path_install
4151 else
4152 # As a last resort, use the slow shell script. Don't cache a
4153 # value for INSTALL within a source directory, because that will
4154 # break other packages using the cache if that directory is
4155 # removed, or if the value is a relative name.
4156 INSTALL=$ac_install_sh
4157 fi
4158fi
4159{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4160echo "${ECHO_T}$INSTALL" >&6; }
4161
4162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4163# It thinks the first close brace ends the variable substitution.
4164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4165
4166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4167
4168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4169
4170{ echo "$as_me:$LINENO: checking for egrep" >&5
4171echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4172if test "${ac_cv_path_EGREP+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
4175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176 then ac_cv_path_EGREP="$GREP -E"
4177 else
4178 # Extract the first word of "egrep" to use in msg output
4179if test -z "$EGREP"; then
4180set dummy egrep; ac_prog_name=$2
4181if test "${ac_cv_path_EGREP+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 ac_path_EGREP_found=false
4185# Loop through the user's path and test for each of PROGNAME-LIST
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in egrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196 # Check for GNU $ac_path_EGREP
4197case `"$ac_path_EGREP" --version 2>&1` in
4198*GNU*)
4199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200*)
4201 ac_count=0
4202 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4203 while :
4204 do
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 echo 'EGREP' >> "conftest.nl"
4209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 ac_count=`expr $ac_count + 1`
4212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_EGREP="$ac_path_EGREP"
4215 ac_path_EGREP_max=$ac_count
4216 fi
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221esac
4222
4223
4224 $ac_path_EGREP_found && break 3
4225 done
4226done
4227
4228done
4229IFS=$as_save_IFS
4230
4231
4232fi
4233
4234EGREP="$ac_cv_path_EGREP"
4235if test -z "$EGREP"; then
4236 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4237echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4238 { (exit 1); exit 1; }; }
4239fi
4240
4241else
4242 ac_cv_path_EGREP=$EGREP
4243fi
4244
4245
4246 fi
4247fi
4248{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4249echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4251
4252
4253# Extract the first word of "ar", so it can be a program name with args.
4254set dummy ar; ac_word=$2
4255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4257if test "${ac_cv_path_AR+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 case $AR in
4261 [\\/]* | ?:[\\/]*)
4262 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4263 ;;
4264 *)
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276done
4277done
4278IFS=$as_save_IFS
4279
4280 ;;
4281esac
4282fi
4283AR=$ac_cv_path_AR
4284if test -n "$AR"; then
4285 { echo "$as_me:$LINENO: result: $AR" >&5
4286echo "${ECHO_T}$AR" >&6; }
4287else
4288 { echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6; }
4290fi
4291
4292
4293# Extract the first word of "cat", so it can be a program name with args.
4294set dummy cat; ac_word=$2
4295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297if test "${ac_cv_path_CAT+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 case $CAT in
4301 [\\/]* | ?:[\\/]*)
4302 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4303 ;;
4304 *)
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316done
4317done
4318IFS=$as_save_IFS
4319
4320 ;;
4321esac
4322fi
4323CAT=$ac_cv_path_CAT
4324if test -n "$CAT"; then
4325 { echo "$as_me:$LINENO: result: $CAT" >&5
4326echo "${ECHO_T}$CAT" >&6; }
4327else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6; }
4330fi
4331
4332
4333# Extract the first word of "kill", so it can be a program name with args.
4334set dummy kill; ac_word=$2
4335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337if test "${ac_cv_path_KILL+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 case $KILL in
4341 [\\/]* | ?:[\\/]*)
4342 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4343 ;;
4344 *)
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
4357done
4358IFS=$as_save_IFS
4359
4360 ;;
4361esac
4362fi
4363KILL=$ac_cv_path_KILL
4364if test -n "$KILL"; then
4365 { echo "$as_me:$LINENO: result: $KILL" >&5
4366echo "${ECHO_T}$KILL" >&6; }
4367else
4368 { echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6; }
4370fi
4371
4372
4373for ac_prog in perl5 perl
4374do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376set dummy $ac_prog; ac_word=$2
4377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379if test "${ac_cv_path_PERL+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 case $PERL in
4383 [\\/]* | ?:[\\/]*)
4384 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4385 ;;
4386 *)
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398done
4399done
4400IFS=$as_save_IFS
4401
4402 ;;
4403esac
4404fi
4405PERL=$ac_cv_path_PERL
4406if test -n "$PERL"; then
4407 { echo "$as_me:$LINENO: result: $PERL" >&5
4408echo "${ECHO_T}$PERL" >&6; }
4409else
4410 { echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6; }
4412fi
4413
4414
4415 test -n "$PERL" && break
4416done
4417
4418# Extract the first word of "sed", so it can be a program name with args.
4419set dummy sed; ac_word=$2
4420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422if test "${ac_cv_path_SED+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424else
4425 case $SED in
4426 [\\/]* | ?:[\\/]*)
4427 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4428 ;;
4429 *)
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443IFS=$as_save_IFS
4444
4445 ;;
4446esac
4447fi
4448SED=$ac_cv_path_SED
4449if test -n "$SED"; then
4450 { echo "$as_me:$LINENO: result: $SED" >&5
4451echo "${ECHO_T}$SED" >&6; }
4452else
4453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
4455fi
4456
4457
4458
4459# Extract the first word of "ent", so it can be a program name with args.
4460set dummy ent; ac_word=$2
4461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_path_ENT+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 case $ENT in
4467 [\\/]* | ?:[\\/]*)
4468 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4469 ;;
4470 *)
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
4483done
4484IFS=$as_save_IFS
4485
4486 ;;
4487esac
4488fi
4489ENT=$ac_cv_path_ENT
4490if test -n "$ENT"; then
4491 { echo "$as_me:$LINENO: result: $ENT" >&5
4492echo "${ECHO_T}$ENT" >&6; }
4493else
4494 { echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6; }
4496fi
4497
4498
4499
4500# Extract the first word of "bash", so it can be a program name with args.
4501set dummy bash; ac_word=$2
4502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 case $TEST_MINUS_S_SH in
4508 [\\/]* | ?:[\\/]*)
4509 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4510 ;;
4511 *)
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523done
4524done
4525IFS=$as_save_IFS
4526
4527 ;;
4528esac
4529fi
4530TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4531if test -n "$TEST_MINUS_S_SH"; then
4532 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4533echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4534else
4535 { echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; }
4537fi
4538
4539
4540# Extract the first word of "ksh", so it can be a program name with args.
4541set dummy ksh; ac_word=$2
4542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 case $TEST_MINUS_S_SH in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563done
4564done
4565IFS=$as_save_IFS
4566
4567 ;;
4568esac
4569fi
4570TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4571if test -n "$TEST_MINUS_S_SH"; then
4572 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4573echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4574else
4575 { echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6; }
4577fi
4578
4579
4580# Extract the first word of "sh", so it can be a program name with args.
4581set dummy sh; ac_word=$2
4582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 case $TEST_MINUS_S_SH in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4590 ;;
4591 *)
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605IFS=$as_save_IFS
4606
4607 ;;
4608esac
4609fi
4610TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4611if test -n "$TEST_MINUS_S_SH"; then
4612 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4613echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4614else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6; }
4617fi
4618
4619
4620# Extract the first word of "sh", so it can be a program name with args.
4621set dummy sh; ac_word=$2
4622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624if test "${ac_cv_path_SH+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 case $SH in
4628 [\\/]* | ?:[\\/]*)
4629 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4630 ;;
4631 *)
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645IFS=$as_save_IFS
4646
4647 ;;
4648esac
4649fi
4650SH=$ac_cv_path_SH
4651if test -n "$SH"; then
4652 { echo "$as_me:$LINENO: result: $SH" >&5
4653echo "${ECHO_T}$SH" >&6; }
4654else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; }
4657fi
4658
4659
4660TEST_SHELL=sh
4661
4662
4663# Extract the first word of "groupadd", so it can be a program name with args.
4664set dummy groupadd; ac_word=$2
4665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 case $PATH_GROUPADD_PROG in
4671 [\\/]* | ?:[\\/]*)
4672 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4673 ;;
4674 *)
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686done
4687done
4688IFS=$as_save_IFS
4689
4690 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4691 ;;
4692esac
4693fi
4694PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4695if test -n "$PATH_GROUPADD_PROG"; then
4696 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4697echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4698else
4699 { echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6; }
4701fi
4702
4703
4704# Extract the first word of "useradd", so it can be a program name with args.
4705set dummy useradd; ac_word=$2
4706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711 case $PATH_USERADD_PROG in
4712 [\\/]* | ?:[\\/]*)
4713 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4714 ;;
4715 *)
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
4729IFS=$as_save_IFS
4730
4731 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4732 ;;
4733esac
4734fi
4735PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4736if test -n "$PATH_USERADD_PROG"; then
4737 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4738echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4739else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6; }
4742fi
4743
4744
4745# Extract the first word of "pkgmk", so it can be a program name with args.
4746set dummy pkgmk; ac_word=$2
4747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4753 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766done
4767done
4768IFS=$as_save_IFS
4769
4770 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4771fi
4772fi
4773MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4774if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4775 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4776echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4777else
4778 { echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6; }
4780fi
4781
4782
4783if test -x /sbin/sh; then
4784 STARTUP_SCRIPT_SHELL=/sbin/sh
4785
4786else
4787 STARTUP_SCRIPT_SHELL=/bin/sh
4788
4789fi
4790
4791# System features
4792# Check whether --enable-largefile was given.
4793if test "${enable_largefile+set}" = set; then
4794 enableval=$enable_largefile;
4795fi
4796
4797if test "$enable_largefile" != no; then
4798
4799 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4800echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4801if test "${ac_cv_sys_largefile_CC+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 ac_cv_sys_largefile_CC=no
4805 if test "$GCC" != yes; then
4806 ac_save_CC=$CC
4807 while :; do
4808 # IRIX 6.2 and later do not support large files by default,
4809 # so use the C compiler's -n32 option if that helps.
4810 cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
4816#include <sys/types.h>
4817 /* Check that off_t can represent 2**63 - 1 correctly.
4818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4819 since some C++ compilers masquerading as C compilers
4820 incorrectly reject 9223372036854775807. */
4821#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4823 && LARGE_OFF_T % 2147483647 == 1)
4824 ? 1 : -1];
4825int
4826main ()
4827{
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833 rm -f conftest.$ac_objext
4834if { (ac_try="$ac_compile"
4835case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838esac
4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 break
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855
4856fi
4857
4858rm -f core conftest.err conftest.$ac_objext
4859 CC="$CC -n32"
4860 rm -f conftest.$ac_objext
4861if { (ac_try="$ac_compile"
4862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_cv_sys_largefile_CC=' -n32'; break
4878else
4879 echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882
4883fi
4884
4885rm -f core conftest.err conftest.$ac_objext
4886 break
4887 done
4888 CC=$ac_save_CC
4889 rm -f conftest.$ac_ext
4890 fi
4891fi
4892{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4893echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4894 if test "$ac_cv_sys_largefile_CC" != no; then
4895 CC=$CC$ac_cv_sys_largefile_CC
4896 fi
4897
4898 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4899echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4900if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 while :; do
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#include <sys/types.h>
4911 /* Check that off_t can represent 2**63 - 1 correctly.
4912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4913 since some C++ compilers masquerading as C compilers
4914 incorrectly reject 9223372036854775807. */
4915#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4917 && LARGE_OFF_T % 2147483647 == 1)
4918 ? 1 : -1];
4919int
4920main ()
4921{
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext
4928if { (ac_try="$ac_compile"
4929case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4944 ac_cv_sys_file_offset_bits=no; break
4945else
4946 echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949
4950fi
4951
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#define _FILE_OFFSET_BITS 64
4960#include <sys/types.h>
4961 /* Check that off_t can represent 2**63 - 1 correctly.
4962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4963 since some C++ compilers masquerading as C compilers
4964 incorrectly reject 9223372036854775807. */
4965#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4967 && LARGE_OFF_T % 2147483647 == 1)
4968 ? 1 : -1];
4969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 ac_cv_sys_file_offset_bits=64; break
4995else
4996 echo "$as_me: failed program was:" >&5
4997sed 's/^/| /' conftest.$ac_ext >&5
4998
4999
5000fi
5001
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cv_sys_file_offset_bits=unknown
5004 break
5005done
5006fi
5007{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5008echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5009case $ac_cv_sys_file_offset_bits in #(
5010 no | unknown) ;;
5011 *)
5012cat >>confdefs.h <<_ACEOF
5013#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5014_ACEOF
5015;;
5016esac
5017rm -f conftest*
5018 if test $ac_cv_sys_file_offset_bits = unknown; then
5019 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5020echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5021if test "${ac_cv_sys_large_files+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 while :; do
5025 cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031#include <sys/types.h>
5032 /* Check that off_t can represent 2**63 - 1 correctly.
5033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5034 since some C++ compilers masquerading as C compilers
5035 incorrectly reject 9223372036854775807. */
5036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5038 && LARGE_OFF_T % 2147483647 == 1)
5039 ? 1 : -1];
5040int
5041main ()
5042{
5043
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048rm -f conftest.$ac_objext
5049if { (ac_try="$ac_compile"
5050case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053esac
5054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_compile") 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest.$ac_objext; then
5065 ac_cv_sys_large_files=no; break
5066else
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070
5071fi
5072
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#define _LARGE_FILES 1
5081#include <sys/types.h>
5082 /* Check that off_t can represent 2**63 - 1 correctly.
5083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5084 since some C++ compilers masquerading as C compilers
5085 incorrectly reject 9223372036854775807. */
5086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5088 && LARGE_OFF_T % 2147483647 == 1)
5089 ? 1 : -1];
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5115 ac_cv_sys_large_files=1; break
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120
5121fi
5122
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_cv_sys_large_files=unknown
5125 break
5126done
5127fi
5128{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5129echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5130case $ac_cv_sys_large_files in #(
5131 no | unknown) ;;
5132 *)
5133cat >>confdefs.h <<_ACEOF
5134#define _LARGE_FILES $ac_cv_sys_large_files
5135_ACEOF
5136;;
5137esac
5138rm -f conftest*
5139 fi
5140fi
5141
5142
5143if test -z "$AR" ; then
5144 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5145echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5146 { (exit 1); exit 1; }; }
5147fi
5148
5149# Use LOGIN_PROGRAM from environment if possible
5150if test ! -z "$LOGIN_PROGRAM" ; then
5151
5152cat >>confdefs.h <<_ACEOF
5153#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5154_ACEOF
5155
5156else
5157 # Search for login
5158 # Extract the first word of "login", so it can be a program name with args.
5159set dummy login; ac_word=$2
5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 case $LOGIN_PROGRAM_FALLBACK in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182done
5183IFS=$as_save_IFS
5184
5185 ;;
5186esac
5187fi
5188LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5189if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5190 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5191echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5192else
5193 { echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6; }
5195fi
5196
5197
5198 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5199 cat >>confdefs.h <<_ACEOF
5200#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5201_ACEOF
5202
5203 fi
5204fi
5205
5206# Extract the first word of "passwd", so it can be a program name with args.
5207set dummy passwd; ac_word=$2
5208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 case $PATH_PASSWD_PROG in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231IFS=$as_save_IFS
5232
5233 ;;
5234esac
5235fi
5236PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5237if test -n "$PATH_PASSWD_PROG"; then
5238 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5239echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5240else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6; }
5243fi
5244
5245
5246if test ! -z "$PATH_PASSWD_PROG" ; then
5247
5248cat >>confdefs.h <<_ACEOF
5249#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5250_ACEOF
5251
5252fi
5253
5254if test -z "$LD" ; then
5255 LD=$CC
5256fi
5257
5258
5259{ echo "$as_me:$LINENO: checking for inline" >&5
5260echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5261if test "${ac_cv_c_inline+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264 ac_cv_c_inline=no
5265for ac_kw in inline __inline__ __inline; do
5266 cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h. */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h. */
5272#ifndef __cplusplus
5273typedef int foo_t;
5274static $ac_kw foo_t static_foo () {return 0; }
5275$ac_kw foo_t foo () {return 0; }
5276#endif
5277
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (ac_try="$ac_compile"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.$ac_objext; then
5296 ac_cv_c_inline=$ac_kw
5297else
5298 echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302fi
5303
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 test "$ac_cv_c_inline" != no && break
5306done
5307
5308fi
5309{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5310echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5311
5312
5313case $ac_cv_c_inline in
5314 inline | yes) ;;
5315 *)
5316 case $ac_cv_c_inline in
5317 no) ac_val=;;
5318 *) ac_val=$ac_cv_c_inline;;
5319 esac
5320 cat >>confdefs.h <<_ACEOF
5321#ifndef __cplusplus
5322#define inline $ac_val
5323#endif
5324_ACEOF
5325 ;;
5326esac
5327
5328
5329{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5330echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5331if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340#include <limits.h>
5341
5342int
5343main ()
5344{
5345#ifndef LLONG_MAX
5346 (void) LLONG_MAX;
5347#endif
5348
5349 ;
5350 return 0;
5351}
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (ac_try="$ac_compile"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest.$ac_objext; then
5370 ac_cv_have_decl_LLONG_MAX=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_cv_have_decl_LLONG_MAX=no
5376fi
5377
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379fi
5380{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5381echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5382if test $ac_cv_have_decl_LLONG_MAX = yes; then
5383 have_llong_max=1
5384fi
5385
5386
5387use_stack_protector=1
5388
5389# Check whether --with-stackprotect was given.
5390if test "${with_stackprotect+set}" = set; then
5391 withval=$with_stackprotect;
5392 if test "x$withval" = "xno"; then
5393 use_stack_protector=0
5394 fi
5395fi
5396
5397
5398if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5399 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5400 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5401 case $GCC_VER in
5402 1.*) no_attrib_nonnull=1 ;;
5403 2.8* | 2.9*)
5404 CFLAGS="$CFLAGS -Wsign-compare"
5405 no_attrib_nonnull=1
5406 ;;
5407 2.*) no_attrib_nonnull=1 ;;
727LIBOBJS
728LTLIBOBJS'
729ac_subst_files=''
730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CPP'
739
740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
766# (The list follows the same order as the GNU Coding Standards.)
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
786
787ac_prev=
788ac_dashdash=
789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116done
1117
1118if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122fi
1123
1124# Be sure to have absolute directory names.
1125for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137done
1138
1139# There might be people who depend on the old broken behavior: `$host'
1140# used to hold the argument of --host etc.
1141# FIXME: To remove some day.
1142build=$build_alias
1143host=$host_alias
1144target=$target_alias
1145
1146# FIXME: To remove some day.
1147if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173# Find the source files, if location was not specified.
1174if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204else
1205 ac_srcdir_defaulted=no
1206fi
1207if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211fi
1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217# When building in place, set srcdir=.
1218if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220fi
1221# Remove unnecessary trailing slashes from srcdir.
1222# Double slashes in file names in object file debugging info
1223# mess up M-x gdb in Emacs.
1224case $srcdir in
1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226esac
1227for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232done
1233
1234#
1235# Report the --help message.
1236#
1237if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1242
1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248Defaults for the options are specified in brackets.
1249
1250Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267By default, \`make install' will install all the files in
1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270for instance \`--prefix=\$HOME'.
1271
1272For better control, use the options below.
1273
1274Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294_ACEOF
1295
1296 cat <<\_ACEOF
1297
1298System types:
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1307 esac
1308 cat <<\_ACEOF
1309
1310Optional Features:
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-largefile omit support for large files
1314 --disable-strip Disable calling strip(1) on install
1315 --disable-etc-default-login Disable using PATH from /etc/default/login no
1316 --disable-lastlog disable use of lastlog even if detected no
1317 --disable-utmp disable use of utmp even if detected no
1318 --disable-utmpx disable use of utmpx even if detected no
1319 --disable-wtmp disable use of wtmp even if detected no
1320 --disable-wtmpx disable use of wtmpx even if detected no
1321 --disable-libutil disable use of libutil (login() etc.) no
1322 --disable-pututline disable use of pututline() etc. (uwtmp) no
1323 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1324
1325Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-stackprotect Don't use compiler's stack protection
1329 --without-rpath Disable auto-added -R linker paths
1330 --with-cflags Specify additional flags to pass to compiler
1331 --with-cppflags Specify additional flags to pass to preprocessor
1332 --with-ldflags Specify additional flags to pass to linker
1333 --with-libs Specify additional libraries to link with
1334 --with-Werror Build main code with -Werror
1335 --with-solaris-contracts Enable Solaris process contracts (experimental)
1336 --with-osfsia Enable Digital Unix SIA
1337 --with-zlib=PATH Use zlib in PATH
1338 --without-zlib-version-check Disable zlib version check
1339 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1340 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1341 --with-libedit[=PATH] Enable libedit support for sftp
1342 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1343 --with-ssl-dir=PATH Specify path to OpenSSL installation
1344 --without-openssl-header-check Disable OpenSSL version consistency check
1345 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1346 --with-pam Enable PAM support
1347 --with-rand-helper Use subprocess to gather strong randomness
1348 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1349 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1350 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1351 --with-privsep-user=user Specify non-privileged user for privilege separation
1352 --with-sectok Enable smartcard support using libsectok
1353 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1354 --with-selinux Enable SELinux support
1355 --with-kerberos5=PATH Enable Kerberos 5 support
1356 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1357 --with-xauth=PATH Specify path to xauth program
1358 --with-mantype=man|cat|doc Set man page type
1359 --with-md5-passwords Enable use of MD5 passwords
1360 --without-shadow Disable shadow password support
1361 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1362 --with-default-path= Specify default \$PATH environment for server
1363 --with-superuser-path= Specify different path for super-user
1364 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1365 --with-bsd-auth Enable BSD auth support
1366 --with-pid-dir=PATH Specify location of ssh.pid file
1367 --with-lastlog=FILE|DIR specify lastlog location common locations
1368
1369Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
1382Report bugs to <openssh-unix-dev@mindrot.org>.
1383_ACEOF
1384ac_status=$?
1385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1391 ac_builddir=.
1392
1393case "$ac_dir" in
1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395*)
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403esac
1404ac_abs_top_builddir=$ac_pwd
1405ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406# for backward compatibility:
1407ac_top_builddir=$ac_top_build_prefix
1408
1409case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422esac
1423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1438fi
1439
1440test -n "$ac_init_help" && exit $ac_status
1441if $ac_init_version; then
1442 cat <<\_ACEOF
1443OpenSSH configure Portable
1444generated by GNU Autoconf 2.61
1445
1446Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448This configure script is free software; the Free Software Foundation
1449gives unlimited permission to copy, distribute and modify it.
1450_ACEOF
1451 exit
1452fi
1453cat >config.log <<_ACEOF
1454This file contains any messages produced by compilers while
1455running configure, to aid debugging if configure makes a mistake.
1456
1457It was created by OpenSSH $as_me Portable, which was
1458generated by GNU Autoconf 2.61. Invocation command line was
1459
1460 $ $0 $@
1461
1462_ACEOF
1463exec 5>>config.log
1464{
1465cat <<_ASUNAME
1466## --------- ##
1467## Platform. ##
1468## --------- ##
1469
1470hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1478
1479/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486
1487_ASUNAME
1488
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1495done
1496IFS=$as_save_IFS
1497
1498} >&5
1499
1500cat >&5 <<_ACEOF
1501
1502
1503## ----------- ##
1504## Core tests. ##
1505## ----------- ##
1506
1507_ACEOF
1508
1509
1510# Keep a trace of the command line.
1511# Strip out --no-create and --no-recursion so they do not pile up.
1512# Strip out --silent because we don't want to record it for future runs.
1513# Also quote any args containing shell meta-characters.
1514# Make two passes to allow for proper duplicate-argument suppression.
1515ac_configure_args=
1516ac_configure_args0=
1517ac_configure_args1=
1518ac_must_keep_next=false
1519for ac_pass in 1 2
1520do
1521 for ac_arg
1522 do
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
1528 *\'*)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 esac
1531 case $ac_pass in
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533 2)
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1546 ;;
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1549 fi
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1551 ;;
1552 esac
1553 done
1554done
1555$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557
1558# When interrupted or exit'd, cleanup temporary files, and complete
1559# config.log. We remove comments because anyway the quotes in there
1560# would cause problems or look ugly.
1561# WARNING: Use '\'' to represent an apostrophe within the trap.
1562# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1565 {
1566 echo
1567
1568 cat <<\_ASBOX
1569## ---------------- ##
1570## Cache variables. ##
1571## ---------------- ##
1572_ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575(
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1587 esac ;;
1588 esac
1589 done
1590 (set) 2>&1 |
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1593 sed -n \
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
1597 *)
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ;;
1600 esac |
1601 sort
1602)
1603 echo
1604
1605 cat <<\_ASBOX
1606## ----------------- ##
1607## Output variables. ##
1608## ----------------- ##
1609_ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
1623## ------------------- ##
1624## File substitutions. ##
1625## ------------------- ##
1626_ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1629 do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1637 fi
1638
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641## ----------- ##
1642## confdefs.h. ##
1643## ----------- ##
1644_ASBOX
1645 echo
1646 cat confdefs.h
1647 echo
1648 fi
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1652 } >&5
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 exit $exit_status
1656' 0
1657for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659done
1660ac_signal=0
1661
1662# confdefs.h avoids OS command line length limits that DEFS can exceed.
1663rm -f -r conftest* confdefs.h
1664
1665# Predefined preprocessor variables.
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_NAME "$PACKAGE_NAME"
1669_ACEOF
1670
1671
1672cat >>confdefs.h <<_ACEOF
1673#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674_ACEOF
1675
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_VERSION "$PACKAGE_VERSION"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_STRING "$PACKAGE_STRING"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689_ACEOF
1690
1691
1692# Let the site file select an alternate cache file if it wants to.
1693# Prefer explicitly selected file to automatically selected ones.
1694if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698else
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1701fi
1702shift
1703for ac_site_file
1704do
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1709 . "$ac_site_file"
1710 fi
1711done
1712
1713if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718echo "$as_me: loading cache $cache_file" >&6;}
1719 case $cache_file in
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1722 esac
1723 fi
1724else
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726echo "$as_me: creating cache $cache_file" >&6;}
1727 >$cache_file
1728fi
1729
1730# Check that the precious variables saved in the cache have kept the same
1731# value.
1732ac_cache_corrupted=false
1733for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1748 *)
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1769 fi
1770done
1771if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1777fi
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
1809
1810
1811
1812
1813ac_config_headers="$ac_config_headers config.h"
1814
1815ac_ext=c
1816ac_cpp='$CPP $CPPFLAGS'
1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1822set dummy ${ac_tool_prefix}gcc; ac_word=$2
1823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842done
1843done
1844IFS=$as_save_IFS
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850 { echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6; }
1852else
1853 { echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6; }
1855fi
1856
1857
1858fi
1859if test -z "$ac_cv_prog_CC"; then
1860 ac_ct_CC=$CC
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862set dummy gcc; ac_word=$2
1863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1881 fi
1882done
1883done
1884IFS=$as_save_IFS
1885
1886fi
1887fi
1888ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889if test -n "$ac_ct_CC"; then
1890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891echo "${ECHO_T}$ac_ct_CC" >&6; }
1892else
1893 { echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6; }
1895fi
1896
1897 if test "x$ac_ct_CC" = x; then
1898 CC=""
1899 else
1900 case $cross_compiling:$ac_tool_warned in
1901yes:)
1902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1903whose name does not start with the host triplet. If you think this
1904configuration is useful to you, please write to autoconf@gnu.org." >&5
1905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet. If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1908ac_tool_warned=yes ;;
1909esac
1910 CC=$ac_ct_CC
1911 fi
1912else
1913 CC="$ac_cv_prog_CC"
1914fi
1915
1916if test -z "$CC"; then
1917 if test -n "$ac_tool_prefix"; then
1918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1919set dummy ${ac_tool_prefix}cc; ac_word=$2
1920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1935 ac_cv_prog_CC="${ac_tool_prefix}cc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
1940done
1941IFS=$as_save_IFS
1942
1943fi
1944fi
1945CC=$ac_cv_prog_CC
1946if test -n "$CC"; then
1947 { echo "$as_me:$LINENO: result: $CC" >&5
1948echo "${ECHO_T}$CC" >&6; }
1949else
1950 { echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6; }
1952fi
1953
1954
1955 fi
1956fi
1957if test -z "$CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args.
1959set dummy cc; ac_word=$2
1960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968 ac_prog_rejected=no
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977 ac_prog_rejected=yes
1978 continue
1979 fi
1980 ac_cv_prog_CC="cc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1983 fi
1984done
1985done
1986IFS=$as_save_IFS
1987
1988if test $ac_prog_rejected = yes; then
1989 # We found a bogon in the path, so make sure we never use it.
1990 set dummy $ac_cv_prog_CC
1991 shift
1992 if test $# != 0; then
1993 # We chose a different compiler from the bogus one.
1994 # However, it has the same basename, so the bogon will be chosen
1995 # first if we set CC to just the basename; use the full file name.
1996 shift
1997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1998 fi
1999fi
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6; }
2006else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6; }
2009fi
2010
2011
2012fi
2013if test -z "$CC"; then
2014 if test -n "$ac_tool_prefix"; then
2015 for ac_prog in cl.exe
2016 do
2017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2037 fi
2038done
2039done
2040IFS=$as_save_IFS
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046 { echo "$as_me:$LINENO: result: $CC" >&5
2047echo "${ECHO_T}$CC" >&6; }
2048else
2049 { echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6; }
2051fi
2052
2053
2054 test -n "$CC" && break
2055 done
2056fi
2057if test -z "$CC"; then
2058 ac_ct_CC=$CC
2059 for ac_prog in cl.exe
2060do
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062set dummy $ac_prog; ac_word=$2
2063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2078 ac_cv_prog_ac_ct_CC="$ac_prog"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2081 fi
2082done
2083done
2084IFS=$as_save_IFS
2085
2086fi
2087fi
2088ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089if test -n "$ac_ct_CC"; then
2090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091echo "${ECHO_T}$ac_ct_CC" >&6; }
2092else
2093 { echo "$as_me:$LINENO: result: no" >&5
2094echo "${ECHO_T}no" >&6; }
2095fi
2096
2097
2098 test -n "$ac_ct_CC" && break
2099done
2100
2101 if test "x$ac_ct_CC" = x; then
2102 CC=""
2103 else
2104 case $cross_compiling:$ac_tool_warned in
2105yes:)
2106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2107whose name does not start with the host triplet. If you think this
2108configuration is useful to you, please write to autoconf@gnu.org." >&5
2109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2112ac_tool_warned=yes ;;
2113esac
2114 CC=$ac_ct_CC
2115 fi
2116fi
2117
2118fi
2119
2120
2121test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&5
2123echo "$as_me: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2126
2127# Provide some information about the compiler.
2128echo "$as_me:$LINENO: checking for C compiler version" >&5
2129ac_compiler=`set X $ac_compile; echo $2`
2130{ (ac_try="$ac_compiler --version >&5"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler --version >&5") 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (ac_try="$ac_compiler -v >&5"
2141case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144esac
2145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_compiler -v >&5") 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150{ (ac_try="$ac_compiler -V >&5"
2151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
2155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156 (eval "$ac_compiler -V >&5") 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160
2161cat >conftest.$ac_ext <<_ACEOF
2162/* confdefs.h. */
2163_ACEOF
2164cat confdefs.h >>conftest.$ac_ext
2165cat >>conftest.$ac_ext <<_ACEOF
2166/* end confdefs.h. */
2167
2168int
2169main ()
2170{
2171
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176ac_clean_files_save=$ac_clean_files
2177ac_clean_files="$ac_clean_files a.out a.exe b.out"
2178# Try to create an executable without -o first, disregard a.out.
2179# It will help us diagnose broken compilers, and finding out an intuition
2180# of exeext.
2181{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2182echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2183ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2184#
2185# List of possible output files, starting from the most likely.
2186# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2187# only as a last resort. b.out is created by i960 compilers.
2188ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2189#
2190# The IRIX 6 linker writes into existing files which may not be
2191# executable, retaining their permissions. Remove them first so a
2192# subsequent execution test works.
2193ac_rmfiles=
2194for ac_file in $ac_files
2195do
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2199 esac
2200done
2201rm -f $ac_rmfiles
2202
2203if { (ac_try="$ac_link_default"
2204case "(($ac_try" in
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2207esac
2208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209 (eval "$ac_link_default") 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2214# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2215# in a Makefile. We should not override ac_cv_exeext if it was cached,
2216# so that the user can short-circuit this test for compilers unknown to
2217# Autoconf.
2218for ac_file in $ac_files ''
2219do
2220 test -f "$ac_file" || continue
2221 case $ac_file in
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2223 ;;
2224 [ab].out )
2225 # We found the default executable, but exeext='' is most
2226 # certainly right.
2227 break;;
2228 *.* )
2229 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2230 then :; else
2231 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 fi
2233 # We set ac_cv_exeext here because the later test for it is not
2234 # safe: cross compilers may not add the suffix if given an `-o'
2235 # argument, so we may need to know it at that point already.
2236 # Even if this section looks crufty: it has the advantage of
2237 # actually working.
2238 break;;
2239 * )
2240 break;;
2241 esac
2242done
2243test "$ac_cv_exeext" = no && ac_cv_exeext=
2244
2245else
2246 ac_file=''
2247fi
2248
2249{ echo "$as_me:$LINENO: result: $ac_file" >&5
2250echo "${ECHO_T}$ac_file" >&6; }
2251if test -z "$ac_file"; then
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263
2264# Check that the compiler produces executables we can run. If not, either
2265# the compiler is broken, or we cross compile.
2266{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269# If not cross compiling, check that we can run a simple program.
2270if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_try") 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 cross_compiling=no
2282 else
2283 if test "$cross_compiling" = maybe; then
2284 cross_compiling=yes
2285 else
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294 fi
2295fi
2296{ echo "$as_me:$LINENO: result: yes" >&5
2297echo "${ECHO_T}yes" >&6; }
2298
2299rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300ac_clean_files=$ac_clean_files_save
2301# Check that the compiler produces executables we can run. If not, either
2302# the compiler is broken, or we cross compile.
2303{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310if { (ac_try="$ac_link"
2311case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_link") 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322# work properly (i.e., refer to `conftest.exe'), while it won't with
2323# `rm'.
2324for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2326 case $ac_file in
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 break;;
2330 * ) break;;
2331 esac
2332done
2333else
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest$ac_cv_exeext
2342{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345rm -f conftest.$ac_ext
2346EXEEXT=$ac_cv_exeext
2347ac_exeext=$EXEEXT
2348{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350if test "${ac_cv_objext+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h. */
2359
2360int
2361main ()
2362{
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.o conftest.obj
2369if { (ac_try="$ac_compile"
2370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compile") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 for ac_file in conftest.o conftest.obj conftest.*; do
2380 test -f "$ac_file" || continue;
2381 case $ac_file in
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384 break;;
2385 esac
2386done
2387else
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2396fi
2397
2398rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399fi
2400{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401echo "${ECHO_T}$ac_cv_objext" >&6; }
2402OBJEXT=$ac_cv_objext
2403ac_objext=$OBJEXT
2404{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409 cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h. */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h. */
2415
2416int
2417main ()
2418{
2419#ifndef __GNUC__
2420 choke me
2421#endif
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (ac_try="$ac_compile"
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } && {
2441 test -z "$ac_c_werror_flag" ||
2442 test ! -s conftest.err
2443 } && test -s conftest.$ac_objext; then
2444 ac_compiler_gnu=yes
2445else
2446 echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_compiler_gnu=no
2450fi
2451
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455fi
2456{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458GCC=`test $ac_compiler_gnu = yes && echo yes`
2459ac_test_CFLAGS=${CFLAGS+set}
2460ac_save_CFLAGS=$CFLAGS
2461{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_cc_g+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 ac_save_c_werror_flag=$ac_c_werror_flag
2467 ac_c_werror_flag=yes
2468 ac_cv_prog_cc_g=no
2469 CFLAGS="-g"
2470 cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h. */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h. */
2476
2477int
2478main ()
2479{
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (ac_try="$ac_compile"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compile") 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } && {
2499 test -z "$ac_c_werror_flag" ||
2500 test ! -s conftest.err
2501 } && test -s conftest.$ac_objext; then
2502 ac_cv_prog_cc_g=yes
2503else
2504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 CFLAGS=""
2508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
2514
2515int
2516main ()
2517{
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523rm -f conftest.$ac_objext
2524if { (ac_try="$ac_compile"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } && {
2537 test -z "$ac_c_werror_flag" ||
2538 test ! -s conftest.err
2539 } && test -s conftest.$ac_objext; then
2540 :
2541else
2542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_c_werror_flag=$ac_save_c_werror_flag
2546 CFLAGS="-g"
2547 cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext
2563if { (ac_try="$ac_compile"
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2579 ac_cv_prog_cc_g=yes
2580else
2581 echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584
2585fi
2586
2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2595fi
2596{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2598if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS=$ac_save_CFLAGS
2600elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2602 CFLAGS="-g -O2"
2603 else
2604 CFLAGS="-g"
2605 fi
2606else
2607 if test "$GCC" = yes; then
2608 CFLAGS="-O2"
2609 else
2610 CFLAGS=
2611 fi
2612fi
2613{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2614echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2615if test "${ac_cv_prog_cc_c89+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 ac_cv_prog_cc_c89=no
2619ac_save_CC=$CC
2620cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626#include <stdarg.h>
2627#include <stdio.h>
2628#include <sys/types.h>
2629#include <sys/stat.h>
2630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631struct buf { int x; };
2632FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633static char *e (p, i)
2634 char **p;
2635 int i;
2636{
2637 return p[i];
2638}
2639static char *f (char * (*g) (char **, int), char **p, ...)
2640{
2641 char *s;
2642 va_list v;
2643 va_start (v,p);
2644 s = g (p, va_arg (v,int));
2645 va_end (v);
2646 return s;
2647}
2648
2649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std. */
2656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2657
2658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2659 inside strings and character constants. */
2660#define FOO(x) 'x'
2661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2662
2663int test (int i, double x);
2664struct s1 {int (*f) (int a);};
2665struct s2 {int (*f) (double a);};
2666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2667int argc;
2668char **argv;
2669int
2670main ()
2671{
2672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2679do
2680 CC="$ac_save_CC $ac_arg"
2681 rm -f conftest.$ac_objext
2682if { (ac_try="$ac_compile"
2683case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compile") 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } && {
2695 test -z "$ac_c_werror_flag" ||
2696 test ! -s conftest.err
2697 } && test -s conftest.$ac_objext; then
2698 ac_cv_prog_cc_c89=$ac_arg
2699else
2700 echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703
2704fi
2705
2706rm -f core conftest.err conftest.$ac_objext
2707 test "x$ac_cv_prog_cc_c89" != "xno" && break
2708done
2709rm -f conftest.$ac_ext
2710CC=$ac_save_CC
2711
2712fi
2713# AC_CACHE_VAL
2714case "x$ac_cv_prog_cc_c89" in
2715 x)
2716 { echo "$as_me:$LINENO: result: none needed" >&5
2717echo "${ECHO_T}none needed" >&6; } ;;
2718 xno)
2719 { echo "$as_me:$LINENO: result: unsupported" >&5
2720echo "${ECHO_T}unsupported" >&6; } ;;
2721 *)
2722 CC="$CC $ac_cv_prog_cc_c89"
2723 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2724echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2725esac
2726
2727
2728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734ac_aux_dir=
2735for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2739 break
2740 elif test -f "$ac_dir/install.sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2743 break
2744 elif test -f "$ac_dir/shtool"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 break
2748 fi
2749done
2750if test -z "$ac_aux_dir"; then
2751 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2752echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2753 { (exit 1); exit 1; }; }
2754fi
2755
2756# These three variables are undocumented and unsupported,
2757# and are intended to be withdrawn in a future Autoconf release.
2758# They can cause serious problems if a builder's source tree is in a directory
2759# whose full name contains unusual characters.
2760ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763
2764
2765# Make sure we can run config.sub.
2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2768echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2769 { (exit 1); exit 1; }; }
2770
2771{ echo "$as_me:$LINENO: checking build system type" >&5
2772echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2773if test "${ac_cv_build+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776 ac_build_alias=$build_alias
2777test "x$ac_build_alias" = x &&
2778 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2779test "x$ac_build_alias" = x &&
2780 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2781echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2782 { (exit 1); exit 1; }; }
2783ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2785echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2786 { (exit 1); exit 1; }; }
2787
2788fi
2789{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2790echo "${ECHO_T}$ac_cv_build" >&6; }
2791case $ac_cv_build in
2792*-*-*) ;;
2793*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2794echo "$as_me: error: invalid value of canonical build" >&2;}
2795 { (exit 1); exit 1; }; };;
2796esac
2797build=$ac_cv_build
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
2811{ echo "$as_me:$LINENO: checking host system type" >&5
2812echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2813if test "${ac_cv_host+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2821echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2822 { (exit 1); exit 1; }; }
2823fi
2824
2825fi
2826{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2827echo "${ECHO_T}$ac_cv_host" >&6; }
2828case $ac_cv_host in
2829*-*-*) ;;
2830*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2831echo "$as_me: error: invalid value of canonical host" >&2;}
2832 { (exit 1); exit 1; }; };;
2833esac
2834host=$ac_cv_host
2835ac_save_IFS=$IFS; IFS='-'
2836set x $ac_cv_host
2837shift
2838host_cpu=$1
2839host_vendor=$2
2840shift; shift
2841# Remember, the first character of IFS is used to create $*,
2842# except with old shells:
2843host_os=$*
2844IFS=$ac_save_IFS
2845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2846
2847
2848
2849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2855echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2856# On Suns, sometimes $CPP names a directory.
2857if test -n "$CPP" && test -d "$CPP"; then
2858 CPP=
2859fi
2860if test -z "$CPP"; then
2861 if test "${ac_cv_prog_CPP+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864 # Double quotes because CPP needs to be expanded
2865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866 do
2867 ac_preproc_ok=false
2868for ac_c_preproc_warn_flag in '' yes
2869do
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h. */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h. */
2882#ifdef __STDC__
2883# include <limits.h>
2884#else
2885# include <assert.h>
2886#endif
2887 Syntax error
2888_ACEOF
2889if { (ac_try="$ac_cpp conftest.$ac_ext"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } >/dev/null && {
2902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2903 test ! -s conftest.err
2904 }; then
2905 :
2906else
2907 echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 # Broken: fails on valid input.
2911continue
2912fi
2913
2914rm -f conftest.err conftest.$ac_ext
2915
2916 # OK, works on sane cases. Now check whether nonexistent headers
2917 # can be detected and how.
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924#include <ac_nonexistent.h>
2925_ACEOF
2926if { (ac_try="$ac_cpp conftest.$ac_ext"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null && {
2939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 }; then
2942 # Broken: success on invalid input.
2943continue
2944else
2945 echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 # Passes both tests.
2949ac_preproc_ok=:
2950break
2951fi
2952
2953rm -f conftest.err conftest.$ac_ext
2954
2955done
2956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2957rm -f conftest.err conftest.$ac_ext
2958if $ac_preproc_ok; then
2959 break
2960fi
2961
2962 done
2963 ac_cv_prog_CPP=$CPP
2964
2965fi
2966 CPP=$ac_cv_prog_CPP
2967else
2968 ac_cv_prog_CPP=$CPP
2969fi
2970{ echo "$as_me:$LINENO: result: $CPP" >&5
2971echo "${ECHO_T}$CPP" >&6; }
2972ac_preproc_ok=false
2973for ac_c_preproc_warn_flag in '' yes
2974do
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
2987#ifdef __STDC__
2988# include <limits.h>
2989#else
2990# include <assert.h>
2991#endif
2992 Syntax error
2993_ACEOF
2994if { (ac_try="$ac_cpp conftest.$ac_ext"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null && {
3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 }; then
3010 :
3011else
3012 echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 # Broken: fails on valid input.
3016continue
3017fi
3018
3019rm -f conftest.err conftest.$ac_ext
3020
3021 # OK, works on sane cases. Now check whether nonexistent headers
3022 # can be detected and how.
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029#include <ac_nonexistent.h>
3030_ACEOF
3031if { (ac_try="$ac_cpp conftest.$ac_ext"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null && {
3044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 }; then
3047 # Broken: success on invalid input.
3048continue
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054ac_preproc_ok=:
3055break
3056fi
3057
3058rm -f conftest.err conftest.$ac_ext
3059
3060done
3061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062rm -f conftest.err conftest.$ac_ext
3063if $ac_preproc_ok; then
3064 :
3065else
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067See \`config.log' for more details." >&5
3068echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3071fi
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3081echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3082if test "${ac_cv_path_GREP+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 # Extract the first word of "grep ggrep" to use in msg output
3086if test -z "$GREP"; then
3087set dummy grep ggrep; ac_prog_name=$2
3088if test "${ac_cv_path_GREP+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 ac_path_GREP_found=false
3092# Loop through the user's path and test for each of PROGNAME-LIST
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_prog in grep ggrep; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3101 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3102 # Check for GNU ac_path_GREP and select it if it is found.
3103 # Check for GNU $ac_path_GREP
3104case `"$ac_path_GREP" --version 2>&1` in
3105*GNU*)
3106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3107*)
3108 ac_count=0
3109 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3110 while :
3111 do
3112 cat "conftest.in" "conftest.in" >"conftest.tmp"
3113 mv "conftest.tmp" "conftest.in"
3114 cp "conftest.in" "conftest.nl"
3115 echo 'GREP' >> "conftest.nl"
3116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3118 ac_count=`expr $ac_count + 1`
3119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3120 # Best one so far, save it but keep looking for a better one
3121 ac_cv_path_GREP="$ac_path_GREP"
3122 ac_path_GREP_max=$ac_count
3123 fi
3124 # 10*(2^10) chars as input seems more than enough
3125 test $ac_count -gt 10 && break
3126 done
3127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3128esac
3129
3130
3131 $ac_path_GREP_found && break 3
3132 done
3133done
3134
3135done
3136IFS=$as_save_IFS
3137
3138
3139fi
3140
3141GREP="$ac_cv_path_GREP"
3142if test -z "$GREP"; then
3143 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3144echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3145 { (exit 1); exit 1; }; }
3146fi
3147
3148else
3149 ac_cv_path_GREP=$GREP
3150fi
3151
3152
3153fi
3154{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3155echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3156 GREP="$ac_cv_path_GREP"
3157
3158
3159{ echo "$as_me:$LINENO: checking for egrep" >&5
3160echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3161if test "${ac_cv_path_EGREP+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3165 then ac_cv_path_EGREP="$GREP -E"
3166 else
3167 # Extract the first word of "egrep" to use in msg output
3168if test -z "$EGREP"; then
3169set dummy egrep; ac_prog_name=$2
3170if test "${ac_cv_path_EGREP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 ac_path_EGREP_found=false
3174# Loop through the user's path and test for each of PROGNAME-LIST
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_prog in egrep; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3184 # Check for GNU ac_path_EGREP and select it if it is found.
3185 # Check for GNU $ac_path_EGREP
3186case `"$ac_path_EGREP" --version 2>&1` in
3187*GNU*)
3188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3189*)
3190 ac_count=0
3191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3192 while :
3193 do
3194 cat "conftest.in" "conftest.in" >"conftest.tmp"
3195 mv "conftest.tmp" "conftest.in"
3196 cp "conftest.in" "conftest.nl"
3197 echo 'EGREP' >> "conftest.nl"
3198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3200 ac_count=`expr $ac_count + 1`
3201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3202 # Best one so far, save it but keep looking for a better one
3203 ac_cv_path_EGREP="$ac_path_EGREP"
3204 ac_path_EGREP_max=$ac_count
3205 fi
3206 # 10*(2^10) chars as input seems more than enough
3207 test $ac_count -gt 10 && break
3208 done
3209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3210esac
3211
3212
3213 $ac_path_EGREP_found && break 3
3214 done
3215done
3216
3217done
3218IFS=$as_save_IFS
3219
3220
3221fi
3222
3223EGREP="$ac_cv_path_EGREP"
3224if test -z "$EGREP"; then
3225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3226echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3227 { (exit 1); exit 1; }; }
3228fi
3229
3230else
3231 ac_cv_path_EGREP=$EGREP
3232fi
3233
3234
3235 fi
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3238echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3239 EGREP="$ac_cv_path_EGREP"
3240
3241
3242{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3243echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3244if test "${ac_cv_header_stdc+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253#include <stdlib.h>
3254#include <stdarg.h>
3255#include <string.h>
3256#include <float.h>
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (ac_try="$ac_compile"
3268case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271esac
3272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_header_stdc=yes
3284else
3285 echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 ac_cv_header_stdc=no
3289fi
3290
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292
3293if test $ac_cv_header_stdc = yes; then
3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <string.h>
3302
3303_ACEOF
3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "memchr" >/dev/null 2>&1; then
3306 :
3307else
3308 ac_cv_header_stdc=no
3309fi
3310rm -f conftest*
3311
3312fi
3313
3314if test $ac_cv_header_stdc = yes; then
3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#include <stdlib.h>
3323
3324_ACEOF
3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev/null 2>&1; then
3327 :
3328else
3329 ac_cv_header_stdc=no
3330fi
3331rm -f conftest*
3332
3333fi
3334
3335if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
3338 :
3339else
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <ctype.h>
3347#include <stdlib.h>
3348#if ((' ' & 0x0FF) == 0x020)
3349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3351#else
3352# define ISLOWER(c) \
3353 (('a' <= (c) && (c) <= 'i') \
3354 || ('j' <= (c) && (c) <= 'r') \
3355 || ('s' <= (c) && (c) <= 'z'))
3356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3357#endif
3358
3359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3360int
3361main ()
3362{
3363 int i;
3364 for (i = 0; i < 256; i++)
3365 if (XOR (islower (i), ISLOWER (i))
3366 || toupper (i) != TOUPPER (i))
3367 return 2;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest$ac_exeext
3372if { (ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 :
3392else
3393 echo "$as_me: program exited with status $ac_status" >&5
3394echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397( exit $ac_status )
3398ac_cv_header_stdc=no
3399fi
3400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3401fi
3402
3403
3404fi
3405fi
3406{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3407echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3408if test $ac_cv_header_stdc = yes; then
3409
3410cat >>confdefs.h <<\_ACEOF
3411#define STDC_HEADERS 1
3412_ACEOF
3413
3414fi
3415
3416# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3427 inttypes.h stdint.h unistd.h
3428do
3429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441$ac_includes_default
3442
3443#include <$ac_header>
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (ac_try="$ac_compile"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 eval "$as_ac_Header=yes"
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 eval "$as_ac_Header=no"
3468fi
3469
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471fi
3472ac_res=`eval echo '${'$as_ac_Header'}'`
3473 { echo "$as_me:$LINENO: result: $ac_res" >&5
3474echo "${ECHO_T}$ac_res" >&6; }
3475if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478_ACEOF
3479
3480fi
3481
3482done
3483
3484
3485{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3486echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3487if test "${ac_cv_c_bigendian+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 # See if sys/param.h defines the BYTE_ORDER macro.
3491cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h. */
3497#include <sys/types.h>
3498#include <sys/param.h>
3499
3500int
3501main ()
3502{
3503#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3504 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3505 bogus endian macros
3506#endif
3507
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext
3513if { (ac_try="$ac_compile"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 # It does; now see whether it defined to BIG_ENDIAN or not.
3530cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h. */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h. */
3536#include <sys/types.h>
3537#include <sys/param.h>
3538
3539int
3540main ()
3541{
3542#if BYTE_ORDER != BIG_ENDIAN
3543 not big endian
3544#endif
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550rm -f conftest.$ac_objext
3551if { (ac_try="$ac_compile"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_c_bigendian=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 ac_cv_c_bigendian=no
3573fi
3574
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 # It does not; compile a test program.
3581if test "$cross_compiling" = yes; then
3582 # try to guess the endianness by grepping values into an object file
3583 ac_cv_c_bigendian=unknown
3584 cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3591short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3592void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3593short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3594short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3595void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3596int
3597main ()
3598{
3599 _ascii (); _ebcdic ();
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (ac_try="$ac_compile"
3606case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609esac
3610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3622 ac_cv_c_bigendian=yes
3623fi
3624if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3625 if test "$ac_cv_c_bigendian" = unknown; then
3626 ac_cv_c_bigendian=no
3627 else
3628 # finding both strings is unlikely to happen, but who knows?
3629 ac_cv_c_bigendian=unknown
3630 fi
3631fi
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637fi
3638
3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640else
3641 cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h. */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647$ac_includes_default
3648int
3649main ()
3650{
3651
3652 /* Are we little or big endian? From Harbison&Steele. */
3653 union
3654 {
3655 long int l;
3656 char c[sizeof (long int)];
3657 } u;
3658 u.l = 1;
3659 return u.c[sizeof (long int) - 1] == 1;
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665rm -f conftest$ac_exeext
3666if { (ac_try="$ac_link"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_c_bigendian=no
3686else
3687 echo "$as_me: program exited with status $ac_status" >&5
3688echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691( exit $ac_status )
3692ac_cv_c_bigendian=yes
3693fi
3694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3695fi
3696
3697
3698fi
3699
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701fi
3702{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3703echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3704case $ac_cv_c_bigendian in
3705 yes)
3706
3707cat >>confdefs.h <<\_ACEOF
3708#define WORDS_BIGENDIAN 1
3709_ACEOF
3710 ;;
3711 no)
3712 ;;
3713 *)
3714 { { echo "$as_me:$LINENO: error: unknown endianness
3715presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3716echo "$as_me: error: unknown endianness
3717presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3718 { (exit 1); exit 1; }; } ;;
3719esac
3720
3721
3722# Checks for programs.
3723for ac_prog in gawk mawk nawk awk
3724do
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726set dummy $ac_prog; ac_word=$2
3727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3729if test "${ac_cv_prog_AWK+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 if test -n "$AWK"; then
3733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_AWK="$ac_prog"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747done
3748IFS=$as_save_IFS
3749
3750fi
3751fi
3752AWK=$ac_cv_prog_AWK
3753if test -n "$AWK"; then
3754 { echo "$as_me:$LINENO: result: $AWK" >&5
3755echo "${ECHO_T}$AWK" >&6; }
3756else
3757 { echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6; }
3759fi
3760
3761
3762 test -n "$AWK" && break
3763done
3764
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3771echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3772# On Suns, sometimes $CPP names a directory.
3773if test -n "$CPP" && test -d "$CPP"; then
3774 CPP=
3775fi
3776if test -z "$CPP"; then
3777 if test "${ac_cv_prog_CPP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 # Double quotes because CPP needs to be expanded
3781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 do
3783 ac_preproc_ok=false
3784for ac_c_preproc_warn_flag in '' yes
3785do
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798#ifdef __STDC__
3799# include <limits.h>
3800#else
3801# include <assert.h>
3802#endif
3803 Syntax error
3804_ACEOF
3805if { (ac_try="$ac_cpp conftest.$ac_ext"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3821 :
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 # Broken: fails on valid input.
3827continue
3828fi
3829
3830rm -f conftest.err conftest.$ac_ext
3831
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840#include <ac_nonexistent.h>
3841_ACEOF
3842if { (ac_try="$ac_cpp conftest.$ac_ext"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 }; then
3858 # Broken: success on invalid input.
3859continue
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 # Passes both tests.
3865ac_preproc_ok=:
3866break
3867fi
3868
3869rm -f conftest.err conftest.$ac_ext
3870
3871done
3872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873rm -f conftest.err conftest.$ac_ext
3874if $ac_preproc_ok; then
3875 break
3876fi
3877
3878 done
3879 ac_cv_prog_CPP=$CPP
3880
3881fi
3882 CPP=$ac_cv_prog_CPP
3883else
3884 ac_cv_prog_CPP=$CPP
3885fi
3886{ echo "$as_me:$LINENO: result: $CPP" >&5
3887echo "${ECHO_T}$CPP" >&6; }
3888ac_preproc_ok=false
3889for ac_c_preproc_warn_flag in '' yes
3890do
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
3903#ifdef __STDC__
3904# include <limits.h>
3905#else
3906# include <assert.h>
3907#endif
3908 Syntax error
3909_ACEOF
3910if { (ac_try="$ac_cpp conftest.$ac_ext"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 # Broken: fails on valid input.
3932continue
3933fi
3934
3935rm -f conftest.err conftest.$ac_ext
3936
3937 # OK, works on sane cases. Now check whether nonexistent headers
3938 # can be detected and how.
3939 cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945#include <ac_nonexistent.h>
3946_ACEOF
3947if { (ac_try="$ac_cpp conftest.$ac_ext"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } >/dev/null && {
3960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 }; then
3963 # Broken: success on invalid input.
3964continue
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
3973
3974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then
3980 :
3981else
3982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3983See \`config.log' for more details." >&5
3984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3985See \`config.log' for more details." >&2;}
3986 { (exit 1); exit 1; }; }
3987fi
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3997set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4000if test "${ac_cv_prog_RANLIB+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 if test -n "$RANLIB"; then
4004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017done
4018done
4019IFS=$as_save_IFS
4020
4021fi
4022fi
4023RANLIB=$ac_cv_prog_RANLIB
4024if test -n "$RANLIB"; then
4025 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4026echo "${ECHO_T}$RANLIB" >&6; }
4027else
4028 { echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6; }
4030fi
4031
4032
4033fi
4034if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037set dummy ranlib; ac_word=$2
4038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4040if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_ac_ct_RANLIB="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057done
4058done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064if test -n "$ac_ct_RANLIB"; then
4065 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4067else
4068 { echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6; }
4070fi
4071
4072 if test "x$ac_ct_RANLIB" = x; then
4073 RANLIB=":"
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4078whose name does not start with the host triplet. If you think this
4079configuration is useful to you, please write to autoconf@gnu.org." >&5
4080echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet. If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4083ac_tool_warned=yes ;;
4084esac
4085 RANLIB=$ac_ct_RANLIB
4086 fi
4087else
4088 RANLIB="$ac_cv_prog_RANLIB"
4089fi
4090
4091# Find a good install program. We prefer a C program (faster),
4092# so one script is as good as another. But avoid the broken or
4093# incompatible versions:
4094# SysV /etc/install, /usr/sbin/install
4095# SunOS /usr/etc/install
4096# IRIX /sbin/install
4097# AIX /bin/install
4098# AmigaOS /C/install, which installs bootblocks on floppy discs
4099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4100# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4102# OS/2's system install, which has a completely different semantic
4103# ./install, which can be erroneously created by make from ./install.sh.
4104{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4106if test -z "$INSTALL"; then
4107if test "${ac_cv_path_install+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 # Account for people who put trailing slashes in PATH elements.
4116case $as_dir/ in
4117 ./ | .// | /cC/* | \
4118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4120 /usr/ucb/* ) ;;
4121 *)
4122 # OSF1 and SCO ODT 3.0 have their own names for install.
4123 # Don't use installbsd from OSF since it installs stuff as root
4124 # by default.
4125 for ac_prog in ginstall scoinst install; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4128 if test $ac_prog = install &&
4129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4130 # AIX install. It has an incompatible calling convention.
4131 :
4132 elif test $ac_prog = install &&
4133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4134 # program-specific install script used by HP pwplus--don't use.
4135 :
4136 else
4137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138 break 3
4139 fi
4140 fi
4141 done
4142 done
4143 ;;
4144esac
4145done
4146IFS=$as_save_IFS
4147
4148
4149fi
4150 if test "${ac_cv_path_install+set}" = set; then
4151 INSTALL=$ac_cv_path_install
4152 else
4153 # As a last resort, use the slow shell script. Don't cache a
4154 # value for INSTALL within a source directory, because that will
4155 # break other packages using the cache if that directory is
4156 # removed, or if the value is a relative name.
4157 INSTALL=$ac_install_sh
4158 fi
4159fi
4160{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4161echo "${ECHO_T}$INSTALL" >&6; }
4162
4163# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4164# It thinks the first close brace ends the variable substitution.
4165test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4166
4167test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4168
4169test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4170
4171{ echo "$as_me:$LINENO: checking for egrep" >&5
4172echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4173if test "${ac_cv_path_EGREP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4177 then ac_cv_path_EGREP="$GREP -E"
4178 else
4179 # Extract the first word of "egrep" to use in msg output
4180if test -z "$EGREP"; then
4181set dummy egrep; ac_prog_name=$2
4182if test "${ac_cv_path_EGREP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 ac_path_EGREP_found=false
4186# Loop through the user's path and test for each of PROGNAME-LIST
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in egrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4195 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4196 # Check for GNU ac_path_EGREP and select it if it is found.
4197 # Check for GNU $ac_path_EGREP
4198case `"$ac_path_EGREP" --version 2>&1` in
4199*GNU*)
4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201*)
4202 ac_count=0
4203 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 echo 'EGREP' >> "conftest.nl"
4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 ac_count=`expr $ac_count + 1`
4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_EGREP="$ac_path_EGREP"
4216 ac_path_EGREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222esac
4223
4224
4225 $ac_path_EGREP_found && break 3
4226 done
4227done
4228
4229done
4230IFS=$as_save_IFS
4231
4232
4233fi
4234
4235EGREP="$ac_cv_path_EGREP"
4236if test -z "$EGREP"; then
4237 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4240fi
4241
4242else
4243 ac_cv_path_EGREP=$EGREP
4244fi
4245
4246
4247 fi
4248fi
4249{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4250echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4251 EGREP="$ac_cv_path_EGREP"
4252
4253
4254# Extract the first word of "ar", so it can be a program name with args.
4255set dummy ar; ac_word=$2
4256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4258if test "${ac_cv_path_AR+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 case $AR in
4262 [\\/]* | ?:[\\/]*)
4263 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4264 ;;
4265 *)
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279IFS=$as_save_IFS
4280
4281 ;;
4282esac
4283fi
4284AR=$ac_cv_path_AR
4285if test -n "$AR"; then
4286 { echo "$as_me:$LINENO: result: $AR" >&5
4287echo "${ECHO_T}$AR" >&6; }
4288else
4289 { echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6; }
4291fi
4292
4293
4294# Extract the first word of "cat", so it can be a program name with args.
4295set dummy cat; ac_word=$2
4296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298if test "${ac_cv_path_CAT+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 case $CAT in
4302 [\\/]* | ?:[\\/]*)
4303 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4304 ;;
4305 *)
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317done
4318done
4319IFS=$as_save_IFS
4320
4321 ;;
4322esac
4323fi
4324CAT=$ac_cv_path_CAT
4325if test -n "$CAT"; then
4326 { echo "$as_me:$LINENO: result: $CAT" >&5
4327echo "${ECHO_T}$CAT" >&6; }
4328else
4329 { echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6; }
4331fi
4332
4333
4334# Extract the first word of "kill", so it can be a program name with args.
4335set dummy kill; ac_word=$2
4336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338if test "${ac_cv_path_KILL+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 case $KILL in
4342 [\\/]* | ?:[\\/]*)
4343 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4344 ;;
4345 *)
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359IFS=$as_save_IFS
4360
4361 ;;
4362esac
4363fi
4364KILL=$ac_cv_path_KILL
4365if test -n "$KILL"; then
4366 { echo "$as_me:$LINENO: result: $KILL" >&5
4367echo "${ECHO_T}$KILL" >&6; }
4368else
4369 { echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6; }
4371fi
4372
4373
4374for ac_prog in perl5 perl
4375do
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377set dummy $ac_prog; ac_word=$2
4378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380if test "${ac_cv_path_PERL+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 case $PERL in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399done
4400done
4401IFS=$as_save_IFS
4402
4403 ;;
4404esac
4405fi
4406PERL=$ac_cv_path_PERL
4407if test -n "$PERL"; then
4408 { echo "$as_me:$LINENO: result: $PERL" >&5
4409echo "${ECHO_T}$PERL" >&6; }
4410else
4411 { echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6; }
4413fi
4414
4415
4416 test -n "$PERL" && break
4417done
4418
4419# Extract the first word of "sed", so it can be a program name with args.
4420set dummy sed; ac_word=$2
4421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423if test "${ac_cv_path_SED+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 case $SED in
4427 [\\/]* | ?:[\\/]*)
4428 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4429 ;;
4430 *)
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443done
4444IFS=$as_save_IFS
4445
4446 ;;
4447esac
4448fi
4449SED=$ac_cv_path_SED
4450if test -n "$SED"; then
4451 { echo "$as_me:$LINENO: result: $SED" >&5
4452echo "${ECHO_T}$SED" >&6; }
4453else
4454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
4456fi
4457
4458
4459
4460# Extract the first word of "ent", so it can be a program name with args.
4461set dummy ent; ac_word=$2
4462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_path_ENT+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 case $ENT in
4468 [\\/]* | ?:[\\/]*)
4469 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4470 ;;
4471 *)
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
4484done
4485IFS=$as_save_IFS
4486
4487 ;;
4488esac
4489fi
4490ENT=$ac_cv_path_ENT
4491if test -n "$ENT"; then
4492 { echo "$as_me:$LINENO: result: $ENT" >&5
4493echo "${ECHO_T}$ENT" >&6; }
4494else
4495 { echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6; }
4497fi
4498
4499
4500
4501# Extract the first word of "bash", so it can be a program name with args.
4502set dummy bash; ac_word=$2
4503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 case $TEST_MINUS_S_SH in
4509 [\\/]* | ?:[\\/]*)
4510 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4511 ;;
4512 *)
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525done
4526IFS=$as_save_IFS
4527
4528 ;;
4529esac
4530fi
4531TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4532if test -n "$TEST_MINUS_S_SH"; then
4533 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4534echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4535else
4536 { echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6; }
4538fi
4539
4540
4541# Extract the first word of "ksh", so it can be a program name with args.
4542set dummy ksh; ac_word=$2
4543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 case $TEST_MINUS_S_SH in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565done
4566IFS=$as_save_IFS
4567
4568 ;;
4569esac
4570fi
4571TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4572if test -n "$TEST_MINUS_S_SH"; then
4573 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4574echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4575else
4576 { echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6; }
4578fi
4579
4580
4581# Extract the first word of "sh", so it can be a program name with args.
4582set dummy sh; ac_word=$2
4583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 case $TEST_MINUS_S_SH in
4589 [\\/]* | ?:[\\/]*)
4590 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4591 ;;
4592 *)
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606IFS=$as_save_IFS
4607
4608 ;;
4609esac
4610fi
4611TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4612if test -n "$TEST_MINUS_S_SH"; then
4613 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4614echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4615else
4616 { echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6; }
4618fi
4619
4620
4621# Extract the first word of "sh", so it can be a program name with args.
4622set dummy sh; ac_word=$2
4623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625if test "${ac_cv_path_SH+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 case $SH in
4629 [\\/]* | ?:[\\/]*)
4630 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4631 ;;
4632 *)
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644done
4645done
4646IFS=$as_save_IFS
4647
4648 ;;
4649esac
4650fi
4651SH=$ac_cv_path_SH
4652if test -n "$SH"; then
4653 { echo "$as_me:$LINENO: result: $SH" >&5
4654echo "${ECHO_T}$SH" >&6; }
4655else
4656 { echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6; }
4658fi
4659
4660
4661TEST_SHELL=sh
4662
4663
4664# Extract the first word of "groupadd", so it can be a program name with args.
4665set dummy groupadd; ac_word=$2
4666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 case $PATH_GROUPADD_PROG in
4672 [\\/]* | ?:[\\/]*)
4673 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4674 ;;
4675 *)
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687done
4688done
4689IFS=$as_save_IFS
4690
4691 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4692 ;;
4693esac
4694fi
4695PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4696if test -n "$PATH_GROUPADD_PROG"; then
4697 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4698echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4699else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6; }
4702fi
4703
4704
4705# Extract the first word of "useradd", so it can be a program name with args.
4706set dummy useradd; ac_word=$2
4707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 case $PATH_USERADD_PROG in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729done
4730IFS=$as_save_IFS
4731
4732 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4733 ;;
4734esac
4735fi
4736PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4737if test -n "$PATH_USERADD_PROG"; then
4738 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4739echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4740else
4741 { echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6; }
4743fi
4744
4745
4746# Extract the first word of "pkgmk", so it can be a program name with args.
4747set dummy pkgmk; ac_word=$2
4748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4754 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767done
4768done
4769IFS=$as_save_IFS
4770
4771 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4772fi
4773fi
4774MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4775if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4776 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4777echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4778else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6; }
4781fi
4782
4783
4784if test -x /sbin/sh; then
4785 STARTUP_SCRIPT_SHELL=/sbin/sh
4786
4787else
4788 STARTUP_SCRIPT_SHELL=/bin/sh
4789
4790fi
4791
4792# System features
4793# Check whether --enable-largefile was given.
4794if test "${enable_largefile+set}" = set; then
4795 enableval=$enable_largefile;
4796fi
4797
4798if test "$enable_largefile" != no; then
4799
4800 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4801echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4802if test "${ac_cv_sys_largefile_CC+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805 ac_cv_sys_largefile_CC=no
4806 if test "$GCC" != yes; then
4807 ac_save_CC=$CC
4808 while :; do
4809 # IRIX 6.2 and later do not support large files by default,
4810 # so use the C compiler's -n32 option if that helps.
4811 cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817#include <sys/types.h>
4818 /* Check that off_t can represent 2**63 - 1 correctly.
4819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4820 since some C++ compilers masquerading as C compilers
4821 incorrectly reject 9223372036854775807. */
4822#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4824 && LARGE_OFF_T % 2147483647 == 1)
4825 ? 1 : -1];
4826int
4827main ()
4828{
4829
4830 ;
4831 return 0;
4832}
4833_ACEOF
4834 rm -f conftest.$ac_objext
4835if { (ac_try="$ac_compile"
4836case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839esac
4840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_compile") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest.$ac_objext; then
4851 break
4852else
4853 echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856
4857fi
4858
4859rm -f core conftest.err conftest.$ac_objext
4860 CC="$CC -n32"
4861 rm -f conftest.$ac_objext
4862if { (ac_try="$ac_compile"
4863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_sys_largefile_CC=' -n32'; break
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883
4884fi
4885
4886rm -f core conftest.err conftest.$ac_objext
4887 break
4888 done
4889 CC=$ac_save_CC
4890 rm -f conftest.$ac_ext
4891 fi
4892fi
4893{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4894echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4895 if test "$ac_cv_sys_largefile_CC" != no; then
4896 CC=$CC$ac_cv_sys_largefile_CC
4897 fi
4898
4899 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4900echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4901if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 while :; do
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <sys/types.h>
4912 /* Check that off_t can represent 2**63 - 1 correctly.
4913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4914 since some C++ compilers masquerading as C compilers
4915 incorrectly reject 9223372036854775807. */
4916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4918 && LARGE_OFF_T % 2147483647 == 1)
4919 ? 1 : -1];
4920int
4921main ()
4922{
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 ac_cv_sys_file_offset_bits=no; break
4946else
4947 echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950
4951fi
4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#define _FILE_OFFSET_BITS 64
4961#include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978rm -f conftest.$ac_objext
4979if { (ac_try="$ac_compile"
4980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4995 ac_cv_sys_file_offset_bits=64; break
4996else
4997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000
5001fi
5002
5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_sys_file_offset_bits=unknown
5005 break
5006done
5007fi
5008{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5009echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5010case $ac_cv_sys_file_offset_bits in #(
5011 no | unknown) ;;
5012 *)
5013cat >>confdefs.h <<_ACEOF
5014#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5015_ACEOF
5016;;
5017esac
5018rm -f conftest*
5019 if test $ac_cv_sys_file_offset_bits = unknown; then
5020 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5021echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5022if test "${ac_cv_sys_large_files+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 while :; do
5026 cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#include <sys/types.h>
5033 /* Check that off_t can represent 2**63 - 1 correctly.
5034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5035 since some C++ compilers masquerading as C compilers
5036 incorrectly reject 9223372036854775807. */
5037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5039 && LARGE_OFF_T % 2147483647 == 1)
5040 ? 1 : -1];
5041int
5042main ()
5043{
5044
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049rm -f conftest.$ac_objext
5050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_sys_large_files=no; break
5067else
5068 echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071
5072fi
5073
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#define _LARGE_FILES 1
5082#include <sys/types.h>
5083 /* Check that off_t can represent 2**63 - 1 correctly.
5084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5085 since some C++ compilers masquerading as C compilers
5086 incorrectly reject 9223372036854775807. */
5087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5089 && LARGE_OFF_T % 2147483647 == 1)
5090 ? 1 : -1];
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (ac_try="$ac_compile"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 ac_cv_sys_large_files=1; break
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_sys_large_files=unknown
5126 break
5127done
5128fi
5129{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5130echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5131case $ac_cv_sys_large_files in #(
5132 no | unknown) ;;
5133 *)
5134cat >>confdefs.h <<_ACEOF
5135#define _LARGE_FILES $ac_cv_sys_large_files
5136_ACEOF
5137;;
5138esac
5139rm -f conftest*
5140 fi
5141fi
5142
5143
5144if test -z "$AR" ; then
5145 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5146echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5147 { (exit 1); exit 1; }; }
5148fi
5149
5150# Use LOGIN_PROGRAM from environment if possible
5151if test ! -z "$LOGIN_PROGRAM" ; then
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5155_ACEOF
5156
5157else
5158 # Search for login
5159 # Extract the first word of "login", so it can be a program name with args.
5160set dummy login; ac_word=$2
5161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 case $LOGIN_PROGRAM_FALLBACK in
5167 [\\/]* | ?:[\\/]*)
5168 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5169 ;;
5170 *)
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182done
5183done
5184IFS=$as_save_IFS
5185
5186 ;;
5187esac
5188fi
5189LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5190if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5191 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5192echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5193else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6; }
5196fi
5197
5198
5199 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5200 cat >>confdefs.h <<_ACEOF
5201#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5202_ACEOF
5203
5204 fi
5205fi
5206
5207# Extract the first word of "passwd", so it can be a program name with args.
5208set dummy passwd; ac_word=$2
5209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5211if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 case $PATH_PASSWD_PROG in
5215 [\\/]* | ?:[\\/]*)
5216 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5217 ;;
5218 *)
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231done
5232IFS=$as_save_IFS
5233
5234 ;;
5235esac
5236fi
5237PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5238if test -n "$PATH_PASSWD_PROG"; then
5239 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5240echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5241else
5242 { echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6; }
5244fi
5245
5246
5247if test ! -z "$PATH_PASSWD_PROG" ; then
5248
5249cat >>confdefs.h <<_ACEOF
5250#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5251_ACEOF
5252
5253fi
5254
5255if test -z "$LD" ; then
5256 LD=$CC
5257fi
5258
5259
5260{ echo "$as_me:$LINENO: checking for inline" >&5
5261echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5262if test "${ac_cv_c_inline+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 ac_cv_c_inline=no
5266for ac_kw in inline __inline__ __inline; do
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#ifndef __cplusplus
5274typedef int foo_t;
5275static $ac_kw foo_t static_foo () {return 0; }
5276$ac_kw foo_t foo () {return 0; }
5277#endif
5278
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (ac_try="$ac_compile"
5282case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285esac
5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_cv_c_inline=$ac_kw
5298else
5299 echo "$as_me: failed program was:" >&5
5300sed 's/^/| /' conftest.$ac_ext >&5
5301
5302
5303fi
5304
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 test "$ac_cv_c_inline" != no && break
5307done
5308
5309fi
5310{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5311echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5312
5313
5314case $ac_cv_c_inline in
5315 inline | yes) ;;
5316 *)
5317 case $ac_cv_c_inline in
5318 no) ac_val=;;
5319 *) ac_val=$ac_cv_c_inline;;
5320 esac
5321 cat >>confdefs.h <<_ACEOF
5322#ifndef __cplusplus
5323#define inline $ac_val
5324#endif
5325_ACEOF
5326 ;;
5327esac
5328
5329
5330{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5331echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5332if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h. */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h. */
5341#include <limits.h>
5342
5343int
5344main ()
5345{
5346#ifndef LLONG_MAX
5347 (void) LLONG_MAX;
5348#endif
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (ac_try="$ac_compile"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_cv_have_decl_LLONG_MAX=yes
5372else
5373 echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_cv_have_decl_LLONG_MAX=no
5377fi
5378
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380fi
5381{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5382echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5383if test $ac_cv_have_decl_LLONG_MAX = yes; then
5384 have_llong_max=1
5385fi
5386
5387
5388use_stack_protector=1
5389
5390# Check whether --with-stackprotect was given.
5391if test "${with_stackprotect+set}" = set; then
5392 withval=$with_stackprotect;
5393 if test "x$withval" = "xno"; then
5394 use_stack_protector=0
5395 fi
5396fi
5397
5398
5399if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5400 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5401 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5402 case $GCC_VER in
5403 1.*) no_attrib_nonnull=1 ;;
5404 2.8* | 2.9*)
5405 CFLAGS="$CFLAGS -Wsign-compare"
5406 no_attrib_nonnull=1
5407 ;;
5408 2.*) no_attrib_nonnull=1 ;;
5408 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5409 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5409 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5410 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5410 *) ;;
5411 esac
5412
5411 *) ;;
5412 esac
5413
5414 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5415echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5416 saved_CFLAGS="$CFLAGS"
5417 CFLAGS="$CFLAGS -fno-builtin-memset"
5418 cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424
5425#include <string.h>
5426int main(void){char b[10]; memset(b, 0, sizeof(b));}
5427
5428_ACEOF
5429rm -f conftest.$ac_objext conftest$ac_exeext
5430if { (ac_try="$ac_link"
5431case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434esac
5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_link") 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_c_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest$ac_exeext &&
5446 $as_test_x conftest$ac_exeext; then
5447 { echo "$as_me:$LINENO: result: yes" >&5
5448echo "${ECHO_T}yes" >&6; }
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 { echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6; }
5455 CFLAGS="$saved_CFLAGS"
5456
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5461
5413 # -fstack-protector-all doesn't always work for some GCC versions
5414 # and/or platforms, so we test if we can. If it's not supported
5415 # on a give platform gcc will emit a warning so we use -Werror.
5416 if test "x$use_stack_protector" = "x1"; then
5417 for t in -fstack-protector-all -fstack-protector; do
5418 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5419echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5420 saved_CFLAGS="$CFLAGS"
5421 saved_LDFLAGS="$LDFLAGS"
5422 CFLAGS="$CFLAGS $t -Werror"
5423 LDFLAGS="$LDFLAGS $t -Werror"
5424 cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h. */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h. */
5430
5431#include <stdlib.h>
5432int main(void){return 0;}
5433
5434_ACEOF
5435rm -f conftest.$ac_objext conftest$ac_exeext
5436if { (ac_try="$ac_link"
5437case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440esac
5441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_link") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest$ac_exeext &&
5452 $as_test_x conftest$ac_exeext; then
5453 { echo "$as_me:$LINENO: result: yes" >&5
5454echo "${ECHO_T}yes" >&6; }
5455 CFLAGS="$saved_CFLAGS $t"
5456 LDFLAGS="$saved_LDFLAGS $t"
5457 { echo "$as_me:$LINENO: checking if $t works" >&5
5458echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5459 if test "$cross_compiling" = yes; then
5460 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5461echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5462 break
5463
5464else
5465 cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h. */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h. */
5471
5472#include <stdlib.h>
5473int main(void){exit(0);}
5474
5475_ACEOF
5476rm -f conftest$ac_exeext
5477if { (ac_try="$ac_link"
5478case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481esac
5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_link") 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5487 { (case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490esac
5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_try") 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 { echo "$as_me:$LINENO: result: yes" >&5
5497echo "${ECHO_T}yes" >&6; }
5498 break
5499else
5500 echo "$as_me: program exited with status $ac_status" >&5
5501echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504( exit $ac_status )
5505 { echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6; }
5507fi
5508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5509fi
5510
5511
5512
5513else
5514 echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 { echo "$as_me:$LINENO: result: no" >&5
5518echo "${ECHO_T}no" >&6; }
5519
5520fi
5521
5522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5523 conftest$ac_exeext conftest.$ac_ext
5524 CFLAGS="$saved_CFLAGS"
5525 LDFLAGS="$saved_LDFLAGS"
5526 done
5527 fi
5528
5529 if test -z "$have_llong_max"; then
5530 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5531 unset ac_cv_have_decl_LLONG_MAX
5532 saved_CFLAGS="$CFLAGS"
5533 CFLAGS="$CFLAGS -std=gnu99"
5534 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5535echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5536if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539 cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
5545#include <limits.h>
5546
5547
5548int
5549main ()
5550{
5551#ifndef LLONG_MAX
5552 (void) LLONG_MAX;
5553#endif
5554
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (ac_try="$ac_compile"
5561case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5567 ac_status=$?
5568 grep -v '^ *+' conftest.er1 >conftest.err
5569 rm -f conftest.er1
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest.$ac_objext; then
5576 ac_cv_have_decl_LLONG_MAX=yes
5577else
5578 echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581 ac_cv_have_decl_LLONG_MAX=no
5582fi
5583
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5587echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5588if test $ac_cv_have_decl_LLONG_MAX = yes; then
5589 have_llong_max=1
5590else
5591 CFLAGS="$saved_CFLAGS"
5592fi
5593
5594 fi
5595fi
5596
5597if test "x$no_attrib_nonnull" != "x1" ; then
5598
5599cat >>confdefs.h <<\_ACEOF
5600#define HAVE_ATTRIBUTE__NONNULL__ 1
5601_ACEOF
5602
5603fi
5604
5605
5606# Check whether --with-rpath was given.
5607if test "${with_rpath+set}" = set; then
5608 withval=$with_rpath;
5609 if test "x$withval" = "xno" ; then
5610 need_dash_r=""
5611 fi
5612 if test "x$withval" = "xyes" ; then
5613 need_dash_r=1
5614 fi
5615
5616
5617fi
5618
5619
5620# Allow user to specify flags
5621
5622# Check whether --with-cflags was given.
5623if test "${with_cflags+set}" = set; then
5624 withval=$with_cflags;
5625 if test -n "$withval" && test "x$withval" != "xno" && \
5626 test "x${withval}" != "xyes"; then
5627 CFLAGS="$CFLAGS $withval"
5628 fi
5629
5630
5631fi
5632
5633
5634# Check whether --with-cppflags was given.
5635if test "${with_cppflags+set}" = set; then
5636 withval=$with_cppflags;
5637 if test -n "$withval" && test "x$withval" != "xno" && \
5638 test "x${withval}" != "xyes"; then
5639 CPPFLAGS="$CPPFLAGS $withval"
5640 fi
5641
5642
5643fi
5644
5645
5646# Check whether --with-ldflags was given.
5647if test "${with_ldflags+set}" = set; then
5648 withval=$with_ldflags;
5649 if test -n "$withval" && test "x$withval" != "xno" && \
5650 test "x${withval}" != "xyes"; then
5651 LDFLAGS="$LDFLAGS $withval"
5652 fi
5653
5654
5655fi
5656
5657
5658# Check whether --with-libs was given.
5659if test "${with_libs+set}" = set; then
5660 withval=$with_libs;
5661 if test -n "$withval" && test "x$withval" != "xno" && \
5662 test "x${withval}" != "xyes"; then
5663 LIBS="$LIBS $withval"
5664 fi
5665
5666
5667fi
5668
5669
5670# Check whether --with-Werror was given.
5671if test "${with_Werror+set}" = set; then
5672 withval=$with_Werror;
5673 if test -n "$withval" && test "x$withval" != "xno"; then
5674 werror_flags="-Werror"
5675 if test "x${withval}" != "xyes"; then
5676 werror_flags="$withval"
5677 fi
5678 fi
5679
5680
5681fi
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5462 # -fstack-protector-all doesn't always work for some GCC versions
5463 # and/or platforms, so we test if we can. If it's not supported
5464 # on a give platform gcc will emit a warning so we use -Werror.
5465 if test "x$use_stack_protector" = "x1"; then
5466 for t in -fstack-protector-all -fstack-protector; do
5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5468echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5469 saved_CFLAGS="$CFLAGS"
5470 saved_LDFLAGS="$LDFLAGS"
5471 CFLAGS="$CFLAGS $t -Werror"
5472 LDFLAGS="$LDFLAGS $t -Werror"
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479
5480#include <stdlib.h>
5481int main(void){return 0;}
5482
5483_ACEOF
5484rm -f conftest.$ac_objext conftest$ac_exeext
5485if { (ac_try="$ac_link"
5486case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_link") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest$ac_exeext &&
5501 $as_test_x conftest$ac_exeext; then
5502 { echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6; }
5504 CFLAGS="$saved_CFLAGS $t"
5505 LDFLAGS="$saved_LDFLAGS $t"
5506 { echo "$as_me:$LINENO: checking if $t works" >&5
5507echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5508 if test "$cross_compiling" = yes; then
5509 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5510echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5511 break
5512
5513else
5514 cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520
5521#include <stdlib.h>
5522int main(void){exit(0);}
5523
5524_ACEOF
5525rm -f conftest$ac_exeext
5526if { (ac_try="$ac_link"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_link") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5536 { (case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_try") 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 { echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6; }
5547 break
5548else
5549 echo "$as_me: program exited with status $ac_status" >&5
5550echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553( exit $ac_status )
5554 { echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6; }
5556fi
5557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558fi
5559
5560
5561
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5572 conftest$ac_exeext conftest.$ac_ext
5573 CFLAGS="$saved_CFLAGS"
5574 LDFLAGS="$saved_LDFLAGS"
5575 done
5576 fi
5577
5578 if test -z "$have_llong_max"; then
5579 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5580 unset ac_cv_have_decl_LLONG_MAX
5581 saved_CFLAGS="$CFLAGS"
5582 CFLAGS="$CFLAGS -std=gnu99"
5583 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5584echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5585if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 cat >conftest.$ac_ext <<_ACEOF
5589/* confdefs.h. */
5590_ACEOF
5591cat confdefs.h >>conftest.$ac_ext
5592cat >>conftest.$ac_ext <<_ACEOF
5593/* end confdefs.h. */
5594#include <limits.h>
5595
5596
5597int
5598main ()
5599{
5600#ifndef LLONG_MAX
5601 (void) LLONG_MAX;
5602#endif
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
5614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 ac_cv_have_decl_LLONG_MAX=yes
5626else
5627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_cv_have_decl_LLONG_MAX=no
5631fi
5632
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634fi
5635{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5636echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5637if test $ac_cv_have_decl_LLONG_MAX = yes; then
5638 have_llong_max=1
5639else
5640 CFLAGS="$saved_CFLAGS"
5641fi
5642
5643 fi
5644fi
5645
5646if test "x$no_attrib_nonnull" != "x1" ; then
5647
5648cat >>confdefs.h <<\_ACEOF
5649#define HAVE_ATTRIBUTE__NONNULL__ 1
5650_ACEOF
5651
5652fi
5653
5654
5655# Check whether --with-rpath was given.
5656if test "${with_rpath+set}" = set; then
5657 withval=$with_rpath;
5658 if test "x$withval" = "xno" ; then
5659 need_dash_r=""
5660 fi
5661 if test "x$withval" = "xyes" ; then
5662 need_dash_r=1
5663 fi
5664
5665
5666fi
5667
5668
5669# Allow user to specify flags
5670
5671# Check whether --with-cflags was given.
5672if test "${with_cflags+set}" = set; then
5673 withval=$with_cflags;
5674 if test -n "$withval" && test "x$withval" != "xno" && \
5675 test "x${withval}" != "xyes"; then
5676 CFLAGS="$CFLAGS $withval"
5677 fi
5678
5679
5680fi
5681
5682
5683# Check whether --with-cppflags was given.
5684if test "${with_cppflags+set}" = set; then
5685 withval=$with_cppflags;
5686 if test -n "$withval" && test "x$withval" != "xno" && \
5687 test "x${withval}" != "xyes"; then
5688 CPPFLAGS="$CPPFLAGS $withval"
5689 fi
5690
5691
5692fi
5693
5694
5695# Check whether --with-ldflags was given.
5696if test "${with_ldflags+set}" = set; then
5697 withval=$with_ldflags;
5698 if test -n "$withval" && test "x$withval" != "xno" && \
5699 test "x${withval}" != "xyes"; then
5700 LDFLAGS="$LDFLAGS $withval"
5701 fi
5702
5703
5704fi
5705
5706
5707# Check whether --with-libs was given.
5708if test "${with_libs+set}" = set; then
5709 withval=$with_libs;
5710 if test -n "$withval" && test "x$withval" != "xno" && \
5711 test "x${withval}" != "xyes"; then
5712 LIBS="$LIBS $withval"
5713 fi
5714
5715
5716fi
5717
5718
5719# Check whether --with-Werror was given.
5720if test "${with_Werror+set}" = set; then
5721 withval=$with_Werror;
5722 if test -n "$withval" && test "x$withval" != "xno"; then
5723 werror_flags="-Werror"
5724 if test "x${withval}" != "xyes"; then
5725 werror_flags="$withval"
5726 fi
5727 fi
5728
5729
5730fi
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5746for ac_header in \
5747 bstring.h \
5748 crypt.h \
5749 crypto/sha2.h \
5750 dirent.h \
5751 endian.h \
5752 features.h \
5753 fcntl.h \
5754 floatingpoint.h \
5755 getopt.h \
5756 glob.h \
5757 ia.h \
5758 iaf.h \
5759 limits.h \
5760 login.h \
5761 maillock.h \
5762 ndir.h \
5763 net/if_tun.h \
5764 netdb.h \
5765 netgroup.h \
5766 pam/pam_appl.h \
5767 paths.h \
5768 poll.h \
5769 pty.h \
5770 readpassphrase.h \
5771 rpc/types.h \
5772 security/pam_appl.h \
5773 sha2.h \
5774 shadow.h \
5775 stddef.h \
5776 stdint.h \
5777 string.h \
5778 strings.h \
5779 sys/audit.h \
5780 sys/bitypes.h \
5781 sys/bsdtty.h \
5782 sys/cdefs.h \
5783 sys/dir.h \
5784 sys/mman.h \
5797for ac_header in \
5798 bstring.h \
5799 crypt.h \
5800 crypto/sha2.h \
5801 dirent.h \
5802 endian.h \
5803 features.h \
5804 fcntl.h \
5805 floatingpoint.h \
5806 getopt.h \
5807 glob.h \
5808 ia.h \
5809 iaf.h \
5810 limits.h \
5811 login.h \
5812 maillock.h \
5813 ndir.h \
5814 net/if_tun.h \
5815 netdb.h \
5816 netgroup.h \
5817 pam/pam_appl.h \
5818 paths.h \
5819 poll.h \
5820 pty.h \
5821 readpassphrase.h \
5822 rpc/types.h \
5823 security/pam_appl.h \
5824 sha2.h \
5825 shadow.h \
5826 stddef.h \
5827 stdint.h \
5828 string.h \
5829 strings.h \
5830 sys/audit.h \
5831 sys/bitypes.h \
5832 sys/bsdtty.h \
5833 sys/cdefs.h \
5834 sys/dir.h \
5835 sys/mman.h \
5836 sys/mount.h \
5785 sys/ndir.h \
5786 sys/poll.h \
5787 sys/prctl.h \
5788 sys/pstat.h \
5789 sys/select.h \
5790 sys/stat.h \
5791 sys/stream.h \
5792 sys/stropts.h \
5793 sys/strtio.h \
5837 sys/ndir.h \
5838 sys/poll.h \
5839 sys/prctl.h \
5840 sys/pstat.h \
5841 sys/select.h \
5842 sys/stat.h \
5843 sys/stream.h \
5844 sys/stropts.h \
5845 sys/strtio.h \
5846 sys/statvfs.h \
5794 sys/sysmacros.h \
5795 sys/time.h \
5796 sys/timers.h \
5797 sys/un.h \
5798 time.h \
5799 tmpdir.h \
5800 ttyent.h \
5801 ucred.h \
5802 unistd.h \
5803 usersec.h \
5804 util.h \
5805 utime.h \
5806 utmp.h \
5807 utmpx.h \
5808 vis.h \
5809
5810do
5811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817fi
5818ac_res=`eval echo '${'$as_ac_Header'}'`
5819 { echo "$as_me:$LINENO: result: $ac_res" >&5
5820echo "${ECHO_T}$ac_res" >&6; }
5821else
5822 # Is the header compilable?
5823{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5825cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831$ac_includes_default
5832#include <$ac_header>
5833_ACEOF
5834rm -f conftest.$ac_objext
5835if { (ac_try="$ac_compile"
5836case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839esac
5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 ac_header_compiler=yes
5852else
5853 echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_header_compiler=no
5857fi
5858
5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5861echo "${ECHO_T}$ac_header_compiler" >&6; }
5862
5863# Is the header present?
5864{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5866cat >conftest.$ac_ext <<_ACEOF
5867/* confdefs.h. */
5868_ACEOF
5869cat confdefs.h >>conftest.$ac_ext
5870cat >>conftest.$ac_ext <<_ACEOF
5871/* end confdefs.h. */
5872#include <$ac_header>
5873_ACEOF
5874if { (ac_try="$ac_cpp conftest.$ac_ext"
5875case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } >/dev/null && {
5887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5888 test ! -s conftest.err
5889 }; then
5890 ac_header_preproc=yes
5891else
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_header_preproc=no
5896fi
5897
5898rm -f conftest.err conftest.$ac_ext
5899{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5900echo "${ECHO_T}$ac_header_preproc" >&6; }
5901
5902# So? What about this header?
5903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5904 yes:no: )
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5909 ac_header_preproc=yes
5910 ;;
5911 no:yes:* )
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5919echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5924 ( cat <<\_ASBOX
5925## ------------------------------------------- ##
5926## Report this to openssh-unix-dev@mindrot.org ##
5927## ------------------------------------------- ##
5928_ASBOX
5929 ) | sed "s/^/$as_me: WARNING: /" >&2
5930 ;;
5931esac
5932{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 eval "$as_ac_Header=\$ac_header_preproc"
5938fi
5939ac_res=`eval echo '${'$as_ac_Header'}'`
5940 { echo "$as_me:$LINENO: result: $ac_res" >&5
5941echo "${ECHO_T}$ac_res" >&6; }
5942
5943fi
5944if test `eval echo '${'$as_ac_Header'}'` = yes; then
5945 cat >>confdefs.h <<_ACEOF
5946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5947_ACEOF
5948
5949fi
5950
5951done
5952
5953
5954# lastlog.h requires sys/time.h to be included first on Solaris
5955
5956for ac_header in lastlog.h
5957do
5958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
5970
5971#ifdef HAVE_SYS_TIME_H
5972# include <sys/time.h>
5973#endif
5974
5975
5976#include <$ac_header>
5977_ACEOF
5978rm -f conftest.$ac_objext
5979if { (ac_try="$ac_compile"
5980case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983esac
5984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 eval "$as_ac_Header=yes"
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 eval "$as_ac_Header=no"
6001fi
6002
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005ac_res=`eval echo '${'$as_ac_Header'}'`
6006 { echo "$as_me:$LINENO: result: $ac_res" >&5
6007echo "${ECHO_T}$ac_res" >&6; }
6008if test `eval echo '${'$as_ac_Header'}'` = yes; then
6009 cat >>confdefs.h <<_ACEOF
6010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6011_ACEOF
6012
6013fi
6014
6015done
6016
6017
6018# sys/ptms.h requires sys/stream.h to be included first on Solaris
6019
6020for ac_header in sys/ptms.h
6021do
6022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027else
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034
6035#ifdef HAVE_SYS_STREAM_H
6036# include <sys/stream.h>
6037#endif
6038
6039
6040#include <$ac_header>
6041_ACEOF
6042rm -f conftest.$ac_objext
6043if { (ac_try="$ac_compile"
6044case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.$ac_objext; then
6059 eval "$as_ac_Header=yes"
6060else
6061 echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 eval "$as_ac_Header=no"
6065fi
6066
6067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068fi
6069ac_res=`eval echo '${'$as_ac_Header'}'`
6070 { echo "$as_me:$LINENO: result: $ac_res" >&5
6071echo "${ECHO_T}$ac_res" >&6; }
6072if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073 cat >>confdefs.h <<_ACEOF
6074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075_ACEOF
6076
6077fi
6078
6079done
6080
6081
6082# login_cap.h requires sys/types.h on NetBSD
6083
6084for ac_header in login_cap.h
6085do
6086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6087{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098
6099#include <sys/types.h>
6100
6101
6102#include <$ac_header>
6103_ACEOF
6104rm -f conftest.$ac_objext
6105if { (ac_try="$ac_compile"
6106case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compile") 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.$ac_objext; then
6121 eval "$as_ac_Header=yes"
6122else
6123 echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 eval "$as_ac_Header=no"
6127fi
6128
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131ac_res=`eval echo '${'$as_ac_Header'}'`
6132 { echo "$as_me:$LINENO: result: $ac_res" >&5
6133echo "${ECHO_T}$ac_res" >&6; }
6134if test `eval echo '${'$as_ac_Header'}'` = yes; then
6135 cat >>confdefs.h <<_ACEOF
6136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137_ACEOF
6138
6139fi
6140
6141done
6142
6143
6144# Messages for features tested for in target-specific section
6145SIA_MSG="no"
6146SPC_MSG="no"
6147
6148# Check for some target-specific stuff
6149case "$host" in
6150*-*-aix*)
6151 # Some versions of VAC won't allow macro redefinitions at
6152 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6153 # particularly with older versions of vac or xlc.
6154 # It also throws errors about null macro argments, but these are
6155 # not fatal.
6156 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6157echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164
6165#define testmacro foo
6166#define testmacro bar
6167int main(void) { exit(0); }
6168
6169_ACEOF
6170rm -f conftest.$ac_objext
6171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 { echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6; }
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 { echo "$as_me:$LINENO: result: no" >&5
6194echo "${ECHO_T}no" >&6; }
6195 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6196 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6197 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6198 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6199
6200
6201fi
6202
6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204
6205 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6206echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6207 if (test -z "$blibpath"); then
6208 blibpath="/usr/lib:/lib"
6209 fi
6210 saved_LDFLAGS="$LDFLAGS"
6211 if test "$GCC" = "yes"; then
6212 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6213 else
6214 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6215 fi
6216 for tryflags in $flags ;do
6217 if (test -z "$blibflags"); then
6218 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225
6226int
6227main ()
6228{
6229
6230 ;
6231 return 0;
6232}
6233_ACEOF
6234rm -f conftest.$ac_objext conftest$ac_exeext
6235if { (ac_try="$ac_link"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_link") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest$ac_exeext &&
6251 $as_test_x conftest$ac_exeext; then
6252 blibflags=$tryflags
6253else
6254 echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257
6258fi
6259
6260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6261 conftest$ac_exeext conftest.$ac_ext
6262 fi
6263 done
6264 if (test -z "$blibflags"); then
6265 { echo "$as_me:$LINENO: result: not found" >&5
6266echo "${ECHO_T}not found" >&6; }
6267 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6268echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6269 { (exit 1); exit 1; }; }
6270 else
6271 { echo "$as_me:$LINENO: result: $blibflags" >&5
6272echo "${ECHO_T}$blibflags" >&6; }
6273 fi
6274 LDFLAGS="$saved_LDFLAGS"
6275 { echo "$as_me:$LINENO: checking for authenticate" >&5
6276echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6277if test "${ac_cv_func_authenticate+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280 cat >conftest.$ac_ext <<_ACEOF
6281/* confdefs.h. */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h. */
6286/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6288#define authenticate innocuous_authenticate
6289
6290/* System header to define __stub macros and hopefully few prototypes,
6291 which can conflict with char authenticate (); below.
6292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6293 <limits.h> exists even on freestanding compilers. */
6294
6295#ifdef __STDC__
6296# include <limits.h>
6297#else
6298# include <assert.h>
6299#endif
6300
6301#undef authenticate
6302
6303/* Override any GCC internal prototype to avoid an error.
6304 Use char because int might match the return type of a GCC
6305 builtin and then its argument prototype would still apply. */
6306#ifdef __cplusplus
6307extern "C"
6308#endif
6309char authenticate ();
6310/* The GNU C library defines this for functions which it implements
6311 to always fail with ENOSYS. Some functions are actually named
6312 something starting with __ and the normal name is an alias. */
6313#if defined __stub_authenticate || defined __stub___authenticate
6314choke me
6315#endif
6316
6317int
6318main ()
6319{
6320return authenticate ();
6321 ;
6322 return 0;
6323}
6324_ACEOF
6325rm -f conftest.$ac_objext conftest$ac_exeext
6326if { (ac_try="$ac_link"
6327case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_link") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest$ac_exeext &&
6342 $as_test_x conftest$ac_exeext; then
6343 ac_cv_func_authenticate=yes
6344else
6345 echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348 ac_cv_func_authenticate=no
6349fi
6350
6351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6352 conftest$ac_exeext conftest.$ac_ext
6353fi
6354{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6355echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6356if test $ac_cv_func_authenticate = yes; then
6357
6358cat >>confdefs.h <<\_ACEOF
6359#define WITH_AIXAUTHENTICATE 1
6360_ACEOF
6361
6362else
6363 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6364echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6365if test "${ac_cv_lib_s_authenticate+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368 ac_check_lib_save_LIBS=$LIBS
6369LIBS="-ls $LIBS"
6370cat >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
6377/* Override any GCC internal prototype to avoid an error.
6378 Use char because int might match the return type of a GCC
6379 builtin and then its argument prototype would still apply. */
6380#ifdef __cplusplus
6381extern "C"
6382#endif
6383char authenticate ();
6384int
6385main ()
6386{
6387return authenticate ();
6388 ;
6389 return 0;
6390}
6391_ACEOF
6392rm -f conftest.$ac_objext conftest$ac_exeext
6393if { (ac_try="$ac_link"
6394case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_link") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest$ac_exeext &&
6409 $as_test_x conftest$ac_exeext; then
6410 ac_cv_lib_s_authenticate=yes
6411else
6412 echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 ac_cv_lib_s_authenticate=no
6416fi
6417
6418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6419 conftest$ac_exeext conftest.$ac_ext
6420LIBS=$ac_check_lib_save_LIBS
6421fi
6422{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6423echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6424if test $ac_cv_lib_s_authenticate = yes; then
6425 cat >>confdefs.h <<\_ACEOF
6426#define WITH_AIXAUTHENTICATE 1
6427_ACEOF
6428
6429 LIBS="$LIBS -ls"
6430
6431fi
6432
6433
6434fi
6435
6436 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6437echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6438if test "${ac_cv_have_decl_authenticate+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447#include <usersec.h>
6448
6449int
6450main ()
6451{
6452#ifndef authenticate
6453 (void) authenticate;
6454#endif
6455
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (ac_try="$ac_compile"
6462case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_compile") 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } && {
6474 test -z "$ac_c_werror_flag" ||
6475 test ! -s conftest.err
6476 } && test -s conftest.$ac_objext; then
6477 ac_cv_have_decl_authenticate=yes
6478else
6479 echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_have_decl_authenticate=no
6483fi
6484
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486fi
6487{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6488echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6489if test $ac_cv_have_decl_authenticate = yes; then
6490
6491cat >>confdefs.h <<_ACEOF
6492#define HAVE_DECL_AUTHENTICATE 1
6493_ACEOF
6494
6495
6496else
6497 cat >>confdefs.h <<_ACEOF
6498#define HAVE_DECL_AUTHENTICATE 0
6499_ACEOF
6500
6501
6502fi
6503{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6504echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6505if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
6514#include <usersec.h>
6515
6516int
6517main ()
6518{
6519#ifndef loginrestrictions
6520 (void) loginrestrictions;
6521#endif
6522
6523 ;
6524 return 0;
6525}
6526_ACEOF
6527rm -f conftest.$ac_objext
6528if { (ac_try="$ac_compile"
6529case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest.$ac_objext; then
6544 ac_cv_have_decl_loginrestrictions=yes
6545else
6546 echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cv_have_decl_loginrestrictions=no
6550fi
6551
6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553fi
6554{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6555echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6556if test $ac_cv_have_decl_loginrestrictions = yes; then
6557
6558cat >>confdefs.h <<_ACEOF
6559#define HAVE_DECL_LOGINRESTRICTIONS 1
6560_ACEOF
6561
6562
6563else
6564 cat >>confdefs.h <<_ACEOF
6565#define HAVE_DECL_LOGINRESTRICTIONS 0
6566_ACEOF
6567
6568
6569fi
6570{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6571echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6572if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575 cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
6581#include <usersec.h>
6582
6583int
6584main ()
6585{
6586#ifndef loginsuccess
6587 (void) loginsuccess;
6588#endif
6589
6590 ;
6591 return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext
6595if { (ac_try="$ac_compile"
6596case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599esac
6600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601 (eval "$ac_compile") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && {
6608 test -z "$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 } && test -s conftest.$ac_objext; then
6611 ac_cv_have_decl_loginsuccess=yes
6612else
6613 echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_cv_have_decl_loginsuccess=no
6617fi
6618
6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620fi
6621{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6622echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6623if test $ac_cv_have_decl_loginsuccess = yes; then
6624
6625cat >>confdefs.h <<_ACEOF
6626#define HAVE_DECL_LOGINSUCCESS 1
6627_ACEOF
6628
6629
6630else
6631 cat >>confdefs.h <<_ACEOF
6632#define HAVE_DECL_LOGINSUCCESS 0
6633_ACEOF
6634
6635
6636fi
6637{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6638echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6639if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642 cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h. */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h. */
6648#include <usersec.h>
6649
6650int
6651main ()
6652{
6653#ifndef passwdexpired
6654 (void) passwdexpired;
6655#endif
6656
6657 ;
6658 return 0;
6659}
6660_ACEOF
6661rm -f conftest.$ac_objext
6662if { (ac_try="$ac_compile"
6663case "(($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_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 ac_cv_have_decl_passwdexpired=yes
6679else
6680 echo "$as_me: failed program was:" >&5
6681sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 ac_cv_have_decl_passwdexpired=no
6684fi
6685
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6689echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6690if test $ac_cv_have_decl_passwdexpired = yes; then
6691
6692cat >>confdefs.h <<_ACEOF
6693#define HAVE_DECL_PASSWDEXPIRED 1
6694_ACEOF
6695
6696
6697else
6698 cat >>confdefs.h <<_ACEOF
6699#define HAVE_DECL_PASSWDEXPIRED 0
6700_ACEOF
6701
6702
6703fi
6704{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6705echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6706if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h. */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h. */
6715#include <usersec.h>
6716
6717int
6718main ()
6719{
6720#ifndef setauthdb
6721 (void) setauthdb;
6722#endif
6723
6724 ;
6725 return 0;
6726}
6727_ACEOF
6728rm -f conftest.$ac_objext
6729if { (ac_try="$ac_compile"
6730case "(($ac_try" in
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6733esac
6734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_compile") 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
6745 ac_cv_have_decl_setauthdb=yes
6746else
6747 echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750 ac_cv_have_decl_setauthdb=no
6751fi
6752
6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754fi
6755{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6756echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6757if test $ac_cv_have_decl_setauthdb = yes; then
6758
6759cat >>confdefs.h <<_ACEOF
6760#define HAVE_DECL_SETAUTHDB 1
6761_ACEOF
6762
6763
6764else
6765 cat >>confdefs.h <<_ACEOF
6766#define HAVE_DECL_SETAUTHDB 0
6767_ACEOF
6768
6769
6770fi
6771
6772
6773 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6774echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6775if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 cat >conftest.$ac_ext <<_ACEOF
6779/* confdefs.h. */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h. */
6784#include <usersec.h>
6785
6786
6787int
6788main ()
6789{
6790#ifndef loginfailed
6791 (void) loginfailed;
6792#endif
6793
6794 ;
6795 return 0;
6796}
6797_ACEOF
6798rm -f conftest.$ac_objext
6799if { (ac_try="$ac_compile"
6800case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803esac
6804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_compile") 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && {
6812 test -z "$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6814 } && test -s conftest.$ac_objext; then
6815 ac_cv_have_decl_loginfailed=yes
6816else
6817 echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820 ac_cv_have_decl_loginfailed=no
6821fi
6822
6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824fi
6825{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6826echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6827if test $ac_cv_have_decl_loginfailed = yes; then
6828
6829cat >>confdefs.h <<_ACEOF
6830#define HAVE_DECL_LOGINFAILED 1
6831_ACEOF
6832
6833{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6834echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6835 cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
6841#include <usersec.h>
6842int
6843main ()
6844{
6845(void)loginfailed("user","host","tty",0);
6846 ;
6847 return 0;
6848}
6849_ACEOF
6850rm -f conftest.$ac_objext
6851if { (ac_try="$ac_compile"
6852case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855esac
6856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_compile") 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } && {
6864 test -z "$ac_c_werror_flag" ||
6865 test ! -s conftest.err
6866 } && test -s conftest.$ac_objext; then
6867 { echo "$as_me:$LINENO: result: yes" >&5
6868echo "${ECHO_T}yes" >&6; }
6869
6870cat >>confdefs.h <<\_ACEOF
6871#define AIX_LOGINFAILED_4ARG 1
6872_ACEOF
6873
6874else
6875 echo "$as_me: failed program was:" >&5
6876sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
6880
6881fi
6882
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884else
6885 cat >>confdefs.h <<_ACEOF
6886#define HAVE_DECL_LOGINFAILED 0
6887_ACEOF
6888
6889
6890fi
6891
6892
6893
6894
6895for ac_func in getgrset setauthdb
6896do
6897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 cat >conftest.$ac_ext <<_ACEOF
6904/* confdefs.h. */
6905_ACEOF
6906cat confdefs.h >>conftest.$ac_ext
6907cat >>conftest.$ac_ext <<_ACEOF
6908/* end confdefs.h. */
6909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6911#define $ac_func innocuous_$ac_func
6912
6913/* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func (); below.
6915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 <limits.h> exists even on freestanding compilers. */
6917
6918#ifdef __STDC__
6919# include <limits.h>
6920#else
6921# include <assert.h>
6922#endif
6923
6924#undef $ac_func
6925
6926/* Override any GCC internal prototype to avoid an error.
6927 Use char because int might match the return type of a GCC
6928 builtin and then its argument prototype would still apply. */
6929#ifdef __cplusplus
6930extern "C"
6931#endif
6932char $ac_func ();
6933/* The GNU C library defines this for functions which it implements
6934 to always fail with ENOSYS. Some functions are actually named
6935 something starting with __ and the normal name is an alias. */
6936#if defined __stub_$ac_func || defined __stub___$ac_func
6937choke me
6938#endif
6939
6940int
6941main ()
6942{
6943return $ac_func ();
6944 ;
6945 return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext conftest$ac_exeext
6949if { (ac_try="$ac_link"
6950case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953esac
6954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
6966 eval "$as_ac_var=yes"
6967else
6968 echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 eval "$as_ac_var=no"
6972fi
6973
6974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975 conftest$ac_exeext conftest.$ac_ext
6976fi
6977ac_res=`eval echo '${'$as_ac_var'}'`
6978 { echo "$as_me:$LINENO: result: $ac_res" >&5
6979echo "${ECHO_T}$ac_res" >&6; }
6980if test `eval echo '${'$as_ac_var'}'` = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6983_ACEOF
6984
6985fi
6986done
6987
6988 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6989echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6990if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 cat >conftest.$ac_ext <<_ACEOF
6994/* confdefs.h. */
6995_ACEOF
6996cat confdefs.h >>conftest.$ac_ext
6997cat >>conftest.$ac_ext <<_ACEOF
6998/* end confdefs.h. */
6999 #include <limits.h>
7000 #include <fcntl.h>
7001
7002
7003int
7004main ()
7005{
7006#ifndef F_CLOSEM
7007 (void) F_CLOSEM;
7008#endif
7009
7010 ;
7011 return 0;
7012}
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (ac_try="$ac_compile"
7016case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019esac
7020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_compile") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest.$ac_objext; then
7031 ac_cv_have_decl_F_CLOSEM=yes
7032else
7033 echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_have_decl_F_CLOSEM=no
7037fi
7038
7039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040fi
7041{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7042echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7043if test $ac_cv_have_decl_F_CLOSEM = yes; then
7044
7045cat >>confdefs.h <<\_ACEOF
7046#define HAVE_FCNTL_CLOSEM 1
7047_ACEOF
7048
7049fi
7050
7051 check_for_aix_broken_getaddrinfo=1
7052
7053cat >>confdefs.h <<\_ACEOF
7054#define BROKEN_REALPATH 1
7055_ACEOF
7056
7057
7058cat >>confdefs.h <<\_ACEOF
7059#define SETEUID_BREAKS_SETUID 1
7060_ACEOF
7061
7062
7063cat >>confdefs.h <<\_ACEOF
7064#define BROKEN_SETREUID 1
7065_ACEOF
7066
7067
7068cat >>confdefs.h <<\_ACEOF
7069#define BROKEN_SETREGID 1
7070_ACEOF
7071
7072
7073cat >>confdefs.h <<\_ACEOF
7074#define DISABLE_LASTLOG 1
7075_ACEOF
7076
7077
7078cat >>confdefs.h <<\_ACEOF
7079#define LOGIN_NEEDS_UTMPX 1
7080_ACEOF
7081
7082
7083cat >>confdefs.h <<\_ACEOF
7084#define SPT_TYPE SPT_REUSEARGV
7085_ACEOF
7086
7087
7088cat >>confdefs.h <<\_ACEOF
7089#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7090_ACEOF
7091
7092
7093cat >>confdefs.h <<\_ACEOF
7094#define PTY_ZEROREAD 1
7095_ACEOF
7096
7097 ;;
7098*-*-cygwin*)
7099 check_for_libcrypt_later=1
7100 LIBS="$LIBS /usr/lib/textreadmode.o"
7101
7102cat >>confdefs.h <<\_ACEOF
7103#define HAVE_CYGWIN 1
7104_ACEOF
7105
7106
7107cat >>confdefs.h <<\_ACEOF
7108#define USE_PIPES 1
7109_ACEOF
7110
7111
7112cat >>confdefs.h <<\_ACEOF
7113#define DISABLE_SHADOW 1
7114_ACEOF
7115
7116
7117cat >>confdefs.h <<\_ACEOF
7118#define IP_TOS_IS_BROKEN 1
7119_ACEOF
7120
7121
7122cat >>confdefs.h <<\_ACEOF
7123#define NO_X11_UNIX_SOCKETS 1
7124_ACEOF
7125
7126
7127cat >>confdefs.h <<\_ACEOF
7128#define NO_IPPORT_RESERVED_CONCEPT 1
7129_ACEOF
7130
7131
7132cat >>confdefs.h <<\_ACEOF
7133#define DISABLE_FD_PASSING 1
7134_ACEOF
7135
7136 ;;
7137*-*-dgux*)
7138 cat >>confdefs.h <<\_ACEOF
7139#define IP_TOS_IS_BROKEN 1
7140_ACEOF
7141
7142 cat >>confdefs.h <<\_ACEOF
7143#define SETEUID_BREAKS_SETUID 1
7144_ACEOF
7145
7146 cat >>confdefs.h <<\_ACEOF
7147#define BROKEN_SETREUID 1
7148_ACEOF
7149
7150 cat >>confdefs.h <<\_ACEOF
7151#define BROKEN_SETREGID 1
7152_ACEOF
7153
7154 ;;
7155*-*-darwin*)
7156 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7157echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7158 if test "$cross_compiling" = yes; then
7159 { echo "$as_me:$LINENO: result: assume it is working" >&5
7160echo "${ECHO_T}assume it is working" >&6; }
7161else
7162 cat >conftest.$ac_ext <<_ACEOF
7163/* confdefs.h. */
7164_ACEOF
7165cat confdefs.h >>conftest.$ac_ext
7166cat >>conftest.$ac_ext <<_ACEOF
7167/* end confdefs.h. */
7168#include <mach-o/dyld.h>
7169main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7170 exit(0);
7171 else
7172 exit(1);
7173}
7174_ACEOF
7175rm -f conftest$ac_exeext
7176if { (ac_try="$ac_link"
7177case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180esac
7181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_link") 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7186 { (case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189esac
7190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_try") 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 { echo "$as_me:$LINENO: result: working" >&5
7196echo "${ECHO_T}working" >&6; }
7197else
7198 echo "$as_me: program exited with status $ac_status" >&5
7199echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202( exit $ac_status )
7203{ echo "$as_me:$LINENO: result: buggy" >&5
7204echo "${ECHO_T}buggy" >&6; }
7205
7206cat >>confdefs.h <<\_ACEOF
7207#define BROKEN_GETADDRINFO 1
7208_ACEOF
7209
7210fi
7211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7212fi
7213
7214
7215 cat >>confdefs.h <<\_ACEOF
7216#define SETEUID_BREAKS_SETUID 1
7217_ACEOF
7218
7219 cat >>confdefs.h <<\_ACEOF
7220#define BROKEN_SETREUID 1
7221_ACEOF
7222
7223 cat >>confdefs.h <<\_ACEOF
7224#define BROKEN_SETREGID 1
7225_ACEOF
7226
7227
7228cat >>confdefs.h <<\_ACEOF
7229#define BROKEN_GLOB 1
7230_ACEOF
7231
7232
7233cat >>confdefs.h <<_ACEOF
7234#define BIND_8_COMPAT 1
7235_ACEOF
7236
7237
7238cat >>confdefs.h <<\_ACEOF
7239#define SSH_TUN_FREEBSD 1
7240_ACEOF
7241
7242
7243cat >>confdefs.h <<\_ACEOF
7244#define SSH_TUN_COMPAT_AF 1
7245_ACEOF
7246
7247
7248cat >>confdefs.h <<\_ACEOF
7249#define SSH_TUN_PREPEND_AF 1
7250_ACEOF
7251
7252
7253 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7254echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7255if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258 cat >conftest.$ac_ext <<_ACEOF
7259/* confdefs.h. */
7260_ACEOF
7261cat confdefs.h >>conftest.$ac_ext
7262cat >>conftest.$ac_ext <<_ACEOF
7263/* end confdefs.h. */
7264$ac_includes_default
7265int
7266main ()
7267{
7268#ifndef AU_IPv4
7269 (void) AU_IPv4;
7270#endif
7271
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext
7277if { (ac_try="$ac_compile"
7278case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281esac
7282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 ac_cv_have_decl_AU_IPv4=yes
7294else
7295 echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 ac_cv_have_decl_AU_IPv4=no
7299fi
7300
7301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302fi
7303{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7304echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7305if test $ac_cv_have_decl_AU_IPv4 = yes; then
7306 :
7307else
7308
7309cat >>confdefs.h <<\_ACEOF
7310#define AU_IPv4 0
7311_ACEOF
7312
7313 #include <bsm/audit.h>
7314
7315fi
7316
7317 ;;
7318*-*-dragonfly*)
7319 SSHDLIBS="$SSHDLIBS -lcrypt"
7320 ;;
7321*-*-hpux*)
7322 # first we define all of the options common to all HP-UX releases
7323 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7324 IPADDR_IN_DISPLAY=yes
7325 cat >>confdefs.h <<\_ACEOF
7326#define USE_PIPES 1
7327_ACEOF
7328
7329
7330cat >>confdefs.h <<\_ACEOF
7331#define LOGIN_NO_ENDOPT 1
7332_ACEOF
7333
7334 cat >>confdefs.h <<\_ACEOF
7335#define LOGIN_NEEDS_UTMPX 1
7336_ACEOF
7337
7338
7339cat >>confdefs.h <<\_ACEOF
7340#define LOCKED_PASSWD_STRING "*"
7341_ACEOF
7342
7343 cat >>confdefs.h <<\_ACEOF
7344#define SPT_TYPE SPT_PSTAT
7345_ACEOF
7346
7347 MAIL="/var/mail/username"
7348 LIBS="$LIBS -lsec"
7349
7350{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7351echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7352if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355 ac_check_lib_save_LIBS=$LIBS
7356LIBS="-lxnet $LIBS"
7357cat >conftest.$ac_ext <<_ACEOF
7358/* confdefs.h. */
7359_ACEOF
7360cat confdefs.h >>conftest.$ac_ext
7361cat >>conftest.$ac_ext <<_ACEOF
7362/* end confdefs.h. */
7363
7364/* Override any GCC internal prototype to avoid an error.
7365 Use char because int might match the return type of a GCC
7366 builtin and then its argument prototype would still apply. */
7367#ifdef __cplusplus
7368extern "C"
7369#endif
7370char t_error ();
7371int
7372main ()
7373{
7374return t_error ();
7375 ;
7376 return 0;
7377}
7378_ACEOF
7379rm -f conftest.$ac_objext conftest$ac_exeext
7380if { (ac_try="$ac_link"
7381case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384esac
7385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_link") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest$ac_exeext &&
7396 $as_test_x conftest$ac_exeext; then
7397 ac_cv_lib_xnet_t_error=yes
7398else
7399 echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_cv_lib_xnet_t_error=no
7403fi
7404
7405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7406 conftest$ac_exeext conftest.$ac_ext
7407LIBS=$ac_check_lib_save_LIBS
7408fi
7409{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7410echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7411if test $ac_cv_lib_xnet_t_error = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413#define HAVE_LIBXNET 1
7414_ACEOF
7415
7416 LIBS="-lxnet $LIBS"
7417
7418else
7419 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7420echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7421 { (exit 1); exit 1; }; }
7422fi
7423
7424
7425 # next, we define all of the options specific to major releases
7426 case "$host" in
7427 *-*-hpux10*)
7428 if test -z "$GCC"; then
7429 CFLAGS="$CFLAGS -Ae"
7430 fi
7431 ;;
7432 *-*-hpux11*)
7433
7434cat >>confdefs.h <<\_ACEOF
7435#define PAM_SUN_CODEBASE 1
7436_ACEOF
7437
7438
7439cat >>confdefs.h <<\_ACEOF
7440#define DISABLE_UTMP 1
7441_ACEOF
7442
7443
7444cat >>confdefs.h <<\_ACEOF
7445#define USE_BTMP 1
7446_ACEOF
7447
7448 check_for_hpux_broken_getaddrinfo=1
7449 check_for_conflicting_getspnam=1
7450 ;;
7451 esac
7452
7453 # lastly, we define options specific to minor releases
7454 case "$host" in
7455 *-*-hpux10.26)
7456
7457cat >>confdefs.h <<\_ACEOF
7458#define HAVE_SECUREWARE 1
7459_ACEOF
7460
7461 disable_ptmx_check=yes
7462 LIBS="$LIBS -lsecpw"
7463 ;;
7464 esac
7465 ;;
7466*-*-irix5*)
7467 PATH="$PATH:/usr/etc"
7468
7469cat >>confdefs.h <<\_ACEOF
7470#define BROKEN_INET_NTOA 1
7471_ACEOF
7472
7473 cat >>confdefs.h <<\_ACEOF
7474#define SETEUID_BREAKS_SETUID 1
7475_ACEOF
7476
7477 cat >>confdefs.h <<\_ACEOF
7478#define BROKEN_SETREUID 1
7479_ACEOF
7480
7481 cat >>confdefs.h <<\_ACEOF
7482#define BROKEN_SETREGID 1
7483_ACEOF
7484
7485
7486cat >>confdefs.h <<\_ACEOF
7487#define WITH_ABBREV_NO_TTY 1
7488_ACEOF
7489
7490 cat >>confdefs.h <<\_ACEOF
7491#define LOCKED_PASSWD_STRING "*LK*"
7492_ACEOF
7493
7494 ;;
7495*-*-irix6*)
7496 PATH="$PATH:/usr/etc"
7497
7498cat >>confdefs.h <<\_ACEOF
7499#define WITH_IRIX_ARRAY 1
7500_ACEOF
7501
7502
7503cat >>confdefs.h <<\_ACEOF
7504#define WITH_IRIX_PROJECT 1
7505_ACEOF
7506
7507
7508cat >>confdefs.h <<\_ACEOF
7509#define WITH_IRIX_AUDIT 1
7510_ACEOF
7511
7512 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7513echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7514if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516else
7517 cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
7523/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7525#define jlimit_startjob innocuous_jlimit_startjob
7526
7527/* System header to define __stub macros and hopefully few prototypes,
7528 which can conflict with char jlimit_startjob (); below.
7529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7530 <limits.h> exists even on freestanding compilers. */
7531
7532#ifdef __STDC__
7533# include <limits.h>
7534#else
7535# include <assert.h>
7536#endif
7537
7538#undef jlimit_startjob
7539
7540/* Override any GCC internal prototype to avoid an error.
7541 Use char because int might match the return type of a GCC
7542 builtin and then its argument prototype would still apply. */
7543#ifdef __cplusplus
7544extern "C"
7545#endif
7546char jlimit_startjob ();
7547/* The GNU C library defines this for functions which it implements
7548 to always fail with ENOSYS. Some functions are actually named
7549 something starting with __ and the normal name is an alias. */
7550#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7551choke me
7552#endif
7553
7554int
7555main ()
7556{
7557return jlimit_startjob ();
7558 ;
7559 return 0;
7560}
7561_ACEOF
7562rm -f conftest.$ac_objext conftest$ac_exeext
7563if { (ac_try="$ac_link"
7564case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567esac
7568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_link") 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest$ac_exeext &&
7579 $as_test_x conftest$ac_exeext; then
7580 ac_cv_func_jlimit_startjob=yes
7581else
7582 echo "$as_me: failed program was:" >&5
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
7585 ac_cv_func_jlimit_startjob=no
7586fi
7587
7588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7589 conftest$ac_exeext conftest.$ac_ext
7590fi
7591{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7592echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7593if test $ac_cv_func_jlimit_startjob = yes; then
7594
7595cat >>confdefs.h <<\_ACEOF
7596#define WITH_IRIX_JOBS 1
7597_ACEOF
7598
7599fi
7600
7601 cat >>confdefs.h <<\_ACEOF
7602#define BROKEN_INET_NTOA 1
7603_ACEOF
7604
7605 cat >>confdefs.h <<\_ACEOF
7606#define SETEUID_BREAKS_SETUID 1
7607_ACEOF
7608
7609 cat >>confdefs.h <<\_ACEOF
7610#define BROKEN_SETREUID 1
7611_ACEOF
7612
7613 cat >>confdefs.h <<\_ACEOF
7614#define BROKEN_SETREGID 1
7615_ACEOF
7616
7617
7618cat >>confdefs.h <<\_ACEOF
7619#define BROKEN_UPDWTMPX 1
7620_ACEOF
7621
7622 cat >>confdefs.h <<\_ACEOF
7623#define WITH_ABBREV_NO_TTY 1
7624_ACEOF
7625
7626 cat >>confdefs.h <<\_ACEOF
7627#define LOCKED_PASSWD_STRING "*LK*"
7628_ACEOF
7629
7630 ;;
7631*-*-linux*)
7632 no_dev_ptmx=1
7633 check_for_libcrypt_later=1
7634 check_for_openpty_ctty_bug=1
7635
7636cat >>confdefs.h <<\_ACEOF
5847 sys/sysmacros.h \
5848 sys/time.h \
5849 sys/timers.h \
5850 sys/un.h \
5851 time.h \
5852 tmpdir.h \
5853 ttyent.h \
5854 ucred.h \
5855 unistd.h \
5856 usersec.h \
5857 util.h \
5858 utime.h \
5859 utmp.h \
5860 utmpx.h \
5861 vis.h \
5862
5863do
5864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870fi
5871ac_res=`eval echo '${'$as_ac_Header'}'`
5872 { echo "$as_me:$LINENO: result: $ac_res" >&5
5873echo "${ECHO_T}$ac_res" >&6; }
5874else
5875 # Is the header compilable?
5876{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
5884$ac_includes_default
5885#include <$ac_header>
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest.$ac_objext; then
5904 ac_header_compiler=yes
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_header_compiler=no
5910fi
5911
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5914echo "${ECHO_T}$ac_header_compiler" >&6; }
5915
5916# Is the header present?
5917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5919cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#include <$ac_header>
5926_ACEOF
5927if { (ac_try="$ac_cpp conftest.$ac_ext"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5943 ac_header_preproc=yes
5944else
5945 echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_header_preproc=no
5949fi
5950
5951rm -f conftest.err conftest.$ac_ext
5952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5953echo "${ECHO_T}$ac_header_preproc" >&6; }
5954
5955# So? What about this header?
5956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5957 yes:no: )
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5962 ac_header_preproc=yes
5963 ;;
5964 no:yes:* )
5965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5977 ( cat <<\_ASBOX
5978## ------------------------------------------- ##
5979## Report this to openssh-unix-dev@mindrot.org ##
5980## ------------------------------------------- ##
5981_ASBOX
5982 ) | sed "s/^/$as_me: WARNING: /" >&2
5983 ;;
5984esac
5985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 eval "$as_ac_Header=\$ac_header_preproc"
5991fi
5992ac_res=`eval echo '${'$as_ac_Header'}'`
5993 { echo "$as_me:$LINENO: result: $ac_res" >&5
5994echo "${ECHO_T}$ac_res" >&6; }
5995
5996fi
5997if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000_ACEOF
6001
6002fi
6003
6004done
6005
6006
6007# lastlog.h requires sys/time.h to be included first on Solaris
6008
6009for ac_header in lastlog.h
6010do
6011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h. */
6023
6024#ifdef HAVE_SYS_TIME_H
6025# include <sys/time.h>
6026#endif
6027
6028
6029#include <$ac_header>
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest.$ac_objext; then
6048 eval "$as_ac_Header=yes"
6049else
6050 echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 eval "$as_ac_Header=no"
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058ac_res=`eval echo '${'$as_ac_Header'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060echo "${ECHO_T}$ac_res" >&6; }
6061if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064_ACEOF
6065
6066fi
6067
6068done
6069
6070
6071# sys/ptms.h requires sys/stream.h to be included first on Solaris
6072
6073for ac_header in sys/ptms.h
6074do
6075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087
6088#ifdef HAVE_SYS_STREAM_H
6089# include <sys/stream.h>
6090#endif
6091
6092
6093#include <$ac_header>
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6112 eval "$as_ac_Header=yes"
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 eval "$as_ac_Header=no"
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121fi
6122ac_res=`eval echo '${'$as_ac_Header'}'`
6123 { echo "$as_me:$LINENO: result: $ac_res" >&5
6124echo "${ECHO_T}$ac_res" >&6; }
6125if test `eval echo '${'$as_ac_Header'}'` = yes; then
6126 cat >>confdefs.h <<_ACEOF
6127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6128_ACEOF
6129
6130fi
6131
6132done
6133
6134
6135# login_cap.h requires sys/types.h on NetBSD
6136
6137for ac_header in login_cap.h
6138do
6139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
6152#include <sys/types.h>
6153
6154
6155#include <$ac_header>
6156_ACEOF
6157rm -f conftest.$ac_objext
6158if { (ac_try="$ac_compile"
6159case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162esac
6163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
6174 eval "$as_ac_Header=yes"
6175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 eval "$as_ac_Header=no"
6180fi
6181
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184ac_res=`eval echo '${'$as_ac_Header'}'`
6185 { echo "$as_me:$LINENO: result: $ac_res" >&5
6186echo "${ECHO_T}$ac_res" >&6; }
6187if test `eval echo '${'$as_ac_Header'}'` = yes; then
6188 cat >>confdefs.h <<_ACEOF
6189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6190_ACEOF
6191
6192fi
6193
6194done
6195
6196
6197# Messages for features tested for in target-specific section
6198SIA_MSG="no"
6199SPC_MSG="no"
6200
6201# Check for some target-specific stuff
6202case "$host" in
6203*-*-aix*)
6204 # Some versions of VAC won't allow macro redefinitions at
6205 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6206 # particularly with older versions of vac or xlc.
6207 # It also throws errors about null macro argments, but these are
6208 # not fatal.
6209 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6210echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6211 cat >conftest.$ac_ext <<_ACEOF
6212/* confdefs.h. */
6213_ACEOF
6214cat confdefs.h >>conftest.$ac_ext
6215cat >>conftest.$ac_ext <<_ACEOF
6216/* end confdefs.h. */
6217
6218#define testmacro foo
6219#define testmacro bar
6220int main(void) { exit(0); }
6221
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 { echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6; }
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 { echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6; }
6248 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6249 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6250 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6251 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6252
6253
6254fi
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6259echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6260 if (test -z "$blibpath"); then
6261 blibpath="/usr/lib:/lib"
6262 fi
6263 saved_LDFLAGS="$LDFLAGS"
6264 if test "$GCC" = "yes"; then
6265 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6266 else
6267 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6268 fi
6269 for tryflags in $flags ;do
6270 if (test -z "$blibflags"); then
6271 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6272 cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278
6279int
6280main ()
6281{
6282
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (ac_try="$ac_link"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_link") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && {
6301 test -z "$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6303 } && test -s conftest$ac_exeext &&
6304 $as_test_x conftest$ac_exeext; then
6305 blibflags=$tryflags
6306else
6307 echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6314 conftest$ac_exeext conftest.$ac_ext
6315 fi
6316 done
6317 if (test -z "$blibflags"); then
6318 { echo "$as_me:$LINENO: result: not found" >&5
6319echo "${ECHO_T}not found" >&6; }
6320 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6321echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6322 { (exit 1); exit 1; }; }
6323 else
6324 { echo "$as_me:$LINENO: result: $blibflags" >&5
6325echo "${ECHO_T}$blibflags" >&6; }
6326 fi
6327 LDFLAGS="$saved_LDFLAGS"
6328 { echo "$as_me:$LINENO: checking for authenticate" >&5
6329echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6330if test "${ac_cv_func_authenticate+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6341#define authenticate innocuous_authenticate
6342
6343/* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char authenticate (); below.
6345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 <limits.h> exists even on freestanding compilers. */
6347
6348#ifdef __STDC__
6349# include <limits.h>
6350#else
6351# include <assert.h>
6352#endif
6353
6354#undef authenticate
6355
6356/* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6359#ifdef __cplusplus
6360extern "C"
6361#endif
6362char authenticate ();
6363/* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366#if defined __stub_authenticate || defined __stub___authenticate
6367choke me
6368#endif
6369
6370int
6371main ()
6372{
6373return authenticate ();
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378rm -f conftest.$ac_objext conftest$ac_exeext
6379if { (ac_try="$ac_link"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_link") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest$ac_exeext &&
6395 $as_test_x conftest$ac_exeext; then
6396 ac_cv_func_authenticate=yes
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 ac_cv_func_authenticate=no
6402fi
6403
6404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6405 conftest$ac_exeext conftest.$ac_ext
6406fi
6407{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6408echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6409if test $ac_cv_func_authenticate = yes; then
6410
6411cat >>confdefs.h <<\_ACEOF
6412#define WITH_AIXAUTHENTICATE 1
6413_ACEOF
6414
6415else
6416 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6417echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6418if test "${ac_cv_lib_s_authenticate+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 ac_check_lib_save_LIBS=$LIBS
6422LIBS="-ls $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
6429
6430/* Override any GCC internal prototype to avoid an error.
6431 Use char because int might match the return type of a GCC
6432 builtin and then its argument prototype would still apply. */
6433#ifdef __cplusplus
6434extern "C"
6435#endif
6436char authenticate ();
6437int
6438main ()
6439{
6440return authenticate ();
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (ac_try="$ac_link"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_link") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest$ac_exeext &&
6462 $as_test_x conftest$ac_exeext; then
6463 ac_cv_lib_s_authenticate=yes
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_cv_lib_s_authenticate=no
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6472 conftest$ac_exeext conftest.$ac_ext
6473LIBS=$ac_check_lib_save_LIBS
6474fi
6475{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6476echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6477if test $ac_cv_lib_s_authenticate = yes; then
6478 cat >>confdefs.h <<\_ACEOF
6479#define WITH_AIXAUTHENTICATE 1
6480_ACEOF
6481
6482 LIBS="$LIBS -ls"
6483
6484fi
6485
6486
6487fi
6488
6489 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6490echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6491if test "${ac_cv_have_decl_authenticate+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <usersec.h>
6501
6502int
6503main ()
6504{
6505#ifndef authenticate
6506 (void) authenticate;
6507#endif
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (ac_try="$ac_compile"
6515case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest.$ac_objext; then
6530 ac_cv_have_decl_authenticate=yes
6531else
6532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_cv_have_decl_authenticate=no
6536fi
6537
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539fi
6540{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6541echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6542if test $ac_cv_have_decl_authenticate = yes; then
6543
6544cat >>confdefs.h <<_ACEOF
6545#define HAVE_DECL_AUTHENTICATE 1
6546_ACEOF
6547
6548
6549else
6550 cat >>confdefs.h <<_ACEOF
6551#define HAVE_DECL_AUTHENTICATE 0
6552_ACEOF
6553
6554
6555fi
6556{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6557echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6558if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
6567#include <usersec.h>
6568
6569int
6570main ()
6571{
6572#ifndef loginrestrictions
6573 (void) loginrestrictions;
6574#endif
6575
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (ac_try="$ac_compile"
6582case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 ac_cv_have_decl_loginrestrictions=yes
6598else
6599 echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ac_cv_have_decl_loginrestrictions=no
6603fi
6604
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6608echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6609if test $ac_cv_have_decl_loginrestrictions = yes; then
6610
6611cat >>confdefs.h <<_ACEOF
6612#define HAVE_DECL_LOGINRESTRICTIONS 1
6613_ACEOF
6614
6615
6616else
6617 cat >>confdefs.h <<_ACEOF
6618#define HAVE_DECL_LOGINRESTRICTIONS 0
6619_ACEOF
6620
6621
6622fi
6623{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6624echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6625if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
6634#include <usersec.h>
6635
6636int
6637main ()
6638{
6639#ifndef loginsuccess
6640 (void) loginsuccess;
6641#endif
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (ac_try="$ac_compile"
6649case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_have_decl_loginsuccess=yes
6665else
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_cv_have_decl_loginsuccess=no
6670fi
6671
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6675echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6676if test $ac_cv_have_decl_loginsuccess = yes; then
6677
6678cat >>confdefs.h <<_ACEOF
6679#define HAVE_DECL_LOGINSUCCESS 1
6680_ACEOF
6681
6682
6683else
6684 cat >>confdefs.h <<_ACEOF
6685#define HAVE_DECL_LOGINSUCCESS 0
6686_ACEOF
6687
6688
6689fi
6690{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6691echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6692if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695 cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h. */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h. */
6701#include <usersec.h>
6702
6703int
6704main ()
6705{
6706#ifndef passwdexpired
6707 (void) passwdexpired;
6708#endif
6709
6710 ;
6711 return 0;
6712}
6713_ACEOF
6714rm -f conftest.$ac_objext
6715if { (ac_try="$ac_compile"
6716case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_compile") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest.$ac_objext; then
6731 ac_cv_have_decl_passwdexpired=yes
6732else
6733 echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 ac_cv_have_decl_passwdexpired=no
6737fi
6738
6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740fi
6741{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6742echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6743if test $ac_cv_have_decl_passwdexpired = yes; then
6744
6745cat >>confdefs.h <<_ACEOF
6746#define HAVE_DECL_PASSWDEXPIRED 1
6747_ACEOF
6748
6749
6750else
6751 cat >>confdefs.h <<_ACEOF
6752#define HAVE_DECL_PASSWDEXPIRED 0
6753_ACEOF
6754
6755
6756fi
6757{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6758echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6759if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761else
6762 cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
6768#include <usersec.h>
6769
6770int
6771main ()
6772{
6773#ifndef setauthdb
6774 (void) setauthdb;
6775#endif
6776
6777 ;
6778 return 0;
6779}
6780_ACEOF
6781rm -f conftest.$ac_objext
6782if { (ac_try="$ac_compile"
6783case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786esac
6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_have_decl_setauthdb=yes
6799else
6800 echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_cv_have_decl_setauthdb=no
6804fi
6805
6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807fi
6808{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6809echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6810if test $ac_cv_have_decl_setauthdb = yes; then
6811
6812cat >>confdefs.h <<_ACEOF
6813#define HAVE_DECL_SETAUTHDB 1
6814_ACEOF
6815
6816
6817else
6818 cat >>confdefs.h <<_ACEOF
6819#define HAVE_DECL_SETAUTHDB 0
6820_ACEOF
6821
6822
6823fi
6824
6825
6826 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6827echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6828if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831 cat >conftest.$ac_ext <<_ACEOF
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837#include <usersec.h>
6838
6839
6840int
6841main ()
6842{
6843#ifndef loginfailed
6844 (void) loginfailed;
6845#endif
6846
6847 ;
6848 return 0;
6849}
6850_ACEOF
6851rm -f conftest.$ac_objext
6852if { (ac_try="$ac_compile"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_cv_have_decl_loginfailed=yes
6869else
6870 echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 ac_cv_have_decl_loginfailed=no
6874fi
6875
6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877fi
6878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6879echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6880if test $ac_cv_have_decl_loginfailed = yes; then
6881
6882cat >>confdefs.h <<_ACEOF
6883#define HAVE_DECL_LOGINFAILED 1
6884_ACEOF
6885
6886{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6887echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6888 cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894#include <usersec.h>
6895int
6896main ()
6897{
6898(void)loginfailed("user","host","tty",0);
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext
6904if { (ac_try="$ac_compile"
6905case "(($ac_try" in
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6908esac
6909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_compile") 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest.$ac_objext; then
6920 { echo "$as_me:$LINENO: result: yes" >&5
6921echo "${ECHO_T}yes" >&6; }
6922
6923cat >>confdefs.h <<\_ACEOF
6924#define AIX_LOGINFAILED_4ARG 1
6925_ACEOF
6926
6927else
6928 echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933
6934fi
6935
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937else
6938 cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_LOGINFAILED 0
6940_ACEOF
6941
6942
6943fi
6944
6945
6946
6947
6948for ac_func in getgrset setauthdb
6949do
6950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 cat >conftest.$ac_ext <<_ACEOF
6957/* confdefs.h. */
6958_ACEOF
6959cat confdefs.h >>conftest.$ac_ext
6960cat >>conftest.$ac_ext <<_ACEOF
6961/* end confdefs.h. */
6962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6964#define $ac_func innocuous_$ac_func
6965
6966/* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char $ac_func (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6970
6971#ifdef __STDC__
6972# include <limits.h>
6973#else
6974# include <assert.h>
6975#endif
6976
6977#undef $ac_func
6978
6979/* Override any GCC internal prototype to avoid an error.
6980 Use char because int might match the return type of a GCC
6981 builtin and then its argument prototype would still apply. */
6982#ifdef __cplusplus
6983extern "C"
6984#endif
6985char $ac_func ();
6986/* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989#if defined __stub_$ac_func || defined __stub___$ac_func
6990choke me
6991#endif
6992
6993int
6994main ()
6995{
6996return $ac_func ();
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (ac_try="$ac_link"
7003case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006esac
7007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest$ac_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 eval "$as_ac_var=yes"
7020else
7021 echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 eval "$as_ac_var=no"
7025fi
7026
7027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028 conftest$ac_exeext conftest.$ac_ext
7029fi
7030ac_res=`eval echo '${'$as_ac_var'}'`
7031 { echo "$as_me:$LINENO: result: $ac_res" >&5
7032echo "${ECHO_T}$ac_res" >&6; }
7033if test `eval echo '${'$as_ac_var'}'` = yes; then
7034 cat >>confdefs.h <<_ACEOF
7035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7036_ACEOF
7037
7038fi
7039done
7040
7041 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7042echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7043if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052 #include <limits.h>
7053 #include <fcntl.h>
7054
7055
7056int
7057main ()
7058{
7059#ifndef F_CLOSEM
7060 (void) F_CLOSEM;
7061#endif
7062
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext
7068if { (ac_try="$ac_compile"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_have_decl_F_CLOSEM=yes
7085else
7086 echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_cv_have_decl_F_CLOSEM=no
7090fi
7091
7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093fi
7094{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7095echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7096if test $ac_cv_have_decl_F_CLOSEM = yes; then
7097
7098cat >>confdefs.h <<\_ACEOF
7099#define HAVE_FCNTL_CLOSEM 1
7100_ACEOF
7101
7102fi
7103
7104 check_for_aix_broken_getaddrinfo=1
7105
7106cat >>confdefs.h <<\_ACEOF
7107#define BROKEN_REALPATH 1
7108_ACEOF
7109
7110
7111cat >>confdefs.h <<\_ACEOF
7112#define SETEUID_BREAKS_SETUID 1
7113_ACEOF
7114
7115
7116cat >>confdefs.h <<\_ACEOF
7117#define BROKEN_SETREUID 1
7118_ACEOF
7119
7120
7121cat >>confdefs.h <<\_ACEOF
7122#define BROKEN_SETREGID 1
7123_ACEOF
7124
7125
7126cat >>confdefs.h <<\_ACEOF
7127#define DISABLE_LASTLOG 1
7128_ACEOF
7129
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define LOGIN_NEEDS_UTMPX 1
7133_ACEOF
7134
7135
7136cat >>confdefs.h <<\_ACEOF
7137#define SPT_TYPE SPT_REUSEARGV
7138_ACEOF
7139
7140
7141cat >>confdefs.h <<\_ACEOF
7142#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7143_ACEOF
7144
7145
7146cat >>confdefs.h <<\_ACEOF
7147#define PTY_ZEROREAD 1
7148_ACEOF
7149
7150 ;;
7151*-*-cygwin*)
7152 check_for_libcrypt_later=1
7153 LIBS="$LIBS /usr/lib/textreadmode.o"
7154
7155cat >>confdefs.h <<\_ACEOF
7156#define HAVE_CYGWIN 1
7157_ACEOF
7158
7159
7160cat >>confdefs.h <<\_ACEOF
7161#define USE_PIPES 1
7162_ACEOF
7163
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define DISABLE_SHADOW 1
7167_ACEOF
7168
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define IP_TOS_IS_BROKEN 1
7172_ACEOF
7173
7174
7175cat >>confdefs.h <<\_ACEOF
7176#define NO_X11_UNIX_SOCKETS 1
7177_ACEOF
7178
7179
7180cat >>confdefs.h <<\_ACEOF
7181#define NO_IPPORT_RESERVED_CONCEPT 1
7182_ACEOF
7183
7184
7185cat >>confdefs.h <<\_ACEOF
7186#define DISABLE_FD_PASSING 1
7187_ACEOF
7188
7189 ;;
7190*-*-dgux*)
7191 cat >>confdefs.h <<\_ACEOF
7192#define IP_TOS_IS_BROKEN 1
7193_ACEOF
7194
7195 cat >>confdefs.h <<\_ACEOF
7196#define SETEUID_BREAKS_SETUID 1
7197_ACEOF
7198
7199 cat >>confdefs.h <<\_ACEOF
7200#define BROKEN_SETREUID 1
7201_ACEOF
7202
7203 cat >>confdefs.h <<\_ACEOF
7204#define BROKEN_SETREGID 1
7205_ACEOF
7206
7207 ;;
7208*-*-darwin*)
7209 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7210echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7211 if test "$cross_compiling" = yes; then
7212 { echo "$as_me:$LINENO: result: assume it is working" >&5
7213echo "${ECHO_T}assume it is working" >&6; }
7214else
7215 cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h. */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h. */
7221#include <mach-o/dyld.h>
7222main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7223 exit(0);
7224 else
7225 exit(1);
7226}
7227_ACEOF
7228rm -f conftest$ac_exeext
7229if { (ac_try="$ac_link"
7230case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233esac
7234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_link") 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7239 { (case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_try") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 { echo "$as_me:$LINENO: result: working" >&5
7249echo "${ECHO_T}working" >&6; }
7250else
7251 echo "$as_me: program exited with status $ac_status" >&5
7252echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255( exit $ac_status )
7256{ echo "$as_me:$LINENO: result: buggy" >&5
7257echo "${ECHO_T}buggy" >&6; }
7258
7259cat >>confdefs.h <<\_ACEOF
7260#define BROKEN_GETADDRINFO 1
7261_ACEOF
7262
7263fi
7264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7265fi
7266
7267
7268 cat >>confdefs.h <<\_ACEOF
7269#define SETEUID_BREAKS_SETUID 1
7270_ACEOF
7271
7272 cat >>confdefs.h <<\_ACEOF
7273#define BROKEN_SETREUID 1
7274_ACEOF
7275
7276 cat >>confdefs.h <<\_ACEOF
7277#define BROKEN_SETREGID 1
7278_ACEOF
7279
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define BROKEN_GLOB 1
7283_ACEOF
7284
7285
7286cat >>confdefs.h <<_ACEOF
7287#define BIND_8_COMPAT 1
7288_ACEOF
7289
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define SSH_TUN_FREEBSD 1
7293_ACEOF
7294
7295
7296cat >>confdefs.h <<\_ACEOF
7297#define SSH_TUN_COMPAT_AF 1
7298_ACEOF
7299
7300
7301cat >>confdefs.h <<\_ACEOF
7302#define SSH_TUN_PREPEND_AF 1
7303_ACEOF
7304
7305
7306 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7307echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7308if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h. */
7317$ac_includes_default
7318int
7319main ()
7320{
7321#ifndef AU_IPv4
7322 (void) AU_IPv4;
7323#endif
7324
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext
7330if { (ac_try="$ac_compile"
7331case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334esac
7335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl_AU_IPv4=yes
7347else
7348 echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_have_decl_AU_IPv4=no
7352fi
7353
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7357echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7358if test $ac_cv_have_decl_AU_IPv4 = yes; then
7359 :
7360else
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define AU_IPv4 0
7364_ACEOF
7365
7366 #include <bsm/audit.h>
7367
7368fi
7369
7370 ;;
7371*-*-dragonfly*)
7372 SSHDLIBS="$SSHDLIBS -lcrypt"
7373 ;;
7374*-*-hpux*)
7375 # first we define all of the options common to all HP-UX releases
7376 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7377 IPADDR_IN_DISPLAY=yes
7378 cat >>confdefs.h <<\_ACEOF
7379#define USE_PIPES 1
7380_ACEOF
7381
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define LOGIN_NO_ENDOPT 1
7385_ACEOF
7386
7387 cat >>confdefs.h <<\_ACEOF
7388#define LOGIN_NEEDS_UTMPX 1
7389_ACEOF
7390
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define LOCKED_PASSWD_STRING "*"
7394_ACEOF
7395
7396 cat >>confdefs.h <<\_ACEOF
7397#define SPT_TYPE SPT_PSTAT
7398_ACEOF
7399
7400 MAIL="/var/mail/username"
7401 LIBS="$LIBS -lsec"
7402
7403{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7404echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7405if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 ac_check_lib_save_LIBS=$LIBS
7409LIBS="-lxnet $LIBS"
7410cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h. */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h. */
7416
7417/* Override any GCC internal prototype to avoid an error.
7418 Use char because int might match the return type of a GCC
7419 builtin and then its argument prototype would still apply. */
7420#ifdef __cplusplus
7421extern "C"
7422#endif
7423char t_error ();
7424int
7425main ()
7426{
7427return t_error ();
7428 ;
7429 return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext conftest$ac_exeext
7433if { (ac_try="$ac_link"
7434case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437esac
7438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_link") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest$ac_exeext &&
7449 $as_test_x conftest$ac_exeext; then
7450 ac_cv_lib_xnet_t_error=yes
7451else
7452 echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_lib_xnet_t_error=no
7456fi
7457
7458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7459 conftest$ac_exeext conftest.$ac_ext
7460LIBS=$ac_check_lib_save_LIBS
7461fi
7462{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7463echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7464if test $ac_cv_lib_xnet_t_error = yes; then
7465 cat >>confdefs.h <<_ACEOF
7466#define HAVE_LIBXNET 1
7467_ACEOF
7468
7469 LIBS="-lxnet $LIBS"
7470
7471else
7472 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7473echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7474 { (exit 1); exit 1; }; }
7475fi
7476
7477
7478 # next, we define all of the options specific to major releases
7479 case "$host" in
7480 *-*-hpux10*)
7481 if test -z "$GCC"; then
7482 CFLAGS="$CFLAGS -Ae"
7483 fi
7484 ;;
7485 *-*-hpux11*)
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define PAM_SUN_CODEBASE 1
7489_ACEOF
7490
7491
7492cat >>confdefs.h <<\_ACEOF
7493#define DISABLE_UTMP 1
7494_ACEOF
7495
7496
7497cat >>confdefs.h <<\_ACEOF
7498#define USE_BTMP 1
7499_ACEOF
7500
7501 check_for_hpux_broken_getaddrinfo=1
7502 check_for_conflicting_getspnam=1
7503 ;;
7504 esac
7505
7506 # lastly, we define options specific to minor releases
7507 case "$host" in
7508 *-*-hpux10.26)
7509
7510cat >>confdefs.h <<\_ACEOF
7511#define HAVE_SECUREWARE 1
7512_ACEOF
7513
7514 disable_ptmx_check=yes
7515 LIBS="$LIBS -lsecpw"
7516 ;;
7517 esac
7518 ;;
7519*-*-irix5*)
7520 PATH="$PATH:/usr/etc"
7521
7522cat >>confdefs.h <<\_ACEOF
7523#define BROKEN_INET_NTOA 1
7524_ACEOF
7525
7526 cat >>confdefs.h <<\_ACEOF
7527#define SETEUID_BREAKS_SETUID 1
7528_ACEOF
7529
7530 cat >>confdefs.h <<\_ACEOF
7531#define BROKEN_SETREUID 1
7532_ACEOF
7533
7534 cat >>confdefs.h <<\_ACEOF
7535#define BROKEN_SETREGID 1
7536_ACEOF
7537
7538
7539cat >>confdefs.h <<\_ACEOF
7540#define WITH_ABBREV_NO_TTY 1
7541_ACEOF
7542
7543 cat >>confdefs.h <<\_ACEOF
7544#define LOCKED_PASSWD_STRING "*LK*"
7545_ACEOF
7546
7547 ;;
7548*-*-irix6*)
7549 PATH="$PATH:/usr/etc"
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define WITH_IRIX_ARRAY 1
7553_ACEOF
7554
7555
7556cat >>confdefs.h <<\_ACEOF
7557#define WITH_IRIX_PROJECT 1
7558_ACEOF
7559
7560
7561cat >>confdefs.h <<\_ACEOF
7562#define WITH_IRIX_AUDIT 1
7563_ACEOF
7564
7565 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7566echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7567if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7578#define jlimit_startjob innocuous_jlimit_startjob
7579
7580/* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char jlimit_startjob (); below.
7582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583 <limits.h> exists even on freestanding compilers. */
7584
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590
7591#undef jlimit_startjob
7592
7593/* Override any GCC internal prototype to avoid an error.
7594 Use char because int might match the return type of a GCC
7595 builtin and then its argument prototype would still apply. */
7596#ifdef __cplusplus
7597extern "C"
7598#endif
7599char jlimit_startjob ();
7600/* The GNU C library defines this for functions which it implements
7601 to always fail with ENOSYS. Some functions are actually named
7602 something starting with __ and the normal name is an alias. */
7603#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7604choke me
7605#endif
7606
7607int
7608main ()
7609{
7610return jlimit_startjob ();
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (ac_try="$ac_link"
7617case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620esac
7621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_link") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest$ac_exeext &&
7632 $as_test_x conftest$ac_exeext; then
7633 ac_cv_func_jlimit_startjob=yes
7634else
7635 echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_cv_func_jlimit_startjob=no
7639fi
7640
7641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 conftest$ac_exeext conftest.$ac_ext
7643fi
7644{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7645echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7646if test $ac_cv_func_jlimit_startjob = yes; then
7647
7648cat >>confdefs.h <<\_ACEOF
7649#define WITH_IRIX_JOBS 1
7650_ACEOF
7651
7652fi
7653
7654 cat >>confdefs.h <<\_ACEOF
7655#define BROKEN_INET_NTOA 1
7656_ACEOF
7657
7658 cat >>confdefs.h <<\_ACEOF
7659#define SETEUID_BREAKS_SETUID 1
7660_ACEOF
7661
7662 cat >>confdefs.h <<\_ACEOF
7663#define BROKEN_SETREUID 1
7664_ACEOF
7665
7666 cat >>confdefs.h <<\_ACEOF
7667#define BROKEN_SETREGID 1
7668_ACEOF
7669
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define BROKEN_UPDWTMPX 1
7673_ACEOF
7674
7675 cat >>confdefs.h <<\_ACEOF
7676#define WITH_ABBREV_NO_TTY 1
7677_ACEOF
7678
7679 cat >>confdefs.h <<\_ACEOF
7680#define LOCKED_PASSWD_STRING "*LK*"
7681_ACEOF
7682
7683 ;;
7684*-*-linux*)
7685 no_dev_ptmx=1
7686 check_for_libcrypt_later=1
7687 check_for_openpty_ctty_bug=1
7688
7689cat >>confdefs.h <<\_ACEOF
7637#define DONT_TRY_OTHER_AF 1
7638_ACEOF
7639
7640
7641cat >>confdefs.h <<\_ACEOF
7642#define PAM_TTY_KLUDGE 1
7643_ACEOF
7644
7645
7646cat >>confdefs.h <<\_ACEOF
7647#define LOCKED_PASSWD_PREFIX "!"
7648_ACEOF
7649
7650 cat >>confdefs.h <<\_ACEOF
7651#define SPT_TYPE SPT_REUSEARGV
7652_ACEOF
7653
7654
7655cat >>confdefs.h <<\_ACEOF
7656#define LINK_OPNOTSUPP_ERRNO EPERM
7657_ACEOF
7658
7659
7660cat >>confdefs.h <<\_ACEOF
7661#define _PATH_BTMP "/var/log/btmp"
7662_ACEOF
7663
7664 cat >>confdefs.h <<\_ACEOF
7665#define USE_BTMP 1
7666_ACEOF
7667
7668 inet6_default_4in6=yes
7669 case `uname -r` in
7670 1.*|2.0.*)
7671
7672cat >>confdefs.h <<\_ACEOF
7673#define BROKEN_CMSG_TYPE 1
7674_ACEOF
7675
7676 ;;
7677 esac
7678 # tun(4) forwarding compat code
7679
7680for ac_header in linux/if_tun.h
7681do
7682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688fi
7689ac_res=`eval echo '${'$as_ac_Header'}'`
7690 { echo "$as_me:$LINENO: result: $ac_res" >&5
7691echo "${ECHO_T}$ac_res" >&6; }
7692else
7693 # Is the header compilable?
7694{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7696cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h. */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h. */
7702$ac_includes_default
7703#include <$ac_header>
7704_ACEOF
7705rm -f conftest.$ac_objext
7706if { (ac_try="$ac_compile"
7707case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710esac
7711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 ac_header_compiler=yes
7723else
7724 echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 ac_header_compiler=no
7728fi
7729
7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7732echo "${ECHO_T}$ac_header_compiler" >&6; }
7733
7734# Is the header present?
7735{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7737cat >conftest.$ac_ext <<_ACEOF
7738/* confdefs.h. */
7739_ACEOF
7740cat confdefs.h >>conftest.$ac_ext
7741cat >>conftest.$ac_ext <<_ACEOF
7742/* end confdefs.h. */
7743#include <$ac_header>
7744_ACEOF
7745if { (ac_try="$ac_cpp conftest.$ac_ext"
7746case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } >/dev/null && {
7758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 }; then
7761 ac_header_preproc=yes
7762else
7763 echo "$as_me: failed program was:" >&5
7764sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_header_preproc=no
7767fi
7768
7769rm -f conftest.err conftest.$ac_ext
7770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7771echo "${ECHO_T}$ac_header_preproc" >&6; }
7772
7773# So? What about this header?
7774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7775 yes:no: )
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7780 ac_header_preproc=yes
7781 ;;
7782 no:yes:* )
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7795 ( cat <<\_ASBOX
7796## ------------------------------------------- ##
7797## Report this to openssh-unix-dev@mindrot.org ##
7798## ------------------------------------------- ##
7799_ASBOX
7800 ) | sed "s/^/$as_me: WARNING: /" >&2
7801 ;;
7802esac
7803{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 eval "$as_ac_Header=\$ac_header_preproc"
7809fi
7810ac_res=`eval echo '${'$as_ac_Header'}'`
7811 { echo "$as_me:$LINENO: result: $ac_res" >&5
7812echo "${ECHO_T}$ac_res" >&6; }
7813
7814fi
7815if test `eval echo '${'$as_ac_Header'}'` = yes; then
7816 cat >>confdefs.h <<_ACEOF
7817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7818_ACEOF
7819
7820fi
7821
7822done
7823
7824 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7825
7826cat >>confdefs.h <<\_ACEOF
7827#define SSH_TUN_LINUX 1
7828_ACEOF
7829
7830
7831cat >>confdefs.h <<\_ACEOF
7832#define SSH_TUN_COMPAT_AF 1
7833_ACEOF
7834
7835
7836cat >>confdefs.h <<\_ACEOF
7837#define SSH_TUN_PREPEND_AF 1
7838_ACEOF
7839
7840 fi
7841 ;;
7842mips-sony-bsd|mips-sony-newsos4)
7843
7844cat >>confdefs.h <<\_ACEOF
7845#define NEED_SETPGRP 1
7846_ACEOF
7847
7848 SONY=1
7849 ;;
7850*-*-netbsd*)
7851 check_for_libcrypt_before=1
7852 if test "x$withval" != "xno" ; then
7853 need_dash_r=1
7854 fi
7855
7856cat >>confdefs.h <<\_ACEOF
7857#define SSH_TUN_FREEBSD 1
7858_ACEOF
7859
7860 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7861 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7862echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7863if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865fi
7866{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7867echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7868else
7869 # Is the header compilable?
7870{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7871echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7872cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h. */
7878$ac_includes_default
7879#include <net/if_tap.h>
7880_ACEOF
7881rm -f conftest.$ac_objext
7882if { (ac_try="$ac_compile"
7883case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886esac
7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_compile") 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && {
7895 test -z "$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7897 } && test -s conftest.$ac_objext; then
7898 ac_header_compiler=yes
7899else
7900 echo "$as_me: failed program was:" >&5
7901sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 ac_header_compiler=no
7904fi
7905
7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7908echo "${ECHO_T}$ac_header_compiler" >&6; }
7909
7910# Is the header present?
7911{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7912echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7913cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
7919#include <net/if_tap.h>
7920_ACEOF
7921if { (ac_try="$ac_cpp conftest.$ac_ext"
7922case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925esac
7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } >/dev/null && {
7934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 }; then
7937 ac_header_preproc=yes
7938else
7939 echo "$as_me: failed program was:" >&5
7940sed 's/^/| /' conftest.$ac_ext >&5
7941
7942 ac_header_preproc=no
7943fi
7944
7945rm -f conftest.err conftest.$ac_ext
7946{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7947echo "${ECHO_T}$ac_header_preproc" >&6; }
7948
7949# So? What about this header?
7950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7951 yes:no: )
7952 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7953echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7955echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7956 ac_header_preproc=yes
7957 ;;
7958 no:yes:* )
7959 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7960echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7961 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7962echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7963 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7964echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7965 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7966echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7967 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7968echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7969 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7970echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7971 ( cat <<\_ASBOX
7972## ------------------------------------------- ##
7973## Report this to openssh-unix-dev@mindrot.org ##
7974## ------------------------------------------- ##
7975_ASBOX
7976 ) | sed "s/^/$as_me: WARNING: /" >&2
7977 ;;
7978esac
7979{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7980echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7981if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 ac_cv_header_net_if_tap_h=$ac_header_preproc
7985fi
7986{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7987echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7988
7989fi
7990if test $ac_cv_header_net_if_tap_h = yes; then
7991 :
7992else
7993
7994cat >>confdefs.h <<\_ACEOF
7995#define SSH_TUN_NO_L2 1
7996_ACEOF
7997
7998fi
7999
8000
8001
8002cat >>confdefs.h <<\_ACEOF
8003#define SSH_TUN_PREPEND_AF 1
8004_ACEOF
8005
8006 ;;
8007*-*-freebsd*)
8008 check_for_libcrypt_later=1
8009
8010cat >>confdefs.h <<\_ACEOF
8011#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8012_ACEOF
8013
8014
8015cat >>confdefs.h <<\_ACEOF
8016#define SSH_TUN_FREEBSD 1
8017_ACEOF
8018
8019 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8020 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8021echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8022if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024fi
8025{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8026echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8027else
8028 # Is the header compilable?
8029{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8030echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8031cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
8037$ac_includes_default
8038#include <net/if_tap.h>
8039_ACEOF
8040rm -f conftest.$ac_objext
8041if { (ac_try="$ac_compile"
8042case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045esac
8046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_header_compiler=yes
8058else
8059 echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 ac_header_compiler=no
8063fi
8064
8065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067echo "${ECHO_T}$ac_header_compiler" >&6; }
8068
8069# Is the header present?
8070{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8071echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8072cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078#include <net/if_tap.h>
8079_ACEOF
8080if { (ac_try="$ac_cpp conftest.$ac_ext"
8081case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084esac
8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } >/dev/null && {
8093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 }; then
8096 ac_header_preproc=yes
8097else
8098 echo "$as_me: failed program was:" >&5
8099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 ac_header_preproc=no
8102fi
8103
8104rm -f conftest.err conftest.$ac_ext
8105{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8106echo "${ECHO_T}$ac_header_preproc" >&6; }
8107
8108# So? What about this header?
8109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8110 yes:no: )
8111 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8112echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8113 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8114echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8115 ac_header_preproc=yes
8116 ;;
8117 no:yes:* )
8118 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8119echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8120 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8121echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8122 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8123echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8125echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8126 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8127echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8129echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8130 ( cat <<\_ASBOX
8131## ------------------------------------------- ##
8132## Report this to openssh-unix-dev@mindrot.org ##
8133## ------------------------------------------- ##
8134_ASBOX
8135 ) | sed "s/^/$as_me: WARNING: /" >&2
8136 ;;
8137esac
8138{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8139echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8140if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143 ac_cv_header_net_if_tap_h=$ac_header_preproc
8144fi
8145{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8146echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8147
8148fi
8149if test $ac_cv_header_net_if_tap_h = yes; then
8150 :
8151else
8152
8153cat >>confdefs.h <<\_ACEOF
8154#define SSH_TUN_NO_L2 1
8155_ACEOF
8156
8157fi
8158
8159
8160
8161cat >>confdefs.h <<\_ACEOF
8162#define BROKEN_GLOB 1
8163_ACEOF
8164
8165 ;;
8166*-*-bsdi*)
8167 cat >>confdefs.h <<\_ACEOF
8168#define SETEUID_BREAKS_SETUID 1
8169_ACEOF
8170
8171 cat >>confdefs.h <<\_ACEOF
8172#define BROKEN_SETREUID 1
8173_ACEOF
8174
8175 cat >>confdefs.h <<\_ACEOF
8176#define BROKEN_SETREGID 1
8177_ACEOF
8178
8179 ;;
8180*-next-*)
8181 conf_lastlog_location="/usr/adm/lastlog"
8182 conf_utmp_location=/etc/utmp
8183 conf_wtmp_location=/usr/adm/wtmp
8184 MAIL=/usr/spool/mail
8185
8186cat >>confdefs.h <<\_ACEOF
8187#define HAVE_NEXT 1
8188_ACEOF
8189
8190 cat >>confdefs.h <<\_ACEOF
8191#define BROKEN_REALPATH 1
8192_ACEOF
8193
8194 cat >>confdefs.h <<\_ACEOF
8195#define USE_PIPES 1
8196_ACEOF
8197
8198
8199cat >>confdefs.h <<\_ACEOF
8200#define BROKEN_SAVED_UIDS 1
8201_ACEOF
8202
8203 ;;
8204*-*-openbsd*)
8205
8206cat >>confdefs.h <<\_ACEOF
8207#define HAVE_ATTRIBUTE__SENTINEL__ 1
8208_ACEOF
8209
8210
8211cat >>confdefs.h <<\_ACEOF
8212#define HAVE_ATTRIBUTE__BOUNDED__ 1
8213_ACEOF
8214
8215
8216cat >>confdefs.h <<\_ACEOF
8217#define SSH_TUN_OPENBSD 1
8218_ACEOF
8219
8220
8221cat >>confdefs.h <<\_ACEOF
8222#define SYSLOG_R_SAFE_IN_SIGHAND 1
8223_ACEOF
8224
8225 ;;
8226*-*-solaris*)
8227 if test "x$withval" != "xno" ; then
8228 need_dash_r=1
8229 fi
8230 cat >>confdefs.h <<\_ACEOF
8231#define PAM_SUN_CODEBASE 1
8232_ACEOF
8233
8234 cat >>confdefs.h <<\_ACEOF
8235#define LOGIN_NEEDS_UTMPX 1
8236_ACEOF
8237
8238
8239cat >>confdefs.h <<\_ACEOF
8240#define LOGIN_NEEDS_TERM 1
8241_ACEOF
8242
8243 cat >>confdefs.h <<\_ACEOF
8244#define PAM_TTY_KLUDGE 1
8245_ACEOF
8246
8247
8248cat >>confdefs.h <<\_ACEOF
8249#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8250_ACEOF
8251
8252 cat >>confdefs.h <<\_ACEOF
8253#define LOCKED_PASSWD_STRING "*LK*"
8254_ACEOF
8255
8256 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8257
8258cat >>confdefs.h <<\_ACEOF
8259#define SSHD_ACQUIRES_CTTY 1
8260_ACEOF
8261
8262
8263cat >>confdefs.h <<\_ACEOF
8264#define PASSWD_NEEDS_USERNAME 1
8265_ACEOF
8266
8267 external_path_file=/etc/default/login
8268 # hardwire lastlog location (can't detect it on some versions)
8269 conf_lastlog_location="/var/adm/lastlog"
8270 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8271echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8272 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8273 if test "$sol2ver" -ge 8; then
8274 { echo "$as_me:$LINENO: result: yes" >&5
8275echo "${ECHO_T}yes" >&6; }
8276 cat >>confdefs.h <<\_ACEOF
8277#define DISABLE_UTMP 1
8278_ACEOF
8279
8280
8281cat >>confdefs.h <<\_ACEOF
8282#define DISABLE_WTMP 1
8283_ACEOF
8284
8285 else
8286 { echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6; }
8288 fi
8289
8290# Check whether --with-solaris-contracts was given.
8291if test "${with_solaris_contracts+set}" = set; then
8292 withval=$with_solaris_contracts;
8293 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8294echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8295if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 ac_check_lib_save_LIBS=$LIBS
8299LIBS="-lcontract $LIBS"
8300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306
8307/* Override any GCC internal prototype to avoid an error.
8308 Use char because int might match the return type of a GCC
8309 builtin and then its argument prototype would still apply. */
8310#ifdef __cplusplus
8311extern "C"
8312#endif
8313char ct_tmpl_activate ();
8314int
8315main ()
8316{
8317return ct_tmpl_activate ();
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (ac_try="$ac_link"
8324case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_link") 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } && {
8336 test -z "$ac_c_werror_flag" ||
8337 test ! -s conftest.err
8338 } && test -s conftest$ac_exeext &&
8339 $as_test_x conftest$ac_exeext; then
8340 ac_cv_lib_contract_ct_tmpl_activate=yes
8341else
8342 echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_cv_lib_contract_ct_tmpl_activate=no
8346fi
8347
8348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8349 conftest$ac_exeext conftest.$ac_ext
8350LIBS=$ac_check_lib_save_LIBS
8351fi
8352{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8353echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8354if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8355
8356cat >>confdefs.h <<\_ACEOF
8357#define USE_SOLARIS_PROCESS_CONTRACTS 1
8358_ACEOF
8359
8360 SSHDLIBS="$SSHDLIBS -lcontract"
8361
8362 SPC_MSG="yes"
8363fi
8364
8365
8366fi
8367
8368 ;;
8369*-*-sunos4*)
8370 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8371
8372for ac_func in getpwanam
8373do
8374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8388#define $ac_func innocuous_$ac_func
8389
8390/* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char $ac_func (); below.
8392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393 <limits.h> exists even on freestanding compilers. */
8394
8395#ifdef __STDC__
8396# include <limits.h>
8397#else
8398# include <assert.h>
8399#endif
8400
8401#undef $ac_func
8402
8403/* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
8406#ifdef __cplusplus
8407extern "C"
8408#endif
8409char $ac_func ();
8410/* The GNU C library defines this for functions which it implements
8411 to always fail with ENOSYS. Some functions are actually named
8412 something starting with __ and the normal name is an alias. */
8413#if defined __stub_$ac_func || defined __stub___$ac_func
8414choke me
8415#endif
8416
8417int
8418main ()
8419{
8420return $ac_func ();
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext conftest$ac_exeext
8426if { (ac_try="$ac_link"
8427case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_link") 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest$ac_exeext &&
8442 $as_test_x conftest$ac_exeext; then
8443 eval "$as_ac_var=yes"
8444else
8445 echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 eval "$as_ac_var=no"
8449fi
8450
8451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8452 conftest$ac_exeext conftest.$ac_ext
8453fi
8454ac_res=`eval echo '${'$as_ac_var'}'`
8455 { echo "$as_me:$LINENO: result: $ac_res" >&5
8456echo "${ECHO_T}$ac_res" >&6; }
8457if test `eval echo '${'$as_ac_var'}'` = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8460_ACEOF
8461
8462fi
8463done
8464
8465 cat >>confdefs.h <<\_ACEOF
8466#define PAM_SUN_CODEBASE 1
8467_ACEOF
8468
8469 conf_utmp_location=/etc/utmp
8470 conf_wtmp_location=/var/adm/wtmp
8471 conf_lastlog_location=/var/adm/lastlog
8472 cat >>confdefs.h <<\_ACEOF
8473#define USE_PIPES 1
8474_ACEOF
8475
8476 ;;
8477*-ncr-sysv*)
8478 LIBS="$LIBS -lc89"
8479 cat >>confdefs.h <<\_ACEOF
8480#define USE_PIPES 1
8481_ACEOF
8482
8483 cat >>confdefs.h <<\_ACEOF
8484#define SSHD_ACQUIRES_CTTY 1
8485_ACEOF
8486
8487 cat >>confdefs.h <<\_ACEOF
8488#define SETEUID_BREAKS_SETUID 1
8489_ACEOF
8490
8491 cat >>confdefs.h <<\_ACEOF
8492#define BROKEN_SETREUID 1
8493_ACEOF
8494
8495 cat >>confdefs.h <<\_ACEOF
8496#define BROKEN_SETREGID 1
8497_ACEOF
8498
8499 ;;
8500*-sni-sysv*)
8501 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8502
8503{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8504echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8505if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8507else
8508 ac_check_lib_save_LIBS=$LIBS
8509LIBS="-ldl $LIBS"
8510cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516
8517/* Override any GCC internal prototype to avoid an error.
8518 Use char because int might match the return type of a GCC
8519 builtin and then its argument prototype would still apply. */
8520#ifdef __cplusplus
8521extern "C"
8522#endif
8523char dlsym ();
8524int
8525main ()
8526{
8527return dlsym ();
8528 ;
8529 return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext conftest$ac_exeext
8533if { (ac_try="$ac_link"
8534case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_link") 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && {
8546 test -z "$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8548 } && test -s conftest$ac_exeext &&
8549 $as_test_x conftest$ac_exeext; then
8550 ac_cv_lib_dl_dlsym=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 ac_cv_lib_dl_dlsym=no
8556fi
8557
8558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8559 conftest$ac_exeext conftest.$ac_ext
8560LIBS=$ac_check_lib_save_LIBS
8561fi
8562{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8563echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8564if test $ac_cv_lib_dl_dlsym = yes; then
8565 cat >>confdefs.h <<_ACEOF
8566#define HAVE_LIBDL 1
8567_ACEOF
8568
8569 LIBS="-ldl $LIBS"
8570
8571fi
8572
8573 # -lresolv needs to be at the end of LIBS or DNS lookups break
8574 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8575echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8576if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579 ac_check_lib_save_LIBS=$LIBS
8580LIBS="-lresolv $LIBS"
8581cat >conftest.$ac_ext <<_ACEOF
8582/* confdefs.h. */
8583_ACEOF
8584cat confdefs.h >>conftest.$ac_ext
8585cat >>conftest.$ac_ext <<_ACEOF
8586/* end confdefs.h. */
8587
8588/* Override any GCC internal prototype to avoid an error.
8589 Use char because int might match the return type of a GCC
8590 builtin and then its argument prototype would still apply. */
8591#ifdef __cplusplus
8592extern "C"
8593#endif
8594char res_query ();
8595int
8596main ()
8597{
8598return res_query ();
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603rm -f conftest.$ac_objext conftest$ac_exeext
8604if { (ac_try="$ac_link"
8605case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608esac
8609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_link") 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && {
8617 test -z "$ac_c_werror_flag" ||
8618 test ! -s conftest.err
8619 } && test -s conftest$ac_exeext &&
8620 $as_test_x conftest$ac_exeext; then
8621 ac_cv_lib_resolv_res_query=yes
8622else
8623 echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_cv_lib_resolv_res_query=no
8627fi
8628
8629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8630 conftest$ac_exeext conftest.$ac_ext
8631LIBS=$ac_check_lib_save_LIBS
8632fi
8633{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8634echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8635if test $ac_cv_lib_resolv_res_query = yes; then
8636 LIBS="$LIBS -lresolv"
8637fi
8638
8639 IPADDR_IN_DISPLAY=yes
8640 cat >>confdefs.h <<\_ACEOF
8641#define USE_PIPES 1
8642_ACEOF
8643
8644 cat >>confdefs.h <<\_ACEOF
8645#define IP_TOS_IS_BROKEN 1
8646_ACEOF
8647
8648 cat >>confdefs.h <<\_ACEOF
8649#define SETEUID_BREAKS_SETUID 1
8650_ACEOF
8651
8652 cat >>confdefs.h <<\_ACEOF
8653#define BROKEN_SETREUID 1
8654_ACEOF
8655
8656 cat >>confdefs.h <<\_ACEOF
8657#define BROKEN_SETREGID 1
8658_ACEOF
8659
8660 cat >>confdefs.h <<\_ACEOF
8661#define SSHD_ACQUIRES_CTTY 1
8662_ACEOF
8663
8664 external_path_file=/etc/default/login
8665 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8666 # Attention: always take care to bind libsocket and libnsl before libc,
8667 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8668 ;;
8669# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8670*-*-sysv4.2*)
8671 cat >>confdefs.h <<\_ACEOF
8672#define USE_PIPES 1
8673_ACEOF
8674
8675 cat >>confdefs.h <<\_ACEOF
8676#define SETEUID_BREAKS_SETUID 1
8677_ACEOF
8678
8679 cat >>confdefs.h <<\_ACEOF
8680#define BROKEN_SETREUID 1
8681_ACEOF
8682
8683 cat >>confdefs.h <<\_ACEOF
8684#define BROKEN_SETREGID 1
8685_ACEOF
8686
8687
8688cat >>confdefs.h <<\_ACEOF
8689#define PASSWD_NEEDS_USERNAME 1
8690_ACEOF
8691
8692 cat >>confdefs.h <<\_ACEOF
8693#define LOCKED_PASSWD_STRING "*LK*"
8694_ACEOF
8695
8696 ;;
8697# UnixWare 7.x, OpenUNIX 8
8698*-*-sysv5*)
8699 check_for_libcrypt_later=1
8700
8701cat >>confdefs.h <<\_ACEOF
8702#define UNIXWARE_LONG_PASSWORDS 1
8703_ACEOF
8704
8705 cat >>confdefs.h <<\_ACEOF
8706#define USE_PIPES 1
8707_ACEOF
8708
8709 cat >>confdefs.h <<\_ACEOF
8710#define SETEUID_BREAKS_SETUID 1
8711_ACEOF
8712
8713 cat >>confdefs.h <<\_ACEOF
8714#define BROKEN_SETREUID 1
8715_ACEOF
8716
8717 cat >>confdefs.h <<\_ACEOF
8718#define BROKEN_SETREGID 1
8719_ACEOF
8720
8721 cat >>confdefs.h <<\_ACEOF
8722#define PASSWD_NEEDS_USERNAME 1
8723_ACEOF
8724
8725 case "$host" in
8726 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8727 TEST_SHELL=/u95/bin/sh
8728
8729cat >>confdefs.h <<\_ACEOF
8730#define BROKEN_LIBIAF 1
8731_ACEOF
8732
8733 cat >>confdefs.h <<\_ACEOF
8734#define BROKEN_UPDWTMPX 1
8735_ACEOF
8736
8737 ;;
8738 *) cat >>confdefs.h <<\_ACEOF
8739#define LOCKED_PASSWD_STRING "*LK*"
8740_ACEOF
8741
8742 ;;
8743 esac
8744 ;;
8745*-*-sysv*)
8746 ;;
8747# SCO UNIX and OEM versions of SCO UNIX
8748*-*-sco3.2v4*)
8749 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8750echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8751 { (exit 1); exit 1; }; }
8752 ;;
8753# SCO OpenServer 5.x
8754*-*-sco3.2v5*)
8755 if test -z "$GCC"; then
8756 CFLAGS="$CFLAGS -belf"
8757 fi
8758 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8759 no_dev_ptmx=1
8760 cat >>confdefs.h <<\_ACEOF
8761#define USE_PIPES 1
8762_ACEOF
8763
8764 cat >>confdefs.h <<\_ACEOF
8765#define HAVE_SECUREWARE 1
8766_ACEOF
8767
8768 cat >>confdefs.h <<\_ACEOF
8769#define DISABLE_SHADOW 1
8770_ACEOF
8771
8772 cat >>confdefs.h <<\_ACEOF
8773#define DISABLE_FD_PASSING 1
8774_ACEOF
8775
8776 cat >>confdefs.h <<\_ACEOF
8777#define SETEUID_BREAKS_SETUID 1
8778_ACEOF
8779
8780 cat >>confdefs.h <<\_ACEOF
8781#define BROKEN_SETREUID 1
8782_ACEOF
8783
8784 cat >>confdefs.h <<\_ACEOF
8785#define BROKEN_SETREGID 1
8786_ACEOF
8787
8788 cat >>confdefs.h <<\_ACEOF
8789#define WITH_ABBREV_NO_TTY 1
8790_ACEOF
8791
8792 cat >>confdefs.h <<\_ACEOF
8793#define BROKEN_UPDWTMPX 1
8794_ACEOF
8795
8796 cat >>confdefs.h <<\_ACEOF
8797#define PASSWD_NEEDS_USERNAME 1
8798_ACEOF
8799
8800
8801
8802for ac_func in getluid setluid
8803do
8804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809else
8810 cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h. */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h. */
8816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8818#define $ac_func innocuous_$ac_func
8819
8820/* System header to define __stub macros and hopefully few prototypes,
8821 which can conflict with char $ac_func (); below.
8822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8823 <limits.h> exists even on freestanding compilers. */
8824
8825#ifdef __STDC__
8826# include <limits.h>
8827#else
8828# include <assert.h>
8829#endif
8830
8831#undef $ac_func
8832
8833/* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8836#ifdef __cplusplus
8837extern "C"
8838#endif
8839char $ac_func ();
8840/* The GNU C library defines this for functions which it implements
8841 to always fail with ENOSYS. Some functions are actually named
8842 something starting with __ and the normal name is an alias. */
8843#if defined __stub_$ac_func || defined __stub___$ac_func
8844choke me
8845#endif
8846
8847int
8848main ()
8849{
8850return $ac_func ();
8851 ;
8852 return 0;
8853}
8854_ACEOF
8855rm -f conftest.$ac_objext conftest$ac_exeext
8856if { (ac_try="$ac_link"
8857case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_link") 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } && {
8869 test -z "$ac_c_werror_flag" ||
8870 test ! -s conftest.err
8871 } && test -s conftest$ac_exeext &&
8872 $as_test_x conftest$ac_exeext; then
8873 eval "$as_ac_var=yes"
8874else
8875 echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878 eval "$as_ac_var=no"
8879fi
8880
8881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8882 conftest$ac_exeext conftest.$ac_ext
8883fi
8884ac_res=`eval echo '${'$as_ac_var'}'`
8885 { echo "$as_me:$LINENO: result: $ac_res" >&5
8886echo "${ECHO_T}$ac_res" >&6; }
8887if test `eval echo '${'$as_ac_var'}'` = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8890_ACEOF
8891
8892fi
8893done
8894
8895 MANTYPE=man
8896 TEST_SHELL=ksh
8897 ;;
8898*-*-unicosmk*)
8899
8900cat >>confdefs.h <<\_ACEOF
8901#define NO_SSH_LASTLOG 1
8902_ACEOF
8903
8904 cat >>confdefs.h <<\_ACEOF
8905#define SETEUID_BREAKS_SETUID 1
8906_ACEOF
8907
8908 cat >>confdefs.h <<\_ACEOF
8909#define BROKEN_SETREUID 1
8910_ACEOF
8911
8912 cat >>confdefs.h <<\_ACEOF
8913#define BROKEN_SETREGID 1
8914_ACEOF
8915
8916 cat >>confdefs.h <<\_ACEOF
8917#define USE_PIPES 1
8918_ACEOF
8919
8920 cat >>confdefs.h <<\_ACEOF
8921#define DISABLE_FD_PASSING 1
8922_ACEOF
8923
8924 LDFLAGS="$LDFLAGS"
8925 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8926 MANTYPE=cat
8927 ;;
8928*-*-unicosmp*)
8929 cat >>confdefs.h <<\_ACEOF
8930#define SETEUID_BREAKS_SETUID 1
8931_ACEOF
8932
8933 cat >>confdefs.h <<\_ACEOF
8934#define BROKEN_SETREUID 1
8935_ACEOF
8936
8937 cat >>confdefs.h <<\_ACEOF
8938#define BROKEN_SETREGID 1
8939_ACEOF
8940
8941 cat >>confdefs.h <<\_ACEOF
8942#define WITH_ABBREV_NO_TTY 1
8943_ACEOF
8944
8945 cat >>confdefs.h <<\_ACEOF
8946#define USE_PIPES 1
8947_ACEOF
8948
8949 cat >>confdefs.h <<\_ACEOF
8950#define DISABLE_FD_PASSING 1
8951_ACEOF
8952
8953 LDFLAGS="$LDFLAGS"
8954 LIBS="$LIBS -lgen -lacid -ldb"
8955 MANTYPE=cat
8956 ;;
8957*-*-unicos*)
8958 cat >>confdefs.h <<\_ACEOF
8959#define SETEUID_BREAKS_SETUID 1
8960_ACEOF
8961
8962 cat >>confdefs.h <<\_ACEOF
8963#define BROKEN_SETREUID 1
8964_ACEOF
8965
8966 cat >>confdefs.h <<\_ACEOF
8967#define BROKEN_SETREGID 1
8968_ACEOF
8969
8970 cat >>confdefs.h <<\_ACEOF
8971#define USE_PIPES 1
8972_ACEOF
8973
8974 cat >>confdefs.h <<\_ACEOF
8975#define DISABLE_FD_PASSING 1
8976_ACEOF
8977
8978 cat >>confdefs.h <<\_ACEOF
8979#define NO_SSH_LASTLOG 1
8980_ACEOF
8981
8982 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8983 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8984 MANTYPE=cat
8985 ;;
8986*-dec-osf*)
8987 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
8988echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
8989 no_osfsia=""
8990
8991# Check whether --with-osfsia was given.
8992if test "${with_osfsia+set}" = set; then
8993 withval=$with_osfsia;
8994 if test "x$withval" = "xno" ; then
8995 { echo "$as_me:$LINENO: result: disabled" >&5
8996echo "${ECHO_T}disabled" >&6; }
8997 no_osfsia=1
8998 fi
8999
9000fi
9001
9002 if test -z "$no_osfsia" ; then
9003 if test -f /etc/sia/matrix.conf; then
9004 { echo "$as_me:$LINENO: result: yes" >&5
9005echo "${ECHO_T}yes" >&6; }
9006
9007cat >>confdefs.h <<\_ACEOF
9008#define HAVE_OSF_SIA 1
9009_ACEOF
9010
9011
9012cat >>confdefs.h <<\_ACEOF
9013#define DISABLE_LOGIN 1
9014_ACEOF
9015
9016 cat >>confdefs.h <<\_ACEOF
9017#define DISABLE_FD_PASSING 1
9018_ACEOF
9019
9020 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9021 SIA_MSG="yes"
9022 else
9023 { echo "$as_me:$LINENO: result: no" >&5
9024echo "${ECHO_T}no" >&6; }
9025
9026cat >>confdefs.h <<\_ACEOF
9027#define LOCKED_PASSWD_SUBSTR "Nologin"
9028_ACEOF
9029
9030 fi
9031 fi
9032 cat >>confdefs.h <<\_ACEOF
9033#define BROKEN_GETADDRINFO 1
9034_ACEOF
9035
9036 cat >>confdefs.h <<\_ACEOF
9037#define SETEUID_BREAKS_SETUID 1
9038_ACEOF
9039
9040 cat >>confdefs.h <<\_ACEOF
9041#define BROKEN_SETREUID 1
9042_ACEOF
9043
9044 cat >>confdefs.h <<\_ACEOF
9045#define BROKEN_SETREGID 1
9046_ACEOF
9047
7690#define PAM_TTY_KLUDGE 1
7691_ACEOF
7692
7693
7694cat >>confdefs.h <<\_ACEOF
7695#define LOCKED_PASSWD_PREFIX "!"
7696_ACEOF
7697
7698 cat >>confdefs.h <<\_ACEOF
7699#define SPT_TYPE SPT_REUSEARGV
7700_ACEOF
7701
7702
7703cat >>confdefs.h <<\_ACEOF
7704#define LINK_OPNOTSUPP_ERRNO EPERM
7705_ACEOF
7706
7707
7708cat >>confdefs.h <<\_ACEOF
7709#define _PATH_BTMP "/var/log/btmp"
7710_ACEOF
7711
7712 cat >>confdefs.h <<\_ACEOF
7713#define USE_BTMP 1
7714_ACEOF
7715
7716 inet6_default_4in6=yes
7717 case `uname -r` in
7718 1.*|2.0.*)
7719
7720cat >>confdefs.h <<\_ACEOF
7721#define BROKEN_CMSG_TYPE 1
7722_ACEOF
7723
7724 ;;
7725 esac
7726 # tun(4) forwarding compat code
7727
7728for ac_header in linux/if_tun.h
7729do
7730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736fi
7737ac_res=`eval echo '${'$as_ac_Header'}'`
7738 { echo "$as_me:$LINENO: result: $ac_res" >&5
7739echo "${ECHO_T}$ac_res" >&6; }
7740else
7741 # Is the header compilable?
7742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7744cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
7750$ac_includes_default
7751#include <$ac_header>
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (ac_try="$ac_compile"
7755case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7770 ac_header_compiler=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_compiler=no
7776fi
7777
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7780echo "${ECHO_T}$ac_header_compiler" >&6; }
7781
7782# Is the header present?
7783{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7785cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791#include <$ac_header>
7792_ACEOF
7793if { (ac_try="$ac_cpp conftest.$ac_ext"
7794case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } >/dev/null && {
7806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 }; then
7809 ac_header_preproc=yes
7810else
7811 echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_header_preproc=no
7815fi
7816
7817rm -f conftest.err conftest.$ac_ext
7818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819echo "${ECHO_T}$ac_header_preproc" >&6; }
7820
7821# So? What about this header?
7822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7823 yes:no: )
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7828 ac_header_preproc=yes
7829 ;;
7830 no:yes:* )
7831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7843 ( cat <<\_ASBOX
7844## ------------------------------------------- ##
7845## Report this to openssh-unix-dev@mindrot.org ##
7846## ------------------------------------------- ##
7847_ASBOX
7848 ) | sed "s/^/$as_me: WARNING: /" >&2
7849 ;;
7850esac
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 eval "$as_ac_Header=\$ac_header_preproc"
7857fi
7858ac_res=`eval echo '${'$as_ac_Header'}'`
7859 { echo "$as_me:$LINENO: result: $ac_res" >&5
7860echo "${ECHO_T}$ac_res" >&6; }
7861
7862fi
7863if test `eval echo '${'$as_ac_Header'}'` = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866_ACEOF
7867
7868fi
7869
7870done
7871
7872 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7873
7874cat >>confdefs.h <<\_ACEOF
7875#define SSH_TUN_LINUX 1
7876_ACEOF
7877
7878
7879cat >>confdefs.h <<\_ACEOF
7880#define SSH_TUN_COMPAT_AF 1
7881_ACEOF
7882
7883
7884cat >>confdefs.h <<\_ACEOF
7885#define SSH_TUN_PREPEND_AF 1
7886_ACEOF
7887
7888 fi
7889 ;;
7890mips-sony-bsd|mips-sony-newsos4)
7891
7892cat >>confdefs.h <<\_ACEOF
7893#define NEED_SETPGRP 1
7894_ACEOF
7895
7896 SONY=1
7897 ;;
7898*-*-netbsd*)
7899 check_for_libcrypt_before=1
7900 if test "x$withval" != "xno" ; then
7901 need_dash_r=1
7902 fi
7903
7904cat >>confdefs.h <<\_ACEOF
7905#define SSH_TUN_FREEBSD 1
7906_ACEOF
7907
7908 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7909 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7910echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7911if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913fi
7914{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7915echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7916else
7917 # Is the header compilable?
7918{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7919echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7920cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
7926$ac_includes_default
7927#include <net/if_tap.h>
7928_ACEOF
7929rm -f conftest.$ac_objext
7930if { (ac_try="$ac_compile"
7931case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934esac
7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_header_compiler=yes
7947else
7948 echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_header_compiler=no
7952fi
7953
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7956echo "${ECHO_T}$ac_header_compiler" >&6; }
7957
7958# Is the header present?
7959{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7960echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7961cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967#include <net/if_tap.h>
7968_ACEOF
7969if { (ac_try="$ac_cpp conftest.$ac_ext"
7970case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } >/dev/null && {
7982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 }; then
7985 ac_header_preproc=yes
7986else
7987 echo "$as_me: failed program was:" >&5
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_header_preproc=no
7991fi
7992
7993rm -f conftest.err conftest.$ac_ext
7994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7995echo "${ECHO_T}$ac_header_preproc" >&6; }
7996
7997# So? What about this header?
7998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7999 yes:no: )
8000 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8001echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8003echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8004 ac_header_preproc=yes
8005 ;;
8006 no:yes:* )
8007 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8008echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8010echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8012echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8014echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8016echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8017 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8018echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8019 ( cat <<\_ASBOX
8020## ------------------------------------------- ##
8021## Report this to openssh-unix-dev@mindrot.org ##
8022## ------------------------------------------- ##
8023_ASBOX
8024 ) | sed "s/^/$as_me: WARNING: /" >&2
8025 ;;
8026esac
8027{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8028echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8029if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 ac_cv_header_net_if_tap_h=$ac_header_preproc
8033fi
8034{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8035echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8036
8037fi
8038if test $ac_cv_header_net_if_tap_h = yes; then
8039 :
8040else
8041
8042cat >>confdefs.h <<\_ACEOF
8043#define SSH_TUN_NO_L2 1
8044_ACEOF
8045
8046fi
8047
8048
8049
8050cat >>confdefs.h <<\_ACEOF
8051#define SSH_TUN_PREPEND_AF 1
8052_ACEOF
8053
8054 ;;
8055*-*-freebsd*)
8056 check_for_libcrypt_later=1
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8060_ACEOF
8061
8062
8063cat >>confdefs.h <<\_ACEOF
8064#define SSH_TUN_FREEBSD 1
8065_ACEOF
8066
8067 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8068 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8069echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8070if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072fi
8073{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8074echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8075else
8076 # Is the header compilable?
8077{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8078echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8079cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085$ac_includes_default
8086#include <net/if_tap.h>
8087_ACEOF
8088rm -f conftest.$ac_objext
8089if { (ac_try="$ac_compile"
8090case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093esac
8094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_header_compiler=yes
8106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_header_compiler=no
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8115echo "${ECHO_T}$ac_header_compiler" >&6; }
8116
8117# Is the header present?
8118{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8119echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8120cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126#include <net/if_tap.h>
8127_ACEOF
8128if { (ac_try="$ac_cpp conftest.$ac_ext"
8129case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev/null && {
8141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 }; then
8144 ac_header_preproc=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_header_preproc=no
8150fi
8151
8152rm -f conftest.err conftest.$ac_ext
8153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8154echo "${ECHO_T}$ac_header_preproc" >&6; }
8155
8156# So? What about this header?
8157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8158 yes:no: )
8159 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8160echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8162echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8163 ac_header_preproc=yes
8164 ;;
8165 no:yes:* )
8166 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8167echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8169echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8171echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8173echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8175echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8177echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8178 ( cat <<\_ASBOX
8179## ------------------------------------------- ##
8180## Report this to openssh-unix-dev@mindrot.org ##
8181## ------------------------------------------- ##
8182_ASBOX
8183 ) | sed "s/^/$as_me: WARNING: /" >&2
8184 ;;
8185esac
8186{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8187echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8188if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 ac_cv_header_net_if_tap_h=$ac_header_preproc
8192fi
8193{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8194echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8195
8196fi
8197if test $ac_cv_header_net_if_tap_h = yes; then
8198 :
8199else
8200
8201cat >>confdefs.h <<\_ACEOF
8202#define SSH_TUN_NO_L2 1
8203_ACEOF
8204
8205fi
8206
8207
8208
8209cat >>confdefs.h <<\_ACEOF
8210#define BROKEN_GLOB 1
8211_ACEOF
8212
8213 ;;
8214*-*-bsdi*)
8215 cat >>confdefs.h <<\_ACEOF
8216#define SETEUID_BREAKS_SETUID 1
8217_ACEOF
8218
8219 cat >>confdefs.h <<\_ACEOF
8220#define BROKEN_SETREUID 1
8221_ACEOF
8222
8223 cat >>confdefs.h <<\_ACEOF
8224#define BROKEN_SETREGID 1
8225_ACEOF
8226
8227 ;;
8228*-next-*)
8229 conf_lastlog_location="/usr/adm/lastlog"
8230 conf_utmp_location=/etc/utmp
8231 conf_wtmp_location=/usr/adm/wtmp
8232 MAIL=/usr/spool/mail
8233
8234cat >>confdefs.h <<\_ACEOF
8235#define HAVE_NEXT 1
8236_ACEOF
8237
8238 cat >>confdefs.h <<\_ACEOF
8239#define BROKEN_REALPATH 1
8240_ACEOF
8241
8242 cat >>confdefs.h <<\_ACEOF
8243#define USE_PIPES 1
8244_ACEOF
8245
8246
8247cat >>confdefs.h <<\_ACEOF
8248#define BROKEN_SAVED_UIDS 1
8249_ACEOF
8250
8251 ;;
8252*-*-openbsd*)
8253
8254cat >>confdefs.h <<\_ACEOF
8255#define HAVE_ATTRIBUTE__SENTINEL__ 1
8256_ACEOF
8257
8258
8259cat >>confdefs.h <<\_ACEOF
8260#define HAVE_ATTRIBUTE__BOUNDED__ 1
8261_ACEOF
8262
8263
8264cat >>confdefs.h <<\_ACEOF
8265#define SSH_TUN_OPENBSD 1
8266_ACEOF
8267
8268
8269cat >>confdefs.h <<\_ACEOF
8270#define SYSLOG_R_SAFE_IN_SIGHAND 1
8271_ACEOF
8272
8273 ;;
8274*-*-solaris*)
8275 if test "x$withval" != "xno" ; then
8276 need_dash_r=1
8277 fi
8278 cat >>confdefs.h <<\_ACEOF
8279#define PAM_SUN_CODEBASE 1
8280_ACEOF
8281
8282 cat >>confdefs.h <<\_ACEOF
8283#define LOGIN_NEEDS_UTMPX 1
8284_ACEOF
8285
8286
8287cat >>confdefs.h <<\_ACEOF
8288#define LOGIN_NEEDS_TERM 1
8289_ACEOF
8290
8291 cat >>confdefs.h <<\_ACEOF
8292#define PAM_TTY_KLUDGE 1
8293_ACEOF
8294
8295
8296cat >>confdefs.h <<\_ACEOF
8297#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8298_ACEOF
8299
8300 cat >>confdefs.h <<\_ACEOF
8301#define LOCKED_PASSWD_STRING "*LK*"
8302_ACEOF
8303
8304 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8305
8306cat >>confdefs.h <<\_ACEOF
8307#define SSHD_ACQUIRES_CTTY 1
8308_ACEOF
8309
8310
8311cat >>confdefs.h <<\_ACEOF
8312#define PASSWD_NEEDS_USERNAME 1
8313_ACEOF
8314
8315 external_path_file=/etc/default/login
8316 # hardwire lastlog location (can't detect it on some versions)
8317 conf_lastlog_location="/var/adm/lastlog"
8318 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8319echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8320 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8321 if test "$sol2ver" -ge 8; then
8322 { echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6; }
8324 cat >>confdefs.h <<\_ACEOF
8325#define DISABLE_UTMP 1
8326_ACEOF
8327
8328
8329cat >>confdefs.h <<\_ACEOF
8330#define DISABLE_WTMP 1
8331_ACEOF
8332
8333 else
8334 { echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6; }
8336 fi
8337
8338# Check whether --with-solaris-contracts was given.
8339if test "${with_solaris_contracts+set}" = set; then
8340 withval=$with_solaris_contracts;
8341 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8342echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8343if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 ac_check_lib_save_LIBS=$LIBS
8347LIBS="-lcontract $LIBS"
8348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
8354
8355/* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8358#ifdef __cplusplus
8359extern "C"
8360#endif
8361char ct_tmpl_activate ();
8362int
8363main ()
8364{
8365return ct_tmpl_activate ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (ac_try="$ac_link"
8372case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest$ac_exeext &&
8387 $as_test_x conftest$ac_exeext; then
8388 ac_cv_lib_contract_ct_tmpl_activate=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_cv_lib_contract_ct_tmpl_activate=no
8394fi
8395
8396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397 conftest$ac_exeext conftest.$ac_ext
8398LIBS=$ac_check_lib_save_LIBS
8399fi
8400{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8401echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8402if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8403
8404cat >>confdefs.h <<\_ACEOF
8405#define USE_SOLARIS_PROCESS_CONTRACTS 1
8406_ACEOF
8407
8408 SSHDLIBS="$SSHDLIBS -lcontract"
8409
8410 SPC_MSG="yes"
8411fi
8412
8413
8414fi
8415
8416 ;;
8417*-*-sunos4*)
8418 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8419
8420for ac_func in getpwanam
8421do
8422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436#define $ac_func innocuous_$ac_func
8437
8438/* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char $ac_func (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8442
8443#ifdef __STDC__
8444# include <limits.h>
8445#else
8446# include <assert.h>
8447#endif
8448
8449#undef $ac_func
8450
8451/* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454#ifdef __cplusplus
8455extern "C"
8456#endif
8457char $ac_func ();
8458/* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461#if defined __stub_$ac_func || defined __stub___$ac_func
8462choke me
8463#endif
8464
8465int
8466main ()
8467{
8468return $ac_func ();
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (ac_try="$ac_link"
8475case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_link") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest$ac_exeext &&
8490 $as_test_x conftest$ac_exeext; then
8491 eval "$as_ac_var=yes"
8492else
8493 echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 eval "$as_ac_var=no"
8497fi
8498
8499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8500 conftest$ac_exeext conftest.$ac_ext
8501fi
8502ac_res=`eval echo '${'$as_ac_var'}'`
8503 { echo "$as_me:$LINENO: result: $ac_res" >&5
8504echo "${ECHO_T}$ac_res" >&6; }
8505if test `eval echo '${'$as_ac_var'}'` = yes; then
8506 cat >>confdefs.h <<_ACEOF
8507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8508_ACEOF
8509
8510fi
8511done
8512
8513 cat >>confdefs.h <<\_ACEOF
8514#define PAM_SUN_CODEBASE 1
8515_ACEOF
8516
8517 conf_utmp_location=/etc/utmp
8518 conf_wtmp_location=/var/adm/wtmp
8519 conf_lastlog_location=/var/adm/lastlog
8520 cat >>confdefs.h <<\_ACEOF
8521#define USE_PIPES 1
8522_ACEOF
8523
8524 ;;
8525*-ncr-sysv*)
8526 LIBS="$LIBS -lc89"
8527 cat >>confdefs.h <<\_ACEOF
8528#define USE_PIPES 1
8529_ACEOF
8530
8531 cat >>confdefs.h <<\_ACEOF
8532#define SSHD_ACQUIRES_CTTY 1
8533_ACEOF
8534
8535 cat >>confdefs.h <<\_ACEOF
8536#define SETEUID_BREAKS_SETUID 1
8537_ACEOF
8538
8539 cat >>confdefs.h <<\_ACEOF
8540#define BROKEN_SETREUID 1
8541_ACEOF
8542
8543 cat >>confdefs.h <<\_ACEOF
8544#define BROKEN_SETREGID 1
8545_ACEOF
8546
8547 ;;
8548*-sni-sysv*)
8549 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8550
8551{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8552echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8553if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 ac_check_lib_save_LIBS=$LIBS
8557LIBS="-ldl $LIBS"
8558cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char dlsym ();
8572int
8573main ()
8574{
8575return dlsym ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580rm -f conftest.$ac_objext conftest$ac_exeext
8581if { (ac_try="$ac_link"
8582case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext &&
8597 $as_test_x conftest$ac_exeext; then
8598 ac_cv_lib_dl_dlsym=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_cv_lib_dl_dlsym=no
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607 conftest$ac_exeext conftest.$ac_ext
8608LIBS=$ac_check_lib_save_LIBS
8609fi
8610{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8611echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8612if test $ac_cv_lib_dl_dlsym = yes; then
8613 cat >>confdefs.h <<_ACEOF
8614#define HAVE_LIBDL 1
8615_ACEOF
8616
8617 LIBS="-ldl $LIBS"
8618
8619fi
8620
8621 # -lresolv needs to be at the end of LIBS or DNS lookups break
8622 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8623echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8624if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626else
8627 ac_check_lib_save_LIBS=$LIBS
8628LIBS="-lresolv $LIBS"
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635
8636/* Override any GCC internal prototype to avoid an error.
8637 Use char because int might match the return type of a GCC
8638 builtin and then its argument prototype would still apply. */
8639#ifdef __cplusplus
8640extern "C"
8641#endif
8642char res_query ();
8643int
8644main ()
8645{
8646return res_query ();
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
8652if { (ac_try="$ac_link"
8653case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656esac
8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_link") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest$ac_exeext &&
8668 $as_test_x conftest$ac_exeext; then
8669 ac_cv_lib_resolv_res_query=yes
8670else
8671 echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_lib_resolv_res_query=no
8675fi
8676
8677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8678 conftest$ac_exeext conftest.$ac_ext
8679LIBS=$ac_check_lib_save_LIBS
8680fi
8681{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8682echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8683if test $ac_cv_lib_resolv_res_query = yes; then
8684 LIBS="$LIBS -lresolv"
8685fi
8686
8687 IPADDR_IN_DISPLAY=yes
8688 cat >>confdefs.h <<\_ACEOF
8689#define USE_PIPES 1
8690_ACEOF
8691
8692 cat >>confdefs.h <<\_ACEOF
8693#define IP_TOS_IS_BROKEN 1
8694_ACEOF
8695
8696 cat >>confdefs.h <<\_ACEOF
8697#define SETEUID_BREAKS_SETUID 1
8698_ACEOF
8699
8700 cat >>confdefs.h <<\_ACEOF
8701#define BROKEN_SETREUID 1
8702_ACEOF
8703
8704 cat >>confdefs.h <<\_ACEOF
8705#define BROKEN_SETREGID 1
8706_ACEOF
8707
8708 cat >>confdefs.h <<\_ACEOF
8709#define SSHD_ACQUIRES_CTTY 1
8710_ACEOF
8711
8712 external_path_file=/etc/default/login
8713 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8714 # Attention: always take care to bind libsocket and libnsl before libc,
8715 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8716 ;;
8717# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8718*-*-sysv4.2*)
8719 cat >>confdefs.h <<\_ACEOF
8720#define USE_PIPES 1
8721_ACEOF
8722
8723 cat >>confdefs.h <<\_ACEOF
8724#define SETEUID_BREAKS_SETUID 1
8725_ACEOF
8726
8727 cat >>confdefs.h <<\_ACEOF
8728#define BROKEN_SETREUID 1
8729_ACEOF
8730
8731 cat >>confdefs.h <<\_ACEOF
8732#define BROKEN_SETREGID 1
8733_ACEOF
8734
8735
8736cat >>confdefs.h <<\_ACEOF
8737#define PASSWD_NEEDS_USERNAME 1
8738_ACEOF
8739
8740 cat >>confdefs.h <<\_ACEOF
8741#define LOCKED_PASSWD_STRING "*LK*"
8742_ACEOF
8743
8744 ;;
8745# UnixWare 7.x, OpenUNIX 8
8746*-*-sysv5*)
8747 check_for_libcrypt_later=1
8748
8749cat >>confdefs.h <<\_ACEOF
8750#define UNIXWARE_LONG_PASSWORDS 1
8751_ACEOF
8752
8753 cat >>confdefs.h <<\_ACEOF
8754#define USE_PIPES 1
8755_ACEOF
8756
8757 cat >>confdefs.h <<\_ACEOF
8758#define SETEUID_BREAKS_SETUID 1
8759_ACEOF
8760
8761 cat >>confdefs.h <<\_ACEOF
8762#define BROKEN_SETREUID 1
8763_ACEOF
8764
8765 cat >>confdefs.h <<\_ACEOF
8766#define BROKEN_SETREGID 1
8767_ACEOF
8768
8769 cat >>confdefs.h <<\_ACEOF
8770#define PASSWD_NEEDS_USERNAME 1
8771_ACEOF
8772
8773 case "$host" in
8774 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8775 TEST_SHELL=/u95/bin/sh
8776
8777cat >>confdefs.h <<\_ACEOF
8778#define BROKEN_LIBIAF 1
8779_ACEOF
8780
8781 cat >>confdefs.h <<\_ACEOF
8782#define BROKEN_UPDWTMPX 1
8783_ACEOF
8784
8785 ;;
8786 *) cat >>confdefs.h <<\_ACEOF
8787#define LOCKED_PASSWD_STRING "*LK*"
8788_ACEOF
8789
8790 ;;
8791 esac
8792 ;;
8793*-*-sysv*)
8794 ;;
8795# SCO UNIX and OEM versions of SCO UNIX
8796*-*-sco3.2v4*)
8797 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8798echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8799 { (exit 1); exit 1; }; }
8800 ;;
8801# SCO OpenServer 5.x
8802*-*-sco3.2v5*)
8803 if test -z "$GCC"; then
8804 CFLAGS="$CFLAGS -belf"
8805 fi
8806 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8807 no_dev_ptmx=1
8808 cat >>confdefs.h <<\_ACEOF
8809#define USE_PIPES 1
8810_ACEOF
8811
8812 cat >>confdefs.h <<\_ACEOF
8813#define HAVE_SECUREWARE 1
8814_ACEOF
8815
8816 cat >>confdefs.h <<\_ACEOF
8817#define DISABLE_SHADOW 1
8818_ACEOF
8819
8820 cat >>confdefs.h <<\_ACEOF
8821#define DISABLE_FD_PASSING 1
8822_ACEOF
8823
8824 cat >>confdefs.h <<\_ACEOF
8825#define SETEUID_BREAKS_SETUID 1
8826_ACEOF
8827
8828 cat >>confdefs.h <<\_ACEOF
8829#define BROKEN_SETREUID 1
8830_ACEOF
8831
8832 cat >>confdefs.h <<\_ACEOF
8833#define BROKEN_SETREGID 1
8834_ACEOF
8835
8836 cat >>confdefs.h <<\_ACEOF
8837#define WITH_ABBREV_NO_TTY 1
8838_ACEOF
8839
8840 cat >>confdefs.h <<\_ACEOF
8841#define BROKEN_UPDWTMPX 1
8842_ACEOF
8843
8844 cat >>confdefs.h <<\_ACEOF
8845#define PASSWD_NEEDS_USERNAME 1
8846_ACEOF
8847
8848
8849
8850for ac_func in getluid setluid
8851do
8852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8866#define $ac_func innocuous_$ac_func
8867
8868/* System header to define __stub macros and hopefully few prototypes,
8869 which can conflict with char $ac_func (); below.
8870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8871 <limits.h> exists even on freestanding compilers. */
8872
8873#ifdef __STDC__
8874# include <limits.h>
8875#else
8876# include <assert.h>
8877#endif
8878
8879#undef $ac_func
8880
8881/* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884#ifdef __cplusplus
8885extern "C"
8886#endif
8887char $ac_func ();
8888/* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891#if defined __stub_$ac_func || defined __stub___$ac_func
8892choke me
8893#endif
8894
8895int
8896main ()
8897{
8898return $ac_func ();
8899 ;
8900 return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (ac_try="$ac_link"
8905case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908esac
8909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_link") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest$ac_exeext &&
8920 $as_test_x conftest$ac_exeext; then
8921 eval "$as_ac_var=yes"
8922else
8923 echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 eval "$as_ac_var=no"
8927fi
8928
8929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8930 conftest$ac_exeext conftest.$ac_ext
8931fi
8932ac_res=`eval echo '${'$as_ac_var'}'`
8933 { echo "$as_me:$LINENO: result: $ac_res" >&5
8934echo "${ECHO_T}$ac_res" >&6; }
8935if test `eval echo '${'$as_ac_var'}'` = yes; then
8936 cat >>confdefs.h <<_ACEOF
8937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8938_ACEOF
8939
8940fi
8941done
8942
8943 MANTYPE=man
8944 TEST_SHELL=ksh
8945 ;;
8946*-*-unicosmk*)
8947
8948cat >>confdefs.h <<\_ACEOF
8949#define NO_SSH_LASTLOG 1
8950_ACEOF
8951
8952 cat >>confdefs.h <<\_ACEOF
8953#define SETEUID_BREAKS_SETUID 1
8954_ACEOF
8955
8956 cat >>confdefs.h <<\_ACEOF
8957#define BROKEN_SETREUID 1
8958_ACEOF
8959
8960 cat >>confdefs.h <<\_ACEOF
8961#define BROKEN_SETREGID 1
8962_ACEOF
8963
8964 cat >>confdefs.h <<\_ACEOF
8965#define USE_PIPES 1
8966_ACEOF
8967
8968 cat >>confdefs.h <<\_ACEOF
8969#define DISABLE_FD_PASSING 1
8970_ACEOF
8971
8972 LDFLAGS="$LDFLAGS"
8973 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8974 MANTYPE=cat
8975 ;;
8976*-*-unicosmp*)
8977 cat >>confdefs.h <<\_ACEOF
8978#define SETEUID_BREAKS_SETUID 1
8979_ACEOF
8980
8981 cat >>confdefs.h <<\_ACEOF
8982#define BROKEN_SETREUID 1
8983_ACEOF
8984
8985 cat >>confdefs.h <<\_ACEOF
8986#define BROKEN_SETREGID 1
8987_ACEOF
8988
8989 cat >>confdefs.h <<\_ACEOF
8990#define WITH_ABBREV_NO_TTY 1
8991_ACEOF
8992
8993 cat >>confdefs.h <<\_ACEOF
8994#define USE_PIPES 1
8995_ACEOF
8996
8997 cat >>confdefs.h <<\_ACEOF
8998#define DISABLE_FD_PASSING 1
8999_ACEOF
9000
9001 LDFLAGS="$LDFLAGS"
9002 LIBS="$LIBS -lgen -lacid -ldb"
9003 MANTYPE=cat
9004 ;;
9005*-*-unicos*)
9006 cat >>confdefs.h <<\_ACEOF
9007#define SETEUID_BREAKS_SETUID 1
9008_ACEOF
9009
9010 cat >>confdefs.h <<\_ACEOF
9011#define BROKEN_SETREUID 1
9012_ACEOF
9013
9014 cat >>confdefs.h <<\_ACEOF
9015#define BROKEN_SETREGID 1
9016_ACEOF
9017
9018 cat >>confdefs.h <<\_ACEOF
9019#define USE_PIPES 1
9020_ACEOF
9021
9022 cat >>confdefs.h <<\_ACEOF
9023#define DISABLE_FD_PASSING 1
9024_ACEOF
9025
9026 cat >>confdefs.h <<\_ACEOF
9027#define NO_SSH_LASTLOG 1
9028_ACEOF
9029
9030 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9031 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9032 MANTYPE=cat
9033 ;;
9034*-dec-osf*)
9035 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9036echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9037 no_osfsia=""
9038
9039# Check whether --with-osfsia was given.
9040if test "${with_osfsia+set}" = set; then
9041 withval=$with_osfsia;
9042 if test "x$withval" = "xno" ; then
9043 { echo "$as_me:$LINENO: result: disabled" >&5
9044echo "${ECHO_T}disabled" >&6; }
9045 no_osfsia=1
9046 fi
9047
9048fi
9049
9050 if test -z "$no_osfsia" ; then
9051 if test -f /etc/sia/matrix.conf; then
9052 { echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6; }
9054
9055cat >>confdefs.h <<\_ACEOF
9056#define HAVE_OSF_SIA 1
9057_ACEOF
9058
9059
9060cat >>confdefs.h <<\_ACEOF
9061#define DISABLE_LOGIN 1
9062_ACEOF
9063
9064 cat >>confdefs.h <<\_ACEOF
9065#define DISABLE_FD_PASSING 1
9066_ACEOF
9067
9068 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9069 SIA_MSG="yes"
9070 else
9071 { echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6; }
9073
9074cat >>confdefs.h <<\_ACEOF
9075#define LOCKED_PASSWD_SUBSTR "Nologin"
9076_ACEOF
9077
9078 fi
9079 fi
9080 cat >>confdefs.h <<\_ACEOF
9081#define BROKEN_GETADDRINFO 1
9082_ACEOF
9083
9084 cat >>confdefs.h <<\_ACEOF
9085#define SETEUID_BREAKS_SETUID 1
9086_ACEOF
9087
9088 cat >>confdefs.h <<\_ACEOF
9089#define BROKEN_SETREUID 1
9090_ACEOF
9091
9092 cat >>confdefs.h <<\_ACEOF
9093#define BROKEN_SETREGID 1
9094_ACEOF
9095
9096
9097cat >>confdefs.h <<\_ACEOF
9098#define BROKEN_READV_COMPARISON 1
9099_ACEOF
9100
9048 ;;
9049
9050*-*-nto-qnx*)
9051 cat >>confdefs.h <<\_ACEOF
9052#define USE_PIPES 1
9053_ACEOF
9054
9055 cat >>confdefs.h <<\_ACEOF
9056#define NO_X11_UNIX_SOCKETS 1
9057_ACEOF
9058
9059
9060cat >>confdefs.h <<\_ACEOF
9061#define MISSING_NFDBITS 1
9062_ACEOF
9063
9064
9065cat >>confdefs.h <<\_ACEOF
9066#define MISSING_HOWMANY 1
9067_ACEOF
9068
9069
9070cat >>confdefs.h <<\_ACEOF
9071#define MISSING_FD_MASK 1
9072_ACEOF
9073
9074 cat >>confdefs.h <<\_ACEOF
9075#define DISABLE_LASTLOG 1
9076_ACEOF
9077
9078 cat >>confdefs.h <<\_ACEOF
9079#define SSHD_ACQUIRES_CTTY 1
9080_ACEOF
9081
9082
9083cat >>confdefs.h <<\_ACEOF
9084#define BROKEN_SHADOW_EXPIRE 1
9085_ACEOF
9086
9087 enable_etc_default_login=no # has incompatible /etc/default/login
9088 case "$host" in
9089 *-*-nto-qnx6*)
9090 cat >>confdefs.h <<\_ACEOF
9091#define DISABLE_FD_PASSING 1
9092_ACEOF
9093
9094 ;;
9095 esac
9096 ;;
9097
9098*-*-ultrix*)
9099
9100cat >>confdefs.h <<\_ACEOF
9101#define BROKEN_GETGROUPS 1
9102_ACEOF
9103
9104
9105cat >>confdefs.h <<\_ACEOF
9106#define BROKEN_MMAP 1
9107_ACEOF
9108
9109 cat >>confdefs.h <<\_ACEOF
9110#define NEED_SETPGRP 1
9111_ACEOF
9112
9113
9114cat >>confdefs.h <<\_ACEOF
9115#define HAVE_SYS_SYSLOG_H 1
9116_ACEOF
9117
9118 ;;
9119
9120*-*-lynxos)
9121 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9122 cat >>confdefs.h <<\_ACEOF
9123#define MISSING_HOWMANY 1
9124_ACEOF
9125
9126
9127cat >>confdefs.h <<\_ACEOF
9128#define BROKEN_SETVBUF 1
9129_ACEOF
9130
9131 ;;
9132esac
9133
9134{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9135echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9136if test "$cross_compiling" = yes; then
9137 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9138echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9139
9140else
9141 cat >conftest.$ac_ext <<_ACEOF
9142/* confdefs.h. */
9143_ACEOF
9144cat confdefs.h >>conftest.$ac_ext
9145cat >>conftest.$ac_ext <<_ACEOF
9146/* end confdefs.h. */
9147
9148#include <stdio.h>
9149int main(){exit(0);}
9150
9151_ACEOF
9152rm -f conftest$ac_exeext
9153if { (ac_try="$ac_link"
9154case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157esac
9158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_link") 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9163 { (case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166esac
9167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_try") 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 { echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6; }
9174else
9175 echo "$as_me: program exited with status $ac_status" >&5
9176echo "$as_me: failed program was:" >&5
9177sed 's/^/| /' conftest.$ac_ext >&5
9178
9179( exit $ac_status )
9180
9181 { echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6; }
9183 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9184echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9185 { (exit 1); exit 1; }; }
9186
9187fi
9188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9189fi
9190
9191
9192
9193# Checks for libraries.
9194{ echo "$as_me:$LINENO: checking for yp_match" >&5
9195echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9196if test "${ac_cv_func_yp_match+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198else
9199 cat >conftest.$ac_ext <<_ACEOF
9200/* confdefs.h. */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
9204/* end confdefs.h. */
9205/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207#define yp_match innocuous_yp_match
9208
9209/* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char yp_match (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
9213
9214#ifdef __STDC__
9215# include <limits.h>
9216#else
9217# include <assert.h>
9218#endif
9219
9220#undef yp_match
9221
9222/* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9225#ifdef __cplusplus
9226extern "C"
9227#endif
9228char yp_match ();
9229/* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
9232#if defined __stub_yp_match || defined __stub___yp_match
9233choke me
9234#endif
9235
9236int
9237main ()
9238{
9239return yp_match ();
9240 ;
9241 return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext conftest$ac_exeext
9245if { (ac_try="$ac_link"
9246case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9249esac
9250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext &&
9261 $as_test_x conftest$ac_exeext; then
9262 ac_cv_func_yp_match=yes
9263else
9264 echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 ac_cv_func_yp_match=no
9268fi
9269
9270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9272fi
9273{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9274echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9275if test $ac_cv_func_yp_match = yes; then
9276 :
9277else
9278
9279{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9280echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9281if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283else
9284 ac_check_lib_save_LIBS=$LIBS
9285LIBS="-lnsl $LIBS"
9286cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292
9293/* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9296#ifdef __cplusplus
9297extern "C"
9298#endif
9299char yp_match ();
9300int
9301main ()
9302{
9303return yp_match ();
9304 ;
9305 return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext conftest$ac_exeext
9309if { (ac_try="$ac_link"
9310case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313esac
9314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_link") 2>conftest.er1
9316 ac_status=$?
9317 grep -v '^ *+' conftest.er1 >conftest.err
9318 rm -f conftest.er1
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } && {
9322 test -z "$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9324 } && test -s conftest$ac_exeext &&
9325 $as_test_x conftest$ac_exeext; then
9326 ac_cv_lib_nsl_yp_match=yes
9327else
9328 echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 ac_cv_lib_nsl_yp_match=no
9332fi
9333
9334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335 conftest$ac_exeext conftest.$ac_ext
9336LIBS=$ac_check_lib_save_LIBS
9337fi
9338{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9339echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9340if test $ac_cv_lib_nsl_yp_match = yes; then
9341 cat >>confdefs.h <<_ACEOF
9342#define HAVE_LIBNSL 1
9343_ACEOF
9344
9345 LIBS="-lnsl $LIBS"
9346
9347fi
9348
9349fi
9350
9351{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9352echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9353if test "${ac_cv_func_setsockopt+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356 cat >conftest.$ac_ext <<_ACEOF
9357/* confdefs.h. */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h. */
9362/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9364#define setsockopt innocuous_setsockopt
9365
9366/* System header to define __stub macros and hopefully few prototypes,
9367 which can conflict with char setsockopt (); below.
9368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9369 <limits.h> exists even on freestanding compilers. */
9370
9371#ifdef __STDC__
9372# include <limits.h>
9373#else
9374# include <assert.h>
9375#endif
9376
9377#undef setsockopt
9378
9379/* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9382#ifdef __cplusplus
9383extern "C"
9384#endif
9385char setsockopt ();
9386/* The GNU C library defines this for functions which it implements
9387 to always fail with ENOSYS. Some functions are actually named
9388 something starting with __ and the normal name is an alias. */
9389#if defined __stub_setsockopt || defined __stub___setsockopt
9390choke me
9391#endif
9392
9393int
9394main ()
9395{
9396return setsockopt ();
9397 ;
9398 return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (ac_try="$ac_link"
9403case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406esac
9407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_link") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest$ac_exeext &&
9418 $as_test_x conftest$ac_exeext; then
9419 ac_cv_func_setsockopt=yes
9420else
9421 echo "$as_me: failed program was:" >&5
9422sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ac_cv_func_setsockopt=no
9425fi
9426
9427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9428 conftest$ac_exeext conftest.$ac_ext
9429fi
9430{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9431echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9432if test $ac_cv_func_setsockopt = yes; then
9433 :
9434else
9435
9436{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9437echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9438if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441 ac_check_lib_save_LIBS=$LIBS
9442LIBS="-lsocket $LIBS"
9443cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449
9450/* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453#ifdef __cplusplus
9454extern "C"
9455#endif
9456char setsockopt ();
9457int
9458main ()
9459{
9460return setsockopt ();
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext conftest$ac_exeext
9466if { (ac_try="$ac_link"
9467case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470esac
9471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_link") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest$ac_exeext &&
9482 $as_test_x conftest$ac_exeext; then
9483 ac_cv_lib_socket_setsockopt=yes
9484else
9485 echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
9488 ac_cv_lib_socket_setsockopt=no
9489fi
9490
9491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9492 conftest$ac_exeext conftest.$ac_ext
9493LIBS=$ac_check_lib_save_LIBS
9494fi
9495{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9496echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9497if test $ac_cv_lib_socket_setsockopt = yes; then
9498 cat >>confdefs.h <<_ACEOF
9499#define HAVE_LIBSOCKET 1
9500_ACEOF
9501
9502 LIBS="-lsocket $LIBS"
9503
9504fi
9505
9506fi
9507
9508
9509
9510for ac_func in dirname
9511do
9512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9513{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9515if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518 cat >conftest.$ac_ext <<_ACEOF
9519/* confdefs.h. */
9520_ACEOF
9521cat confdefs.h >>conftest.$ac_ext
9522cat >>conftest.$ac_ext <<_ACEOF
9523/* end confdefs.h. */
9524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9526#define $ac_func innocuous_$ac_func
9527
9528/* System header to define __stub macros and hopefully few prototypes,
9529 which can conflict with char $ac_func (); below.
9530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9531 <limits.h> exists even on freestanding compilers. */
9532
9533#ifdef __STDC__
9534# include <limits.h>
9535#else
9536# include <assert.h>
9537#endif
9538
9539#undef $ac_func
9540
9541/* Override any GCC internal prototype to avoid an error.
9542 Use char because int might match the return type of a GCC
9543 builtin and then its argument prototype would still apply. */
9544#ifdef __cplusplus
9545extern "C"
9546#endif
9547char $ac_func ();
9548/* The GNU C library defines this for functions which it implements
9549 to always fail with ENOSYS. Some functions are actually named
9550 something starting with __ and the normal name is an alias. */
9551#if defined __stub_$ac_func || defined __stub___$ac_func
9552choke me
9553#endif
9554
9555int
9556main ()
9557{
9558return $ac_func ();
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext conftest$ac_exeext
9564if { (ac_try="$ac_link"
9565case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_link") 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext &&
9580 $as_test_x conftest$ac_exeext; then
9581 eval "$as_ac_var=yes"
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
9586 eval "$as_ac_var=no"
9587fi
9588
9589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591fi
9592ac_res=`eval echo '${'$as_ac_var'}'`
9593 { echo "$as_me:$LINENO: result: $ac_res" >&5
9594echo "${ECHO_T}$ac_res" >&6; }
9595if test `eval echo '${'$as_ac_var'}'` = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9598_ACEOF
9599
9600for ac_header in libgen.h
9601do
9602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608fi
9609ac_res=`eval echo '${'$as_ac_Header'}'`
9610 { echo "$as_me:$LINENO: result: $ac_res" >&5
9611echo "${ECHO_T}$ac_res" >&6; }
9612else
9613 # Is the header compilable?
9614{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9615echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9616cat >conftest.$ac_ext <<_ACEOF
9617/* confdefs.h. */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h. */
9622$ac_includes_default
9623#include <$ac_header>
9624_ACEOF
9625rm -f conftest.$ac_objext
9626if { (ac_try="$ac_compile"
9627case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9630esac
9631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_compile") 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && {
9639 test -z "$ac_c_werror_flag" ||
9640 test ! -s conftest.err
9641 } && test -s conftest.$ac_objext; then
9642 ac_header_compiler=yes
9643else
9644 echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_header_compiler=no
9648fi
9649
9650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9652echo "${ECHO_T}$ac_header_compiler" >&6; }
9653
9654# Is the header present?
9655{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9657cat >conftest.$ac_ext <<_ACEOF
9658/* confdefs.h. */
9659_ACEOF
9660cat confdefs.h >>conftest.$ac_ext
9661cat >>conftest.$ac_ext <<_ACEOF
9662/* end confdefs.h. */
9663#include <$ac_header>
9664_ACEOF
9665if { (ac_try="$ac_cpp conftest.$ac_ext"
9666case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669esac
9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } >/dev/null && {
9678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 }; then
9681 ac_header_preproc=yes
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 ac_header_preproc=no
9687fi
9688
9689rm -f conftest.err conftest.$ac_ext
9690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9691echo "${ECHO_T}$ac_header_preproc" >&6; }
9692
9693# So? What about this header?
9694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9695 yes:no: )
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9700 ac_header_preproc=yes
9701 ;;
9702 no:yes:* )
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9715 ( cat <<\_ASBOX
9716## ------------------------------------------- ##
9717## Report this to openssh-unix-dev@mindrot.org ##
9718## ------------------------------------------- ##
9719_ASBOX
9720 ) | sed "s/^/$as_me: WARNING: /" >&2
9721 ;;
9722esac
9723{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727else
9728 eval "$as_ac_Header=\$ac_header_preproc"
9729fi
9730ac_res=`eval echo '${'$as_ac_Header'}'`
9731 { echo "$as_me:$LINENO: result: $ac_res" >&5
9732echo "${ECHO_T}$ac_res" >&6; }
9733
9734fi
9735if test `eval echo '${'$as_ac_Header'}'` = yes; then
9736 cat >>confdefs.h <<_ACEOF
9737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9738_ACEOF
9739
9740fi
9741
9742done
9743
9744else
9745
9746 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
9747echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
9748if test "${ac_cv_lib_gen_dirname+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751 ac_check_lib_save_LIBS=$LIBS
9752LIBS="-lgen $LIBS"
9753cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char dirname ();
9767int
9768main ()
9769{
9770return dirname ();
9771 ;
9772 return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
9776if { (ac_try="$ac_link"
9777case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext &&
9792 $as_test_x conftest$ac_exeext; then
9793 ac_cv_lib_gen_dirname=yes
9794else
9795 echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ac_cv_lib_gen_dirname=no
9799fi
9800
9801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9802 conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
9804fi
9805{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
9806echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
9807if test $ac_cv_lib_gen_dirname = yes; then
9808
9809 { echo "$as_me:$LINENO: checking for broken dirname" >&5
9810echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
9811if test "${ac_cv_have_broken_dirname+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814
9815 save_LIBS="$LIBS"
9816 LIBS="$LIBS -lgen"
9817 if test "$cross_compiling" = yes; then
9818 ac_cv_have_broken_dirname="no"
9819else
9820 cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826
9827#include <libgen.h>
9828#include <string.h>
9829
9830int main(int argc, char **argv) {
9831 char *s, buf[32];
9832
9833 strncpy(buf,"/etc", 32);
9834 s = dirname(buf);
9835 if (!s || strncmp(s, "/", 32) != 0) {
9836 exit(1);
9837 } else {
9838 exit(0);
9839 }
9840}
9841
9842_ACEOF
9843rm -f conftest$ac_exeext
9844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_have_broken_dirname="no"
9864else
9865 echo "$as_me: program exited with status $ac_status" >&5
9866echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869( exit $ac_status )
9870 ac_cv_have_broken_dirname="yes"
9871fi
9872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9873fi
9874
9875
9876 LIBS="$save_LIBS"
9877
9878fi
9879{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
9880echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
9881 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9882 LIBS="$LIBS -lgen"
9883 cat >>confdefs.h <<\_ACEOF
9884#define HAVE_DIRNAME 1
9885_ACEOF
9886
9887
9888for ac_header in libgen.h
9889do
9890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896fi
9897ac_res=`eval echo '${'$as_ac_Header'}'`
9898 { echo "$as_me:$LINENO: result: $ac_res" >&5
9899echo "${ECHO_T}$ac_res" >&6; }
9900else
9901 # Is the header compilable?
9902{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910$ac_includes_default
9911#include <$ac_header>
9912_ACEOF
9913rm -f conftest.$ac_objext
9914if { (ac_try="$ac_compile"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_compile") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest.$ac_objext; then
9930 ac_header_compiler=yes
9931else
9932 echo "$as_me: failed program was:" >&5
9933sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 ac_header_compiler=no
9936fi
9937
9938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9940echo "${ECHO_T}$ac_header_compiler" >&6; }
9941
9942# Is the header present?
9943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9945cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h. */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h. */
9951#include <$ac_header>
9952_ACEOF
9953if { (ac_try="$ac_cpp conftest.$ac_ext"
9954case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957esac
9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } >/dev/null && {
9966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 }; then
9969 ac_header_preproc=yes
9970else
9971 echo "$as_me: failed program was:" >&5
9972sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ac_header_preproc=no
9975fi
9976
9977rm -f conftest.err conftest.$ac_ext
9978{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9979echo "${ECHO_T}$ac_header_preproc" >&6; }
9980
9981# So? What about this header?
9982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9983 yes:no: )
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9988 ac_header_preproc=yes
9989 ;;
9990 no:yes:* )
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10003 ( cat <<\_ASBOX
10004## ------------------------------------------- ##
10005## Report this to openssh-unix-dev@mindrot.org ##
10006## ------------------------------------------- ##
10007_ASBOX
10008 ) | sed "s/^/$as_me: WARNING: /" >&2
10009 ;;
10010esac
10011{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015else
10016 eval "$as_ac_Header=\$ac_header_preproc"
10017fi
10018ac_res=`eval echo '${'$as_ac_Header'}'`
10019 { echo "$as_me:$LINENO: result: $ac_res" >&5
10020echo "${ECHO_T}$ac_res" >&6; }
10021
10022fi
10023if test `eval echo '${'$as_ac_Header'}'` = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10026_ACEOF
10027
10028fi
10029
10030done
10031
10032 fi
10033
10034fi
10035
10036
10037fi
10038done
10039
10040
10041{ echo "$as_me:$LINENO: checking for getspnam" >&5
10042echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10043if test "${ac_cv_func_getspnam+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045else
10046 cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h. */
10048_ACEOF
10049cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h. */
10052/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054#define getspnam innocuous_getspnam
10055
10056/* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char getspnam (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10060
10061#ifdef __STDC__
10062# include <limits.h>
10063#else
10064# include <assert.h>
10065#endif
10066
10067#undef getspnam
10068
10069/* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10072#ifdef __cplusplus
10073extern "C"
10074#endif
10075char getspnam ();
10076/* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079#if defined __stub_getspnam || defined __stub___getspnam
10080choke me
10081#endif
10082
10083int
10084main ()
10085{
10086return getspnam ();
10087 ;
10088 return 0;
10089}
10090_ACEOF
10091rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (ac_try="$ac_link"
10093case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest$ac_exeext &&
10108 $as_test_x conftest$ac_exeext; then
10109 ac_cv_func_getspnam=yes
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_cv_func_getspnam=no
10115fi
10116
10117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10119fi
10120{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10121echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10122if test $ac_cv_func_getspnam = yes; then
10123 :
10124else
10125 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10126echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10127if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130 ac_check_lib_save_LIBS=$LIBS
10131LIBS="-lgen $LIBS"
10132cat >conftest.$ac_ext <<_ACEOF
10133/* confdefs.h. */
10134_ACEOF
10135cat confdefs.h >>conftest.$ac_ext
10136cat >>conftest.$ac_ext <<_ACEOF
10137/* end confdefs.h. */
10138
10139/* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142#ifdef __cplusplus
10143extern "C"
10144#endif
10145char getspnam ();
10146int
10147main ()
10148{
10149return getspnam ();
10150 ;
10151 return 0;
10152}
10153_ACEOF
10154rm -f conftest.$ac_objext conftest$ac_exeext
10155if { (ac_try="$ac_link"
10156case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159esac
10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_link") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext &&
10171 $as_test_x conftest$ac_exeext; then
10172 ac_cv_lib_gen_getspnam=yes
10173else
10174 echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_cv_lib_gen_getspnam=no
10178fi
10179
10180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181 conftest$ac_exeext conftest.$ac_ext
10182LIBS=$ac_check_lib_save_LIBS
10183fi
10184{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10185echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10186if test $ac_cv_lib_gen_getspnam = yes; then
10187 LIBS="$LIBS -lgen"
10188fi
10189
10190fi
10191
10192{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10193echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10194if test "${ac_cv_search_basename+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197 ac_func_search_save_LIBS=$LIBS
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204
10205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char basename ();
10212int
10213main ()
10214{
10215return basename ();
10216 ;
10217 return 0;
10218}
10219_ACEOF
10220for ac_lib in '' gen; do
10221 if test -z "$ac_lib"; then
10222 ac_res="none required"
10223 else
10224 ac_res=-l$ac_lib
10225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10226 fi
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 ac_cv_search_basename=$ac_res
10246else
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250
10251fi
10252
10253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext
10255 if test "${ac_cv_search_basename+set}" = set; then
10256 break
10257fi
10258done
10259if test "${ac_cv_search_basename+set}" = set; then
10260 :
10261else
10262 ac_cv_search_basename=no
10263fi
10264rm conftest.$ac_ext
10265LIBS=$ac_func_search_save_LIBS
10266fi
10267{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10268echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10269ac_res=$ac_cv_search_basename
10270if test "$ac_res" != no; then
10271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10272
10273cat >>confdefs.h <<\_ACEOF
10274#define HAVE_BASENAME 1
10275_ACEOF
10276
10277fi
10278
10279
10280
10281# Check whether --with-zlib was given.
10282if test "${with_zlib+set}" = set; then
10283 withval=$with_zlib; if test "x$withval" = "xno" ; then
10284 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10285echo "$as_me: error: *** zlib is required ***" >&2;}
10286 { (exit 1); exit 1; }; }
10287 elif test "x$withval" != "xyes"; then
10288 if test -d "$withval/lib"; then
10289 if test -n "${need_dash_r}"; then
10290 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10291 else
10292 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10293 fi
10294 else
10295 if test -n "${need_dash_r}"; then
10296 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10297 else
10298 LDFLAGS="-L${withval} ${LDFLAGS}"
10299 fi
10300 fi
10301 if test -d "$withval/include"; then
10302 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10303 else
10304 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10305 fi
10306 fi
10307
10308fi
10309
10310
10311
10312{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10313echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10314if test "${ac_cv_lib_z_deflate+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317 ac_check_lib_save_LIBS=$LIBS
10318LIBS="-lz $LIBS"
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325
10326/* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329#ifdef __cplusplus
10330extern "C"
10331#endif
10332char deflate ();
10333int
10334main ()
10335{
10336return deflate ();
10337 ;
10338 return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
10342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_link") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest$ac_exeext &&
10358 $as_test_x conftest$ac_exeext; then
10359 ac_cv_lib_z_deflate=yes
10360else
10361 echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
10364 ac_cv_lib_z_deflate=no
10365fi
10366
10367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368 conftest$ac_exeext conftest.$ac_ext
10369LIBS=$ac_check_lib_save_LIBS
10370fi
10371{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10372echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10373if test $ac_cv_lib_z_deflate = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375#define HAVE_LIBZ 1
10376_ACEOF
10377
10378 LIBS="-lz $LIBS"
10379
10380else
10381
10382 saved_CPPFLAGS="$CPPFLAGS"
10383 saved_LDFLAGS="$LDFLAGS"
10384 save_LIBS="$LIBS"
10385 if test -n "${need_dash_r}"; then
10386 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10387 else
10388 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10389 fi
10390 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10391 LIBS="$LIBS -lz"
10392 cat >conftest.$ac_ext <<_ACEOF
10393/* confdefs.h. */
10394_ACEOF
10395cat confdefs.h >>conftest.$ac_ext
10396cat >>conftest.$ac_ext <<_ACEOF
10397/* end confdefs.h. */
10398
10399/* Override any GCC internal prototype to avoid an error.
10400 Use char because int might match the return type of a GCC
10401 builtin and then its argument prototype would still apply. */
10402#ifdef __cplusplus
10403extern "C"
10404#endif
10405char deflate ();
10406int
10407main ()
10408{
10409return deflate ();
10410 ;
10411 return 0;
10412}
10413_ACEOF
10414rm -f conftest.$ac_objext conftest$ac_exeext
10415if { (ac_try="$ac_link"
10416case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419esac
10420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_link") 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && {
10428 test -z "$ac_c_werror_flag" ||
10429 test ! -s conftest.err
10430 } && test -s conftest$ac_exeext &&
10431 $as_test_x conftest$ac_exeext; then
10432 cat >>confdefs.h <<\_ACEOF
10433#define HAVE_LIBZ 1
10434_ACEOF
10435
10436else
10437 echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
10440
10441 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10442echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10443 { (exit 1); exit 1; }; }
10444
10445
10446fi
10447
10448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10449 conftest$ac_exeext conftest.$ac_ext
10450
10451
10452fi
10453
10454if test "${ac_cv_header_zlib_h+set}" = set; then
10455 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10456echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10457if test "${ac_cv_header_zlib_h+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459fi
10460{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10461echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10462else
10463 # Is the header compilable?
10464{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10465echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10466cat >conftest.$ac_ext <<_ACEOF
10467/* confdefs.h. */
10468_ACEOF
10469cat confdefs.h >>conftest.$ac_ext
10470cat >>conftest.$ac_ext <<_ACEOF
10471/* end confdefs.h. */
10472$ac_includes_default
10473#include <zlib.h>
10474_ACEOF
10475rm -f conftest.$ac_objext
10476if { (ac_try="$ac_compile"
10477case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480esac
10481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_compile") 2>conftest.er1
10483 ac_status=$?
10484 grep -v '^ *+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest.$ac_objext; then
10492 ac_header_compiler=yes
10493else
10494 echo "$as_me: failed program was:" >&5
10495sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 ac_header_compiler=no
10498fi
10499
10500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10502echo "${ECHO_T}$ac_header_compiler" >&6; }
10503
10504# Is the header present?
10505{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10506echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10507cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h. */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h. */
10513#include <zlib.h>
10514_ACEOF
10515if { (ac_try="$ac_cpp conftest.$ac_ext"
10516case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519esac
10520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10522 ac_status=$?
10523 grep -v '^ *+' conftest.er1 >conftest.err
10524 rm -f conftest.er1
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } >/dev/null && {
10528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10529 test ! -s conftest.err
10530 }; then
10531 ac_header_preproc=yes
10532else
10533 echo "$as_me: failed program was:" >&5
10534sed 's/^/| /' conftest.$ac_ext >&5
10535
10536 ac_header_preproc=no
10537fi
10538
10539rm -f conftest.err conftest.$ac_ext
10540{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10541echo "${ECHO_T}$ac_header_preproc" >&6; }
10542
10543# So? What about this header?
10544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10545 yes:no: )
10546 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10547echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10548 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10549echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10550 ac_header_preproc=yes
10551 ;;
10552 no:yes:* )
10553 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10554echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10556echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10558echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10560echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10562echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10564echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10565 ( cat <<\_ASBOX
10566## ------------------------------------------- ##
10567## Report this to openssh-unix-dev@mindrot.org ##
10568## ------------------------------------------- ##
10569_ASBOX
10570 ) | sed "s/^/$as_me: WARNING: /" >&2
10571 ;;
10572esac
10573{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10574echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10575if test "${ac_cv_header_zlib_h+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 ac_cv_header_zlib_h=$ac_header_preproc
10579fi
10580{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10581echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10582
10583fi
10584if test $ac_cv_header_zlib_h = yes; then
10585 :
10586else
10587 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10588echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10589 { (exit 1); exit 1; }; }
10590fi
10591
10592
10593
10594
10595# Check whether --with-zlib-version-check was given.
10596if test "${with_zlib_version_check+set}" = set; then
10597 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10598 zlib_check_nonfatal=1
10599 fi
10600
10601
10602fi
10603
10604
10605{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10606echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10607if test "$cross_compiling" = yes; then
10608 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10609echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10610
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
10613/* confdefs.h. */
10614_ACEOF
10615cat confdefs.h >>conftest.$ac_ext
10616cat >>conftest.$ac_ext <<_ACEOF
10617/* end confdefs.h. */
10618
10619#include <stdio.h>
10620#include <zlib.h>
10621int main()
10622{
10623 int a=0, b=0, c=0, d=0, n, v;
10624 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10625 if (n != 3 && n != 4)
10626 exit(1);
10627 v = a*1000000 + b*10000 + c*100 + d;
10628 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10629
10630 /* 1.1.4 is OK */
10631 if (a == 1 && b == 1 && c >= 4)
10632 exit(0);
10633
10634 /* 1.2.3 and up are OK */
10635 if (v >= 1020300)
10636 exit(0);
10637
10638 exit(2);
10639}
10640
10641_ACEOF
10642rm -f conftest$ac_exeext
10643if { (ac_try="$ac_link"
10644case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647esac
10648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 { echo "$as_me:$LINENO: result: no" >&5
10663echo "${ECHO_T}no" >&6; }
10664else
10665 echo "$as_me: program exited with status $ac_status" >&5
10666echo "$as_me: failed program was:" >&5
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669( exit $ac_status )
10670 { echo "$as_me:$LINENO: result: yes" >&5
10671echo "${ECHO_T}yes" >&6; }
10672 if test -z "$zlib_check_nonfatal" ; then
10673 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
10674Your reported zlib version has known security problems. It's possible your
10675vendor has fixed these problems without changing the version number. If you
10676are sure this is the case, you can disable the check by running
10677\"./configure --without-zlib-version-check\".
10678If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10679See http://www.gzip.org/zlib/ for details." >&5
10680echo "$as_me: error: *** zlib too old - check config.log ***
10681Your reported zlib version has known security problems. It's possible your
10682vendor has fixed these problems without changing the version number. If you
10683are sure this is the case, you can disable the check by running
10684\"./configure --without-zlib-version-check\".
10685If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10686See http://www.gzip.org/zlib/ for details." >&2;}
10687 { (exit 1); exit 1; }; }
10688 else
10689 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
10690echo "$as_me: WARNING: zlib version may have security problems" >&2;}
10691 fi
10692
10693fi
10694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10695fi
10696
10697
10698
10699{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
10700echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
10701if test "${ac_cv_func_strcasecmp+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703else
10704 cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h. */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h. */
10710/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
10711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10712#define strcasecmp innocuous_strcasecmp
10713
10714/* System header to define __stub macros and hopefully few prototypes,
10715 which can conflict with char strcasecmp (); below.
10716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10717 <limits.h> exists even on freestanding compilers. */
10718
10719#ifdef __STDC__
10720# include <limits.h>
10721#else
10722# include <assert.h>
10723#endif
10724
10725#undef strcasecmp
10726
10727/* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10730#ifdef __cplusplus
10731extern "C"
10732#endif
10733char strcasecmp ();
10734/* The GNU C library defines this for functions which it implements
10735 to always fail with ENOSYS. Some functions are actually named
10736 something starting with __ and the normal name is an alias. */
10737#if defined __stub_strcasecmp || defined __stub___strcasecmp
10738choke me
10739#endif
10740
10741int
10742main ()
10743{
10744return strcasecmp ();
10745 ;
10746 return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext conftest$ac_exeext
10750if { (ac_try="$ac_link"
10751case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_link") 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest$ac_exeext &&
10766 $as_test_x conftest$ac_exeext; then
10767 ac_cv_func_strcasecmp=yes
10768else
10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_cv_func_strcasecmp=no
10773fi
10774
10775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10777fi
10778{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
10779echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
10780if test $ac_cv_func_strcasecmp = yes; then
10781 :
10782else
10783 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10784echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
10785if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 ac_check_lib_save_LIBS=$LIBS
10789LIBS="-lresolv $LIBS"
10790cat >conftest.$ac_ext <<_ACEOF
10791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
10796
10797/* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10800#ifdef __cplusplus
10801extern "C"
10802#endif
10803char strcasecmp ();
10804int
10805main ()
10806{
10807return strcasecmp ();
10808 ;
10809 return 0;
10810}
10811_ACEOF
10812rm -f conftest.$ac_objext conftest$ac_exeext
10813if { (ac_try="$ac_link"
10814case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_link") 2>conftest.er1
10820 ac_status=$?
10821 grep -v '^ *+' conftest.er1 >conftest.err
10822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } && {
10826 test -z "$ac_c_werror_flag" ||
10827 test ! -s conftest.err
10828 } && test -s conftest$ac_exeext &&
10829 $as_test_x conftest$ac_exeext; then
10830 ac_cv_lib_resolv_strcasecmp=yes
10831else
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_lib_resolv_strcasecmp=no
10836fi
10837
10838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10839 conftest$ac_exeext conftest.$ac_ext
10840LIBS=$ac_check_lib_save_LIBS
10841fi
10842{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10843echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
10844if test $ac_cv_lib_resolv_strcasecmp = yes; then
10845 LIBS="$LIBS -lresolv"
10846fi
10847
10848
10849fi
10850
10851
10852for ac_func in utimes
10853do
10854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 cat >conftest.$ac_ext <<_ACEOF
10861/* confdefs.h. */
10862_ACEOF
10863cat confdefs.h >>conftest.$ac_ext
10864cat >>conftest.$ac_ext <<_ACEOF
10865/* end confdefs.h. */
10866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10868#define $ac_func innocuous_$ac_func
10869
10870/* System header to define __stub macros and hopefully few prototypes,
10871 which can conflict with char $ac_func (); below.
10872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873 <limits.h> exists even on freestanding compilers. */
10874
10875#ifdef __STDC__
10876# include <limits.h>
10877#else
10878# include <assert.h>
10879#endif
10880
10881#undef $ac_func
10882
10883/* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886#ifdef __cplusplus
10887extern "C"
10888#endif
10889char $ac_func ();
10890/* The GNU C library defines this for functions which it implements
10891 to always fail with ENOSYS. Some functions are actually named
10892 something starting with __ and the normal name is an alias. */
10893#if defined __stub_$ac_func || defined __stub___$ac_func
10894choke me
10895#endif
10896
10897int
10898main ()
10899{
10900return $ac_func ();
10901 ;
10902 return 0;
10903}
10904_ACEOF
10905rm -f conftest.$ac_objext conftest$ac_exeext
10906if { (ac_try="$ac_link"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_link") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest$ac_exeext &&
10922 $as_test_x conftest$ac_exeext; then
10923 eval "$as_ac_var=yes"
10924else
10925 echo "$as_me: failed program was:" >&5
10926sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 eval "$as_ac_var=no"
10929fi
10930
10931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10933fi
10934ac_res=`eval echo '${'$as_ac_var'}'`
10935 { echo "$as_me:$LINENO: result: $ac_res" >&5
10936echo "${ECHO_T}$ac_res" >&6; }
10937if test `eval echo '${'$as_ac_var'}'` = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940_ACEOF
10941
10942else
10943 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
10944echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
10945if test "${ac_cv_lib_c89_utimes+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948 ac_check_lib_save_LIBS=$LIBS
10949LIBS="-lc89 $LIBS"
10950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956
10957/* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960#ifdef __cplusplus
10961extern "C"
10962#endif
10963char utimes ();
10964int
10965main ()
10966{
10967return utimes ();
10968 ;
10969 return 0;
10970}
10971_ACEOF
10972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest$ac_exeext &&
10989 $as_test_x conftest$ac_exeext; then
10990 ac_cv_lib_c89_utimes=yes
10991else
10992 echo "$as_me: failed program was:" >&5
10993sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 ac_cv_lib_c89_utimes=no
10996fi
10997
10998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11000LIBS=$ac_check_lib_save_LIBS
11001fi
11002{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11003echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11004if test $ac_cv_lib_c89_utimes = yes; then
11005 cat >>confdefs.h <<\_ACEOF
11006#define HAVE_UTIMES 1
11007_ACEOF
11008
11009 LIBS="$LIBS -lc89"
11010fi
11011
11012
11013fi
11014done
11015
11016
11017
11018for ac_header in libutil.h
11019do
11020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026fi
11027ac_res=`eval echo '${'$as_ac_Header'}'`
11028 { echo "$as_me:$LINENO: result: $ac_res" >&5
11029echo "${ECHO_T}$ac_res" >&6; }
11030else
11031 # Is the header compilable?
11032{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040$ac_includes_default
11041#include <$ac_header>
11042_ACEOF
11043rm -f conftest.$ac_objext
11044if { (ac_try="$ac_compile"
11045case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048esac
11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_compile") 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && {
11057 test -z "$ac_c_werror_flag" ||
11058 test ! -s conftest.err
11059 } && test -s conftest.$ac_objext; then
11060 ac_header_compiler=yes
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 ac_header_compiler=no
11066fi
11067
11068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11070echo "${ECHO_T}$ac_header_compiler" >&6; }
11071
11072# Is the header present?
11073{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11075cat >conftest.$ac_ext <<_ACEOF
11076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
11081#include <$ac_header>
11082_ACEOF
11083if { (ac_try="$ac_cpp conftest.$ac_ext"
11084case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087esac
11088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11090 ac_status=$?
11091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } >/dev/null && {
11096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11097 test ! -s conftest.err
11098 }; then
11099 ac_header_preproc=yes
11100else
11101 echo "$as_me: failed program was:" >&5
11102sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 ac_header_preproc=no
11105fi
11106
11107rm -f conftest.err conftest.$ac_ext
11108{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11109echo "${ECHO_T}$ac_header_preproc" >&6; }
11110
11111# So? What about this header?
11112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11113 yes:no: )
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11117echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11118 ac_header_preproc=yes
11119 ;;
11120 no:yes:* )
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11124echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11126echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11128echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11132echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11133 ( cat <<\_ASBOX
11134## ------------------------------------------- ##
11135## Report this to openssh-unix-dev@mindrot.org ##
11136## ------------------------------------------- ##
11137_ASBOX
11138 ) | sed "s/^/$as_me: WARNING: /" >&2
11139 ;;
11140esac
11141{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145else
11146 eval "$as_ac_Header=\$ac_header_preproc"
11147fi
11148ac_res=`eval echo '${'$as_ac_Header'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150echo "${ECHO_T}$ac_res" >&6; }
11151
11152fi
11153if test `eval echo '${'$as_ac_Header'}'` = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11156_ACEOF
11157
11158fi
11159
11160done
11161
11162{ echo "$as_me:$LINENO: checking for library containing login" >&5
11163echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11164if test "${ac_cv_search_login+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167 ac_func_search_save_LIBS=$LIBS
11168cat >conftest.$ac_ext <<_ACEOF
11169/* confdefs.h. */
11170_ACEOF
11171cat confdefs.h >>conftest.$ac_ext
11172cat >>conftest.$ac_ext <<_ACEOF
11173/* end confdefs.h. */
11174
11175/* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11178#ifdef __cplusplus
11179extern "C"
11180#endif
11181char login ();
11182int
11183main ()
11184{
11185return login ();
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190for ac_lib in '' util bsd; do
11191 if test -z "$ac_lib"; then
11192 ac_res="none required"
11193 else
11194 ac_res=-l$ac_lib
11195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11196 fi
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198if { (ac_try="$ac_link"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
11215 ac_cv_search_login=$ac_res
11216else
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220
11221fi
11222
11223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext
11225 if test "${ac_cv_search_login+set}" = set; then
11226 break
11227fi
11228done
11229if test "${ac_cv_search_login+set}" = set; then
11230 :
11231else
11232 ac_cv_search_login=no
11233fi
11234rm conftest.$ac_ext
11235LIBS=$ac_func_search_save_LIBS
11236fi
11237{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11238echo "${ECHO_T}$ac_cv_search_login" >&6; }
11239ac_res=$ac_cv_search_login
11240if test "$ac_res" != no; then
11241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11242
11243cat >>confdefs.h <<\_ACEOF
11244#define HAVE_LOGIN 1
11245_ACEOF
11246
11247fi
11248
11249
11250
11251
9101 ;;
9102
9103*-*-nto-qnx*)
9104 cat >>confdefs.h <<\_ACEOF
9105#define USE_PIPES 1
9106_ACEOF
9107
9108 cat >>confdefs.h <<\_ACEOF
9109#define NO_X11_UNIX_SOCKETS 1
9110_ACEOF
9111
9112
9113cat >>confdefs.h <<\_ACEOF
9114#define MISSING_NFDBITS 1
9115_ACEOF
9116
9117
9118cat >>confdefs.h <<\_ACEOF
9119#define MISSING_HOWMANY 1
9120_ACEOF
9121
9122
9123cat >>confdefs.h <<\_ACEOF
9124#define MISSING_FD_MASK 1
9125_ACEOF
9126
9127 cat >>confdefs.h <<\_ACEOF
9128#define DISABLE_LASTLOG 1
9129_ACEOF
9130
9131 cat >>confdefs.h <<\_ACEOF
9132#define SSHD_ACQUIRES_CTTY 1
9133_ACEOF
9134
9135
9136cat >>confdefs.h <<\_ACEOF
9137#define BROKEN_SHADOW_EXPIRE 1
9138_ACEOF
9139
9140 enable_etc_default_login=no # has incompatible /etc/default/login
9141 case "$host" in
9142 *-*-nto-qnx6*)
9143 cat >>confdefs.h <<\_ACEOF
9144#define DISABLE_FD_PASSING 1
9145_ACEOF
9146
9147 ;;
9148 esac
9149 ;;
9150
9151*-*-ultrix*)
9152
9153cat >>confdefs.h <<\_ACEOF
9154#define BROKEN_GETGROUPS 1
9155_ACEOF
9156
9157
9158cat >>confdefs.h <<\_ACEOF
9159#define BROKEN_MMAP 1
9160_ACEOF
9161
9162 cat >>confdefs.h <<\_ACEOF
9163#define NEED_SETPGRP 1
9164_ACEOF
9165
9166
9167cat >>confdefs.h <<\_ACEOF
9168#define HAVE_SYS_SYSLOG_H 1
9169_ACEOF
9170
9171 ;;
9172
9173*-*-lynxos)
9174 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9175 cat >>confdefs.h <<\_ACEOF
9176#define MISSING_HOWMANY 1
9177_ACEOF
9178
9179
9180cat >>confdefs.h <<\_ACEOF
9181#define BROKEN_SETVBUF 1
9182_ACEOF
9183
9184 ;;
9185esac
9186
9187{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9188echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9189if test "$cross_compiling" = yes; then
9190 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9191echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9192
9193else
9194 cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200
9201#include <stdio.h>
9202int main(){exit(0);}
9203
9204_ACEOF
9205rm -f conftest$ac_exeext
9206if { (ac_try="$ac_link"
9207case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9216 { (case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219esac
9220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_try") 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 { echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6; }
9227else
9228 echo "$as_me: program exited with status $ac_status" >&5
9229echo "$as_me: failed program was:" >&5
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
9232( exit $ac_status )
9233
9234 { echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6; }
9236 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9237echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9238 { (exit 1); exit 1; }; }
9239
9240fi
9241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9242fi
9243
9244
9245
9246# Checks for libraries.
9247{ echo "$as_me:$LINENO: checking for yp_match" >&5
9248echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9249if test "${ac_cv_func_yp_match+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
9258/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9260#define yp_match innocuous_yp_match
9261
9262/* System header to define __stub macros and hopefully few prototypes,
9263 which can conflict with char yp_match (); below.
9264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 <limits.h> exists even on freestanding compilers. */
9266
9267#ifdef __STDC__
9268# include <limits.h>
9269#else
9270# include <assert.h>
9271#endif
9272
9273#undef yp_match
9274
9275/* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278#ifdef __cplusplus
9279extern "C"
9280#endif
9281char yp_match ();
9282/* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285#if defined __stub_yp_match || defined __stub___yp_match
9286choke me
9287#endif
9288
9289int
9290main ()
9291{
9292return yp_match ();
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
9298if { (ac_try="$ac_link"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest$ac_exeext &&
9314 $as_test_x conftest$ac_exeext; then
9315 ac_cv_func_yp_match=yes
9316else
9317 echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320 ac_cv_func_yp_match=no
9321fi
9322
9323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324 conftest$ac_exeext conftest.$ac_ext
9325fi
9326{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9327echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9328if test $ac_cv_func_yp_match = yes; then
9329 :
9330else
9331
9332{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9333echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9334if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 ac_check_lib_save_LIBS=$LIBS
9338LIBS="-lnsl $LIBS"
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345
9346/* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9349#ifdef __cplusplus
9350extern "C"
9351#endif
9352char yp_match ();
9353int
9354main ()
9355{
9356return yp_match ();
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (ac_try="$ac_link"
9363case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && {
9375 test -z "$ac_c_werror_flag" ||
9376 test ! -s conftest.err
9377 } && test -s conftest$ac_exeext &&
9378 $as_test_x conftest$ac_exeext; then
9379 ac_cv_lib_nsl_yp_match=yes
9380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_cv_lib_nsl_yp_match=no
9385fi
9386
9387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9388 conftest$ac_exeext conftest.$ac_ext
9389LIBS=$ac_check_lib_save_LIBS
9390fi
9391{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9392echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9393if test $ac_cv_lib_nsl_yp_match = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395#define HAVE_LIBNSL 1
9396_ACEOF
9397
9398 LIBS="-lnsl $LIBS"
9399
9400fi
9401
9402fi
9403
9404{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9405echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9406if test "${ac_cv_func_setsockopt+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409 cat >conftest.$ac_ext <<_ACEOF
9410/* confdefs.h. */
9411_ACEOF
9412cat confdefs.h >>conftest.$ac_ext
9413cat >>conftest.$ac_ext <<_ACEOF
9414/* end confdefs.h. */
9415/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9417#define setsockopt innocuous_setsockopt
9418
9419/* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char setsockopt (); below.
9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422 <limits.h> exists even on freestanding compilers. */
9423
9424#ifdef __STDC__
9425# include <limits.h>
9426#else
9427# include <assert.h>
9428#endif
9429
9430#undef setsockopt
9431
9432/* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9435#ifdef __cplusplus
9436extern "C"
9437#endif
9438char setsockopt ();
9439/* The GNU C library defines this for functions which it implements
9440 to always fail with ENOSYS. Some functions are actually named
9441 something starting with __ and the normal name is an alias. */
9442#if defined __stub_setsockopt || defined __stub___setsockopt
9443choke me
9444#endif
9445
9446int
9447main ()
9448{
9449return setsockopt ();
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext conftest$ac_exeext
9455if { (ac_try="$ac_link"
9456case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459esac
9460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest$ac_exeext &&
9471 $as_test_x conftest$ac_exeext; then
9472 ac_cv_func_setsockopt=yes
9473else
9474 echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 ac_cv_func_setsockopt=no
9478fi
9479
9480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481 conftest$ac_exeext conftest.$ac_ext
9482fi
9483{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9484echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9485if test $ac_cv_func_setsockopt = yes; then
9486 :
9487else
9488
9489{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9490echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9491if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
9495LIBS="-lsocket $LIBS"
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
9502
9503/* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506#ifdef __cplusplus
9507extern "C"
9508#endif
9509char setsockopt ();
9510int
9511main ()
9512{
9513return setsockopt ();
9514 ;
9515 return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext conftest$ac_exeext
9519if { (ac_try="$ac_link"
9520case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 ac_cv_lib_socket_setsockopt=yes
9537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_cv_lib_socket_setsockopt=no
9542fi
9543
9544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546LIBS=$ac_check_lib_save_LIBS
9547fi
9548{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9549echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9550if test $ac_cv_lib_socket_setsockopt = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552#define HAVE_LIBSOCKET 1
9553_ACEOF
9554
9555 LIBS="-lsocket $LIBS"
9556
9557fi
9558
9559fi
9560
9561
9562
9563for ac_func in dirname
9564do
9565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571 cat >conftest.$ac_ext <<_ACEOF
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h. */
9577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9579#define $ac_func innocuous_$ac_func
9580
9581/* System header to define __stub macros and hopefully few prototypes,
9582 which can conflict with char $ac_func (); below.
9583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584 <limits.h> exists even on freestanding compilers. */
9585
9586#ifdef __STDC__
9587# include <limits.h>
9588#else
9589# include <assert.h>
9590#endif
9591
9592#undef $ac_func
9593
9594/* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600char $ac_func ();
9601/* The GNU C library defines this for functions which it implements
9602 to always fail with ENOSYS. Some functions are actually named
9603 something starting with __ and the normal name is an alias. */
9604#if defined __stub_$ac_func || defined __stub___$ac_func
9605choke me
9606#endif
9607
9608int
9609main ()
9610{
9611return $ac_func ();
9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
9617if { (ac_try="$ac_link"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest$ac_exeext &&
9633 $as_test_x conftest$ac_exeext; then
9634 eval "$as_ac_var=yes"
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 eval "$as_ac_var=no"
9640fi
9641
9642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9643 conftest$ac_exeext conftest.$ac_ext
9644fi
9645ac_res=`eval echo '${'$as_ac_var'}'`
9646 { echo "$as_me:$LINENO: result: $ac_res" >&5
9647echo "${ECHO_T}$ac_res" >&6; }
9648if test `eval echo '${'$as_ac_var'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651_ACEOF
9652
9653for ac_header in libgen.h
9654do
9655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661fi
9662ac_res=`eval echo '${'$as_ac_Header'}'`
9663 { echo "$as_me:$LINENO: result: $ac_res" >&5
9664echo "${ECHO_T}$ac_res" >&6; }
9665else
9666 # Is the header compilable?
9667{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9669cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675$ac_includes_default
9676#include <$ac_header>
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (ac_try="$ac_compile"
9680case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683esac
9684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_compile") 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } && {
9692 test -z "$ac_c_werror_flag" ||
9693 test ! -s conftest.err
9694 } && test -s conftest.$ac_objext; then
9695 ac_header_compiler=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_compiler=no
9701fi
9702
9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9705echo "${ECHO_T}$ac_header_compiler" >&6; }
9706
9707# Is the header present?
9708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716#include <$ac_header>
9717_ACEOF
9718if { (ac_try="$ac_cpp conftest.$ac_ext"
9719case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } >/dev/null && {
9731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 }; then
9734 ac_header_preproc=yes
9735else
9736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_header_preproc=no
9740fi
9741
9742rm -f conftest.err conftest.$ac_ext
9743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744echo "${ECHO_T}$ac_header_preproc" >&6; }
9745
9746# So? What about this header?
9747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9748 yes:no: )
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9753 ac_header_preproc=yes
9754 ;;
9755 no:yes:* )
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9768 ( cat <<\_ASBOX
9769## ------------------------------------------- ##
9770## Report this to openssh-unix-dev@mindrot.org ##
9771## ------------------------------------------- ##
9772_ASBOX
9773 ) | sed "s/^/$as_me: WARNING: /" >&2
9774 ;;
9775esac
9776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 eval "$as_ac_Header=\$ac_header_preproc"
9782fi
9783ac_res=`eval echo '${'$as_ac_Header'}'`
9784 { echo "$as_me:$LINENO: result: $ac_res" >&5
9785echo "${ECHO_T}$ac_res" >&6; }
9786
9787fi
9788if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791_ACEOF
9792
9793fi
9794
9795done
9796
9797else
9798
9799 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
9800echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
9801if test "${ac_cv_lib_gen_dirname+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 ac_check_lib_save_LIBS=$LIBS
9805LIBS="-lgen $LIBS"
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
9812
9813/* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816#ifdef __cplusplus
9817extern "C"
9818#endif
9819char dirname ();
9820int
9821main ()
9822{
9823return dirname ();
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (ac_try="$ac_link"
9830case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_link") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext &&
9845 $as_test_x conftest$ac_exeext; then
9846 ac_cv_lib_gen_dirname=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_lib_gen_dirname=no
9852fi
9853
9854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855 conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
9859echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
9860if test $ac_cv_lib_gen_dirname = yes; then
9861
9862 { echo "$as_me:$LINENO: checking for broken dirname" >&5
9863echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
9864if test "${ac_cv_have_broken_dirname+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867
9868 save_LIBS="$LIBS"
9869 LIBS="$LIBS -lgen"
9870 if test "$cross_compiling" = yes; then
9871 ac_cv_have_broken_dirname="no"
9872else
9873 cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879
9880#include <libgen.h>
9881#include <string.h>
9882
9883int main(int argc, char **argv) {
9884 char *s, buf[32];
9885
9886 strncpy(buf,"/etc", 32);
9887 s = dirname(buf);
9888 if (!s || strncmp(s, "/", 32) != 0) {
9889 exit(1);
9890 } else {
9891 exit(0);
9892 }
9893}
9894
9895_ACEOF
9896rm -f conftest$ac_exeext
9897if { (ac_try="$ac_link"
9898case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_have_broken_dirname="no"
9917else
9918 echo "$as_me: program exited with status $ac_status" >&5
9919echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922( exit $ac_status )
9923 ac_cv_have_broken_dirname="yes"
9924fi
9925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9926fi
9927
9928
9929 LIBS="$save_LIBS"
9930
9931fi
9932{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
9933echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
9934 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9935 LIBS="$LIBS -lgen"
9936 cat >>confdefs.h <<\_ACEOF
9937#define HAVE_DIRNAME 1
9938_ACEOF
9939
9940
9941for ac_header in libgen.h
9942do
9943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949fi
9950ac_res=`eval echo '${'$as_ac_Header'}'`
9951 { echo "$as_me:$LINENO: result: $ac_res" >&5
9952echo "${ECHO_T}$ac_res" >&6; }
9953else
9954 # Is the header compilable?
9955{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9957cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963$ac_includes_default
9964#include <$ac_header>
9965_ACEOF
9966rm -f conftest.$ac_objext
9967if { (ac_try="$ac_compile"
9968case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_compile") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
9983 ac_header_compiler=yes
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_header_compiler=no
9989fi
9990
9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993echo "${ECHO_T}$ac_header_compiler" >&6; }
9994
9995# Is the header present?
9996{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004#include <$ac_header>
10005_ACEOF
10006if { (ac_try="$ac_cpp conftest.$ac_ext"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null && {
10019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 }; then
10022 ac_header_preproc=yes
10023else
10024 echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_header_preproc=no
10028fi
10029
10030rm -f conftest.err conftest.$ac_ext
10031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032echo "${ECHO_T}$ac_header_preproc" >&6; }
10033
10034# So? What about this header?
10035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 yes:no: )
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10041 ac_header_preproc=yes
10042 ;;
10043 no:yes:* )
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10056 ( cat <<\_ASBOX
10057## ------------------------------------------- ##
10058## Report this to openssh-unix-dev@mindrot.org ##
10059## ------------------------------------------- ##
10060_ASBOX
10061 ) | sed "s/^/$as_me: WARNING: /" >&2
10062 ;;
10063esac
10064{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 eval "$as_ac_Header=\$ac_header_preproc"
10070fi
10071ac_res=`eval echo '${'$as_ac_Header'}'`
10072 { echo "$as_me:$LINENO: result: $ac_res" >&5
10073echo "${ECHO_T}$ac_res" >&6; }
10074
10075fi
10076if test `eval echo '${'$as_ac_Header'}'` = yes; then
10077 cat >>confdefs.h <<_ACEOF
10078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10079_ACEOF
10080
10081fi
10082
10083done
10084
10085 fi
10086
10087fi
10088
10089
10090fi
10091done
10092
10093
10094{ echo "$as_me:$LINENO: checking for getspnam" >&5
10095echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10096if test "${ac_cv_func_getspnam+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h. */
10105/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10107#define getspnam innocuous_getspnam
10108
10109/* System header to define __stub macros and hopefully few prototypes,
10110 which can conflict with char getspnam (); below.
10111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112 <limits.h> exists even on freestanding compilers. */
10113
10114#ifdef __STDC__
10115# include <limits.h>
10116#else
10117# include <assert.h>
10118#endif
10119
10120#undef getspnam
10121
10122/* Override any GCC internal prototype to avoid an error.
10123 Use char because int might match the return type of a GCC
10124 builtin and then its argument prototype would still apply. */
10125#ifdef __cplusplus
10126extern "C"
10127#endif
10128char getspnam ();
10129/* The GNU C library defines this for functions which it implements
10130 to always fail with ENOSYS. Some functions are actually named
10131 something starting with __ and the normal name is an alias. */
10132#if defined __stub_getspnam || defined __stub___getspnam
10133choke me
10134#endif
10135
10136int
10137main ()
10138{
10139return getspnam ();
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_link") 2>conftest.er1
10152 ac_status=$?
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } && {
10158 test -z "$ac_c_werror_flag" ||
10159 test ! -s conftest.err
10160 } && test -s conftest$ac_exeext &&
10161 $as_test_x conftest$ac_exeext; then
10162 ac_cv_func_getspnam=yes
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_func_getspnam=no
10168fi
10169
10170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171 conftest$ac_exeext conftest.$ac_ext
10172fi
10173{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10174echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10175if test $ac_cv_func_getspnam = yes; then
10176 :
10177else
10178 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10179echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10180if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183 ac_check_lib_save_LIBS=$LIBS
10184LIBS="-lgen $LIBS"
10185cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h. */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h. */
10191
10192/* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195#ifdef __cplusplus
10196extern "C"
10197#endif
10198char getspnam ();
10199int
10200main ()
10201{
10202return getspnam ();
10203 ;
10204 return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
10208if { (ac_try="$ac_link"
10209case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest$ac_exeext &&
10224 $as_test_x conftest$ac_exeext; then
10225 ac_cv_lib_gen_getspnam=yes
10226else
10227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_gen_getspnam=no
10231fi
10232
10233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10234 conftest$ac_exeext conftest.$ac_ext
10235LIBS=$ac_check_lib_save_LIBS
10236fi
10237{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10238echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10239if test $ac_cv_lib_gen_getspnam = yes; then
10240 LIBS="$LIBS -lgen"
10241fi
10242
10243fi
10244
10245{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10246echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10247if test "${ac_cv_search_basename+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 ac_func_search_save_LIBS=$LIBS
10251cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
10257
10258/* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10261#ifdef __cplusplus
10262extern "C"
10263#endif
10264char basename ();
10265int
10266main ()
10267{
10268return basename ();
10269 ;
10270 return 0;
10271}
10272_ACEOF
10273for ac_lib in '' gen; do
10274 if test -z "$ac_lib"; then
10275 ac_res="none required"
10276 else
10277 ac_res=-l$ac_lib
10278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10279 fi
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (ac_try="$ac_link"
10282case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && {
10294 test -z "$ac_c_werror_flag" ||
10295 test ! -s conftest.err
10296 } && test -s conftest$ac_exeext &&
10297 $as_test_x conftest$ac_exeext; then
10298 ac_cv_search_basename=$ac_res
10299else
10300 echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307 conftest$ac_exeext
10308 if test "${ac_cv_search_basename+set}" = set; then
10309 break
10310fi
10311done
10312if test "${ac_cv_search_basename+set}" = set; then
10313 :
10314else
10315 ac_cv_search_basename=no
10316fi
10317rm conftest.$ac_ext
10318LIBS=$ac_func_search_save_LIBS
10319fi
10320{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10321echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10322ac_res=$ac_cv_search_basename
10323if test "$ac_res" != no; then
10324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10325
10326cat >>confdefs.h <<\_ACEOF
10327#define HAVE_BASENAME 1
10328_ACEOF
10329
10330fi
10331
10332
10333
10334# Check whether --with-zlib was given.
10335if test "${with_zlib+set}" = set; then
10336 withval=$with_zlib; if test "x$withval" = "xno" ; then
10337 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10338echo "$as_me: error: *** zlib is required ***" >&2;}
10339 { (exit 1); exit 1; }; }
10340 elif test "x$withval" != "xyes"; then
10341 if test -d "$withval/lib"; then
10342 if test -n "${need_dash_r}"; then
10343 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10344 else
10345 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10346 fi
10347 else
10348 if test -n "${need_dash_r}"; then
10349 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10350 else
10351 LDFLAGS="-L${withval} ${LDFLAGS}"
10352 fi
10353 fi
10354 if test -d "$withval/include"; then
10355 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10356 else
10357 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10358 fi
10359 fi
10360
10361fi
10362
10363
10364
10365{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10366echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10367if test "${ac_cv_lib_z_deflate+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 ac_check_lib_save_LIBS=$LIBS
10371LIBS="-lz $LIBS"
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
10379/* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10382#ifdef __cplusplus
10383extern "C"
10384#endif
10385char deflate ();
10386int
10387main ()
10388{
10389return deflate ();
10390 ;
10391 return 0;
10392}
10393_ACEOF
10394rm -f conftest.$ac_objext conftest$ac_exeext
10395if { (ac_try="$ac_link"
10396case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_link") 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && {
10408 test -z "$ac_c_werror_flag" ||
10409 test ! -s conftest.err
10410 } && test -s conftest$ac_exeext &&
10411 $as_test_x conftest$ac_exeext; then
10412 ac_cv_lib_z_deflate=yes
10413else
10414 echo "$as_me: failed program was:" >&5
10415sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_lib_z_deflate=no
10418fi
10419
10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422LIBS=$ac_check_lib_save_LIBS
10423fi
10424{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10425echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10426if test $ac_cv_lib_z_deflate = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428#define HAVE_LIBZ 1
10429_ACEOF
10430
10431 LIBS="-lz $LIBS"
10432
10433else
10434
10435 saved_CPPFLAGS="$CPPFLAGS"
10436 saved_LDFLAGS="$LDFLAGS"
10437 save_LIBS="$LIBS"
10438 if test -n "${need_dash_r}"; then
10439 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10440 else
10441 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10442 fi
10443 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10444 LIBS="$LIBS -lz"
10445 cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451
10452/* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455#ifdef __cplusplus
10456extern "C"
10457#endif
10458char deflate ();
10459int
10460main ()
10461{
10462return deflate ();
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (ac_try="$ac_link"
10469case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 cat >>confdefs.h <<\_ACEOF
10486#define HAVE_LIBZ 1
10487_ACEOF
10488
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10495echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10496 { (exit 1); exit 1; }; }
10497
10498
10499fi
10500
10501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503
10504
10505fi
10506
10507if test "${ac_cv_header_zlib_h+set}" = set; then
10508 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10509echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10510if test "${ac_cv_header_zlib_h+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512fi
10513{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10514echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10515else
10516 # Is the header compilable?
10517{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10518echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525$ac_includes_default
10526#include <zlib.h>
10527_ACEOF
10528rm -f conftest.$ac_objext
10529if { (ac_try="$ac_compile"
10530case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10533esac
10534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest.$ac_objext; then
10545 ac_header_compiler=yes
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_header_compiler=no
10551fi
10552
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555echo "${ECHO_T}$ac_header_compiler" >&6; }
10556
10557# Is the header present?
10558{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10559echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566#include <zlib.h>
10567_ACEOF
10568if { (ac_try="$ac_cpp conftest.$ac_ext"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null && {
10581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 }; then
10584 ac_header_preproc=yes
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_header_preproc=no
10590fi
10591
10592rm -f conftest.err conftest.$ac_ext
10593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10594echo "${ECHO_T}$ac_header_preproc" >&6; }
10595
10596# So? What about this header?
10597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10598 yes:no: )
10599 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10600echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10602echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10603 ac_header_preproc=yes
10604 ;;
10605 no:yes:* )
10606 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10607echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10609echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10611echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10613echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10615echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10617echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10618 ( cat <<\_ASBOX
10619## ------------------------------------------- ##
10620## Report this to openssh-unix-dev@mindrot.org ##
10621## ------------------------------------------- ##
10622_ASBOX
10623 ) | sed "s/^/$as_me: WARNING: /" >&2
10624 ;;
10625esac
10626{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10627echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10628if test "${ac_cv_header_zlib_h+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631 ac_cv_header_zlib_h=$ac_header_preproc
10632fi
10633{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10634echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10635
10636fi
10637if test $ac_cv_header_zlib_h = yes; then
10638 :
10639else
10640 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10641echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10642 { (exit 1); exit 1; }; }
10643fi
10644
10645
10646
10647
10648# Check whether --with-zlib-version-check was given.
10649if test "${with_zlib_version_check+set}" = set; then
10650 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10651 zlib_check_nonfatal=1
10652 fi
10653
10654
10655fi
10656
10657
10658{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10659echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10660if test "$cross_compiling" = yes; then
10661 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10662echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10663
10664else
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671
10672#include <stdio.h>
10673#include <zlib.h>
10674int main()
10675{
10676 int a=0, b=0, c=0, d=0, n, v;
10677 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10678 if (n != 3 && n != 4)
10679 exit(1);
10680 v = a*1000000 + b*10000 + c*100 + d;
10681 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10682
10683 /* 1.1.4 is OK */
10684 if (a == 1 && b == 1 && c >= 4)
10685 exit(0);
10686
10687 /* 1.2.3 and up are OK */
10688 if (v >= 1020300)
10689 exit(0);
10690
10691 exit(2);
10692}
10693
10694_ACEOF
10695rm -f conftest$ac_exeext
10696if { (ac_try="$ac_link"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 { echo "$as_me:$LINENO: result: no" >&5
10716echo "${ECHO_T}no" >&6; }
10717else
10718 echo "$as_me: program exited with status $ac_status" >&5
10719echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722( exit $ac_status )
10723 { echo "$as_me:$LINENO: result: yes" >&5
10724echo "${ECHO_T}yes" >&6; }
10725 if test -z "$zlib_check_nonfatal" ; then
10726 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
10727Your reported zlib version has known security problems. It's possible your
10728vendor has fixed these problems without changing the version number. If you
10729are sure this is the case, you can disable the check by running
10730\"./configure --without-zlib-version-check\".
10731If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10732See http://www.gzip.org/zlib/ for details." >&5
10733echo "$as_me: error: *** zlib too old - check config.log ***
10734Your reported zlib version has known security problems. It's possible your
10735vendor has fixed these problems without changing the version number. If you
10736are sure this is the case, you can disable the check by running
10737\"./configure --without-zlib-version-check\".
10738If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10739See http://www.gzip.org/zlib/ for details." >&2;}
10740 { (exit 1); exit 1; }; }
10741 else
10742 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
10743echo "$as_me: WARNING: zlib version may have security problems" >&2;}
10744 fi
10745
10746fi
10747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10748fi
10749
10750
10751
10752{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
10753echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
10754if test "${ac_cv_func_strcasecmp+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765#define strcasecmp innocuous_strcasecmp
10766
10767/* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char strcasecmp (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10771
10772#ifdef __STDC__
10773# include <limits.h>
10774#else
10775# include <assert.h>
10776#endif
10777
10778#undef strcasecmp
10779
10780/* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783#ifdef __cplusplus
10784extern "C"
10785#endif
10786char strcasecmp ();
10787/* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790#if defined __stub_strcasecmp || defined __stub___strcasecmp
10791choke me
10792#endif
10793
10794int
10795main ()
10796{
10797return strcasecmp ();
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
10803if { (ac_try="$ac_link"
10804case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && {
10816 test -z "$ac_c_werror_flag" ||
10817 test ! -s conftest.err
10818 } && test -s conftest$ac_exeext &&
10819 $as_test_x conftest$ac_exeext; then
10820 ac_cv_func_strcasecmp=yes
10821else
10822 echo "$as_me: failed program was:" >&5
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_func_strcasecmp=no
10826fi
10827
10828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10829 conftest$ac_exeext conftest.$ac_ext
10830fi
10831{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
10832echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
10833if test $ac_cv_func_strcasecmp = yes; then
10834 :
10835else
10836 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10837echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
10838if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 ac_check_lib_save_LIBS=$LIBS
10842LIBS="-lresolv $LIBS"
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849
10850/* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853#ifdef __cplusplus
10854extern "C"
10855#endif
10856char strcasecmp ();
10857int
10858main ()
10859{
10860return strcasecmp ();
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865rm -f conftest.$ac_objext conftest$ac_exeext
10866if { (ac_try="$ac_link"
10867case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext &&
10882 $as_test_x conftest$ac_exeext; then
10883 ac_cv_lib_resolv_strcasecmp=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_resolv_strcasecmp=no
10889fi
10890
10891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892 conftest$ac_exeext conftest.$ac_ext
10893LIBS=$ac_check_lib_save_LIBS
10894fi
10895{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10896echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
10897if test $ac_cv_lib_resolv_strcasecmp = yes; then
10898 LIBS="$LIBS -lresolv"
10899fi
10900
10901
10902fi
10903
10904
10905for ac_func in utimes
10906do
10907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10908{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10921#define $ac_func innocuous_$ac_func
10922
10923/* System header to define __stub macros and hopefully few prototypes,
10924 which can conflict with char $ac_func (); below.
10925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10926 <limits.h> exists even on freestanding compilers. */
10927
10928#ifdef __STDC__
10929# include <limits.h>
10930#else
10931# include <assert.h>
10932#endif
10933
10934#undef $ac_func
10935
10936/* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939#ifdef __cplusplus
10940extern "C"
10941#endif
10942char $ac_func ();
10943/* The GNU C library defines this for functions which it implements
10944 to always fail with ENOSYS. Some functions are actually named
10945 something starting with __ and the normal name is an alias. */
10946#if defined __stub_$ac_func || defined __stub___$ac_func
10947choke me
10948#endif
10949
10950int
10951main ()
10952{
10953return $ac_func ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext conftest$ac_exeext
10959if { (ac_try="$ac_link"
10960case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_link") 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest$ac_exeext &&
10975 $as_test_x conftest$ac_exeext; then
10976 eval "$as_ac_var=yes"
10977else
10978 echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 eval "$as_ac_var=no"
10982fi
10983
10984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985 conftest$ac_exeext conftest.$ac_ext
10986fi
10987ac_res=`eval echo '${'$as_ac_var'}'`
10988 { echo "$as_me:$LINENO: result: $ac_res" >&5
10989echo "${ECHO_T}$ac_res" >&6; }
10990if test `eval echo '${'$as_ac_var'}'` = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10993_ACEOF
10994
10995else
10996 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
10997echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
10998if test "${ac_cv_lib_c89_utimes+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-lc89 $LIBS"
11003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009
11010/* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013#ifdef __cplusplus
11014extern "C"
11015#endif
11016char utimes ();
11017int
11018main ()
11019{
11020return utimes ();
11021 ;
11022 return 0;
11023}
11024_ACEOF
11025rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 ac_cv_lib_c89_utimes=yes
11044else
11045 echo "$as_me: failed program was:" >&5
11046sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_lib_c89_utimes=no
11049fi
11050
11051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11056echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11057if test $ac_cv_lib_c89_utimes = yes; then
11058 cat >>confdefs.h <<\_ACEOF
11059#define HAVE_UTIMES 1
11060_ACEOF
11061
11062 LIBS="$LIBS -lc89"
11063fi
11064
11065
11066fi
11067done
11068
11069
11070
11071for ac_header in libutil.h
11072do
11073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079fi
11080ac_res=`eval echo '${'$as_ac_Header'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082echo "${ECHO_T}$ac_res" >&6; }
11083else
11084 # Is the header compilable?
11085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11087cat >conftest.$ac_ext <<_ACEOF
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
11093$ac_includes_default
11094#include <$ac_header>
11095_ACEOF
11096rm -f conftest.$ac_objext
11097if { (ac_try="$ac_compile"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 ac_header_compiler=yes
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_compiler=no
11119fi
11120
11121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123echo "${ECHO_T}$ac_header_compiler" >&6; }
11124
11125# Is the header present?
11126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11128cat >conftest.$ac_ext <<_ACEOF
11129/* confdefs.h. */
11130_ACEOF
11131cat confdefs.h >>conftest.$ac_ext
11132cat >>conftest.$ac_ext <<_ACEOF
11133/* end confdefs.h. */
11134#include <$ac_header>
11135_ACEOF
11136if { (ac_try="$ac_cpp conftest.$ac_ext"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null && {
11149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 }; then
11152 ac_header_preproc=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_preproc=no
11158fi
11159
11160rm -f conftest.err conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162echo "${ECHO_T}$ac_header_preproc" >&6; }
11163
11164# So? What about this header?
11165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166 yes:no: )
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11172 ;;
11173 no:yes:* )
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11186 ( cat <<\_ASBOX
11187## ------------------------------------------- ##
11188## Report this to openssh-unix-dev@mindrot.org ##
11189## ------------------------------------------- ##
11190_ASBOX
11191 ) | sed "s/^/$as_me: WARNING: /" >&2
11192 ;;
11193esac
11194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 eval "$as_ac_Header=\$ac_header_preproc"
11200fi
11201ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203echo "${ECHO_T}$ac_res" >&6; }
11204
11205fi
11206if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11209_ACEOF
11210
11211fi
11212
11213done
11214
11215{ echo "$as_me:$LINENO: checking for library containing login" >&5
11216echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11217if test "${ac_cv_search_login+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 ac_func_search_save_LIBS=$LIBS
11221cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227
11228/* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231#ifdef __cplusplus
11232extern "C"
11233#endif
11234char login ();
11235int
11236main ()
11237{
11238return login ();
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243for ac_lib in '' util bsd; do
11244 if test -z "$ac_lib"; then
11245 ac_res="none required"
11246 else
11247 ac_res=-l$ac_lib
11248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11249 fi
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251if { (ac_try="$ac_link"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest$ac_exeext &&
11267 $as_test_x conftest$ac_exeext; then
11268 ac_cv_search_login=$ac_res
11269else
11270 echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273
11274fi
11275
11276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext
11278 if test "${ac_cv_search_login+set}" = set; then
11279 break
11280fi
11281done
11282if test "${ac_cv_search_login+set}" = set; then
11283 :
11284else
11285 ac_cv_search_login=no
11286fi
11287rm conftest.$ac_ext
11288LIBS=$ac_func_search_save_LIBS
11289fi
11290{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11291echo "${ECHO_T}$ac_cv_search_login" >&6; }
11292ac_res=$ac_cv_search_login
11293if test "$ac_res" != no; then
11294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11295
11296cat >>confdefs.h <<\_ACEOF
11297#define HAVE_LOGIN 1
11298_ACEOF
11299
11300fi
11301
11302
11303
11304
11252for ac_func in logout updwtmp logwtmp
11305
11306for ac_func in fmt_scaled logout updwtmp logwtmp
11253do
11254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11257if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259else
11260 cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h. */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h. */
11266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11268#define $ac_func innocuous_$ac_func
11269
11270/* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func (); below.
11272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273 <limits.h> exists even on freestanding compilers. */
11274
11275#ifdef __STDC__
11276# include <limits.h>
11277#else
11278# include <assert.h>
11279#endif
11280
11281#undef $ac_func
11282
11283/* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286#ifdef __cplusplus
11287extern "C"
11288#endif
11289char $ac_func ();
11290/* The GNU C library defines this for functions which it implements
11291 to always fail with ENOSYS. Some functions are actually named
11292 something starting with __ and the normal name is an alias. */
11293#if defined __stub_$ac_func || defined __stub___$ac_func
11294choke me
11295#endif
11296
11297int
11298main ()
11299{
11300return $ac_func ();
11301 ;
11302 return 0;
11303}
11304_ACEOF
11305rm -f conftest.$ac_objext conftest$ac_exeext
11306if { (ac_try="$ac_link"
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_link") 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 test -z "$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 } && test -s conftest$ac_exeext &&
11322 $as_test_x conftest$ac_exeext; then
11323 eval "$as_ac_var=yes"
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328 eval "$as_ac_var=no"
11329fi
11330
11331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11332 conftest$ac_exeext conftest.$ac_ext
11333fi
11334ac_res=`eval echo '${'$as_ac_var'}'`
11335 { echo "$as_me:$LINENO: result: $ac_res" >&5
11336echo "${ECHO_T}$ac_res" >&6; }
11337if test `eval echo '${'$as_ac_var'}'` = yes; then
11338 cat >>confdefs.h <<_ACEOF
11339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11340_ACEOF
11341
11342fi
11343done
11344
11345
11346
11347for ac_func in strftime
11348do
11349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11363#define $ac_func innocuous_$ac_func
11364
11365/* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char $ac_func (); below.
11367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11368 <limits.h> exists even on freestanding compilers. */
11369
11370#ifdef __STDC__
11371# include <limits.h>
11372#else
11373# include <assert.h>
11374#endif
11375
11376#undef $ac_func
11377
11378/* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381#ifdef __cplusplus
11382extern "C"
11383#endif
11384char $ac_func ();
11385/* The GNU C library defines this for functions which it implements
11386 to always fail with ENOSYS. Some functions are actually named
11387 something starting with __ and the normal name is an alias. */
11388#if defined __stub_$ac_func || defined __stub___$ac_func
11389choke me
11390#endif
11391
11392int
11393main ()
11394{
11395return $ac_func ();
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext conftest$ac_exeext
11401if { (ac_try="$ac_link"
11402case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_link") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest$ac_exeext &&
11417 $as_test_x conftest$ac_exeext; then
11418 eval "$as_ac_var=yes"
11419else
11420 echo "$as_me: failed program was:" >&5
11421sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 eval "$as_ac_var=no"
11424fi
11425
11426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427 conftest$ac_exeext conftest.$ac_ext
11428fi
11429ac_res=`eval echo '${'$as_ac_var'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431echo "${ECHO_T}$ac_res" >&6; }
11432if test `eval echo '${'$as_ac_var'}'` = yes; then
11433 cat >>confdefs.h <<_ACEOF
11434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11435_ACEOF
11436
11437else
11438 # strftime is in -lintl on SCO UNIX.
11439{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11440echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11441if test "${ac_cv_lib_intl_strftime+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 ac_check_lib_save_LIBS=$LIBS
11445LIBS="-lintl $LIBS"
11446cat >conftest.$ac_ext <<_ACEOF
11447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
11452
11453/* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456#ifdef __cplusplus
11457extern "C"
11458#endif
11459char strftime ();
11460int
11461main ()
11462{
11463return strftime ();
11464 ;
11465 return 0;
11466}
11467_ACEOF
11468rm -f conftest.$ac_objext conftest$ac_exeext
11469if { (ac_try="$ac_link"
11470case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_link") 2>conftest.er1
11476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } && {
11482 test -z "$ac_c_werror_flag" ||
11483 test ! -s conftest.err
11484 } && test -s conftest$ac_exeext &&
11485 $as_test_x conftest$ac_exeext; then
11486 ac_cv_lib_intl_strftime=yes
11487else
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 ac_cv_lib_intl_strftime=no
11492fi
11493
11494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11495 conftest$ac_exeext conftest.$ac_ext
11496LIBS=$ac_check_lib_save_LIBS
11497fi
11498{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11499echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11500if test $ac_cv_lib_intl_strftime = yes; then
11501 cat >>confdefs.h <<\_ACEOF
11502#define HAVE_STRFTIME 1
11503_ACEOF
11504
11505LIBS="-lintl $LIBS"
11506fi
11507
11508fi
11509done
11510
11511
11512# Check for ALTDIRFUNC glob() extension
11513{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11514echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11515cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521
11522 #include <glob.h>
11523 #ifdef GLOB_ALTDIRFUNC
11524 FOUNDIT
11525 #endif
11526
11527_ACEOF
11528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11529 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11530
11531
11532cat >>confdefs.h <<\_ACEOF
11533#define GLOB_HAS_ALTDIRFUNC 1
11534_ACEOF
11535
11536 { echo "$as_me:$LINENO: result: yes" >&5
11537echo "${ECHO_T}yes" >&6; }
11538
11539else
11540
11541 { echo "$as_me:$LINENO: result: no" >&5
11542echo "${ECHO_T}no" >&6; }
11543
11544
11545fi
11546rm -f conftest*
11547
11548
11549# Check for g.gl_matchc glob() extension
11550{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11551echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11552cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h. */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h. */
11558 #include <glob.h>
11559int
11560main ()
11561{
11562glob_t g; g.gl_matchc = 1;
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567rm -f conftest.$ac_objext
11568if { (ac_try="$ac_compile"
11569case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572esac
11573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_compile") 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest.$ac_objext; then
11584
11585
11586cat >>confdefs.h <<\_ACEOF
11587#define GLOB_HAS_GL_MATCHC 1
11588_ACEOF
11589
11590 { echo "$as_me:$LINENO: result: yes" >&5
11591echo "${ECHO_T}yes" >&6; }
11592
11593else
11594 echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
11597
11598 { echo "$as_me:$LINENO: result: no" >&5
11599echo "${ECHO_T}no" >&6; }
11600
11601
11602fi
11603
11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605
11606{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11607echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11608if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610else
11611 cat >conftest.$ac_ext <<_ACEOF
11612/* confdefs.h. */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h. */
11617#include <glob.h>
11618
11619int
11620main ()
11621{
11622#ifndef GLOB_NOMATCH
11623 (void) GLOB_NOMATCH;
11624#endif
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (ac_try="$ac_compile"
11632case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_compile") 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && {
11644 test -z "$ac_c_werror_flag" ||
11645 test ! -s conftest.err
11646 } && test -s conftest.$ac_objext; then
11647 ac_cv_have_decl_GLOB_NOMATCH=yes
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 ac_cv_have_decl_GLOB_NOMATCH=no
11653fi
11654
11655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656fi
11657{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11658echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11659if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11660
11661cat >>confdefs.h <<_ACEOF
11662#define HAVE_DECL_GLOB_NOMATCH 1
11663_ACEOF
11664
11665
11666else
11667 cat >>confdefs.h <<_ACEOF
11668#define HAVE_DECL_GLOB_NOMATCH 0
11669_ACEOF
11670
11671
11672fi
11673
11674
11675
11676{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
11677echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
11678if test "$cross_compiling" = yes; then
11679
11680 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
11681echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
11682 cat >>confdefs.h <<\_ACEOF
11683#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11684_ACEOF
11685
11686
11687
11688else
11689 cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695
11696#include <sys/types.h>
11697#include <dirent.h>
11698int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
11699
11700_ACEOF
11701rm -f conftest$ac_exeext
11702if { (ac_try="$ac_link"
11703case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11706esac
11707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708 (eval "$ac_link") 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715esac
11716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 { echo "$as_me:$LINENO: result: yes" >&5
11722echo "${ECHO_T}yes" >&6; }
11723else
11724 echo "$as_me: program exited with status $ac_status" >&5
11725echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728( exit $ac_status )
11729
11730 { echo "$as_me:$LINENO: result: no" >&5
11731echo "${ECHO_T}no" >&6; }
11732
11733cat >>confdefs.h <<\_ACEOF
11734#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11735_ACEOF
11736
11737
11738fi
11739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11740fi
11741
11742
11743
11744{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
11745echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
11746if test -d "/proc/$$/fd" ; then
11747
11748cat >>confdefs.h <<\_ACEOF
11749#define HAVE_PROC_PID 1
11750_ACEOF
11751
11752 { echo "$as_me:$LINENO: result: yes" >&5
11753echo "${ECHO_T}yes" >&6; }
11754else
11755 { echo "$as_me:$LINENO: result: no" >&5
11756echo "${ECHO_T}no" >&6; }
11757fi
11758
11759# Check whether user wants S/Key support
11760SKEY_MSG="no"
11761
11762# Check whether --with-skey was given.
11763if test "${with_skey+set}" = set; then
11764 withval=$with_skey;
11765 if test "x$withval" != "xno" ; then
11766
11767 if test "x$withval" != "xyes" ; then
11768 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11769 LDFLAGS="$LDFLAGS -L${withval}/lib"
11770 fi
11771
11772
11773cat >>confdefs.h <<\_ACEOF
11774#define SKEY 1
11775_ACEOF
11776
11777 LIBS="-lskey $LIBS"
11778 SKEY_MSG="yes"
11779
11780 { echo "$as_me:$LINENO: checking for s/key support" >&5
11781echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
11782 cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788
11789#include <stdio.h>
11790#include <skey.h>
11791int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
11792
11793_ACEOF
11794rm -f conftest.$ac_objext conftest$ac_exeext
11795if { (ac_try="$ac_link"
11796case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799esac
11800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_link") 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && {
11808 test -z "$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11810 } && test -s conftest$ac_exeext &&
11811 $as_test_x conftest$ac_exeext; then
11812 { echo "$as_me:$LINENO: result: yes" >&5
11813echo "${ECHO_T}yes" >&6; }
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818
11819 { echo "$as_me:$LINENO: result: no" >&5
11820echo "${ECHO_T}no" >&6; }
11821 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
11822echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
11823 { (exit 1); exit 1; }; }
11824
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11828 conftest$ac_exeext conftest.$ac_ext
11829 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
11830echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837#include <stdio.h>
11838 #include <skey.h>
11839int
11840main ()
11841{
11842(void)skeychallenge(NULL,"name","",0);
11843 ;
11844 return 0;
11845}
11846_ACEOF
11847rm -f conftest.$ac_objext
11848if { (ac_try="$ac_compile"
11849case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11852esac
11853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
11864 { echo "$as_me:$LINENO: result: yes" >&5
11865echo "${ECHO_T}yes" >&6; }
11866
11867cat >>confdefs.h <<\_ACEOF
11868#define SKEYCHALLENGE_4ARG 1
11869_ACEOF
11870
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 { echo "$as_me:$LINENO: result: no" >&5
11876echo "${ECHO_T}no" >&6; }
11877
11878fi
11879
11880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 fi
11882
11883
11884fi
11885
11886
11887# Check whether user wants TCP wrappers support
11888TCPW_MSG="no"
11889
11890# Check whether --with-tcp-wrappers was given.
11891if test "${with_tcp_wrappers+set}" = set; then
11892 withval=$with_tcp_wrappers;
11893 if test "x$withval" != "xno" ; then
11894 saved_LIBS="$LIBS"
11895 saved_LDFLAGS="$LDFLAGS"
11896 saved_CPPFLAGS="$CPPFLAGS"
11897 if test -n "${withval}" && \
11898 test "x${withval}" != "xyes"; then
11899 if test -d "${withval}/lib"; then
11900 if test -n "${need_dash_r}"; then
11901 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11902 else
11903 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11904 fi
11905 else
11906 if test -n "${need_dash_r}"; then
11907 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11908 else
11909 LDFLAGS="-L${withval} ${LDFLAGS}"
11910 fi
11911 fi
11912 if test -d "${withval}/include"; then
11913 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11914 else
11915 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11916 fi
11917 fi
11918 LIBS="-lwrap $LIBS"
11919 { echo "$as_me:$LINENO: checking for libwrap" >&5
11920echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927
11928#include <sys/types.h>
11929#include <sys/socket.h>
11930#include <netinet/in.h>
11931#include <tcpd.h>
11932 int deny_severity = 0, allow_severity = 0;
11933
11934int
11935main ()
11936{
11937hosts_access(0);
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext conftest$ac_exeext
11943if { (ac_try="$ac_link"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest$ac_exeext &&
11959 $as_test_x conftest$ac_exeext; then
11960
11961 { echo "$as_me:$LINENO: result: yes" >&5
11962echo "${ECHO_T}yes" >&6; }
11963
11964cat >>confdefs.h <<\_ACEOF
11965#define LIBWRAP 1
11966_ACEOF
11967
11968 SSHDLIBS="$SSHDLIBS -lwrap"
11969 TCPW_MSG="yes"
11970
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975
11976 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
11977echo "$as_me: error: *** libwrap missing" >&2;}
11978 { (exit 1); exit 1; }; }
11979
11980
11981fi
11982
11983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS="$saved_LIBS"
11986 fi
11987
11988
11989fi
11990
11991
11992# Check whether user wants libedit support
11993LIBEDIT_MSG="no"
11994
11995# Check whether --with-libedit was given.
11996if test "${with_libedit+set}" = set; then
11997 withval=$with_libedit; if test "x$withval" != "xno" ; then
11998 if test "x$withval" != "xyes"; then
11999 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12000 if test -n "${need_dash_r}"; then
12001 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12002 else
12003 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12004 fi
12005 fi
12006 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12007echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12008if test "${ac_cv_lib_edit_el_init+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
12011 ac_check_lib_save_LIBS=$LIBS
12012LIBS="-ledit -lcurses
12013 $LIBS"
12014cat >conftest.$ac_ext <<_ACEOF
12015/* confdefs.h. */
12016_ACEOF
12017cat confdefs.h >>conftest.$ac_ext
12018cat >>conftest.$ac_ext <<_ACEOF
12019/* end confdefs.h. */
12020
12021/* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024#ifdef __cplusplus
12025extern "C"
12026#endif
12027char el_init ();
12028int
12029main ()
12030{
12031return el_init ();
12032 ;
12033 return 0;
12034}
12035_ACEOF
12036rm -f conftest.$ac_objext conftest$ac_exeext
12037if { (ac_try="$ac_link"
12038case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_link") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest$ac_exeext &&
12053 $as_test_x conftest$ac_exeext; then
12054 ac_cv_lib_edit_el_init=yes
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_cv_lib_edit_el_init=no
12060fi
12061
12062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12063 conftest$ac_exeext conftest.$ac_ext
12064LIBS=$ac_check_lib_save_LIBS
12065fi
12066{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12067echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12068if test $ac_cv_lib_edit_el_init = yes; then
12069
12070cat >>confdefs.h <<\_ACEOF
12071#define USE_LIBEDIT 1
12072_ACEOF
12073
12074 LIBEDIT="-ledit -lcurses"
12075 LIBEDIT_MSG="yes"
12076
12077
12078else
12079 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12080echo "$as_me: error: libedit not found" >&2;}
12081 { (exit 1); exit 1; }; }
12082fi
12083
12084 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12085echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12086 cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092
12093#include <histedit.h>
12094int main(void)
12095{
12096 int i = H_SETSIZE;
12097 el_init("", NULL, NULL, NULL);
12098 exit(0);
12099}
12100
12101_ACEOF
12102rm -f conftest.$ac_objext
12103if { (ac_try="$ac_compile"
12104case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 { echo "$as_me:$LINENO: result: yes" >&5
12120echo "${ECHO_T}yes" >&6; }
12121else
12122 echo "$as_me: failed program was:" >&5
12123sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 { echo "$as_me:$LINENO: result: no" >&5
12126echo "${ECHO_T}no" >&6; }
12127 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12128echo "$as_me: error: libedit version is not compatible" >&2;}
12129 { (exit 1); exit 1; }; }
12130
12131fi
12132
12133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 fi
12135
12136fi
12137
12138
12139AUDIT_MODULE=none
12140
12141# Check whether --with-audit was given.
12142if test "${with_audit+set}" = set; then
12143 withval=$with_audit;
12144 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12145echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12146 case "$withval" in
12147 bsm)
12148 { echo "$as_me:$LINENO: result: bsm" >&5
12149echo "${ECHO_T}bsm" >&6; }
12150 AUDIT_MODULE=bsm
12151
12152for ac_header in bsm/audit.h
12153do
12154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12155{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166
12167#ifdef HAVE_TIME_H
12168# include <time.h>
12169#endif
12170
12171
12172
12173#include <$ac_header>
12174_ACEOF
12175rm -f conftest.$ac_objext
12176if { (ac_try="$ac_compile"
12177case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_compile") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest.$ac_objext; then
12192 eval "$as_ac_Header=yes"
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 eval "$as_ac_Header=no"
12198fi
12199
12200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201fi
12202ac_res=`eval echo '${'$as_ac_Header'}'`
12203 { echo "$as_me:$LINENO: result: $ac_res" >&5
12204echo "${ECHO_T}$ac_res" >&6; }
12205if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208_ACEOF
12209
12210else
12211 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12212echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12213 { (exit 1); exit 1; }; }
12214fi
12215
12216done
12217
12218
12219{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12220echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12221if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224 ac_check_lib_save_LIBS=$LIBS
12225LIBS="-lbsm $LIBS"
12226cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
12232
12233/* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236#ifdef __cplusplus
12237extern "C"
12238#endif
12239char getaudit ();
12240int
12241main ()
12242{
12243return getaudit ();
12244 ;
12245 return 0;
12246}
12247_ACEOF
12248rm -f conftest.$ac_objext conftest$ac_exeext
12249if { (ac_try="$ac_link"
12250case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_link") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest$ac_exeext &&
12265 $as_test_x conftest$ac_exeext; then
12266 ac_cv_lib_bsm_getaudit=yes
12267else
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_cv_lib_bsm_getaudit=no
12272fi
12273
12274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12275 conftest$ac_exeext conftest.$ac_ext
12276LIBS=$ac_check_lib_save_LIBS
12277fi
12278{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12279echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12280if test $ac_cv_lib_bsm_getaudit = yes; then
12281 cat >>confdefs.h <<_ACEOF
12282#define HAVE_LIBBSM 1
12283_ACEOF
12284
12285 LIBS="-lbsm $LIBS"
12286
12287else
12288 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12289echo "$as_me: error: BSM enabled and required library not found" >&2;}
12290 { (exit 1); exit 1; }; }
12291fi
12292
12293
12294for ac_func in getaudit
12295do
12296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12310#define $ac_func innocuous_$ac_func
12311
12312/* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char $ac_func (); below.
12314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315 <limits.h> exists even on freestanding compilers. */
12316
12317#ifdef __STDC__
12318# include <limits.h>
12319#else
12320# include <assert.h>
12321#endif
12322
12323#undef $ac_func
12324
12325/* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12328#ifdef __cplusplus
12329extern "C"
12330#endif
12331char $ac_func ();
12332/* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335#if defined __stub_$ac_func || defined __stub___$ac_func
12336choke me
12337#endif
12338
12339int
12340main ()
12341{
12342return $ac_func ();
12343 ;
12344 return 0;
12345}
12346_ACEOF
12347rm -f conftest.$ac_objext conftest$ac_exeext
12348if { (ac_try="$ac_link"
12349case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
12353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest$ac_exeext &&
12364 $as_test_x conftest$ac_exeext; then
12365 eval "$as_ac_var=yes"
12366else
12367 echo "$as_me: failed program was:" >&5
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 eval "$as_ac_var=no"
12371fi
12372
12373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12374 conftest$ac_exeext conftest.$ac_ext
12375fi
12376ac_res=`eval echo '${'$as_ac_var'}'`
12377 { echo "$as_me:$LINENO: result: $ac_res" >&5
12378echo "${ECHO_T}$ac_res" >&6; }
12379if test `eval echo '${'$as_ac_var'}'` = yes; then
12380 cat >>confdefs.h <<_ACEOF
12381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12382_ACEOF
12383
12384else
12385 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12386echo "$as_me: error: BSM enabled and required function not found" >&2;}
12387 { (exit 1); exit 1; }; }
12388fi
12389done
12390
12391 # These are optional
12392
12393
12394for ac_func in getaudit_addr aug_get_machine
12395do
12396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12397{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402 cat >conftest.$ac_ext <<_ACEOF
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
12408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12410#define $ac_func innocuous_$ac_func
12411
12412/* System header to define __stub macros and hopefully few prototypes,
12413 which can conflict with char $ac_func (); below.
12414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 <limits.h> exists even on freestanding compilers. */
12416
12417#ifdef __STDC__
12418# include <limits.h>
12419#else
12420# include <assert.h>
12421#endif
12422
12423#undef $ac_func
12424
12425/* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12428#ifdef __cplusplus
12429extern "C"
12430#endif
12431char $ac_func ();
12432/* The GNU C library defines this for functions which it implements
12433 to always fail with ENOSYS. Some functions are actually named
12434 something starting with __ and the normal name is an alias. */
12435#if defined __stub_$ac_func || defined __stub___$ac_func
12436choke me
12437#endif
12438
12439int
12440main ()
12441{
12442return $ac_func ();
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext conftest$ac_exeext
12448if { (ac_try="$ac_link"
12449case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest$ac_exeext &&
12464 $as_test_x conftest$ac_exeext; then
12465 eval "$as_ac_var=yes"
12466else
12467 echo "$as_me: failed program was:" >&5
12468sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 eval "$as_ac_var=no"
12471fi
12472
12473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12474 conftest$ac_exeext conftest.$ac_ext
12475fi
12476ac_res=`eval echo '${'$as_ac_var'}'`
12477 { echo "$as_me:$LINENO: result: $ac_res" >&5
12478echo "${ECHO_T}$ac_res" >&6; }
12479if test `eval echo '${'$as_ac_var'}'` = yes; then
12480 cat >>confdefs.h <<_ACEOF
12481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12482_ACEOF
12483
12484fi
12485done
12486
12487
12488cat >>confdefs.h <<\_ACEOF
12489#define USE_BSM_AUDIT 1
12490_ACEOF
12491
12492 ;;
12493 debug)
12494 AUDIT_MODULE=debug
12495 { echo "$as_me:$LINENO: result: debug" >&5
12496echo "${ECHO_T}debug" >&6; }
12497
12498cat >>confdefs.h <<\_ACEOF
12499#define SSH_AUDIT_EVENTS 1
12500_ACEOF
12501
12502 ;;
12503 no)
12504 { echo "$as_me:$LINENO: result: no" >&5
12505echo "${ECHO_T}no" >&6; }
12506 ;;
12507 *)
12508 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12509echo "$as_me: error: Unknown audit module $withval" >&2;}
12510 { (exit 1); exit 1; }; }
12511 ;;
12512 esac
12513
12514fi
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
11307do
11308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313else
11314 cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11322#define $ac_func innocuous_$ac_func
11323
11324/* System header to define __stub macros and hopefully few prototypes,
11325 which can conflict with char $ac_func (); below.
11326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11327 <limits.h> exists even on freestanding compilers. */
11328
11329#ifdef __STDC__
11330# include <limits.h>
11331#else
11332# include <assert.h>
11333#endif
11334
11335#undef $ac_func
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char $ac_func ();
11344/* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347#if defined __stub_$ac_func || defined __stub___$ac_func
11348choke me
11349#endif
11350
11351int
11352main ()
11353{
11354return $ac_func ();
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext conftest$ac_exeext
11360if { (ac_try="$ac_link"
11361case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_link") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest$ac_exeext &&
11376 $as_test_x conftest$ac_exeext; then
11377 eval "$as_ac_var=yes"
11378else
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 eval "$as_ac_var=no"
11383fi
11384
11385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11386 conftest$ac_exeext conftest.$ac_ext
11387fi
11388ac_res=`eval echo '${'$as_ac_var'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390echo "${ECHO_T}$ac_res" >&6; }
11391if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394_ACEOF
11395
11396fi
11397done
11398
11399
11400
11401for ac_func in strftime
11402do
11403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408else
11409 cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11417#define $ac_func innocuous_$ac_func
11418
11419/* System header to define __stub macros and hopefully few prototypes,
11420 which can conflict with char $ac_func (); below.
11421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11422 <limits.h> exists even on freestanding compilers. */
11423
11424#ifdef __STDC__
11425# include <limits.h>
11426#else
11427# include <assert.h>
11428#endif
11429
11430#undef $ac_func
11431
11432/* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435#ifdef __cplusplus
11436extern "C"
11437#endif
11438char $ac_func ();
11439/* The GNU C library defines this for functions which it implements
11440 to always fail with ENOSYS. Some functions are actually named
11441 something starting with __ and the normal name is an alias. */
11442#if defined __stub_$ac_func || defined __stub___$ac_func
11443choke me
11444#endif
11445
11446int
11447main ()
11448{
11449return $ac_func ();
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_link") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_c_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest$ac_exeext &&
11471 $as_test_x conftest$ac_exeext; then
11472 eval "$as_ac_var=yes"
11473else
11474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 eval "$as_ac_var=no"
11478fi
11479
11480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481 conftest$ac_exeext conftest.$ac_ext
11482fi
11483ac_res=`eval echo '${'$as_ac_var'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485echo "${ECHO_T}$ac_res" >&6; }
11486if test `eval echo '${'$as_ac_var'}'` = yes; then
11487 cat >>confdefs.h <<_ACEOF
11488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11489_ACEOF
11490
11491else
11492 # strftime is in -lintl on SCO UNIX.
11493{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11494echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11495if test "${ac_cv_lib_intl_strftime+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 ac_check_lib_save_LIBS=$LIBS
11499LIBS="-lintl $LIBS"
11500cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506
11507/* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510#ifdef __cplusplus
11511extern "C"
11512#endif
11513char strftime ();
11514int
11515main ()
11516{
11517return strftime ();
11518 ;
11519 return 0;
11520}
11521_ACEOF
11522rm -f conftest.$ac_objext conftest$ac_exeext
11523if { (ac_try="$ac_link"
11524case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest$ac_exeext &&
11539 $as_test_x conftest$ac_exeext; then
11540 ac_cv_lib_intl_strftime=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_cv_lib_intl_strftime=no
11546fi
11547
11548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11549 conftest$ac_exeext conftest.$ac_ext
11550LIBS=$ac_check_lib_save_LIBS
11551fi
11552{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11553echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11554if test $ac_cv_lib_intl_strftime = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556#define HAVE_STRFTIME 1
11557_ACEOF
11558
11559LIBS="-lintl $LIBS"
11560fi
11561
11562fi
11563done
11564
11565
11566# Check for ALTDIRFUNC glob() extension
11567{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11568echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11569cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575
11576 #include <glob.h>
11577 #ifdef GLOB_ALTDIRFUNC
11578 FOUNDIT
11579 #endif
11580
11581_ACEOF
11582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11583 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11584
11585
11586cat >>confdefs.h <<\_ACEOF
11587#define GLOB_HAS_ALTDIRFUNC 1
11588_ACEOF
11589
11590 { echo "$as_me:$LINENO: result: yes" >&5
11591echo "${ECHO_T}yes" >&6; }
11592
11593else
11594
11595 { echo "$as_me:$LINENO: result: no" >&5
11596echo "${ECHO_T}no" >&6; }
11597
11598
11599fi
11600rm -f conftest*
11601
11602
11603# Check for g.gl_matchc glob() extension
11604{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11605echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11606cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612 #include <glob.h>
11613int
11614main ()
11615{
11616glob_t g; g.gl_matchc = 1;
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (ac_try="$ac_compile"
11623case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_compile") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest.$ac_objext; then
11638
11639
11640cat >>confdefs.h <<\_ACEOF
11641#define GLOB_HAS_GL_MATCHC 1
11642_ACEOF
11643
11644 { echo "$as_me:$LINENO: result: yes" >&5
11645echo "${ECHO_T}yes" >&6; }
11646
11647else
11648 echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651
11652 { echo "$as_me:$LINENO: result: no" >&5
11653echo "${ECHO_T}no" >&6; }
11654
11655
11656fi
11657
11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659
11660{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11661echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11662if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671#include <glob.h>
11672
11673int
11674main ()
11675{
11676#ifndef GLOB_NOMATCH
11677 (void) GLOB_NOMATCH;
11678#endif
11679
11680 ;
11681 return 0;
11682}
11683_ACEOF
11684rm -f conftest.$ac_objext
11685if { (ac_try="$ac_compile"
11686case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_have_decl_GLOB_NOMATCH=yes
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_cv_have_decl_GLOB_NOMATCH=no
11707fi
11708
11709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710fi
11711{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11712echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11713if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11714
11715cat >>confdefs.h <<_ACEOF
11716#define HAVE_DECL_GLOB_NOMATCH 1
11717_ACEOF
11718
11719
11720else
11721 cat >>confdefs.h <<_ACEOF
11722#define HAVE_DECL_GLOB_NOMATCH 0
11723_ACEOF
11724
11725
11726fi
11727
11728
11729
11730{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
11731echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
11732if test "$cross_compiling" = yes; then
11733
11734 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
11735echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
11736 cat >>confdefs.h <<\_ACEOF
11737#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11738_ACEOF
11739
11740
11741
11742else
11743 cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749
11750#include <sys/types.h>
11751#include <dirent.h>
11752int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
11753
11754_ACEOF
11755rm -f conftest$ac_exeext
11756if { (ac_try="$ac_link"
11757case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_link") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 { echo "$as_me:$LINENO: result: yes" >&5
11776echo "${ECHO_T}yes" >&6; }
11777else
11778 echo "$as_me: program exited with status $ac_status" >&5
11779echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782( exit $ac_status )
11783
11784 { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11789_ACEOF
11790
11791
11792fi
11793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11794fi
11795
11796
11797
11798{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
11799echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
11800if test -d "/proc/$$/fd" ; then
11801
11802cat >>confdefs.h <<\_ACEOF
11803#define HAVE_PROC_PID 1
11804_ACEOF
11805
11806 { echo "$as_me:$LINENO: result: yes" >&5
11807echo "${ECHO_T}yes" >&6; }
11808else
11809 { echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6; }
11811fi
11812
11813# Check whether user wants S/Key support
11814SKEY_MSG="no"
11815
11816# Check whether --with-skey was given.
11817if test "${with_skey+set}" = set; then
11818 withval=$with_skey;
11819 if test "x$withval" != "xno" ; then
11820
11821 if test "x$withval" != "xyes" ; then
11822 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11823 LDFLAGS="$LDFLAGS -L${withval}/lib"
11824 fi
11825
11826
11827cat >>confdefs.h <<\_ACEOF
11828#define SKEY 1
11829_ACEOF
11830
11831 LIBS="-lskey $LIBS"
11832 SKEY_MSG="yes"
11833
11834 { echo "$as_me:$LINENO: checking for s/key support" >&5
11835echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
11836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842
11843#include <stdio.h>
11844#include <skey.h>
11845int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
11846
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
11849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest$ac_exeext &&
11865 $as_test_x conftest$ac_exeext; then
11866 { echo "$as_me:$LINENO: result: yes" >&5
11867echo "${ECHO_T}yes" >&6; }
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872
11873 { echo "$as_me:$LINENO: result: no" >&5
11874echo "${ECHO_T}no" >&6; }
11875 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
11876echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
11877 { (exit 1); exit 1; }; }
11878
11879fi
11880
11881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 conftest$ac_exeext conftest.$ac_ext
11883 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
11884echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891#include <stdio.h>
11892 #include <skey.h>
11893int
11894main ()
11895{
11896(void)skeychallenge(NULL,"name","",0);
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (ac_try="$ac_compile"
11903case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 { echo "$as_me:$LINENO: result: yes" >&5
11919echo "${ECHO_T}yes" >&6; }
11920
11921cat >>confdefs.h <<\_ACEOF
11922#define SKEYCHALLENGE_4ARG 1
11923_ACEOF
11924
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 { echo "$as_me:$LINENO: result: no" >&5
11930echo "${ECHO_T}no" >&6; }
11931
11932fi
11933
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936
11937
11938fi
11939
11940
11941# Check whether user wants TCP wrappers support
11942TCPW_MSG="no"
11943
11944# Check whether --with-tcp-wrappers was given.
11945if test "${with_tcp_wrappers+set}" = set; then
11946 withval=$with_tcp_wrappers;
11947 if test "x$withval" != "xno" ; then
11948 saved_LIBS="$LIBS"
11949 saved_LDFLAGS="$LDFLAGS"
11950 saved_CPPFLAGS="$CPPFLAGS"
11951 if test -n "${withval}" && \
11952 test "x${withval}" != "xyes"; then
11953 if test -d "${withval}/lib"; then
11954 if test -n "${need_dash_r}"; then
11955 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11956 else
11957 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11958 fi
11959 else
11960 if test -n "${need_dash_r}"; then
11961 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11962 else
11963 LDFLAGS="-L${withval} ${LDFLAGS}"
11964 fi
11965 fi
11966 if test -d "${withval}/include"; then
11967 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11968 else
11969 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11970 fi
11971 fi
11972 LIBS="-lwrap $LIBS"
11973 { echo "$as_me:$LINENO: checking for libwrap" >&5
11974echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981
11982#include <sys/types.h>
11983#include <sys/socket.h>
11984#include <netinet/in.h>
11985#include <tcpd.h>
11986 int deny_severity = 0, allow_severity = 0;
11987
11988int
11989main ()
11990{
11991hosts_access(0);
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext conftest$ac_exeext
11997if { (ac_try="$ac_link"
11998case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } && {
12010 test -z "$ac_c_werror_flag" ||
12011 test ! -s conftest.err
12012 } && test -s conftest$ac_exeext &&
12013 $as_test_x conftest$ac_exeext; then
12014
12015 { echo "$as_me:$LINENO: result: yes" >&5
12016echo "${ECHO_T}yes" >&6; }
12017
12018cat >>confdefs.h <<\_ACEOF
12019#define LIBWRAP 1
12020_ACEOF
12021
12022 SSHDLIBS="$SSHDLIBS -lwrap"
12023 TCPW_MSG="yes"
12024
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029
12030 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12031echo "$as_me: error: *** libwrap missing" >&2;}
12032 { (exit 1); exit 1; }; }
12033
12034
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS="$saved_LIBS"
12040 fi
12041
12042
12043fi
12044
12045
12046# Check whether user wants libedit support
12047LIBEDIT_MSG="no"
12048
12049# Check whether --with-libedit was given.
12050if test "${with_libedit+set}" = set; then
12051 withval=$with_libedit; if test "x$withval" != "xno" ; then
12052 if test "x$withval" != "xyes"; then
12053 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12054 if test -n "${need_dash_r}"; then
12055 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12056 else
12057 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12058 fi
12059 fi
12060 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12061echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12062if test "${ac_cv_lib_edit_el_init+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065 ac_check_lib_save_LIBS=$LIBS
12066LIBS="-ledit -lcurses
12067 $LIBS"
12068cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h. */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h. */
12074
12075/* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078#ifdef __cplusplus
12079extern "C"
12080#endif
12081char el_init ();
12082int
12083main ()
12084{
12085return el_init ();
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest$ac_exeext &&
12107 $as_test_x conftest$ac_exeext; then
12108 ac_cv_lib_edit_el_init=yes
12109else
12110 echo "$as_me: failed program was:" >&5
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_cv_lib_edit_el_init=no
12114fi
12115
12116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12117 conftest$ac_exeext conftest.$ac_ext
12118LIBS=$ac_check_lib_save_LIBS
12119fi
12120{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12121echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12122if test $ac_cv_lib_edit_el_init = yes; then
12123
12124cat >>confdefs.h <<\_ACEOF
12125#define USE_LIBEDIT 1
12126_ACEOF
12127
12128 LIBEDIT="-ledit -lcurses"
12129 LIBEDIT_MSG="yes"
12130
12131
12132else
12133 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12134echo "$as_me: error: libedit not found" >&2;}
12135 { (exit 1); exit 1; }; }
12136fi
12137
12138 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12139echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146
12147#include <histedit.h>
12148int main(void)
12149{
12150 int i = H_SETSIZE;
12151 el_init("", NULL, NULL, NULL);
12152 exit(0);
12153}
12154
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (ac_try="$ac_compile"
12158case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161esac
12162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_compile") 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } && {
12170 test -z "$ac_c_werror_flag" ||
12171 test ! -s conftest.err
12172 } && test -s conftest.$ac_objext; then
12173 { echo "$as_me:$LINENO: result: yes" >&5
12174echo "${ECHO_T}yes" >&6; }
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 { echo "$as_me:$LINENO: result: no" >&5
12180echo "${ECHO_T}no" >&6; }
12181 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12182echo "$as_me: error: libedit version is not compatible" >&2;}
12183 { (exit 1); exit 1; }; }
12184
12185fi
12186
12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 fi
12189
12190fi
12191
12192
12193AUDIT_MODULE=none
12194
12195# Check whether --with-audit was given.
12196if test "${with_audit+set}" = set; then
12197 withval=$with_audit;
12198 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12199echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12200 case "$withval" in
12201 bsm)
12202 { echo "$as_me:$LINENO: result: bsm" >&5
12203echo "${ECHO_T}bsm" >&6; }
12204 AUDIT_MODULE=bsm
12205
12206for ac_header in bsm/audit.h
12207do
12208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221#ifdef HAVE_TIME_H
12222# include <time.h>
12223#endif
12224
12225
12226
12227#include <$ac_header>
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (ac_try="$ac_compile"
12231case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12246 eval "$as_ac_Header=yes"
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 eval "$as_ac_Header=no"
12252fi
12253
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255fi
12256ac_res=`eval echo '${'$as_ac_Header'}'`
12257 { echo "$as_me:$LINENO: result: $ac_res" >&5
12258echo "${ECHO_T}$ac_res" >&6; }
12259if test `eval echo '${'$as_ac_Header'}'` = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12262_ACEOF
12263
12264else
12265 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12266echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12267 { (exit 1); exit 1; }; }
12268fi
12269
12270done
12271
12272
12273{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12274echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12275if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277else
12278 ac_check_lib_save_LIBS=$LIBS
12279LIBS="-lbsm $LIBS"
12280cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286
12287/* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290#ifdef __cplusplus
12291extern "C"
12292#endif
12293char getaudit ();
12294int
12295main ()
12296{
12297return getaudit ();
12298 ;
12299 return 0;
12300}
12301_ACEOF
12302rm -f conftest.$ac_objext conftest$ac_exeext
12303if { (ac_try="$ac_link"
12304case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 ac_cv_lib_bsm_getaudit=yes
12321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_bsm_getaudit=no
12326fi
12327
12328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12330LIBS=$ac_check_lib_save_LIBS
12331fi
12332{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12333echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12334if test $ac_cv_lib_bsm_getaudit = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336#define HAVE_LIBBSM 1
12337_ACEOF
12338
12339 LIBS="-lbsm $LIBS"
12340
12341else
12342 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12343echo "$as_me: error: BSM enabled and required library not found" >&2;}
12344 { (exit 1); exit 1; }; }
12345fi
12346
12347
12348for ac_func in getaudit
12349do
12350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356 cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h. */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h. */
12362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364#define $ac_func innocuous_$ac_func
12365
12366/* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12370
12371#ifdef __STDC__
12372# include <limits.h>
12373#else
12374# include <assert.h>
12375#endif
12376
12377#undef $ac_func
12378
12379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385char $ac_func ();
12386/* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
12389#if defined __stub_$ac_func || defined __stub___$ac_func
12390choke me
12391#endif
12392
12393int
12394main ()
12395{
12396return $ac_func ();
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext conftest$ac_exeext
12402if { (ac_try="$ac_link"
12403case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest$ac_exeext &&
12418 $as_test_x conftest$ac_exeext; then
12419 eval "$as_ac_var=yes"
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 eval "$as_ac_var=no"
12425fi
12426
12427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12428 conftest$ac_exeext conftest.$ac_ext
12429fi
12430ac_res=`eval echo '${'$as_ac_var'}'`
12431 { echo "$as_me:$LINENO: result: $ac_res" >&5
12432echo "${ECHO_T}$ac_res" >&6; }
12433if test `eval echo '${'$as_ac_var'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436_ACEOF
12437
12438else
12439 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12440echo "$as_me: error: BSM enabled and required function not found" >&2;}
12441 { (exit 1); exit 1; }; }
12442fi
12443done
12444
12445 # These are optional
12446
12447
12448for ac_func in getaudit_addr aug_get_machine
12449do
12450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464#define $ac_func innocuous_$ac_func
12465
12466/* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12470
12471#ifdef __STDC__
12472# include <limits.h>
12473#else
12474# include <assert.h>
12475#endif
12476
12477#undef $ac_func
12478
12479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482#ifdef __cplusplus
12483extern "C"
12484#endif
12485char $ac_func ();
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489#if defined __stub_$ac_func || defined __stub___$ac_func
12490choke me
12491#endif
12492
12493int
12494main ()
12495{
12496return $ac_func ();
12497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext conftest$ac_exeext
12502if { (ac_try="$ac_link"
12503case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506esac
12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest$ac_exeext &&
12518 $as_test_x conftest$ac_exeext; then
12519 eval "$as_ac_var=yes"
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 eval "$as_ac_var=no"
12525fi
12526
12527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528 conftest$ac_exeext conftest.$ac_ext
12529fi
12530ac_res=`eval echo '${'$as_ac_var'}'`
12531 { echo "$as_me:$LINENO: result: $ac_res" >&5
12532echo "${ECHO_T}$ac_res" >&6; }
12533if test `eval echo '${'$as_ac_var'}'` = yes; then
12534 cat >>confdefs.h <<_ACEOF
12535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12536_ACEOF
12537
12538fi
12539done
12540
12541
12542cat >>confdefs.h <<\_ACEOF
12543#define USE_BSM_AUDIT 1
12544_ACEOF
12545
12546 ;;
12547 debug)
12548 AUDIT_MODULE=debug
12549 { echo "$as_me:$LINENO: result: debug" >&5
12550echo "${ECHO_T}debug" >&6; }
12551
12552cat >>confdefs.h <<\_ACEOF
12553#define SSH_AUDIT_EVENTS 1
12554_ACEOF
12555
12556 ;;
12557 no)
12558 { echo "$as_me:$LINENO: result: no" >&5
12559echo "${ECHO_T}no" >&6; }
12560 ;;
12561 *)
12562 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12563echo "$as_me: error: Unknown audit module $withval" >&2;}
12564 { (exit 1); exit 1; }; }
12565 ;;
12566 esac
12567
12568fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12601for ac_func in \
12602 arc4random \
12660for ac_func in \
12661 arc4random \
12662 arc4random_buf \
12663 arc4random_uniform \
12603 asprintf \
12604 b64_ntop \
12605 __b64_ntop \
12606 b64_pton \
12607 __b64_pton \
12608 bcopy \
12609 bindresvport_sa \
12610 clock \
12611 closefrom \
12612 dirfd \
12613 fchmod \
12614 fchown \
12615 freeaddrinfo \
12664 asprintf \
12665 b64_ntop \
12666 __b64_ntop \
12667 b64_pton \
12668 __b64_pton \
12669 bcopy \
12670 bindresvport_sa \
12671 clock \
12672 closefrom \
12673 dirfd \
12674 fchmod \
12675 fchown \
12676 freeaddrinfo \
12677 fstatvfs \
12616 futimes \
12617 getaddrinfo \
12618 getcwd \
12619 getgrouplist \
12620 getnameinfo \
12621 getopt \
12622 getpeereid \
12623 getpeerucred \
12624 _getpty \
12625 getrlimit \
12626 getttyent \
12627 glob \
12628 inet_aton \
12629 inet_ntoa \
12630 inet_ntop \
12631 innetgr \
12632 login_getcapbool \
12633 md5_crypt \
12634 memmove \
12635 mkdtemp \
12636 mmap \
12637 ngetaddrinfo \
12638 nsleep \
12639 ogetaddrinfo \
12640 openlog_r \
12641 openpty \
12642 poll \
12643 prctl \
12644 pstat \
12645 readpassphrase \
12646 realpath \
12647 recvmsg \
12648 rresvport_af \
12649 sendmsg \
12650 setdtablesize \
12651 setegid \
12652 setenv \
12653 seteuid \
12654 setgroups \
12655 setlogin \
12656 setpcred \
12657 setproctitle \
12658 setregid \
12659 setreuid \
12660 setrlimit \
12661 setsid \
12662 setvbuf \
12663 sigaction \
12664 sigvec \
12665 snprintf \
12666 socketpair \
12678 futimes \
12679 getaddrinfo \
12680 getcwd \
12681 getgrouplist \
12682 getnameinfo \
12683 getopt \
12684 getpeereid \
12685 getpeerucred \
12686 _getpty \
12687 getrlimit \
12688 getttyent \
12689 glob \
12690 inet_aton \
12691 inet_ntoa \
12692 inet_ntop \
12693 innetgr \
12694 login_getcapbool \
12695 md5_crypt \
12696 memmove \
12697 mkdtemp \
12698 mmap \
12699 ngetaddrinfo \
12700 nsleep \
12701 ogetaddrinfo \
12702 openlog_r \
12703 openpty \
12704 poll \
12705 prctl \
12706 pstat \
12707 readpassphrase \
12708 realpath \
12709 recvmsg \
12710 rresvport_af \
12711 sendmsg \
12712 setdtablesize \
12713 setegid \
12714 setenv \
12715 seteuid \
12716 setgroups \
12717 setlogin \
12718 setpcred \
12719 setproctitle \
12720 setregid \
12721 setreuid \
12722 setrlimit \
12723 setsid \
12724 setvbuf \
12725 sigaction \
12726 sigvec \
12727 snprintf \
12728 socketpair \
12729 statfs \
12730 statvfs \
12667 strdup \
12668 strerror \
12669 strlcat \
12670 strlcpy \
12671 strmode \
12672 strnvis \
12673 strtonum \
12674 strtoll \
12675 strtoul \
12676 swap32 \
12677 sysconf \
12678 tcgetpgrp \
12679 truncate \
12680 unsetenv \
12681 updwtmpx \
12682 vasprintf \
12683 vhangup \
12684 vsnprintf \
12685 waitpid \
12686
12687do
12688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12691if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12702#define $ac_func innocuous_$ac_func
12703
12704/* System header to define __stub macros and hopefully few prototypes,
12705 which can conflict with char $ac_func (); below.
12706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 <limits.h> exists even on freestanding compilers. */
12708
12709#ifdef __STDC__
12710# include <limits.h>
12711#else
12712# include <assert.h>
12713#endif
12714
12715#undef $ac_func
12716
12717/* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12720#ifdef __cplusplus
12721extern "C"
12722#endif
12723char $ac_func ();
12724/* The GNU C library defines this for functions which it implements
12725 to always fail with ENOSYS. Some functions are actually named
12726 something starting with __ and the normal name is an alias. */
12727#if defined __stub_$ac_func || defined __stub___$ac_func
12728choke me
12729#endif
12730
12731int
12732main ()
12733{
12734return $ac_func ();
12735 ;
12736 return 0;
12737}
12738_ACEOF
12739rm -f conftest.$ac_objext conftest$ac_exeext
12740if { (ac_try="$ac_link"
12741case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744esac
12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest$ac_exeext &&
12756 $as_test_x conftest$ac_exeext; then
12757 eval "$as_ac_var=yes"
12758else
12759 echo "$as_me: failed program was:" >&5
12760sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 eval "$as_ac_var=no"
12763fi
12764
12765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766 conftest$ac_exeext conftest.$ac_ext
12767fi
12768ac_res=`eval echo '${'$as_ac_var'}'`
12769 { echo "$as_me:$LINENO: result: $ac_res" >&5
12770echo "${ECHO_T}$ac_res" >&6; }
12771if test `eval echo '${'$as_ac_var'}'` = yes; then
12772 cat >>confdefs.h <<_ACEOF
12773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12774_ACEOF
12775
12776fi
12777done
12778
12779
12780# IRIX has a const char return value for gai_strerror()
12781
12782for ac_func in gai_strerror
12783do
12784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12785{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12787if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790 cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12798#define $ac_func innocuous_$ac_func
12799
12800/* System header to define __stub macros and hopefully few prototypes,
12801 which can conflict with char $ac_func (); below.
12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 <limits.h> exists even on freestanding compilers. */
12804
12805#ifdef __STDC__
12806# include <limits.h>
12807#else
12808# include <assert.h>
12809#endif
12810
12811#undef $ac_func
12812
12813/* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12816#ifdef __cplusplus
12817extern "C"
12818#endif
12819char $ac_func ();
12820/* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823#if defined __stub_$ac_func || defined __stub___$ac_func
12824choke me
12825#endif
12826
12827int
12828main ()
12829{
12830return $ac_func ();
12831 ;
12832 return 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 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest$ac_exeext &&
12852 $as_test_x conftest$ac_exeext; then
12853 eval "$as_ac_var=yes"
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858 eval "$as_ac_var=no"
12859fi
12860
12861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12862 conftest$ac_exeext conftest.$ac_ext
12863fi
12864ac_res=`eval echo '${'$as_ac_var'}'`
12865 { echo "$as_me:$LINENO: result: $ac_res" >&5
12866echo "${ECHO_T}$ac_res" >&6; }
12867if test `eval echo '${'$as_ac_var'}'` = yes; then
12868 cat >>confdefs.h <<_ACEOF
12869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12870_ACEOF
12871
12872 cat >>confdefs.h <<\_ACEOF
12873#define HAVE_GAI_STRERROR 1
12874_ACEOF
12875
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882
12883#include <sys/types.h>
12884#include <sys/socket.h>
12885#include <netdb.h>
12886
12887const char *gai_strerror(int);
12888int
12889main ()
12890{
12891
12892char *str;
12893
12894str = gai_strerror(0);
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext
12900if { (ac_try="$ac_compile"
12901case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_compile") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest.$ac_objext; then
12916
12917
12918cat >>confdefs.h <<\_ACEOF
12919#define HAVE_CONST_GAI_STRERROR_PROTO 1
12920_ACEOF
12921
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926
12927fi
12928
12929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930fi
12931done
12932
12933
12934{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
12935echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
12936if test "${ac_cv_search_nanosleep+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 ac_func_search_save_LIBS=$LIBS
12940cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946
12947/* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12950#ifdef __cplusplus
12951extern "C"
12952#endif
12953char nanosleep ();
12954int
12955main ()
12956{
12957return nanosleep ();
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962for ac_lib in '' rt posix4; do
12963 if test -z "$ac_lib"; then
12964 ac_res="none required"
12965 else
12966 ac_res=-l$ac_lib
12967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12968 fi
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970if { (ac_try="$ac_link"
12971case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974esac
12975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_link") 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } && {
12983 test -z "$ac_c_werror_flag" ||
12984 test ! -s conftest.err
12985 } && test -s conftest$ac_exeext &&
12986 $as_test_x conftest$ac_exeext; then
12987 ac_cv_search_nanosleep=$ac_res
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992
12993fi
12994
12995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996 conftest$ac_exeext
12997 if test "${ac_cv_search_nanosleep+set}" = set; then
12998 break
12999fi
13000done
13001if test "${ac_cv_search_nanosleep+set}" = set; then
13002 :
13003else
13004 ac_cv_search_nanosleep=no
13005fi
13006rm conftest.$ac_ext
13007LIBS=$ac_func_search_save_LIBS
13008fi
13009{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13010echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13011ac_res=$ac_cv_search_nanosleep
13012if test "$ac_res" != no; then
13013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13014
13015cat >>confdefs.h <<\_ACEOF
13016#define HAVE_NANOSLEEP 1
13017_ACEOF
13018
13019fi
13020
13021
13022{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13023echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13024if test "${ac_cv_have_decl_getrusage+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027 cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033$ac_includes_default
13034int
13035main ()
13036{
13037#ifndef getrusage
13038 (void) getrusage;
13039#endif
13040
13041 ;
13042 return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext
13046if { (ac_try="$ac_compile"
13047case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_compile") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest.$ac_objext; then
13062 ac_cv_have_decl_getrusage=yes
13063else
13064 echo "$as_me: failed program was:" >&5
13065sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 ac_cv_have_decl_getrusage=no
13068fi
13069
13070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071fi
13072{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13073echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13074if test $ac_cv_have_decl_getrusage = yes; then
13075
13076for ac_func in getrusage
13077do
13078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13079{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084 cat >conftest.$ac_ext <<_ACEOF
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
13090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13092#define $ac_func innocuous_$ac_func
13093
13094/* System header to define __stub macros and hopefully few prototypes,
13095 which can conflict with char $ac_func (); below.
13096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13097 <limits.h> exists even on freestanding compilers. */
13098
13099#ifdef __STDC__
13100# include <limits.h>
13101#else
13102# include <assert.h>
13103#endif
13104
13105#undef $ac_func
13106
13107/* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13110#ifdef __cplusplus
13111extern "C"
13112#endif
13113char $ac_func ();
13114/* The GNU C library defines this for functions which it implements
13115 to always fail with ENOSYS. Some functions are actually named
13116 something starting with __ and the normal name is an alias. */
13117#if defined __stub_$ac_func || defined __stub___$ac_func
13118choke me
13119#endif
13120
13121int
13122main ()
13123{
13124return $ac_func ();
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_link") 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } && {
13143 test -z "$ac_c_werror_flag" ||
13144 test ! -s conftest.err
13145 } && test -s conftest$ac_exeext &&
13146 $as_test_x conftest$ac_exeext; then
13147 eval "$as_ac_var=yes"
13148else
13149 echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 eval "$as_ac_var=no"
13153fi
13154
13155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156 conftest$ac_exeext conftest.$ac_ext
13157fi
13158ac_res=`eval echo '${'$as_ac_var'}'`
13159 { echo "$as_me:$LINENO: result: $ac_res" >&5
13160echo "${ECHO_T}$ac_res" >&6; }
13161if test `eval echo '${'$as_ac_var'}'` = yes; then
13162 cat >>confdefs.h <<_ACEOF
13163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13164_ACEOF
13165
13166fi
13167done
13168
13169fi
13170
13171{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13172echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13173if test "${ac_cv_have_decl_strsep+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175else
13176 cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182
13183#ifdef HAVE_STRING_H
13184# include <string.h>
13185#endif
13186
13187
13188int
13189main ()
13190{
13191#ifndef strsep
13192 (void) strsep;
13193#endif
13194
13195 ;
13196 return 0;
13197}
13198_ACEOF
13199rm -f conftest.$ac_objext
13200if { (ac_try="$ac_compile"
13201case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204esac
13205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_compile") 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } && {
13213 test -z "$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13215 } && test -s conftest.$ac_objext; then
13216 ac_cv_have_decl_strsep=yes
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_cv_have_decl_strsep=no
13222fi
13223
13224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225fi
13226{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13227echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13228if test $ac_cv_have_decl_strsep = yes; then
13229
13230for ac_func in strsep
13231do
13232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13233{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13235if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h. */
13244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13246#define $ac_func innocuous_$ac_func
13247
13248/* System header to define __stub macros and hopefully few prototypes,
13249 which can conflict with char $ac_func (); below.
13250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13251 <limits.h> exists even on freestanding compilers. */
13252
13253#ifdef __STDC__
13254# include <limits.h>
13255#else
13256# include <assert.h>
13257#endif
13258
13259#undef $ac_func
13260
13261/* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264#ifdef __cplusplus
13265extern "C"
13266#endif
13267char $ac_func ();
13268/* The GNU C library defines this for functions which it implements
13269 to always fail with ENOSYS. Some functions are actually named
13270 something starting with __ and the normal name is an alias. */
13271#if defined __stub_$ac_func || defined __stub___$ac_func
13272choke me
13273#endif
13274
13275int
13276main ()
13277{
13278return $ac_func ();
13279 ;
13280 return 0;
13281}
13282_ACEOF
13283rm -f conftest.$ac_objext conftest$ac_exeext
13284if { (ac_try="$ac_link"
13285case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288esac
13289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_link") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } && {
13297 test -z "$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 } && test -s conftest$ac_exeext &&
13300 $as_test_x conftest$ac_exeext; then
13301 eval "$as_ac_var=yes"
13302else
13303 echo "$as_me: failed program was:" >&5
13304sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 eval "$as_ac_var=no"
13307fi
13308
13309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13310 conftest$ac_exeext conftest.$ac_ext
13311fi
13312ac_res=`eval echo '${'$as_ac_var'}'`
13313 { echo "$as_me:$LINENO: result: $ac_res" >&5
13314echo "${ECHO_T}$ac_res" >&6; }
13315if test `eval echo '${'$as_ac_var'}'` = yes; then
13316 cat >>confdefs.h <<_ACEOF
13317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13318_ACEOF
13319
13320fi
13321done
13322
13323fi
13324
13325
13326{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13327echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13328if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331 cat >conftest.$ac_ext <<_ACEOF
13332/* confdefs.h. */
13333_ACEOF
13334cat confdefs.h >>conftest.$ac_ext
13335cat >>conftest.$ac_ext <<_ACEOF
13336/* end confdefs.h. */
13337#include <termios.h>
13338
13339
13340int
13341main ()
13342{
13343#ifndef tcsendbreak
13344 (void) tcsendbreak;
13345#endif
13346
13347 ;
13348 return 0;
13349}
13350_ACEOF
13351rm -f conftest.$ac_objext
13352if { (ac_try="$ac_compile"
13353case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356esac
13357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_compile") 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && {
13365 test -z "$ac_c_werror_flag" ||
13366 test ! -s conftest.err
13367 } && test -s conftest.$ac_objext; then
13368 ac_cv_have_decl_tcsendbreak=yes
13369else
13370 echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
13372
13373 ac_cv_have_decl_tcsendbreak=no
13374fi
13375
13376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377fi
13378{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13379echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13380if test $ac_cv_have_decl_tcsendbreak = yes; then
13381 cat >>confdefs.h <<\_ACEOF
13382#define HAVE_TCSENDBREAK 1
13383_ACEOF
13384
13385else
13386
13387for ac_func in tcsendbreak
13388do
13389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13390{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13403#define $ac_func innocuous_$ac_func
13404
13405/* System header to define __stub macros and hopefully few prototypes,
13406 which can conflict with char $ac_func (); below.
13407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408 <limits.h> exists even on freestanding compilers. */
13409
13410#ifdef __STDC__
13411# include <limits.h>
13412#else
13413# include <assert.h>
13414#endif
13415
13416#undef $ac_func
13417
13418/* Override any GCC internal prototype to avoid an error.
13419 Use char because int might match the return type of a GCC
13420 builtin and then its argument prototype would still apply. */
13421#ifdef __cplusplus
13422extern "C"
13423#endif
13424char $ac_func ();
13425/* The GNU C library defines this for functions which it implements
13426 to always fail with ENOSYS. Some functions are actually named
13427 something starting with __ and the normal name is an alias. */
13428#if defined __stub_$ac_func || defined __stub___$ac_func
13429choke me
13430#endif
13431
13432int
13433main ()
13434{
13435return $ac_func ();
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (ac_try="$ac_link"
13442case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445esac
13446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_link") 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && {
13454 test -z "$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 } && test -s conftest$ac_exeext &&
13457 $as_test_x conftest$ac_exeext; then
13458 eval "$as_ac_var=yes"
13459else
13460 echo "$as_me: failed program was:" >&5
13461sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 eval "$as_ac_var=no"
13464fi
13465
13466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13467 conftest$ac_exeext conftest.$ac_ext
13468fi
13469ac_res=`eval echo '${'$as_ac_var'}'`
13470 { echo "$as_me:$LINENO: result: $ac_res" >&5
13471echo "${ECHO_T}$ac_res" >&6; }
13472if test `eval echo '${'$as_ac_var'}'` = yes; then
13473 cat >>confdefs.h <<_ACEOF
13474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13475_ACEOF
13476
13477fi
13478done
13479
13480fi
13481
13482
13483{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13484echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13485if test "${ac_cv_have_decl_h_errno+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487else
13488 cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494#include <netdb.h>
13495
13496int
13497main ()
13498{
13499#ifndef h_errno
13500 (void) h_errno;
13501#endif
13502
13503 ;
13504 return 0;
13505}
13506_ACEOF
13507rm -f conftest.$ac_objext
13508if { (ac_try="$ac_compile"
13509case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512esac
13513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
13524 ac_cv_have_decl_h_errno=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_have_decl_h_errno=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533fi
13534{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13535echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13536if test $ac_cv_have_decl_h_errno = yes; then
13537
13538cat >>confdefs.h <<_ACEOF
13539#define HAVE_DECL_H_ERRNO 1
13540_ACEOF
13541
13542
13543else
13544 cat >>confdefs.h <<_ACEOF
13545#define HAVE_DECL_H_ERRNO 0
13546_ACEOF
13547
13548
13549fi
13550
13551
13552
13553{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13554echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13555if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557else
13558 cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564
13565#include <sys/types.h>
13566#include <sys/socket.h>
13567
13568
13569int
13570main ()
13571{
13572#ifndef SHUT_RD
13573 (void) SHUT_RD;
13574#endif
13575
13576 ;
13577 return 0;
13578}
13579_ACEOF
13580rm -f conftest.$ac_objext
13581if { (ac_try="$ac_compile"
13582case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_compile") 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } && {
13594 test -z "$ac_c_werror_flag" ||
13595 test ! -s conftest.err
13596 } && test -s conftest.$ac_objext; then
13597 ac_cv_have_decl_SHUT_RD=yes
13598else
13599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 ac_cv_have_decl_SHUT_RD=no
13603fi
13604
13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606fi
13607{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13608echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13609if test $ac_cv_have_decl_SHUT_RD = yes; then
13610
13611cat >>confdefs.h <<_ACEOF
13612#define HAVE_DECL_SHUT_RD 1
13613_ACEOF
13614
13615
13616else
13617 cat >>confdefs.h <<_ACEOF
13618#define HAVE_DECL_SHUT_RD 0
13619_ACEOF
13620
13621
13622fi
13623
13624
13625
13626{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13627echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13628if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630else
13631 cat >conftest.$ac_ext <<_ACEOF
13632/* confdefs.h. */
13633_ACEOF
13634cat confdefs.h >>conftest.$ac_ext
13635cat >>conftest.$ac_ext <<_ACEOF
13636/* end confdefs.h. */
13637
13638#include <sys/types.h>
13639#ifdef HAVE_SYS_STAT_H
13640# include <sys/stat.h>
13641#endif
13642#ifdef HAVE_FCNTL_H
13643# include <fcntl.h>
13644#endif
13645
13646
13647int
13648main ()
13649{
13650#ifndef O_NONBLOCK
13651 (void) O_NONBLOCK;
13652#endif
13653
13654 ;
13655 return 0;
13656}
13657_ACEOF
13658rm -f conftest.$ac_objext
13659if { (ac_try="$ac_compile"
13660case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663esac
13664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_compile") 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && {
13672 test -z "$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 } && test -s conftest.$ac_objext; then
13675 ac_cv_have_decl_O_NONBLOCK=yes
13676else
13677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 ac_cv_have_decl_O_NONBLOCK=no
13681fi
13682
13683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684fi
13685{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13686echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13687if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13688
13689cat >>confdefs.h <<_ACEOF
13690#define HAVE_DECL_O_NONBLOCK 1
13691_ACEOF
13692
13693
13694else
13695 cat >>confdefs.h <<_ACEOF
13696#define HAVE_DECL_O_NONBLOCK 0
13697_ACEOF
13698
13699
13700fi
13701
13702
13703
13704{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
13705echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13706if test "${ac_cv_have_decl_writev+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708else
13709 cat >conftest.$ac_ext <<_ACEOF
13710/* confdefs.h. */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
13714/* end confdefs.h. */
13715
13716#include <sys/types.h>
13717#include <sys/uio.h>
13718#include <unistd.h>
13719
13720
13721int
13722main ()
13723{
13724#ifndef writev
13725 (void) writev;
13726#endif
13727
13728 ;
13729 return 0;
13730}
13731_ACEOF
13732rm -f conftest.$ac_objext
13733if { (ac_try="$ac_compile"
13734case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_compile") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest.$ac_objext; then
13749 ac_cv_have_decl_writev=yes
13750else
13751 echo "$as_me: failed program was:" >&5
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
13754 ac_cv_have_decl_writev=no
13755fi
13756
13757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758fi
13759{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13760echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13761if test $ac_cv_have_decl_writev = yes; then
13762
13763cat >>confdefs.h <<_ACEOF
13764#define HAVE_DECL_WRITEV 1
13765_ACEOF
13766
13767
13768else
13769 cat >>confdefs.h <<_ACEOF
13770#define HAVE_DECL_WRITEV 0
13771_ACEOF
13772
13773
13774fi
13775
13776
13777
13778{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
13779echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
13780if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 cat >conftest.$ac_ext <<_ACEOF
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
13788/* end confdefs.h. */
13789
13790#include <sys/param.h>
13791
13792
13793int
13794main ()
13795{
13796#ifndef MAXSYMLINKS
13797 (void) MAXSYMLINKS;
13798#endif
13799
13800 ;
13801 return 0;
13802}
13803_ACEOF
13804rm -f conftest.$ac_objext
13805if { (ac_try="$ac_compile"
13806case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809esac
13810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_compile") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && {
13818 test -z "$ac_c_werror_flag" ||
13819 test ! -s conftest.err
13820 } && test -s conftest.$ac_objext; then
13821 ac_cv_have_decl_MAXSYMLINKS=yes
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_cv_have_decl_MAXSYMLINKS=no
13827fi
13828
13829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830fi
13831{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
13832echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
13833if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
13834
13835cat >>confdefs.h <<_ACEOF
13836#define HAVE_DECL_MAXSYMLINKS 1
13837_ACEOF
13838
13839
13840else
13841 cat >>confdefs.h <<_ACEOF
13842#define HAVE_DECL_MAXSYMLINKS 0
13843_ACEOF
13844
13845
13846fi
13847
13848
13849
13850{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
13851echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
13852if test "${ac_cv_have_decl_offsetof+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855 cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861
13862#include <stddef.h>
13863
13864
13865int
13866main ()
13867{
13868#ifndef offsetof
13869 (void) offsetof;
13870#endif
13871
13872 ;
13873 return 0;
13874}
13875_ACEOF
13876rm -f conftest.$ac_objext
13877if { (ac_try="$ac_compile"
13878case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13881esac
13882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_compile") 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } && {
13890 test -z "$ac_c_werror_flag" ||
13891 test ! -s conftest.err
13892 } && test -s conftest.$ac_objext; then
13893 ac_cv_have_decl_offsetof=yes
13894else
13895 echo "$as_me: failed program was:" >&5
13896sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_cv_have_decl_offsetof=no
13899fi
13900
13901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902fi
13903{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
13904echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
13905if test $ac_cv_have_decl_offsetof = yes; then
13906
13907cat >>confdefs.h <<_ACEOF
13908#define HAVE_DECL_OFFSETOF 1
13909_ACEOF
13910
13911
13912else
13913 cat >>confdefs.h <<_ACEOF
13914#define HAVE_DECL_OFFSETOF 0
13915_ACEOF
13916
13917
13918fi
13919
13920
13921
13922
13923for ac_func in setresuid
13924do
13925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931 cat >conftest.$ac_ext <<_ACEOF
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
13937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13939#define $ac_func innocuous_$ac_func
13940
13941/* System header to define __stub macros and hopefully few prototypes,
13942 which can conflict with char $ac_func (); below.
13943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13944 <limits.h> exists even on freestanding compilers. */
13945
13946#ifdef __STDC__
13947# include <limits.h>
13948#else
13949# include <assert.h>
13950#endif
13951
13952#undef $ac_func
13953
13954/* Override any GCC internal prototype to avoid an error.
13955 Use char because int might match the return type of a GCC
13956 builtin and then its argument prototype would still apply. */
13957#ifdef __cplusplus
13958extern "C"
13959#endif
13960char $ac_func ();
13961/* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964#if defined __stub_$ac_func || defined __stub___$ac_func
13965choke me
13966#endif
13967
13968int
13969main ()
13970{
13971return $ac_func ();
13972 ;
13973 return 0;
13974}
13975_ACEOF
13976rm -f conftest.$ac_objext conftest$ac_exeext
13977if { (ac_try="$ac_link"
13978case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981esac
13982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_link") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest$ac_exeext &&
13993 $as_test_x conftest$ac_exeext; then
13994 eval "$as_ac_var=yes"
13995else
13996 echo "$as_me: failed program was:" >&5
13997sed 's/^/| /' conftest.$ac_ext >&5
13998
13999 eval "$as_ac_var=no"
14000fi
14001
14002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14003 conftest$ac_exeext conftest.$ac_ext
14004fi
14005ac_res=`eval echo '${'$as_ac_var'}'`
14006 { echo "$as_me:$LINENO: result: $ac_res" >&5
14007echo "${ECHO_T}$ac_res" >&6; }
14008if test `eval echo '${'$as_ac_var'}'` = yes; then
14009 cat >>confdefs.h <<_ACEOF
14010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14011_ACEOF
14012
14013 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14014echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14015 if test "$cross_compiling" = yes; then
14016 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14017echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14018
14019else
14020 cat >conftest.$ac_ext <<_ACEOF
14021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
14026
14027#include <stdlib.h>
14028#include <errno.h>
14029int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14030
14031_ACEOF
14032rm -f conftest$ac_exeext
14033if { (ac_try="$ac_link"
14034case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_link") 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 { echo "$as_me:$LINENO: result: yes" >&5
14053echo "${ECHO_T}yes" >&6; }
14054else
14055 echo "$as_me: program exited with status $ac_status" >&5
14056echo "$as_me: failed program was:" >&5
14057sed 's/^/| /' conftest.$ac_ext >&5
14058
14059( exit $ac_status )
14060
14061cat >>confdefs.h <<\_ACEOF
14062#define BROKEN_SETRESUID 1
14063_ACEOF
14064
14065 { echo "$as_me:$LINENO: result: not implemented" >&5
14066echo "${ECHO_T}not implemented" >&6; }
14067fi
14068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14069fi
14070
14071
14072
14073fi
14074done
14075
14076
14077
14078for ac_func in setresgid
14079do
14080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085else
14086 cat >conftest.$ac_ext <<_ACEOF
14087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
14092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14094#define $ac_func innocuous_$ac_func
14095
14096/* System header to define __stub macros and hopefully few prototypes,
14097 which can conflict with char $ac_func (); below.
14098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14099 <limits.h> exists even on freestanding compilers. */
14100
14101#ifdef __STDC__
14102# include <limits.h>
14103#else
14104# include <assert.h>
14105#endif
14106
14107#undef $ac_func
14108
14109/* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14112#ifdef __cplusplus
14113extern "C"
14114#endif
14115char $ac_func ();
14116/* The GNU C library defines this for functions which it implements
14117 to always fail with ENOSYS. Some functions are actually named
14118 something starting with __ and the normal name is an alias. */
14119#if defined __stub_$ac_func || defined __stub___$ac_func
14120choke me
14121#endif
14122
14123int
14124main ()
14125{
14126return $ac_func ();
14127 ;
14128 return 0;
14129}
14130_ACEOF
14131rm -f conftest.$ac_objext conftest$ac_exeext
14132if { (ac_try="$ac_link"
14133case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136esac
14137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_link") 2>conftest.er1
14139 ac_status=$?
14140 grep -v '^ *+' conftest.er1 >conftest.err
14141 rm -f conftest.er1
14142 cat conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } && {
14145 test -z "$ac_c_werror_flag" ||
14146 test ! -s conftest.err
14147 } && test -s conftest$ac_exeext &&
14148 $as_test_x conftest$ac_exeext; then
14149 eval "$as_ac_var=yes"
14150else
14151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 eval "$as_ac_var=no"
14155fi
14156
14157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14158 conftest$ac_exeext conftest.$ac_ext
14159fi
14160ac_res=`eval echo '${'$as_ac_var'}'`
14161 { echo "$as_me:$LINENO: result: $ac_res" >&5
14162echo "${ECHO_T}$ac_res" >&6; }
14163if test `eval echo '${'$as_ac_var'}'` = yes; then
14164 cat >>confdefs.h <<_ACEOF
14165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14166_ACEOF
14167
14168 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14169echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14170 if test "$cross_compiling" = yes; then
14171 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14172echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14173
14174else
14175 cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181
14182#include <stdlib.h>
14183#include <errno.h>
14184int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14185
14186_ACEOF
14187rm -f conftest$ac_exeext
14188if { (ac_try="$ac_link"
14189case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192esac
14193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_link") 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201esac
14202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 { echo "$as_me:$LINENO: result: yes" >&5
14208echo "${ECHO_T}yes" >&6; }
14209else
14210 echo "$as_me: program exited with status $ac_status" >&5
14211echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214( exit $ac_status )
14215
14216cat >>confdefs.h <<\_ACEOF
14217#define BROKEN_SETRESGID 1
14218_ACEOF
14219
14220 { echo "$as_me:$LINENO: result: not implemented" >&5
14221echo "${ECHO_T}not implemented" >&6; }
14222fi
14223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14224fi
14225
14226
14227
14228fi
14229done
14230
14231
14232
14233
14234for ac_func in gettimeofday time
14235do
14236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242 cat >conftest.$ac_ext <<_ACEOF
14243/* confdefs.h. */
14244_ACEOF
14245cat confdefs.h >>conftest.$ac_ext
14246cat >>conftest.$ac_ext <<_ACEOF
14247/* end confdefs.h. */
14248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14250#define $ac_func innocuous_$ac_func
14251
14252/* System header to define __stub macros and hopefully few prototypes,
14253 which can conflict with char $ac_func (); below.
14254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14255 <limits.h> exists even on freestanding compilers. */
14256
14257#ifdef __STDC__
14258# include <limits.h>
14259#else
14260# include <assert.h>
14261#endif
14262
14263#undef $ac_func
14264
14265/* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268#ifdef __cplusplus
14269extern "C"
14270#endif
14271char $ac_func ();
14272/* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275#if defined __stub_$ac_func || defined __stub___$ac_func
14276choke me
14277#endif
14278
14279int
14280main ()
14281{
14282return $ac_func ();
14283 ;
14284 return 0;
14285}
14286_ACEOF
14287rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } && {
14301 test -z "$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14303 } && test -s conftest$ac_exeext &&
14304 $as_test_x conftest$ac_exeext; then
14305 eval "$as_ac_var=yes"
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310 eval "$as_ac_var=no"
14311fi
14312
14313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext conftest.$ac_ext
14315fi
14316ac_res=`eval echo '${'$as_ac_var'}'`
14317 { echo "$as_me:$LINENO: result: $ac_res" >&5
14318echo "${ECHO_T}$ac_res" >&6; }
14319if test `eval echo '${'$as_ac_var'}'` = yes; then
14320 cat >>confdefs.h <<_ACEOF
14321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14322_ACEOF
14323
14324fi
14325done
14326
14327
14328
14329
14330
14331
14332
14333for ac_func in endutent getutent getutid getutline pututline setutent
14334do
14335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14349#define $ac_func innocuous_$ac_func
14350
14351/* System header to define __stub macros and hopefully few prototypes,
14352 which can conflict with char $ac_func (); below.
14353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 <limits.h> exists even on freestanding compilers. */
14355
14356#ifdef __STDC__
14357# include <limits.h>
14358#else
14359# include <assert.h>
14360#endif
14361
14362#undef $ac_func
14363
14364/* Override any GCC internal prototype to avoid an error.
14365 Use char because int might match the return type of a GCC
14366 builtin and then its argument prototype would still apply. */
14367#ifdef __cplusplus
14368extern "C"
14369#endif
14370char $ac_func ();
14371/* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374#if defined __stub_$ac_func || defined __stub___$ac_func
14375choke me
14376#endif
14377
14378int
14379main ()
14380{
14381return $ac_func ();
14382 ;
14383 return 0;
14384}
14385_ACEOF
14386rm -f conftest.$ac_objext conftest$ac_exeext
14387if { (ac_try="$ac_link"
14388case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391esac
14392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest$ac_exeext &&
14403 $as_test_x conftest$ac_exeext; then
14404 eval "$as_ac_var=yes"
14405else
14406 echo "$as_me: failed program was:" >&5
14407sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 eval "$as_ac_var=no"
14410fi
14411
14412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 conftest$ac_exeext conftest.$ac_ext
14414fi
14415ac_res=`eval echo '${'$as_ac_var'}'`
14416 { echo "$as_me:$LINENO: result: $ac_res" >&5
14417echo "${ECHO_T}$ac_res" >&6; }
14418if test `eval echo '${'$as_ac_var'}'` = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14421_ACEOF
14422
14423fi
14424done
14425
14426
14427for ac_func in utmpname
14428do
14429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14430{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14432if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435 cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14443#define $ac_func innocuous_$ac_func
14444
14445/* System header to define __stub macros and hopefully few prototypes,
14446 which can conflict with char $ac_func (); below.
14447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14448 <limits.h> exists even on freestanding compilers. */
14449
14450#ifdef __STDC__
14451# include <limits.h>
14452#else
14453# include <assert.h>
14454#endif
14455
14456#undef $ac_func
14457
14458/* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461#ifdef __cplusplus
14462extern "C"
14463#endif
14464char $ac_func ();
14465/* The GNU C library defines this for functions which it implements
14466 to always fail with ENOSYS. Some functions are actually named
14467 something starting with __ and the normal name is an alias. */
14468#if defined __stub_$ac_func || defined __stub___$ac_func
14469choke me
14470#endif
14471
14472int
14473main ()
14474{
14475return $ac_func ();
14476 ;
14477 return 0;
14478}
14479_ACEOF
14480rm -f conftest.$ac_objext conftest$ac_exeext
14481if { (ac_try="$ac_link"
14482case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_link") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && {
14494 test -z "$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 } && test -s conftest$ac_exeext &&
14497 $as_test_x conftest$ac_exeext; then
14498 eval "$as_ac_var=yes"
14499else
14500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 eval "$as_ac_var=no"
14504fi
14505
14506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14507 conftest$ac_exeext conftest.$ac_ext
14508fi
14509ac_res=`eval echo '${'$as_ac_var'}'`
14510 { echo "$as_me:$LINENO: result: $ac_res" >&5
14511echo "${ECHO_T}$ac_res" >&6; }
14512if test `eval echo '${'$as_ac_var'}'` = yes; then
14513 cat >>confdefs.h <<_ACEOF
14514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14515_ACEOF
14516
14517fi
14518done
14519
14520
14521
14522
14523
14524
14525for ac_func in endutxent getutxent getutxid getutxline pututxline
14526do
14527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14528{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 cat >conftest.$ac_ext <<_ACEOF
14534/* confdefs.h. */
14535_ACEOF
14536cat confdefs.h >>conftest.$ac_ext
14537cat >>conftest.$ac_ext <<_ACEOF
14538/* end confdefs.h. */
14539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14541#define $ac_func innocuous_$ac_func
14542
14543/* System header to define __stub macros and hopefully few prototypes,
14544 which can conflict with char $ac_func (); below.
14545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14546 <limits.h> exists even on freestanding compilers. */
14547
14548#ifdef __STDC__
14549# include <limits.h>
14550#else
14551# include <assert.h>
14552#endif
14553
14554#undef $ac_func
14555
14556/* Override any GCC internal prototype to avoid an error.
14557 Use char because int might match the return type of a GCC
14558 builtin and then its argument prototype would still apply. */
14559#ifdef __cplusplus
14560extern "C"
14561#endif
14562char $ac_func ();
14563/* The GNU C library defines this for functions which it implements
14564 to always fail with ENOSYS. Some functions are actually named
14565 something starting with __ and the normal name is an alias. */
14566#if defined __stub_$ac_func || defined __stub___$ac_func
14567choke me
14568#endif
14569
14570int
14571main ()
14572{
14573return $ac_func ();
14574 ;
14575 return 0;
14576}
14577_ACEOF
14578rm -f conftest.$ac_objext conftest$ac_exeext
14579if { (ac_try="$ac_link"
14580case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_link") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } && {
14592 test -z "$ac_c_werror_flag" ||
14593 test ! -s conftest.err
14594 } && test -s conftest$ac_exeext &&
14595 $as_test_x conftest$ac_exeext; then
14596 eval "$as_ac_var=yes"
14597else
14598 echo "$as_me: failed program was:" >&5
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 eval "$as_ac_var=no"
14602fi
14603
14604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605 conftest$ac_exeext conftest.$ac_ext
14606fi
14607ac_res=`eval echo '${'$as_ac_var'}'`
14608 { echo "$as_me:$LINENO: result: $ac_res" >&5
14609echo "${ECHO_T}$ac_res" >&6; }
14610if test `eval echo '${'$as_ac_var'}'` = yes; then
14611 cat >>confdefs.h <<_ACEOF
14612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14613_ACEOF
14614
14615fi
14616done
14617
14618
14619
14620for ac_func in setutxent utmpxname
14621do
14622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14625if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627else
14628 cat >conftest.$ac_ext <<_ACEOF
14629/* confdefs.h. */
14630_ACEOF
14631cat confdefs.h >>conftest.$ac_ext
14632cat >>conftest.$ac_ext <<_ACEOF
14633/* end confdefs.h. */
14634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14636#define $ac_func innocuous_$ac_func
14637
14638/* System header to define __stub macros and hopefully few prototypes,
14639 which can conflict with char $ac_func (); below.
14640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14641 <limits.h> exists even on freestanding compilers. */
14642
14643#ifdef __STDC__
14644# include <limits.h>
14645#else
14646# include <assert.h>
14647#endif
14648
14649#undef $ac_func
14650
14651/* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14654#ifdef __cplusplus
14655extern "C"
14656#endif
14657char $ac_func ();
14658/* The GNU C library defines this for functions which it implements
14659 to always fail with ENOSYS. Some functions are actually named
14660 something starting with __ and the normal name is an alias. */
14661#if defined __stub_$ac_func || defined __stub___$ac_func
14662choke me
14663#endif
14664
14665int
14666main ()
14667{
14668return $ac_func ();
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673rm -f conftest.$ac_objext conftest$ac_exeext
14674if { (ac_try="$ac_link"
14675case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678esac
14679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_link") 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_c_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest$ac_exeext &&
14690 $as_test_x conftest$ac_exeext; then
14691 eval "$as_ac_var=yes"
14692else
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 eval "$as_ac_var=no"
14697fi
14698
14699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14700 conftest$ac_exeext conftest.$ac_ext
14701fi
14702ac_res=`eval echo '${'$as_ac_var'}'`
14703 { echo "$as_me:$LINENO: result: $ac_res" >&5
14704echo "${ECHO_T}$ac_res" >&6; }
14705if test `eval echo '${'$as_ac_var'}'` = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708_ACEOF
14709
14710fi
14711done
14712
14713
14714{ echo "$as_me:$LINENO: checking for daemon" >&5
14715echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14716if test "${ac_cv_func_daemon+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
14719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14727#define daemon innocuous_daemon
14728
14729/* System header to define __stub macros and hopefully few prototypes,
14730 which can conflict with char daemon (); below.
14731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14732 <limits.h> exists even on freestanding compilers. */
14733
14734#ifdef __STDC__
14735# include <limits.h>
14736#else
14737# include <assert.h>
14738#endif
14739
14740#undef daemon
14741
14742/* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14745#ifdef __cplusplus
14746extern "C"
14747#endif
14748char daemon ();
14749/* The GNU C library defines this for functions which it implements
14750 to always fail with ENOSYS. Some functions are actually named
14751 something starting with __ and the normal name is an alias. */
14752#if defined __stub_daemon || defined __stub___daemon
14753choke me
14754#endif
14755
14756int
14757main ()
14758{
14759return daemon ();
14760 ;
14761 return 0;
14762}
14763_ACEOF
14764rm -f conftest.$ac_objext conftest$ac_exeext
14765if { (ac_try="$ac_link"
14766case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest$ac_exeext &&
14781 $as_test_x conftest$ac_exeext; then
14782 ac_cv_func_daemon=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_cv_func_daemon=no
14788fi
14789
14790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791 conftest$ac_exeext conftest.$ac_ext
14792fi
14793{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14794echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
14795if test $ac_cv_func_daemon = yes; then
14796
14797cat >>confdefs.h <<\_ACEOF
14798#define HAVE_DAEMON 1
14799_ACEOF
14800
14801else
14802 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
14803echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
14804if test "${ac_cv_lib_bsd_daemon+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806else
14807 ac_check_lib_save_LIBS=$LIBS
14808LIBS="-lbsd $LIBS"
14809cat >conftest.$ac_ext <<_ACEOF
14810/* confdefs.h. */
14811_ACEOF
14812cat confdefs.h >>conftest.$ac_ext
14813cat >>conftest.$ac_ext <<_ACEOF
14814/* end confdefs.h. */
14815
14816/* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14819#ifdef __cplusplus
14820extern "C"
14821#endif
14822char daemon ();
14823int
14824main ()
14825{
14826return daemon ();
14827 ;
14828 return 0;
14829}
14830_ACEOF
14831rm -f conftest.$ac_objext conftest$ac_exeext
14832if { (ac_try="$ac_link"
14833case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836esac
14837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_link") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest$ac_exeext &&
14848 $as_test_x conftest$ac_exeext; then
14849 ac_cv_lib_bsd_daemon=yes
14850else
14851 echo "$as_me: failed program was:" >&5
14852sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_cv_lib_bsd_daemon=no
14855fi
14856
14857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14858 conftest$ac_exeext conftest.$ac_ext
14859LIBS=$ac_check_lib_save_LIBS
14860fi
14861{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
14862echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
14863if test $ac_cv_lib_bsd_daemon = yes; then
14864 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
14865#define HAVE_DAEMON 1
14866_ACEOF
14867
14868fi
14869
14870
14871fi
14872
14873
14874{ echo "$as_me:$LINENO: checking for getpagesize" >&5
14875echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
14876if test "${ac_cv_func_getpagesize+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878else
14879 cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h. */
14885/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
14886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14887#define getpagesize innocuous_getpagesize
14888
14889/* System header to define __stub macros and hopefully few prototypes,
14890 which can conflict with char getpagesize (); below.
14891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892 <limits.h> exists even on freestanding compilers. */
14893
14894#ifdef __STDC__
14895# include <limits.h>
14896#else
14897# include <assert.h>
14898#endif
14899
14900#undef getpagesize
14901
14902/* Override any GCC internal prototype to avoid an error.
14903 Use char because int might match the return type of a GCC
14904 builtin and then its argument prototype would still apply. */
14905#ifdef __cplusplus
14906extern "C"
14907#endif
14908char getpagesize ();
14909/* The GNU C library defines this for functions which it implements
14910 to always fail with ENOSYS. Some functions are actually named
14911 something starting with __ and the normal name is an alias. */
14912#if defined __stub_getpagesize || defined __stub___getpagesize
14913choke me
14914#endif
14915
14916int
14917main ()
14918{
14919return getpagesize ();
14920 ;
14921 return 0;
14922}
14923_ACEOF
14924rm -f conftest.$ac_objext conftest$ac_exeext
14925if { (ac_try="$ac_link"
14926case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929esac
14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_link") 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest$ac_exeext &&
14941 $as_test_x conftest$ac_exeext; then
14942 ac_cv_func_getpagesize=yes
14943else
14944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
14947 ac_cv_func_getpagesize=no
14948fi
14949
14950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14952fi
14953{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
14954echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
14955if test $ac_cv_func_getpagesize = yes; then
14956
14957cat >>confdefs.h <<\_ACEOF
14958#define HAVE_GETPAGESIZE 1
14959_ACEOF
14960
14961else
14962 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
14963echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
14964if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
14967 ac_check_lib_save_LIBS=$LIBS
14968LIBS="-lucb $LIBS"
14969cat >conftest.$ac_ext <<_ACEOF
14970/* confdefs.h. */
14971_ACEOF
14972cat confdefs.h >>conftest.$ac_ext
14973cat >>conftest.$ac_ext <<_ACEOF
14974/* end confdefs.h. */
14975
14976/* Override any GCC internal prototype to avoid an error.
14977 Use char because int might match the return type of a GCC
14978 builtin and then its argument prototype would still apply. */
14979#ifdef __cplusplus
14980extern "C"
14981#endif
14982char getpagesize ();
14983int
14984main ()
14985{
14986return getpagesize ();
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext conftest$ac_exeext
14992if { (ac_try="$ac_link"
14993case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_link") 2>conftest.er1
14999 ac_status=$?
15000 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } && {
15005 test -z "$ac_c_werror_flag" ||
15006 test ! -s conftest.err
15007 } && test -s conftest$ac_exeext &&
15008 $as_test_x conftest$ac_exeext; then
15009 ac_cv_lib_ucb_getpagesize=yes
15010else
15011 echo "$as_me: failed program was:" >&5
15012sed 's/^/| /' conftest.$ac_ext >&5
15013
15014 ac_cv_lib_ucb_getpagesize=no
15015fi
15016
15017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15018 conftest$ac_exeext conftest.$ac_ext
15019LIBS=$ac_check_lib_save_LIBS
15020fi
15021{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15022echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15023if test $ac_cv_lib_ucb_getpagesize = yes; then
15024 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15025#define HAVE_GETPAGESIZE 1
15026_ACEOF
15027
15028fi
15029
15030
15031fi
15032
15033
15034# Check for broken snprintf
15035if test "x$ac_cv_func_snprintf" = "xyes" ; then
15036 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15037echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15038 if test "$cross_compiling" = yes; then
15039 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15040echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15041
15042else
15043 cat >conftest.$ac_ext <<_ACEOF
15044/* confdefs.h. */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h. */
15049
15050#include <stdio.h>
15051int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15052
15053_ACEOF
15054rm -f conftest$ac_exeext
15055if { (ac_try="$ac_link"
15056case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059esac
15060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_link") 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15065 { (case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068esac
15069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_try") 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 { echo "$as_me:$LINENO: result: yes" >&5
15075echo "${ECHO_T}yes" >&6; }
15076else
15077 echo "$as_me: program exited with status $ac_status" >&5
15078echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081( exit $ac_status )
15082
15083 { echo "$as_me:$LINENO: result: no" >&5
15084echo "${ECHO_T}no" >&6; }
15085
15086cat >>confdefs.h <<\_ACEOF
15087#define BROKEN_SNPRINTF 1
15088_ACEOF
15089
15090 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15091echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15092
15093fi
15094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15095fi
15096
15097
15098fi
15099
15100# If we don't have a working asprintf, then we strongly depend on vsnprintf
15101# returning the right thing on overflow: the number of characters it tried to
15102# create (as per SUSv3)
15103if test "x$ac_cv_func_asprintf" != "xyes" && \
15104 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15105 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15106echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15107 if test "$cross_compiling" = yes; then
15108 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15109echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15110
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 <stdio.h>
15121#include <stdarg.h>
15122
15123int x_snprintf(char *str,size_t count,const char *fmt,...)
15124{
15125 size_t ret; va_list ap;
15126 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15127 return ret;
15128}
15129int main(void)
15130{
15131 char x[1];
15132 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15133}
15134_ACEOF
15135rm -f conftest$ac_exeext
15136if { (ac_try="$ac_link"
15137case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140esac
15141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_link") 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149esac
15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 { echo "$as_me:$LINENO: result: yes" >&5
15156echo "${ECHO_T}yes" >&6; }
15157else
15158 echo "$as_me: program exited with status $ac_status" >&5
15159echo "$as_me: failed program was:" >&5
15160sed 's/^/| /' conftest.$ac_ext >&5
15161
15162( exit $ac_status )
15163
15164 { echo "$as_me:$LINENO: result: no" >&5
15165echo "${ECHO_T}no" >&6; }
15166
15167cat >>confdefs.h <<\_ACEOF
15168#define BROKEN_SNPRINTF 1
15169_ACEOF
15170
15171 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15172echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15173
15174fi
15175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15176fi
15177
15178
15179fi
15180
15181# On systems where [v]snprintf is broken, but is declared in stdio,
15182# check that the fmt argument is const char * or just char *.
15183# This is only useful for when BROKEN_SNPRINTF
15184{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15185echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15186cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
15192#include <stdio.h>
15193 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15194 int main(void) { snprintf(0, 0, 0); }
15195
15196_ACEOF
15197rm -f conftest.$ac_objext
15198if { (ac_try="$ac_compile"
15199case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202esac
15203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_compile") 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } && {
15211 test -z "$ac_c_werror_flag" ||
15212 test ! -s conftest.err
15213 } && test -s conftest.$ac_objext; then
15214 { echo "$as_me:$LINENO: result: yes" >&5
15215echo "${ECHO_T}yes" >&6; }
15216
15217cat >>confdefs.h <<\_ACEOF
15218#define SNPRINTF_CONST const
15219_ACEOF
15220
15221else
15222 echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 { echo "$as_me:$LINENO: result: no" >&5
15226echo "${ECHO_T}no" >&6; }
15227 cat >>confdefs.h <<\_ACEOF
15228#define SNPRINTF_CONST /* not const */
15229_ACEOF
15230
15231fi
15232
15233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15234
15235# Check for missing getpeereid (or equiv) support
15236NO_PEERCHECK=""
15237if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15238 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15239echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15240 cat >conftest.$ac_ext <<_ACEOF
15241/* confdefs.h. */
15242_ACEOF
15243cat confdefs.h >>conftest.$ac_ext
15244cat >>conftest.$ac_ext <<_ACEOF
15245/* end confdefs.h. */
15246#include <sys/types.h>
15247 #include <sys/socket.h>
15248int
15249main ()
15250{
15251int i = SO_PEERCRED;
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext
15257if { (ac_try="$ac_compile"
15258case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_compile") 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest.$ac_objext; then
15273 { echo "$as_me:$LINENO: result: yes" >&5
15274echo "${ECHO_T}yes" >&6; }
15275
15276cat >>confdefs.h <<\_ACEOF
15277#define HAVE_SO_PEERCRED 1
15278_ACEOF
15279
15280
15281else
15282 echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 { echo "$as_me:$LINENO: result: no" >&5
15286echo "${ECHO_T}no" >&6; }
15287 NO_PEERCHECK=1
15288
15289fi
15290
15291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292fi
15293
15294if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15295{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15296echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15297if test "$cross_compiling" = yes; then
15298
15299 { echo "$as_me:$LINENO: result: yes" >&5
15300echo "${ECHO_T}yes" >&6; }
15301 cat >>confdefs.h <<\_ACEOF
15302#define HAVE_STRICT_MKSTEMP 1
15303_ACEOF
15304
15305
15306
15307else
15308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314
15315#include <stdlib.h>
15316main() { char template[]="conftest.mkstemp-test";
15317if (mkstemp(template) == -1)
15318 exit(1);
15319unlink(template); exit(0);
15320}
15321
15322_ACEOF
15323rm -f conftest$ac_exeext
15324if { (ac_try="$ac_link"
15325case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15334 { (case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337esac
15338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343
15344 { echo "$as_me:$LINENO: result: no" >&5
15345echo "${ECHO_T}no" >&6; }
15346
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
15354 { echo "$as_me:$LINENO: result: yes" >&5
15355echo "${ECHO_T}yes" >&6; }
15356
15357cat >>confdefs.h <<\_ACEOF
15358#define HAVE_STRICT_MKSTEMP 1
15359_ACEOF
15360
15361
15362fi
15363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15364fi
15365
15366
15367fi
15368
15369if test ! -z "$check_for_openpty_ctty_bug"; then
15370 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
15371echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
15372 if test "$cross_compiling" = yes; then
15373
15374 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15375echo "${ECHO_T}cross-compiling" >&6; }
15376
15377
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
15386#include <stdio.h>
15387#include <sys/fcntl.h>
15388#include <sys/types.h>
15389#include <sys/wait.h>
15390
15391int
15392main()
15393{
15394 pid_t pid;
15395 int fd, ptyfd, ttyfd, status;
15396
15397 pid = fork();
15398 if (pid < 0) { /* failed */
15399 exit(1);
15400 } else if (pid > 0) { /* parent */
15401 waitpid(pid, &status, 0);
15402 if (WIFEXITED(status))
15403 exit(WEXITSTATUS(status));
15404 else
15405 exit(2);
15406 } else { /* child */
15407 close(0); close(1); close(2);
15408 setsid();
15409 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15410 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15411 if (fd >= 0)
15412 exit(3); /* Acquired ctty: broken */
15413 else
15414 exit(0); /* Did not acquire ctty: OK */
15415 }
15416}
15417
15418_ACEOF
15419rm -f conftest$ac_exeext
15420if { (ac_try="$ac_link"
15421case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439
15440 { echo "$as_me:$LINENO: result: yes" >&5
15441echo "${ECHO_T}yes" >&6; }
15442
15443else
15444 echo "$as_me: program exited with status $ac_status" >&5
15445echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448( exit $ac_status )
15449
15450 { echo "$as_me:$LINENO: result: no" >&5
15451echo "${ECHO_T}no" >&6; }
15452 cat >>confdefs.h <<\_ACEOF
15453#define SSHD_ACQUIRES_CTTY 1
15454_ACEOF
15455
15456
15457fi
15458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15459fi
15460
15461
15462fi
15463
15464if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15465 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15466 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15467echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15468 if test "$cross_compiling" = yes; then
15469
15470 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15471echo "${ECHO_T}cross-compiling" >&6; }
15472
15473
15474else
15475 cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
15480/* end confdefs.h. */
15481
15482#include <stdio.h>
15483#include <sys/socket.h>
15484#include <netdb.h>
15485#include <errno.h>
15486#include <netinet/in.h>
15487
15488#define TEST_PORT "2222"
15489
15490int
15491main(void)
15492{
15493 int err, sock;
15494 struct addrinfo *gai_ai, *ai, hints;
15495 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15496
15497 memset(&hints, 0, sizeof(hints));
15498 hints.ai_family = PF_UNSPEC;
15499 hints.ai_socktype = SOCK_STREAM;
15500 hints.ai_flags = AI_PASSIVE;
15501
15502 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15503 if (err != 0) {
15504 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15505 exit(1);
15506 }
15507
15508 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15509 if (ai->ai_family != AF_INET6)
15510 continue;
15511
15512 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15513 sizeof(ntop), strport, sizeof(strport),
15514 NI_NUMERICHOST|NI_NUMERICSERV);
15515
15516 if (err != 0) {
15517 if (err == EAI_SYSTEM)
15518 perror("getnameinfo EAI_SYSTEM");
15519 else
15520 fprintf(stderr, "getnameinfo failed: %s\n",
15521 gai_strerror(err));
15522 exit(2);
15523 }
15524
15525 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
15526 if (sock < 0)
15527 perror("socket");
15528 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
15529 if (errno == EBADF)
15530 exit(3);
15531 }
15532 }
15533 exit(0);
15534}
15535
15536_ACEOF
15537rm -f conftest$ac_exeext
15538if { (ac_try="$ac_link"
15539case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542esac
15543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_link") 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15548 { (case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15551esac
15552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_try") 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557
15558 { echo "$as_me:$LINENO: result: yes" >&5
15559echo "${ECHO_T}yes" >&6; }
15560
15561else
15562 echo "$as_me: program exited with status $ac_status" >&5
15563echo "$as_me: failed program was:" >&5
15564sed 's/^/| /' conftest.$ac_ext >&5
15565
15566( exit $ac_status )
15567
15568 { echo "$as_me:$LINENO: result: no" >&5
15569echo "${ECHO_T}no" >&6; }
15570 cat >>confdefs.h <<\_ACEOF
15571#define BROKEN_GETADDRINFO 1
15572_ACEOF
15573
15574
15575fi
15576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15577fi
15578
15579
15580fi
15581
15582if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15583 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
15584 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15585echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15586 if test "$cross_compiling" = yes; then
15587
15588 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15589echo "${ECHO_T}cross-compiling" >&6; }
15590
15591
15592else
15593 cat >conftest.$ac_ext <<_ACEOF
15594/* confdefs.h. */
15595_ACEOF
15596cat confdefs.h >>conftest.$ac_ext
15597cat >>conftest.$ac_ext <<_ACEOF
15598/* end confdefs.h. */
15599
15600#include <stdio.h>
15601#include <sys/socket.h>
15602#include <netdb.h>
15603#include <errno.h>
15604#include <netinet/in.h>
15605
15606#define TEST_PORT "2222"
15607
15608int
15609main(void)
15610{
15611 int err, sock;
15612 struct addrinfo *gai_ai, *ai, hints;
15613 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15614
15615 memset(&hints, 0, sizeof(hints));
15616 hints.ai_family = PF_UNSPEC;
15617 hints.ai_socktype = SOCK_STREAM;
15618 hints.ai_flags = AI_PASSIVE;
15619
15620 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15621 if (err != 0) {
15622 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15623 exit(1);
15624 }
15625
15626 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15627 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
15628 continue;
15629
15630 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15631 sizeof(ntop), strport, sizeof(strport),
15632 NI_NUMERICHOST|NI_NUMERICSERV);
15633
15634 if (ai->ai_family == AF_INET && err != 0) {
15635 perror("getnameinfo");
15636 exit(2);
15637 }
15638 }
15639 exit(0);
15640}
15641
15642_ACEOF
15643rm -f conftest$ac_exeext
15644if { (ac_try="$ac_link"
15645case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648esac
15649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_link") 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657esac
15658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663
15664 { echo "$as_me:$LINENO: result: yes" >&5
15665echo "${ECHO_T}yes" >&6; }
15666
15667cat >>confdefs.h <<\_ACEOF
15668#define AIX_GETNAMEINFO_HACK 1
15669_ACEOF
15670
15671
15672else
15673 echo "$as_me: program exited with status $ac_status" >&5
15674echo "$as_me: failed program was:" >&5
15675sed 's/^/| /' conftest.$ac_ext >&5
15676
15677( exit $ac_status )
15678
15679 { echo "$as_me:$LINENO: result: no" >&5
15680echo "${ECHO_T}no" >&6; }
15681 cat >>confdefs.h <<\_ACEOF
15682#define BROKEN_GETADDRINFO 1
15683_ACEOF
15684
15685
15686fi
15687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15688fi
15689
15690
15691fi
15692
15693if test "x$check_for_conflicting_getspnam" = "x1"; then
15694 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
15695echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
15696 cat >conftest.$ac_ext <<_ACEOF
15697
15698#include <shadow.h>
15699int main(void) {exit(0);}
15700
15701_ACEOF
15702rm -f conftest.$ac_objext
15703if { (ac_try="$ac_compile"
15704case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_compile") 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } && {
15716 test -z "$ac_c_werror_flag" ||
15717 test ! -s conftest.err
15718 } && test -s conftest.$ac_objext; then
15719
15720 { echo "$as_me:$LINENO: result: no" >&5
15721echo "${ECHO_T}no" >&6; }
15722
15723else
15724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727
15728 { echo "$as_me:$LINENO: result: yes" >&5
15729echo "${ECHO_T}yes" >&6; }
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define GETSPNAM_CONFLICTING_DEFS 1
15733_ACEOF
15734
15735
15736
15737fi
15738
15739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15740fi
15741
15742{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15743echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
15744if test "${ac_cv_func_getpgrp_void+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746else
15747 # Use it with a single arg.
15748cat >conftest.$ac_ext <<_ACEOF
15749/* confdefs.h. */
15750_ACEOF
15751cat confdefs.h >>conftest.$ac_ext
15752cat >>conftest.$ac_ext <<_ACEOF
15753/* end confdefs.h. */
15754$ac_includes_default
15755int
15756main ()
15757{
15758getpgrp (0);
15759 ;
15760 return 0;
15761}
15762_ACEOF
15763rm -f conftest.$ac_objext
15764if { (ac_try="$ac_compile"
15765case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768esac
15769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest.$ac_objext; then
15780 ac_cv_func_getpgrp_void=no
15781else
15782 echo "$as_me: failed program was:" >&5
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_cv_func_getpgrp_void=yes
15786fi
15787
15788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789
15790fi
15791{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15792echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
15793if test $ac_cv_func_getpgrp_void = yes; then
15794
15795cat >>confdefs.h <<\_ACEOF
15796#define GETPGRP_VOID 1
15797_ACEOF
15798
15799fi
15800
15801
15802# Search for OpenSSL
15803saved_CPPFLAGS="$CPPFLAGS"
15804saved_LDFLAGS="$LDFLAGS"
15805
15806# Check whether --with-ssl-dir was given.
15807if test "${with_ssl_dir+set}" = set; then
15808 withval=$with_ssl_dir;
15809 if test "x$withval" != "xno" ; then
15810 case "$withval" in
15811 # Relative paths
15812 ./*|../*) withval="`pwd`/$withval"
15813 esac
15814 if test -d "$withval/lib"; then
15815 if test -n "${need_dash_r}"; then
15816 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15817 else
15818 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15819 fi
15820 else
15821 if test -n "${need_dash_r}"; then
15822 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
15823 else
15824 LDFLAGS="-L${withval} ${LDFLAGS}"
15825 fi
15826 fi
15827 if test -d "$withval/include"; then
15828 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
15829 else
15830 CPPFLAGS="-I${withval} ${CPPFLAGS}"
15831 fi
15832 fi
15833
15834
15835fi
15836
15837LIBS="-lcrypto $LIBS"
15838cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844
15845/* Override any GCC internal prototype to avoid an error.
15846 Use char because int might match the return type of a GCC
15847 builtin and then its argument prototype would still apply. */
15848#ifdef __cplusplus
15849extern "C"
15850#endif
15851char RAND_add ();
15852int
15853main ()
15854{
15855return RAND_add ();
15856 ;
15857 return 0;
15858}
15859_ACEOF
15860rm -f conftest.$ac_objext conftest$ac_exeext
15861if { (ac_try="$ac_link"
15862case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865esac
15866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_link") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest$ac_exeext &&
15877 $as_test_x conftest$ac_exeext; then
15878
15879cat >>confdefs.h <<\_ACEOF
15880#define HAVE_OPENSSL 1
15881_ACEOF
15882
15883else
15884 echo "$as_me: failed program was:" >&5
15885sed 's/^/| /' conftest.$ac_ext >&5
15886
15887
15888 if test -n "${need_dash_r}"; then
15889 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
15890 else
15891 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
15892 fi
15893 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
15894 cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900
15901/* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904#ifdef __cplusplus
15905extern "C"
15906#endif
15907char RAND_add ();
15908int
15909main ()
15910{
15911return RAND_add ();
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916rm -f conftest.$ac_objext conftest$ac_exeext
15917if { (ac_try="$ac_link"
15918case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_link") 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } && {
15930 test -z "$ac_c_werror_flag" ||
15931 test ! -s conftest.err
15932 } && test -s conftest$ac_exeext &&
15933 $as_test_x conftest$ac_exeext; then
15934 cat >>confdefs.h <<\_ACEOF
15935#define HAVE_OPENSSL 1
15936_ACEOF
15937
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942
15943 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
15944echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
15945 { (exit 1); exit 1; }; }
15946
15947
15948fi
15949
15950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951 conftest$ac_exeext conftest.$ac_ext
15952
15953
15954fi
15955
15956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15957 conftest$ac_exeext conftest.$ac_ext
15958
15959# Determine OpenSSL header version
15960{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
15961echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
15962if test "$cross_compiling" = yes; then
15963
15964 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15965echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15966
15967
15968else
15969 cat >conftest.$ac_ext <<_ACEOF
15970/* confdefs.h. */
15971_ACEOF
15972cat confdefs.h >>conftest.$ac_ext
15973cat >>conftest.$ac_ext <<_ACEOF
15974/* end confdefs.h. */
15975
15976#include <stdio.h>
15977#include <string.h>
15978#include <openssl/opensslv.h>
15979#define DATA "conftest.sslincver"
15980int main(void) {
15981 FILE *fd;
15982 int rc;
15983
15984 fd = fopen(DATA,"w");
15985 if(fd == NULL)
15986 exit(1);
15987
15988 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
15989 exit(1);
15990
15991 exit(0);
15992}
15993
15994_ACEOF
15995rm -f conftest$ac_exeext
15996if { (ac_try="$ac_link"
15997case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000esac
16001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_link") 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16006 { (case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_try") 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015
16016 ssl_header_ver=`cat conftest.sslincver`
16017 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16018echo "${ECHO_T}$ssl_header_ver" >&6; }
16019
16020else
16021 echo "$as_me: program exited with status $ac_status" >&5
16022echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025( exit $ac_status )
16026
16027 { echo "$as_me:$LINENO: result: not found" >&5
16028echo "${ECHO_T}not found" >&6; }
16029 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16030echo "$as_me: error: OpenSSL version header not found." >&2;}
16031 { (exit 1); exit 1; }; }
16032
16033fi
16034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16035fi
16036
16037
16038
16039# Determine OpenSSL library version
16040{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16041echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16042if test "$cross_compiling" = yes; then
16043
16044 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16045echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16046
16047
16048else
16049 cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055
16056#include <stdio.h>
16057#include <string.h>
16058#include <openssl/opensslv.h>
16059#include <openssl/crypto.h>
16060#define DATA "conftest.ssllibver"
16061int main(void) {
16062 FILE *fd;
16063 int rc;
16064
16065 fd = fopen(DATA,"w");
16066 if(fd == NULL)
16067 exit(1);
16068
16069 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16070 exit(1);
16071
16072 exit(0);
16073}
16074
16075_ACEOF
16076rm -f conftest$ac_exeext
16077if { (ac_try="$ac_link"
16078case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081esac
16082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_link") 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16087 { (case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16090esac
16091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_try") 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096
16097 ssl_library_ver=`cat conftest.ssllibver`
16098 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16099echo "${ECHO_T}$ssl_library_ver" >&6; }
16100
16101else
16102 echo "$as_me: program exited with status $ac_status" >&5
16103echo "$as_me: failed program was:" >&5
16104sed 's/^/| /' conftest.$ac_ext >&5
16105
16106( exit $ac_status )
16107
16108 { echo "$as_me:$LINENO: result: not found" >&5
16109echo "${ECHO_T}not found" >&6; }
16110 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16111echo "$as_me: error: OpenSSL library not found." >&2;}
16112 { (exit 1); exit 1; }; }
16113
16114fi
16115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16116fi
16117
16118
16119
16120
16121# Check whether --with-openssl-header-check was given.
16122if test "${with_openssl_header_check+set}" = set; then
16123 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16124 openssl_check_nonfatal=1
16125 fi
16126
16127
16128fi
16129
16130
16131# Sanity check OpenSSL headers
16132{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16133echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16134if test "$cross_compiling" = yes; then
16135
16136 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16137echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16138
16139
16140else
16141 cat >conftest.$ac_ext <<_ACEOF
16142/* confdefs.h. */
16143_ACEOF
16144cat confdefs.h >>conftest.$ac_ext
16145cat >>conftest.$ac_ext <<_ACEOF
16146/* end confdefs.h. */
16147
16148#include <string.h>
16149#include <openssl/opensslv.h>
16150int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16151
16152_ACEOF
16153rm -f 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>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16164 { (case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_try") 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173
16174 { echo "$as_me:$LINENO: result: yes" >&5
16175echo "${ECHO_T}yes" >&6; }
16176
16177else
16178 echo "$as_me: program exited with status $ac_status" >&5
16179echo "$as_me: failed program was:" >&5
16180sed 's/^/| /' conftest.$ac_ext >&5
16181
16182( exit $ac_status )
16183
16184 { echo "$as_me:$LINENO: result: no" >&5
16185echo "${ECHO_T}no" >&6; }
16186 if test "x$openssl_check_nonfatal" = "x"; then
16187 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
16188library. Check config.log for details.
16189If you are sure your installation is consistent, you can disable the check
16190by running \"./configure --without-openssl-header-check\".
16191Also see contrib/findssl.sh for help identifying header/library mismatches.
16192" >&5
16193echo "$as_me: error: Your OpenSSL headers do not match your
16194library. Check config.log for details.
16195If you are sure your installation is consistent, you can disable the check
16196by running \"./configure --without-openssl-header-check\".
16197Also see contrib/findssl.sh for help identifying header/library mismatches.
16198" >&2;}
16199 { (exit 1); exit 1; }; }
16200 else
16201 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
16202library. Check config.log for details.
16203Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
16204echo "$as_me: WARNING: Your OpenSSL headers do not match your
16205library. Check config.log for details.
16206Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
16207 fi
16208
16209fi
16210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16211fi
16212
16213
16214
16215{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
16216echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
16217cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223
16224#include <openssl/evp.h>
16225int main(void) { SSLeay_add_all_algorithms(); }
16226
16227_ACEOF
16228rm -f conftest.$ac_objext conftest$ac_exeext
16229if { (ac_try="$ac_link"
16230case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } && {
16242 test -z "$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 } && test -s conftest$ac_exeext &&
16245 $as_test_x conftest$ac_exeext; then
16246
16247 { echo "$as_me:$LINENO: result: yes" >&5
16248echo "${ECHO_T}yes" >&6; }
16249
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254
16255 { echo "$as_me:$LINENO: result: no" >&5
16256echo "${ECHO_T}no" >&6; }
16257 saved_LIBS="$LIBS"
16258 LIBS="$LIBS -ldl"
16259 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16260echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16261 cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
16267
16268#include <openssl/evp.h>
16269int main(void) { SSLeay_add_all_algorithms(); }
16270
16271_ACEOF
16272rm -f conftest.$ac_objext conftest$ac_exeext
16273if { (ac_try="$ac_link"
16274case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_link") 2>conftest.er1
16280 ac_status=$?
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } && {
16286 test -z "$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16288 } && test -s conftest$ac_exeext &&
16289 $as_test_x conftest$ac_exeext; then
16290
16291 { echo "$as_me:$LINENO: result: yes" >&5
16292echo "${ECHO_T}yes" >&6; }
16293
16294else
16295 echo "$as_me: failed program was:" >&5
16296sed 's/^/| /' conftest.$ac_ext >&5
16297
16298
16299 { echo "$as_me:$LINENO: result: no" >&5
16300echo "${ECHO_T}no" >&6; }
16301 LIBS="$saved_LIBS"
16302
16303
16304fi
16305
16306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16307 conftest$ac_exeext conftest.$ac_ext
16308
16309
16310fi
16311
16312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16313 conftest$ac_exeext conftest.$ac_ext
16314
16315
16316# Check whether --with-ssl-engine was given.
16317if test "${with_ssl_engine+set}" = set; then
16318 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16319 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16320echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16321 cat >conftest.$ac_ext <<_ACEOF
16322/* confdefs.h. */
16323_ACEOF
16324cat confdefs.h >>conftest.$ac_ext
16325cat >>conftest.$ac_ext <<_ACEOF
16326/* end confdefs.h. */
16327 #include <openssl/engine.h>
16328int
16329main ()
16330{
16331
16332ENGINE_load_builtin_engines();ENGINE_register_all_complete();
16333
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338rm -f conftest.$ac_objext
16339if { (ac_try="$ac_compile"
16340case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16343esac
16344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && {
16352 test -z "$ac_c_werror_flag" ||
16353 test ! -s conftest.err
16354 } && test -s conftest.$ac_objext; then
16355 { echo "$as_me:$LINENO: result: yes" >&5
16356echo "${ECHO_T}yes" >&6; }
16357
16358cat >>confdefs.h <<\_ACEOF
16359#define USE_OPENSSL_ENGINE 1
16360_ACEOF
16361
16362
16363else
16364 echo "$as_me: failed program was:" >&5
16365sed 's/^/| /' conftest.$ac_ext >&5
16366
16367 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
16368echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
16369 { (exit 1); exit 1; }; }
16370
16371fi
16372
16373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375
16376fi
16377
16378
16379# Check for OpenSSL without EVP_aes_{192,256}_cbc
16380{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
16381echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
16382cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388
16389#include <string.h>
16390#include <openssl/evp.h>
16391int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
16392
16393_ACEOF
16394rm -f conftest.$ac_objext conftest$ac_exeext
16395if { (ac_try="$ac_link"
16396case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_link") 2>conftest.er1
16402 ac_status=$?
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && {
16408 test -z "$ac_c_werror_flag" ||
16409 test ! -s conftest.err
16410 } && test -s conftest$ac_exeext &&
16411 $as_test_x conftest$ac_exeext; then
16412
16413 { echo "$as_me:$LINENO: result: no" >&5
16414echo "${ECHO_T}no" >&6; }
16415
16416else
16417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420
16421 { echo "$as_me:$LINENO: result: yes" >&5
16422echo "${ECHO_T}yes" >&6; }
16423
16424cat >>confdefs.h <<\_ACEOF
16425#define OPENSSL_LOBOTOMISED_AES 1
16426_ACEOF
16427
16428
16429
16430fi
16431
16432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433 conftest$ac_exeext conftest.$ac_ext
16434
16435# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
16436# because the system crypt() is more featureful.
16437if test "x$check_for_libcrypt_before" = "x1"; then
16438
16439{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16440echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16441if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 ac_check_lib_save_LIBS=$LIBS
16445LIBS="-lcrypt $LIBS"
16446cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452
16453/* Override any GCC internal prototype to avoid an error.
16454 Use char because int might match the return type of a GCC
16455 builtin and then its argument prototype would still apply. */
16456#ifdef __cplusplus
16457extern "C"
16458#endif
16459char crypt ();
16460int
16461main ()
16462{
16463return crypt ();
16464 ;
16465 return 0;
16466}
16467_ACEOF
16468rm -f conftest.$ac_objext conftest$ac_exeext
16469if { (ac_try="$ac_link"
16470case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473esac
16474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } && {
16482 test -z "$ac_c_werror_flag" ||
16483 test ! -s conftest.err
16484 } && test -s conftest$ac_exeext &&
16485 $as_test_x conftest$ac_exeext; then
16486 ac_cv_lib_crypt_crypt=yes
16487else
16488 echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 ac_cv_lib_crypt_crypt=no
16492fi
16493
16494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16496LIBS=$ac_check_lib_save_LIBS
16497fi
16498{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16499echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16500if test $ac_cv_lib_crypt_crypt = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502#define HAVE_LIBCRYPT 1
16503_ACEOF
16504
16505 LIBS="-lcrypt $LIBS"
16506
16507fi
16508
16509fi
16510
16511# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
16512# version in OpenSSL.
16513if test "x$check_for_libcrypt_later" = "x1"; then
16514 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16515echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16516if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16518else
16519 ac_check_lib_save_LIBS=$LIBS
16520LIBS="-lcrypt $LIBS"
16521cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h. */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h. */
16527
16528/* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16531#ifdef __cplusplus
16532extern "C"
16533#endif
16534char crypt ();
16535int
16536main ()
16537{
16538return crypt ();
16539 ;
16540 return 0;
16541}
16542_ACEOF
16543rm -f conftest.$ac_objext conftest$ac_exeext
16544if { (ac_try="$ac_link"
16545case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_link") 2>conftest.er1
16551 ac_status=$?
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && {
16557 test -z "$ac_c_werror_flag" ||
16558 test ! -s conftest.err
16559 } && test -s conftest$ac_exeext &&
16560 $as_test_x conftest$ac_exeext; then
16561 ac_cv_lib_crypt_crypt=yes
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566 ac_cv_lib_crypt_crypt=no
16567fi
16568
16569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16570 conftest$ac_exeext conftest.$ac_ext
16571LIBS=$ac_check_lib_save_LIBS
16572fi
16573{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16574echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16575if test $ac_cv_lib_crypt_crypt = yes; then
16576 LIBS="$LIBS -lcrypt"
16577fi
16578
16579fi
16580
16581# Search for SHA256 support in libc and/or OpenSSL
16582
16583
16584for ac_func in SHA256_Update EVP_sha256
16585do
16586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591else
16592 cat >conftest.$ac_ext <<_ACEOF
16593/* confdefs.h. */
16594_ACEOF
16595cat confdefs.h >>conftest.$ac_ext
16596cat >>conftest.$ac_ext <<_ACEOF
16597/* end confdefs.h. */
16598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16600#define $ac_func innocuous_$ac_func
16601
16602/* System header to define __stub macros and hopefully few prototypes,
16603 which can conflict with char $ac_func (); below.
16604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16605 <limits.h> exists even on freestanding compilers. */
16606
16607#ifdef __STDC__
16608# include <limits.h>
16609#else
16610# include <assert.h>
16611#endif
16612
16613#undef $ac_func
16614
16615/* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
16618#ifdef __cplusplus
16619extern "C"
16620#endif
16621char $ac_func ();
16622/* The GNU C library defines this for functions which it implements
16623 to always fail with ENOSYS. Some functions are actually named
16624 something starting with __ and the normal name is an alias. */
16625#if defined __stub_$ac_func || defined __stub___$ac_func
16626choke me
16627#endif
16628
16629int
16630main ()
16631{
16632return $ac_func ();
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext conftest$ac_exeext
16638if { (ac_try="$ac_link"
16639case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_link") 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } && {
16651 test -z "$ac_c_werror_flag" ||
16652 test ! -s conftest.err
16653 } && test -s conftest$ac_exeext &&
16654 $as_test_x conftest$ac_exeext; then
16655 eval "$as_ac_var=yes"
16656else
16657 echo "$as_me: failed program was:" >&5
16658sed 's/^/| /' conftest.$ac_ext >&5
16659
16660 eval "$as_ac_var=no"
16661fi
16662
16663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16664 conftest$ac_exeext conftest.$ac_ext
16665fi
16666ac_res=`eval echo '${'$as_ac_var'}'`
16667 { echo "$as_me:$LINENO: result: $ac_res" >&5
16668echo "${ECHO_T}$ac_res" >&6; }
16669if test `eval echo '${'$as_ac_var'}'` = yes; then
16670 cat >>confdefs.h <<_ACEOF
16671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16672_ACEOF
16673
16674fi
16675done
16676
16677
16678saved_LIBS="$LIBS"
16679{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16680echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
16681if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684 ac_check_lib_save_LIBS=$LIBS
16685LIBS="-liaf $LIBS"
16686cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692
16693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696#ifdef __cplusplus
16697extern "C"
16698#endif
16699char ia_openinfo ();
16700int
16701main ()
16702{
16703return ia_openinfo ();
16704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext conftest$ac_exeext
16709if { (ac_try="$ac_link"
16710case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } && {
16722 test -z "$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 } && test -s conftest$ac_exeext &&
16725 $as_test_x conftest$ac_exeext; then
16726 ac_cv_lib_iaf_ia_openinfo=yes
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_lib_iaf_ia_openinfo=no
16732fi
16733
16734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736LIBS=$ac_check_lib_save_LIBS
16737fi
16738{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16739echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16740if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16741
16742 LIBS="$LIBS -liaf"
16743
16744for ac_func in set_id
16745do
16746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751else
16752 cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
16758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760#define $ac_func innocuous_$ac_func
16761
16762/* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char $ac_func (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16766
16767#ifdef __STDC__
16768# include <limits.h>
16769#else
16770# include <assert.h>
16771#endif
16772
16773#undef $ac_func
16774
16775/* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16778#ifdef __cplusplus
16779extern "C"
16780#endif
16781char $ac_func ();
16782/* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785#if defined __stub_$ac_func || defined __stub___$ac_func
16786choke me
16787#endif
16788
16789int
16790main ()
16791{
16792return $ac_func ();
16793 ;
16794 return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext conftest$ac_exeext
16798if { (ac_try="$ac_link"
16799case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest$ac_exeext &&
16814 $as_test_x conftest$ac_exeext; then
16815 eval "$as_ac_var=yes"
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 eval "$as_ac_var=no"
16821fi
16822
16823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824 conftest$ac_exeext conftest.$ac_ext
16825fi
16826ac_res=`eval echo '${'$as_ac_var'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828echo "${ECHO_T}$ac_res" >&6; }
16829if test `eval echo '${'$as_ac_var'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832_ACEOF
16833 SSHDLIBS="$SSHDLIBS -liaf"
16834
16835cat >>confdefs.h <<\_ACEOF
16836#define HAVE_LIBIAF 1
16837_ACEOF
16838
16839
16840fi
16841done
16842
16843
16844fi
16845
16846LIBS="$saved_LIBS"
16847
16848### Configure cryptographic random number support
16849
16850# Check wheter OpenSSL seeds itself
16851{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
16852echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
16853if test "$cross_compiling" = yes; then
16854
16855 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
16856echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
16857 # This is safe, since all recent OpenSSL versions will
16858 # complain at runtime if not seeded correctly.
16859 OPENSSL_SEEDS_ITSELF=yes
16860
16861
16862else
16863 cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869
16870#include <string.h>
16871#include <openssl/rand.h>
16872int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
16873
16874_ACEOF
16875rm -f conftest$ac_exeext
16876if { (ac_try="$ac_link"
16877case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_link") 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895
16896 OPENSSL_SEEDS_ITSELF=yes
16897 { echo "$as_me:$LINENO: result: yes" >&5
16898echo "${ECHO_T}yes" >&6; }
16899
16900else
16901 echo "$as_me: program exited with status $ac_status" >&5
16902echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905( exit $ac_status )
16906
16907 { echo "$as_me:$LINENO: result: no" >&5
16908echo "${ECHO_T}no" >&6; }
16909 # Default to use of the rand helper if OpenSSL doesn't
16910 # seed itself
16911 USE_RAND_HELPER=yes
16912
16913fi
16914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16915fi
16916
16917
16918
16919# Check for PAM libs
16920PAM_MSG="no"
16921
16922# Check whether --with-pam was given.
16923if test "${with_pam+set}" = set; then
16924 withval=$with_pam;
16925 if test "x$withval" != "xno" ; then
16926 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16927 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16928 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16929echo "$as_me: error: PAM headers not found" >&2;}
16930 { (exit 1); exit 1; }; }
16931 fi
16932
16933 saved_LIBS="$LIBS"
16934
16935{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 ac_check_lib_save_LIBS=$LIBS
16941LIBS="-ldl $LIBS"
16942cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948
16949/* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16952#ifdef __cplusplus
16953extern "C"
16954#endif
16955char dlopen ();
16956int
16957main ()
16958{
16959return dlopen ();
16960 ;
16961 return 0;
16962}
16963_ACEOF
16964rm -f conftest.$ac_objext conftest$ac_exeext
16965if { (ac_try="$ac_link"
16966case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969esac
16970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_link") 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } && {
16978 test -z "$ac_c_werror_flag" ||
16979 test ! -s conftest.err
16980 } && test -s conftest$ac_exeext &&
16981 $as_test_x conftest$ac_exeext; then
16982 ac_cv_lib_dl_dlopen=yes
16983else
16984 echo "$as_me: failed program was:" >&5
16985sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 ac_cv_lib_dl_dlopen=no
16988fi
16989
16990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16991 conftest$ac_exeext conftest.$ac_ext
16992LIBS=$ac_check_lib_save_LIBS
16993fi
16994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16996if test $ac_cv_lib_dl_dlopen = yes; then
16997 cat >>confdefs.h <<_ACEOF
16998#define HAVE_LIBDL 1
16999_ACEOF
17000
17001 LIBS="-ldl $LIBS"
17002
17003fi
17004
17005
17006{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17007echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17008if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17010else
17011 ac_check_lib_save_LIBS=$LIBS
17012LIBS="-lpam $LIBS"
17013cat >conftest.$ac_ext <<_ACEOF
17014/* confdefs.h. */
17015_ACEOF
17016cat confdefs.h >>conftest.$ac_ext
17017cat >>conftest.$ac_ext <<_ACEOF
17018/* end confdefs.h. */
17019
17020/* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17023#ifdef __cplusplus
17024extern "C"
17025#endif
17026char pam_set_item ();
17027int
17028main ()
17029{
17030return pam_set_item ();
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext conftest$ac_exeext
17036if { (ac_try="$ac_link"
17037case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040esac
17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_link") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext &&
17052 $as_test_x conftest$ac_exeext; then
17053 ac_cv_lib_pam_pam_set_item=yes
17054else
17055 echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_pam_pam_set_item=no
17059fi
17060
17061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062 conftest$ac_exeext conftest.$ac_ext
17063LIBS=$ac_check_lib_save_LIBS
17064fi
17065{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17066echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17067if test $ac_cv_lib_pam_pam_set_item = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069#define HAVE_LIBPAM 1
17070_ACEOF
17071
17072 LIBS="-lpam $LIBS"
17073
17074else
17075 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17076echo "$as_me: error: *** libpam missing" >&2;}
17077 { (exit 1); exit 1; }; }
17078fi
17079
17080
17081for ac_func in pam_getenvlist
17082do
17083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089 cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17097#define $ac_func innocuous_$ac_func
17098
17099/* System header to define __stub macros and hopefully few prototypes,
17100 which can conflict with char $ac_func (); below.
17101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17102 <limits.h> exists even on freestanding compilers. */
17103
17104#ifdef __STDC__
17105# include <limits.h>
17106#else
17107# include <assert.h>
17108#endif
17109
17110#undef $ac_func
17111
17112/* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17115#ifdef __cplusplus
17116extern "C"
17117#endif
17118char $ac_func ();
17119/* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122#if defined __stub_$ac_func || defined __stub___$ac_func
17123choke me
17124#endif
17125
17126int
17127main ()
17128{
17129return $ac_func ();
17130 ;
17131 return 0;
17132}
17133_ACEOF
17134rm -f conftest.$ac_objext conftest$ac_exeext
17135if { (ac_try="$ac_link"
17136case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
17142 ac_status=$?
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } && {
17148 test -z "$ac_c_werror_flag" ||
17149 test ! -s conftest.err
17150 } && test -s conftest$ac_exeext &&
17151 $as_test_x conftest$ac_exeext; then
17152 eval "$as_ac_var=yes"
17153else
17154 echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 eval "$as_ac_var=no"
17158fi
17159
17160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17161 conftest$ac_exeext conftest.$ac_ext
17162fi
17163ac_res=`eval echo '${'$as_ac_var'}'`
17164 { echo "$as_me:$LINENO: result: $ac_res" >&5
17165echo "${ECHO_T}$ac_res" >&6; }
17166if test `eval echo '${'$as_ac_var'}'` = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17169_ACEOF
17170
17171fi
17172done
17173
17174
17175for ac_func in pam_putenv
17176do
17177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182else
17183 cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
17189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17191#define $ac_func innocuous_$ac_func
17192
17193/* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char $ac_func (); below.
17195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17196 <limits.h> exists even on freestanding compilers. */
17197
17198#ifdef __STDC__
17199# include <limits.h>
17200#else
17201# include <assert.h>
17202#endif
17203
17204#undef $ac_func
17205
17206/* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17209#ifdef __cplusplus
17210extern "C"
17211#endif
17212char $ac_func ();
17213/* The GNU C library defines this for functions which it implements
17214 to always fail with ENOSYS. Some functions are actually named
17215 something starting with __ and the normal name is an alias. */
17216#if defined __stub_$ac_func || defined __stub___$ac_func
17217choke me
17218#endif
17219
17220int
17221main ()
17222{
17223return $ac_func ();
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228rm -f conftest.$ac_objext conftest$ac_exeext
17229if { (ac_try="$ac_link"
17230case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17233esac
17234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_link") 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest$ac_exeext &&
17245 $as_test_x conftest$ac_exeext; then
17246 eval "$as_ac_var=yes"
17247else
17248 echo "$as_me: failed program was:" >&5
17249sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 eval "$as_ac_var=no"
17252fi
17253
17254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255 conftest$ac_exeext conftest.$ac_ext
17256fi
17257ac_res=`eval echo '${'$as_ac_var'}'`
17258 { echo "$as_me:$LINENO: result: $ac_res" >&5
17259echo "${ECHO_T}$ac_res" >&6; }
17260if test `eval echo '${'$as_ac_var'}'` = yes; then
17261 cat >>confdefs.h <<_ACEOF
17262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17263_ACEOF
17264
17265fi
17266done
17267
17268 LIBS="$saved_LIBS"
17269
17270 PAM_MSG="yes"
17271
17272 SSHDLIBS="$SSHDLIBS -lpam"
17273
17274cat >>confdefs.h <<\_ACEOF
17275#define USE_PAM 1
17276_ACEOF
17277
17278
17279 if test $ac_cv_lib_dl_dlopen = yes; then
17280 case "$LIBS" in
17281 *-ldl*)
17282 # libdl already in LIBS
17283 ;;
17284 *)
17285 SSHDLIBS="$SSHDLIBS -ldl"
17286 ;;
17287 esac
17288 fi
17289 fi
17290
17291
17292fi
17293
17294
17295# Check for older PAM
17296if test "x$PAM_MSG" = "xyes" ; then
17297 # Check PAM strerror arguments (old PAM)
17298 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
17299echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
17300 cat >conftest.$ac_ext <<_ACEOF
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306
17307#include <stdlib.h>
17308#if defined(HAVE_SECURITY_PAM_APPL_H)
17309#include <security/pam_appl.h>
17310#elif defined (HAVE_PAM_PAM_APPL_H)
17311#include <pam/pam_appl.h>
17312#endif
17313
17314int
17315main ()
17316{
17317(void)pam_strerror((pam_handle_t *)NULL, -1);
17318 ;
17319 return 0;
17320}
17321_ACEOF
17322rm -f conftest.$ac_objext
17323if { (ac_try="$ac_compile"
17324case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327esac
17328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_compile") 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest.$ac_objext; then
17339 { echo "$as_me:$LINENO: result: no" >&5
17340echo "${ECHO_T}no" >&6; }
17341else
17342 echo "$as_me: failed program was:" >&5
17343sed 's/^/| /' conftest.$ac_ext >&5
17344
17345
17346
17347cat >>confdefs.h <<\_ACEOF
17348#define HAVE_OLD_PAM 1
17349_ACEOF
17350
17351 { echo "$as_me:$LINENO: result: yes" >&5
17352echo "${ECHO_T}yes" >&6; }
17353 PAM_MSG="yes (old library)"
17354
17355
17356fi
17357
17358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359fi
17360
17361# Do we want to force the use of the rand helper?
17362
17363# Check whether --with-rand-helper was given.
17364if test "${with_rand_helper+set}" = set; then
17365 withval=$with_rand_helper;
17366 if test "x$withval" = "xno" ; then
17367 # Force use of OpenSSL's internal RNG, even if
17368 # the previous test showed it to be unseeded.
17369 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
17370 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
17371echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
17372 OPENSSL_SEEDS_ITSELF=yes
17373 USE_RAND_HELPER=""
17374 fi
17375 else
17376 USE_RAND_HELPER=yes
17377 fi
17378
17379fi
17380
17381
17382# Which randomness source do we use?
17383if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
17384 # OpenSSL only
17385
17386cat >>confdefs.h <<\_ACEOF
17387#define OPENSSL_PRNG_ONLY 1
17388_ACEOF
17389
17390 RAND_MSG="OpenSSL internal ONLY"
17391 INSTALL_SSH_RAND_HELPER=""
17392elif test ! -z "$USE_RAND_HELPER" ; then
17393 # install rand helper
17394 RAND_MSG="ssh-rand-helper"
17395 INSTALL_SSH_RAND_HELPER="yes"
17396fi
17397
17398
17399### Configuration of ssh-rand-helper
17400
17401# PRNGD TCP socket
17402
17403# Check whether --with-prngd-port was given.
17404if test "${with_prngd_port+set}" = set; then
17405 withval=$with_prngd_port;
17406 case "$withval" in
17407 no)
17408 withval=""
17409 ;;
17410 [0-9]*)
17411 ;;
17412 *)
17413 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
17414echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
17415 { (exit 1); exit 1; }; }
17416 ;;
17417 esac
17418 if test ! -z "$withval" ; then
17419 PRNGD_PORT="$withval"
17420
17421cat >>confdefs.h <<_ACEOF
17422#define PRNGD_PORT $PRNGD_PORT
17423_ACEOF
17424
17425 fi
17426
17427
17428fi
17429
17430
17431# PRNGD Unix domain socket
17432
17433# Check whether --with-prngd-socket was given.
17434if test "${with_prngd_socket+set}" = set; then
17435 withval=$with_prngd_socket;
17436 case "$withval" in
17437 yes)
17438 withval="/var/run/egd-pool"
17439 ;;
17440 no)
17441 withval=""
17442 ;;
17443 /*)
17444 ;;
17445 *)
17446 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
17447echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
17448 { (exit 1); exit 1; }; }
17449 ;;
17450 esac
17451
17452 if test ! -z "$withval" ; then
17453 if test ! -z "$PRNGD_PORT" ; then
17454 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
17455echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
17456 { (exit 1); exit 1; }; }
17457 fi
17458 if test ! -r "$withval" ; then
17459 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
17460echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
17461 fi
17462 PRNGD_SOCKET="$withval"
17463
17464cat >>confdefs.h <<_ACEOF
17465#define PRNGD_SOCKET "$PRNGD_SOCKET"
17466_ACEOF
17467
17468 fi
17469
17470else
17471
17472 # Check for existing socket only if we don't have a random device already
17473 if test "$USE_RAND_HELPER" = yes ; then
17474 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
17475echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
17476 # Insert other locations here
17477 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
17478 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
17479 PRNGD_SOCKET="$sock"
17480 cat >>confdefs.h <<_ACEOF
17481#define PRNGD_SOCKET "$PRNGD_SOCKET"
17482_ACEOF
17483
17484 break;
17485 fi
17486 done
17487 if test ! -z "$PRNGD_SOCKET" ; then
17488 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
17489echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
17490 else
17491 { echo "$as_me:$LINENO: result: not found" >&5
17492echo "${ECHO_T}not found" >&6; }
17493 fi
17494 fi
17495
17496
17497fi
17498
17499
17500# Change default command timeout for hashing entropy source
17501entropy_timeout=200
17502
17503# Check whether --with-entropy-timeout was given.
17504if test "${with_entropy_timeout+set}" = set; then
17505 withval=$with_entropy_timeout;
17506 if test -n "$withval" && test "x$withval" != "xno" && \
17507 test "x${withval}" != "xyes"; then
17508 entropy_timeout=$withval
17509 fi
17510
17511
17512fi
17513
17514
17515cat >>confdefs.h <<_ACEOF
17516#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
17517_ACEOF
17518
17519
17520SSH_PRIVSEP_USER=sshd
17521
17522# Check whether --with-privsep-user was given.
17523if test "${with_privsep_user+set}" = set; then
17524 withval=$with_privsep_user;
17525 if test -n "$withval" && test "x$withval" != "xno" && \
17526 test "x${withval}" != "xyes"; then
17527 SSH_PRIVSEP_USER=$withval
17528 fi
17529
17530
17531fi
17532
17533
17534cat >>confdefs.h <<_ACEOF
17535#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
17536_ACEOF
17537
17538
17539
17540# We do this little dance with the search path to insure
17541# that programs that we select for use by installed programs
17542# (which may be run by the super-user) come from trusted
17543# locations before they come from the user's private area.
17544# This should help avoid accidentally configuring some
17545# random version of a program in someone's personal bin.
17546
17547OPATH=$PATH
17548PATH=/bin:/usr/bin
17549test -h /bin 2> /dev/null && PATH=/usr/bin
17550test -d /sbin && PATH=$PATH:/sbin
17551test -d /usr/sbin && PATH=$PATH:/usr/sbin
17552PATH=$PATH:/etc:$OPATH
17553
17554# These programs are used by the command hashing source to gather entropy
17555
17556 # Extract the first word of "ls", so it can be a program name with args.
17557set dummy ls; ac_word=$2
17558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17560if test "${ac_cv_path_PROG_LS+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562else
17563 case $PROG_LS in
17564 [\\/]* | ?:[\\/]*)
17565 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
17566 ;;
17567 *)
17568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17569for as_dir in $PATH
17570do
17571 IFS=$as_save_IFS
17572 test -z "$as_dir" && as_dir=.
17573 for ac_exec_ext in '' $ac_executable_extensions; do
17574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17575 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
17576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17577 break 2
17578 fi
17579done
17580done
17581IFS=$as_save_IFS
17582
17583 ;;
17584esac
17585fi
17586PROG_LS=$ac_cv_path_PROG_LS
17587if test -n "$PROG_LS"; then
17588 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
17589echo "${ECHO_T}$PROG_LS" >&6; }
17590else
17591 { echo "$as_me:$LINENO: result: no" >&5
17592echo "${ECHO_T}no" >&6; }
17593fi
17594
17595
17596 if test -z "$PROG_LS" ; then
17597 PROG_LS="undef"
17598 fi
17599
17600
17601
17602 # Extract the first word of "netstat", so it can be a program name with args.
17603set dummy netstat; ac_word=$2
17604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17606if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17608else
17609 case $PROG_NETSTAT in
17610 [\\/]* | ?:[\\/]*)
17611 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
17612 ;;
17613 *)
17614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17615for as_dir in $PATH
17616do
17617 IFS=$as_save_IFS
17618 test -z "$as_dir" && as_dir=.
17619 for ac_exec_ext in '' $ac_executable_extensions; do
17620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17621 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
17622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17623 break 2
17624 fi
17625done
17626done
17627IFS=$as_save_IFS
17628
17629 ;;
17630esac
17631fi
17632PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
17633if test -n "$PROG_NETSTAT"; then
17634 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
17635echo "${ECHO_T}$PROG_NETSTAT" >&6; }
17636else
17637 { echo "$as_me:$LINENO: result: no" >&5
17638echo "${ECHO_T}no" >&6; }
17639fi
17640
17641
17642 if test -z "$PROG_NETSTAT" ; then
17643 PROG_NETSTAT="undef"
17644 fi
17645
17646
17647
17648 # Extract the first word of "arp", so it can be a program name with args.
17649set dummy arp; ac_word=$2
17650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17652if test "${ac_cv_path_PROG_ARP+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654else
17655 case $PROG_ARP in
17656 [\\/]* | ?:[\\/]*)
17657 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
17658 ;;
17659 *)
17660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17661for as_dir in $PATH
17662do
17663 IFS=$as_save_IFS
17664 test -z "$as_dir" && as_dir=.
17665 for ac_exec_ext in '' $ac_executable_extensions; do
17666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17667 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
17668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17669 break 2
17670 fi
17671done
17672done
17673IFS=$as_save_IFS
17674
17675 ;;
17676esac
17677fi
17678PROG_ARP=$ac_cv_path_PROG_ARP
17679if test -n "$PROG_ARP"; then
17680 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
17681echo "${ECHO_T}$PROG_ARP" >&6; }
17682else
17683 { echo "$as_me:$LINENO: result: no" >&5
17684echo "${ECHO_T}no" >&6; }
17685fi
17686
17687
17688 if test -z "$PROG_ARP" ; then
17689 PROG_ARP="undef"
17690 fi
17691
17692
17693
17694 # Extract the first word of "ifconfig", so it can be a program name with args.
17695set dummy ifconfig; ac_word=$2
17696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17698if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700else
17701 case $PROG_IFCONFIG in
17702 [\\/]* | ?:[\\/]*)
17703 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
17704 ;;
17705 *)
17706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17707for as_dir in $PATH
17708do
17709 IFS=$as_save_IFS
17710 test -z "$as_dir" && as_dir=.
17711 for ac_exec_ext in '' $ac_executable_extensions; do
17712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17713 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
17714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17715 break 2
17716 fi
17717done
17718done
17719IFS=$as_save_IFS
17720
17721 ;;
17722esac
17723fi
17724PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
17725if test -n "$PROG_IFCONFIG"; then
17726 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
17727echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
17728else
17729 { echo "$as_me:$LINENO: result: no" >&5
17730echo "${ECHO_T}no" >&6; }
17731fi
17732
17733
17734 if test -z "$PROG_IFCONFIG" ; then
17735 PROG_IFCONFIG="undef"
17736 fi
17737
17738
17739
17740 # Extract the first word of "jstat", so it can be a program name with args.
17741set dummy jstat; ac_word=$2
17742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17744if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746else
17747 case $PROG_JSTAT in
17748 [\\/]* | ?:[\\/]*)
17749 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
17750 ;;
17751 *)
17752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17753for as_dir in $PATH
17754do
17755 IFS=$as_save_IFS
17756 test -z "$as_dir" && as_dir=.
17757 for ac_exec_ext in '' $ac_executable_extensions; do
17758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17759 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
17760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17761 break 2
17762 fi
17763done
17764done
17765IFS=$as_save_IFS
17766
17767 ;;
17768esac
17769fi
17770PROG_JSTAT=$ac_cv_path_PROG_JSTAT
17771if test -n "$PROG_JSTAT"; then
17772 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
17773echo "${ECHO_T}$PROG_JSTAT" >&6; }
17774else
17775 { echo "$as_me:$LINENO: result: no" >&5
17776echo "${ECHO_T}no" >&6; }
17777fi
17778
17779
17780 if test -z "$PROG_JSTAT" ; then
17781 PROG_JSTAT="undef"
17782 fi
17783
17784
17785
17786 # Extract the first word of "ps", so it can be a program name with args.
17787set dummy ps; ac_word=$2
17788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17790if test "${ac_cv_path_PROG_PS+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 case $PROG_PS in
17794 [\\/]* | ?:[\\/]*)
17795 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
17796 ;;
17797 *)
17798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17799for as_dir in $PATH
17800do
17801 IFS=$as_save_IFS
17802 test -z "$as_dir" && as_dir=.
17803 for ac_exec_ext in '' $ac_executable_extensions; do
17804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17805 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
17806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17807 break 2
17808 fi
17809done
17810done
17811IFS=$as_save_IFS
17812
17813 ;;
17814esac
17815fi
17816PROG_PS=$ac_cv_path_PROG_PS
17817if test -n "$PROG_PS"; then
17818 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
17819echo "${ECHO_T}$PROG_PS" >&6; }
17820else
17821 { echo "$as_me:$LINENO: result: no" >&5
17822echo "${ECHO_T}no" >&6; }
17823fi
17824
17825
17826 if test -z "$PROG_PS" ; then
17827 PROG_PS="undef"
17828 fi
17829
17830
17831
17832 # Extract the first word of "sar", so it can be a program name with args.
17833set dummy sar; ac_word=$2
17834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17836if test "${ac_cv_path_PROG_SAR+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838else
17839 case $PROG_SAR in
17840 [\\/]* | ?:[\\/]*)
17841 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
17842 ;;
17843 *)
17844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17845for as_dir in $PATH
17846do
17847 IFS=$as_save_IFS
17848 test -z "$as_dir" && as_dir=.
17849 for ac_exec_ext in '' $ac_executable_extensions; do
17850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17851 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
17852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17853 break 2
17854 fi
17855done
17856done
17857IFS=$as_save_IFS
17858
17859 ;;
17860esac
17861fi
17862PROG_SAR=$ac_cv_path_PROG_SAR
17863if test -n "$PROG_SAR"; then
17864 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
17865echo "${ECHO_T}$PROG_SAR" >&6; }
17866else
17867 { echo "$as_me:$LINENO: result: no" >&5
17868echo "${ECHO_T}no" >&6; }
17869fi
17870
17871
17872 if test -z "$PROG_SAR" ; then
17873 PROG_SAR="undef"
17874 fi
17875
17876
17877
17878 # Extract the first word of "w", so it can be a program name with args.
17879set dummy w; ac_word=$2
17880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17882if test "${ac_cv_path_PROG_W+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884else
17885 case $PROG_W in
17886 [\\/]* | ?:[\\/]*)
17887 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
17888 ;;
17889 *)
17890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17891for as_dir in $PATH
17892do
17893 IFS=$as_save_IFS
17894 test -z "$as_dir" && as_dir=.
17895 for ac_exec_ext in '' $ac_executable_extensions; do
17896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17897 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
17898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17899 break 2
17900 fi
17901done
17902done
17903IFS=$as_save_IFS
17904
17905 ;;
17906esac
17907fi
17908PROG_W=$ac_cv_path_PROG_W
17909if test -n "$PROG_W"; then
17910 { echo "$as_me:$LINENO: result: $PROG_W" >&5
17911echo "${ECHO_T}$PROG_W" >&6; }
17912else
17913 { echo "$as_me:$LINENO: result: no" >&5
17914echo "${ECHO_T}no" >&6; }
17915fi
17916
17917
17918 if test -z "$PROG_W" ; then
17919 PROG_W="undef"
17920 fi
17921
17922
17923
17924 # Extract the first word of "who", so it can be a program name with args.
17925set dummy who; ac_word=$2
17926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17928if test "${ac_cv_path_PROG_WHO+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930else
17931 case $PROG_WHO in
17932 [\\/]* | ?:[\\/]*)
17933 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
17934 ;;
17935 *)
17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937for as_dir in $PATH
17938do
17939 IFS=$as_save_IFS
17940 test -z "$as_dir" && as_dir=.
17941 for ac_exec_ext in '' $ac_executable_extensions; do
17942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17943 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
17944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17945 break 2
17946 fi
17947done
17948done
17949IFS=$as_save_IFS
17950
17951 ;;
17952esac
17953fi
17954PROG_WHO=$ac_cv_path_PROG_WHO
17955if test -n "$PROG_WHO"; then
17956 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
17957echo "${ECHO_T}$PROG_WHO" >&6; }
17958else
17959 { echo "$as_me:$LINENO: result: no" >&5
17960echo "${ECHO_T}no" >&6; }
17961fi
17962
17963
17964 if test -z "$PROG_WHO" ; then
17965 PROG_WHO="undef"
17966 fi
17967
17968
17969
17970 # Extract the first word of "last", so it can be a program name with args.
17971set dummy last; ac_word=$2
17972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17974if test "${ac_cv_path_PROG_LAST+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 case $PROG_LAST in
17978 [\\/]* | ?:[\\/]*)
17979 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
17980 ;;
17981 *)
17982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17983for as_dir in $PATH
17984do
17985 IFS=$as_save_IFS
17986 test -z "$as_dir" && as_dir=.
17987 for ac_exec_ext in '' $ac_executable_extensions; do
17988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17989 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
17990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17991 break 2
17992 fi
17993done
17994done
17995IFS=$as_save_IFS
17996
17997 ;;
17998esac
17999fi
18000PROG_LAST=$ac_cv_path_PROG_LAST
18001if test -n "$PROG_LAST"; then
18002 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18003echo "${ECHO_T}$PROG_LAST" >&6; }
18004else
18005 { echo "$as_me:$LINENO: result: no" >&5
18006echo "${ECHO_T}no" >&6; }
18007fi
18008
18009
18010 if test -z "$PROG_LAST" ; then
18011 PROG_LAST="undef"
18012 fi
18013
18014
18015
18016 # Extract the first word of "lastlog", so it can be a program name with args.
18017set dummy lastlog; ac_word=$2
18018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18020if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18022else
18023 case $PROG_LASTLOG in
18024 [\\/]* | ?:[\\/]*)
18025 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18026 ;;
18027 *)
18028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18029for as_dir in $PATH
18030do
18031 IFS=$as_save_IFS
18032 test -z "$as_dir" && as_dir=.
18033 for ac_exec_ext in '' $ac_executable_extensions; do
18034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18035 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18037 break 2
18038 fi
18039done
18040done
18041IFS=$as_save_IFS
18042
18043 ;;
18044esac
18045fi
18046PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18047if test -n "$PROG_LASTLOG"; then
18048 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18049echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18050else
18051 { echo "$as_me:$LINENO: result: no" >&5
18052echo "${ECHO_T}no" >&6; }
18053fi
18054
18055
18056 if test -z "$PROG_LASTLOG" ; then
18057 PROG_LASTLOG="undef"
18058 fi
18059
18060
18061
18062 # Extract the first word of "df", so it can be a program name with args.
18063set dummy df; ac_word=$2
18064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18066if test "${ac_cv_path_PROG_DF+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18068else
18069 case $PROG_DF in
18070 [\\/]* | ?:[\\/]*)
18071 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18072 ;;
18073 *)
18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075for as_dir in $PATH
18076do
18077 IFS=$as_save_IFS
18078 test -z "$as_dir" && as_dir=.
18079 for ac_exec_ext in '' $ac_executable_extensions; do
18080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18081 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18083 break 2
18084 fi
18085done
18086done
18087IFS=$as_save_IFS
18088
18089 ;;
18090esac
18091fi
18092PROG_DF=$ac_cv_path_PROG_DF
18093if test -n "$PROG_DF"; then
18094 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18095echo "${ECHO_T}$PROG_DF" >&6; }
18096else
18097 { echo "$as_me:$LINENO: result: no" >&5
18098echo "${ECHO_T}no" >&6; }
18099fi
18100
18101
18102 if test -z "$PROG_DF" ; then
18103 PROG_DF="undef"
18104 fi
18105
18106
18107
18108 # Extract the first word of "vmstat", so it can be a program name with args.
18109set dummy vmstat; ac_word=$2
18110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18112if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114else
18115 case $PROG_VMSTAT in
18116 [\\/]* | ?:[\\/]*)
18117 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18118 ;;
18119 *)
18120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18121for as_dir in $PATH
18122do
18123 IFS=$as_save_IFS
18124 test -z "$as_dir" && as_dir=.
18125 for ac_exec_ext in '' $ac_executable_extensions; do
18126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18127 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
18128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18129 break 2
18130 fi
18131done
18132done
18133IFS=$as_save_IFS
18134
18135 ;;
18136esac
18137fi
18138PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
18139if test -n "$PROG_VMSTAT"; then
18140 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
18141echo "${ECHO_T}$PROG_VMSTAT" >&6; }
18142else
18143 { echo "$as_me:$LINENO: result: no" >&5
18144echo "${ECHO_T}no" >&6; }
18145fi
18146
18147
18148 if test -z "$PROG_VMSTAT" ; then
18149 PROG_VMSTAT="undef"
18150 fi
18151
18152
18153
18154 # Extract the first word of "uptime", so it can be a program name with args.
18155set dummy uptime; ac_word=$2
18156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18158if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160else
18161 case $PROG_UPTIME in
18162 [\\/]* | ?:[\\/]*)
18163 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
18164 ;;
18165 *)
18166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18167for as_dir in $PATH
18168do
18169 IFS=$as_save_IFS
18170 test -z "$as_dir" && as_dir=.
18171 for ac_exec_ext in '' $ac_executable_extensions; do
18172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18173 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
18174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18175 break 2
18176 fi
18177done
18178done
18179IFS=$as_save_IFS
18180
18181 ;;
18182esac
18183fi
18184PROG_UPTIME=$ac_cv_path_PROG_UPTIME
18185if test -n "$PROG_UPTIME"; then
18186 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
18187echo "${ECHO_T}$PROG_UPTIME" >&6; }
18188else
18189 { echo "$as_me:$LINENO: result: no" >&5
18190echo "${ECHO_T}no" >&6; }
18191fi
18192
18193
18194 if test -z "$PROG_UPTIME" ; then
18195 PROG_UPTIME="undef"
18196 fi
18197
18198
18199
18200 # Extract the first word of "ipcs", so it can be a program name with args.
18201set dummy ipcs; ac_word=$2
18202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18204if test "${ac_cv_path_PROG_IPCS+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18206else
18207 case $PROG_IPCS in
18208 [\\/]* | ?:[\\/]*)
18209 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
18210 ;;
18211 *)
18212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18213for as_dir in $PATH
18214do
18215 IFS=$as_save_IFS
18216 test -z "$as_dir" && as_dir=.
18217 for ac_exec_ext in '' $ac_executable_extensions; do
18218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18219 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
18220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18221 break 2
18222 fi
18223done
18224done
18225IFS=$as_save_IFS
18226
18227 ;;
18228esac
18229fi
18230PROG_IPCS=$ac_cv_path_PROG_IPCS
18231if test -n "$PROG_IPCS"; then
18232 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
18233echo "${ECHO_T}$PROG_IPCS" >&6; }
18234else
18235 { echo "$as_me:$LINENO: result: no" >&5
18236echo "${ECHO_T}no" >&6; }
18237fi
18238
18239
18240 if test -z "$PROG_IPCS" ; then
18241 PROG_IPCS="undef"
18242 fi
18243
18244
18245
18246 # Extract the first word of "tail", so it can be a program name with args.
18247set dummy tail; ac_word=$2
18248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18250if test "${ac_cv_path_PROG_TAIL+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252else
18253 case $PROG_TAIL in
18254 [\\/]* | ?:[\\/]*)
18255 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
18256 ;;
18257 *)
18258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18259for as_dir in $PATH
18260do
18261 IFS=$as_save_IFS
18262 test -z "$as_dir" && as_dir=.
18263 for ac_exec_ext in '' $ac_executable_extensions; do
18264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18265 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
18266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18267 break 2
18268 fi
18269done
18270done
18271IFS=$as_save_IFS
18272
18273 ;;
18274esac
18275fi
18276PROG_TAIL=$ac_cv_path_PROG_TAIL
18277if test -n "$PROG_TAIL"; then
18278 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
18279echo "${ECHO_T}$PROG_TAIL" >&6; }
18280else
18281 { echo "$as_me:$LINENO: result: no" >&5
18282echo "${ECHO_T}no" >&6; }
18283fi
18284
18285
18286 if test -z "$PROG_TAIL" ; then
18287 PROG_TAIL="undef"
18288 fi
18289
18290
18291# restore PATH
18292PATH=$OPATH
18293
18294# Where does ssh-rand-helper get its randomness from?
18295INSTALL_SSH_PRNG_CMDS=""
18296if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
18297 if test ! -z "$PRNGD_PORT" ; then
18298 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
18299 elif test ! -z "$PRNGD_SOCKET" ; then
18300 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
18301 else
18302 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
18303 RAND_HELPER_CMDHASH=yes
18304 INSTALL_SSH_PRNG_CMDS="yes"
18305 fi
18306fi
18307
18308
18309
18310# Cheap hack to ensure NEWS-OS libraries are arranged right.
18311if test ! -z "$SONY" ; then
18312 LIBS="$LIBS -liberty";
18313fi
18314
18315# Check for long long datatypes
18316{ echo "$as_me:$LINENO: checking for long long" >&5
18317echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18318if test "${ac_cv_type_long_long+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18320else
18321 cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327$ac_includes_default
18328typedef long long ac__type_new_;
18329int
18330main ()
18331{
18332if ((ac__type_new_ *) 0)
18333 return 0;
18334if (sizeof (ac__type_new_))
18335 return 0;
18336 ;
18337 return 0;
18338}
18339_ACEOF
18340rm -f conftest.$ac_objext
18341if { (ac_try="$ac_compile"
18342case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345esac
18346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_compile") 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest.$ac_objext; then
18357 ac_cv_type_long_long=yes
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 ac_cv_type_long_long=no
18363fi
18364
18365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366fi
18367{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18368echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18369if test $ac_cv_type_long_long = yes; then
18370
18371cat >>confdefs.h <<_ACEOF
18372#define HAVE_LONG_LONG 1
18373_ACEOF
18374
18375
18376fi
18377{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
18378echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
18379if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381else
18382 cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388$ac_includes_default
18389typedef unsigned long long ac__type_new_;
18390int
18391main ()
18392{
18393if ((ac__type_new_ *) 0)
18394 return 0;
18395if (sizeof (ac__type_new_))
18396 return 0;
18397 ;
18398 return 0;
18399}
18400_ACEOF
18401rm -f conftest.$ac_objext
18402if { (ac_try="$ac_compile"
18403case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406esac
18407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_compile") 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_c_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest.$ac_objext; then
18418 ac_cv_type_unsigned_long_long=yes
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 ac_cv_type_unsigned_long_long=no
18424fi
18425
18426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18427fi
18428{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
18429echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
18430if test $ac_cv_type_unsigned_long_long = yes; then
18431
18432cat >>confdefs.h <<_ACEOF
18433#define HAVE_UNSIGNED_LONG_LONG 1
18434_ACEOF
18435
18436
18437fi
18438{ echo "$as_me:$LINENO: checking for long double" >&5
18439echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18440if test "${ac_cv_type_long_double+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442else
18443 cat >conftest.$ac_ext <<_ACEOF
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
18449$ac_includes_default
18450typedef long double ac__type_new_;
18451int
18452main ()
18453{
18454if ((ac__type_new_ *) 0)
18455 return 0;
18456if (sizeof (ac__type_new_))
18457 return 0;
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext
18463if { (ac_try="$ac_compile"
18464case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467esac
18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_compile") 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest.$ac_objext; then
18479 ac_cv_type_long_double=yes
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_cv_type_long_double=no
18485fi
18486
18487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18488fi
18489{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
18490echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
18491if test $ac_cv_type_long_double = yes; then
18492
18493cat >>confdefs.h <<_ACEOF
18494#define HAVE_LONG_DOUBLE 1
18495_ACEOF
18496
18497
18498fi
18499
18500
18501# Check datatype sizes
18502{ echo "$as_me:$LINENO: checking for char" >&5
18503echo $ECHO_N "checking for char... $ECHO_C" >&6; }
18504if test "${ac_cv_type_char+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513$ac_includes_default
18514typedef char ac__type_new_;
18515int
18516main ()
18517{
18518if ((ac__type_new_ *) 0)
18519 return 0;
18520if (sizeof (ac__type_new_))
18521 return 0;
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (ac_try="$ac_compile"
18528case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18543 ac_cv_type_char=yes
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_type_char=no
18549fi
18550
18551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18552fi
18553{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18554echo "${ECHO_T}$ac_cv_type_char" >&6; }
18555
18556# The cast to long int works around a bug in the HP C Compiler
18557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18559# This bug is HP SR number 8606223364.
18560{ echo "$as_me:$LINENO: checking size of char" >&5
18561echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
18562if test "${ac_cv_sizeof_char+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564else
18565 if test "$cross_compiling" = yes; then
18566 # Depending upon the size, compute the lo and hi bounds.
18567cat >conftest.$ac_ext <<_ACEOF
18568/* confdefs.h. */
18569_ACEOF
18570cat confdefs.h >>conftest.$ac_ext
18571cat >>conftest.$ac_ext <<_ACEOF
18572/* end confdefs.h. */
18573$ac_includes_default
18574 typedef char ac__type_sizeof_;
18575int
18576main ()
18577{
18578static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18579test_array [0] = 0
18580
18581 ;
18582 return 0;
18583}
18584_ACEOF
18585rm -f conftest.$ac_objext
18586if { (ac_try="$ac_compile"
18587case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_compile") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } && {
18599 test -z "$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 } && test -s conftest.$ac_objext; then
18602 ac_lo=0 ac_mid=0
18603 while :; do
18604 cat >conftest.$ac_ext <<_ACEOF
18605/* confdefs.h. */
18606_ACEOF
18607cat confdefs.h >>conftest.$ac_ext
18608cat >>conftest.$ac_ext <<_ACEOF
18609/* end confdefs.h. */
18610$ac_includes_default
18611 typedef char ac__type_sizeof_;
18612int
18613main ()
18614{
18615static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18616test_array [0] = 0
18617
18618 ;
18619 return 0;
18620}
18621_ACEOF
18622rm -f conftest.$ac_objext
18623if { (ac_try="$ac_compile"
18624case "(($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_compile") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest.$ac_objext; then
18639 ac_hi=$ac_mid; break
18640else
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 ac_lo=`expr $ac_mid + 1`
18645 if test $ac_lo -le $ac_mid; then
18646 ac_lo= ac_hi=
18647 break
18648 fi
18649 ac_mid=`expr 2 '*' $ac_mid + 1`
18650fi
18651
18652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653 done
18654else
18655 echo "$as_me: failed program was:" >&5
18656sed 's/^/| /' conftest.$ac_ext >&5
18657
18658 cat >conftest.$ac_ext <<_ACEOF
18659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
18663/* end confdefs.h. */
18664$ac_includes_default
18665 typedef char ac__type_sizeof_;
18666int
18667main ()
18668{
18669static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18670test_array [0] = 0
18671
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (ac_try="$ac_compile"
18678case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681esac
18682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_compile") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && {
18690 test -z "$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 } && test -s conftest.$ac_objext; then
18693 ac_hi=-1 ac_mid=-1
18694 while :; do
18695 cat >conftest.$ac_ext <<_ACEOF
18696/* confdefs.h. */
18697_ACEOF
18698cat confdefs.h >>conftest.$ac_ext
18699cat >>conftest.$ac_ext <<_ACEOF
18700/* end confdefs.h. */
18701$ac_includes_default
18702 typedef char ac__type_sizeof_;
18703int
18704main ()
18705{
18706static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18707test_array [0] = 0
18708
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext
18714if { (ac_try="$ac_compile"
18715case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && {
18727 test -z "$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 } && test -s conftest.$ac_objext; then
18730 ac_lo=$ac_mid; break
18731else
18732 echo "$as_me: failed program was:" >&5
18733sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 ac_hi=`expr '(' $ac_mid ')' - 1`
18736 if test $ac_mid -le $ac_hi; then
18737 ac_lo= ac_hi=
18738 break
18739 fi
18740 ac_mid=`expr 2 '*' $ac_mid`
18741fi
18742
18743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 done
18745else
18746 echo "$as_me: failed program was:" >&5
18747sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 ac_lo= ac_hi=
18750fi
18751
18752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18753fi
18754
18755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756# Binary search between lo and hi bounds.
18757while test "x$ac_lo" != "x$ac_hi"; do
18758 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765$ac_includes_default
18766 typedef char ac__type_sizeof_;
18767int
18768main ()
18769{
18770static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18771test_array [0] = 0
18772
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext
18778if { (ac_try="$ac_compile"
18779case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_compile") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest.$ac_objext; then
18794 ac_hi=$ac_mid
18795else
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_lo=`expr '(' $ac_mid ')' + 1`
18800fi
18801
18802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803done
18804case $ac_lo in
18805?*) ac_cv_sizeof_char=$ac_lo;;
18806'') if test "$ac_cv_type_char" = yes; then
18807 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18808See \`config.log' for more details." >&5
18809echo "$as_me: error: cannot compute sizeof (char)
18810See \`config.log' for more details." >&2;}
18811 { (exit 77); exit 77; }; }
18812 else
18813 ac_cv_sizeof_char=0
18814 fi ;;
18815esac
18816else
18817 cat >conftest.$ac_ext <<_ACEOF
18818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
18823$ac_includes_default
18824 typedef char ac__type_sizeof_;
18825static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18826static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18827#include <stdio.h>
18828#include <stdlib.h>
18829int
18830main ()
18831{
18832
18833 FILE *f = fopen ("conftest.val", "w");
18834 if (! f)
18835 return 1;
18836 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18837 {
18838 long int i = longval ();
18839 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18840 return 1;
18841 fprintf (f, "%ld\n", i);
18842 }
18843 else
18844 {
18845 unsigned long int i = ulongval ();
18846 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18847 return 1;
18848 fprintf (f, "%lu\n", i);
18849 }
18850 return ferror (f) || fclose (f) != 0;
18851
18852 ;
18853 return 0;
18854}
18855_ACEOF
18856rm -f conftest$ac_exeext
18857if { (ac_try="$ac_link"
18858case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18861esac
18862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_link") 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_cv_sizeof_char=`cat conftest.val`
18877else
18878 echo "$as_me: program exited with status $ac_status" >&5
18879echo "$as_me: failed program was:" >&5
18880sed 's/^/| /' conftest.$ac_ext >&5
18881
18882( exit $ac_status )
18883if test "$ac_cv_type_char" = yes; then
18884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18885See \`config.log' for more details." >&5
18886echo "$as_me: error: cannot compute sizeof (char)
18887See \`config.log' for more details." >&2;}
18888 { (exit 77); exit 77; }; }
18889 else
18890 ac_cv_sizeof_char=0
18891 fi
18892fi
18893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18894fi
18895rm -f conftest.val
18896fi
18897{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18898echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18899
18900
18901
18902cat >>confdefs.h <<_ACEOF
18903#define SIZEOF_CHAR $ac_cv_sizeof_char
18904_ACEOF
18905
18906
18907{ echo "$as_me:$LINENO: checking for short int" >&5
18908echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
18909if test "${ac_cv_type_short_int+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18911else
18912 cat >conftest.$ac_ext <<_ACEOF
18913/* confdefs.h. */
18914_ACEOF
18915cat confdefs.h >>conftest.$ac_ext
18916cat >>conftest.$ac_ext <<_ACEOF
18917/* end confdefs.h. */
18918$ac_includes_default
18919typedef short int ac__type_new_;
18920int
18921main ()
18922{
18923if ((ac__type_new_ *) 0)
18924 return 0;
18925if (sizeof (ac__type_new_))
18926 return 0;
18927 ;
18928 return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext
18932if { (ac_try="$ac_compile"
18933case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_compile") 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } && {
18945 test -z "$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18947 } && test -s conftest.$ac_objext; then
18948 ac_cv_type_short_int=yes
18949else
18950 echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 ac_cv_type_short_int=no
18954fi
18955
18956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18957fi
18958{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
18959echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
18960
18961# The cast to long int works around a bug in the HP C Compiler
18962# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18963# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18964# This bug is HP SR number 8606223364.
18965{ echo "$as_me:$LINENO: checking size of short int" >&5
18966echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
18967if test "${ac_cv_sizeof_short_int+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970 if test "$cross_compiling" = yes; then
18971 # Depending upon the size, compute the lo and hi bounds.
18972cat >conftest.$ac_ext <<_ACEOF
18973/* confdefs.h. */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h. */
18978$ac_includes_default
18979 typedef short int ac__type_sizeof_;
18980int
18981main ()
18982{
18983static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18984test_array [0] = 0
18985
18986 ;
18987 return 0;
18988}
18989_ACEOF
18990rm -f conftest.$ac_objext
18991if { (ac_try="$ac_compile"
18992case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_compile") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest.$ac_objext; then
19007 ac_lo=0 ac_mid=0
19008 while :; do
19009 cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
19015$ac_includes_default
19016 typedef short int ac__type_sizeof_;
19017int
19018main ()
19019{
19020static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19021test_array [0] = 0
19022
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest.$ac_objext
19028if { (ac_try="$ac_compile"
19029case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_compile") 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } && {
19041 test -z "$ac_c_werror_flag" ||
19042 test ! -s conftest.err
19043 } && test -s conftest.$ac_objext; then
19044 ac_hi=$ac_mid; break
19045else
19046 echo "$as_me: failed program was:" >&5
19047sed 's/^/| /' conftest.$ac_ext >&5
19048
19049 ac_lo=`expr $ac_mid + 1`
19050 if test $ac_lo -le $ac_mid; then
19051 ac_lo= ac_hi=
19052 break
19053 fi
19054 ac_mid=`expr 2 '*' $ac_mid + 1`
19055fi
19056
19057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 done
19059else
19060 echo "$as_me: failed program was:" >&5
19061sed 's/^/| /' conftest.$ac_ext >&5
19062
19063 cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h. */
19069$ac_includes_default
19070 typedef short int ac__type_sizeof_;
19071int
19072main ()
19073{
19074static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19075test_array [0] = 0
19076
19077 ;
19078 return 0;
19079}
19080_ACEOF
19081rm -f conftest.$ac_objext
19082if { (ac_try="$ac_compile"
19083case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086esac
19087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_compile") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest.$ac_objext; then
19098 ac_hi=-1 ac_mid=-1
19099 while :; do
19100 cat >conftest.$ac_ext <<_ACEOF
19101/* confdefs.h. */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h. */
19106$ac_includes_default
19107 typedef short int ac__type_sizeof_;
19108int
19109main ()
19110{
19111static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19112test_array [0] = 0
19113
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext
19119if { (ac_try="$ac_compile"
19120case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_compile") 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest.$ac_objext; then
19135 ac_lo=$ac_mid; break
19136else
19137 echo "$as_me: failed program was:" >&5
19138sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 ac_hi=`expr '(' $ac_mid ')' - 1`
19141 if test $ac_mid -le $ac_hi; then
19142 ac_lo= ac_hi=
19143 break
19144 fi
19145 ac_mid=`expr 2 '*' $ac_mid`
19146fi
19147
19148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 done
19150else
19151 echo "$as_me: failed program was:" >&5
19152sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 ac_lo= ac_hi=
19155fi
19156
19157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158fi
19159
19160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161# Binary search between lo and hi bounds.
19162while test "x$ac_lo" != "x$ac_hi"; do
19163 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170$ac_includes_default
19171 typedef short int ac__type_sizeof_;
19172int
19173main ()
19174{
19175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19176test_array [0] = 0
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (ac_try="$ac_compile"
19184case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_compile") 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest.$ac_objext; then
19199 ac_hi=$ac_mid
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_lo=`expr '(' $ac_mid ')' + 1`
19205fi
19206
19207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208done
19209case $ac_lo in
19210?*) ac_cv_sizeof_short_int=$ac_lo;;
19211'') if test "$ac_cv_type_short_int" = yes; then
19212 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19213See \`config.log' for more details." >&5
19214echo "$as_me: error: cannot compute sizeof (short int)
19215See \`config.log' for more details." >&2;}
19216 { (exit 77); exit 77; }; }
19217 else
19218 ac_cv_sizeof_short_int=0
19219 fi ;;
19220esac
19221else
19222 cat >conftest.$ac_ext <<_ACEOF
19223/* confdefs.h. */
19224_ACEOF
19225cat confdefs.h >>conftest.$ac_ext
19226cat >>conftest.$ac_ext <<_ACEOF
19227/* end confdefs.h. */
19228$ac_includes_default
19229 typedef short int ac__type_sizeof_;
19230static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19231static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19232#include <stdio.h>
19233#include <stdlib.h>
19234int
19235main ()
19236{
19237
19238 FILE *f = fopen ("conftest.val", "w");
19239 if (! f)
19240 return 1;
19241 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19242 {
19243 long int i = longval ();
19244 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19245 return 1;
19246 fprintf (f, "%ld\n", i);
19247 }
19248 else
19249 {
19250 unsigned long int i = ulongval ();
19251 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19252 return 1;
19253 fprintf (f, "%lu\n", i);
19254 }
19255 return ferror (f) || fclose (f) != 0;
19256
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest$ac_exeext
19262if { (ac_try="$ac_link"
19263case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266esac
19267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_link") 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19272 { (case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_try") 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_sizeof_short_int=`cat conftest.val`
19282else
19283 echo "$as_me: program exited with status $ac_status" >&5
19284echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287( exit $ac_status )
19288if test "$ac_cv_type_short_int" = yes; then
19289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19290See \`config.log' for more details." >&5
19291echo "$as_me: error: cannot compute sizeof (short int)
19292See \`config.log' for more details." >&2;}
19293 { (exit 77); exit 77; }; }
19294 else
19295 ac_cv_sizeof_short_int=0
19296 fi
19297fi
19298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19299fi
19300rm -f conftest.val
19301fi
19302{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
19303echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
19304
19305
19306
19307cat >>confdefs.h <<_ACEOF
19308#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
19309_ACEOF
19310
19311
19312{ echo "$as_me:$LINENO: checking for int" >&5
19313echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19314if test "${ac_cv_type_int+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19316else
19317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
19323$ac_includes_default
19324typedef int ac__type_new_;
19325int
19326main ()
19327{
19328if ((ac__type_new_ *) 0)
19329 return 0;
19330if (sizeof (ac__type_new_))
19331 return 0;
19332 ;
19333 return 0;
19334}
19335_ACEOF
19336rm -f conftest.$ac_objext
19337if { (ac_try="$ac_compile"
19338case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341esac
19342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.$ac_objext; then
19353 ac_cv_type_int=yes
19354else
19355 echo "$as_me: failed program was:" >&5
19356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 ac_cv_type_int=no
19359fi
19360
19361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362fi
19363{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19364echo "${ECHO_T}$ac_cv_type_int" >&6; }
19365
19366# The cast to long int works around a bug in the HP C Compiler
19367# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19368# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19369# This bug is HP SR number 8606223364.
19370{ echo "$as_me:$LINENO: checking size of int" >&5
19371echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19372if test "${ac_cv_sizeof_int+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374else
19375 if test "$cross_compiling" = yes; then
19376 # Depending upon the size, compute the lo and hi bounds.
19377cat >conftest.$ac_ext <<_ACEOF
19378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
19383$ac_includes_default
19384 typedef int ac__type_sizeof_;
19385int
19386main ()
19387{
19388static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19389test_array [0] = 0
19390
19391 ;
19392 return 0;
19393}
19394_ACEOF
19395rm -f conftest.$ac_objext
19396if { (ac_try="$ac_compile"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest.$ac_objext; then
19412 ac_lo=0 ac_mid=0
19413 while :; do
19414 cat >conftest.$ac_ext <<_ACEOF
19415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
19420$ac_includes_default
19421 typedef int ac__type_sizeof_;
19422int
19423main ()
19424{
19425static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19426test_array [0] = 0
19427
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext
19433if { (ac_try="$ac_compile"
19434case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437esac
19438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_compile") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest.$ac_objext; then
19449 ac_hi=$ac_mid; break
19450else
19451 echo "$as_me: failed program was:" >&5
19452sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 ac_lo=`expr $ac_mid + 1`
19455 if test $ac_lo -le $ac_mid; then
19456 ac_lo= ac_hi=
19457 break
19458 fi
19459 ac_mid=`expr 2 '*' $ac_mid + 1`
19460fi
19461
19462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 done
19464else
19465 echo "$as_me: failed program was:" >&5
19466sed 's/^/| /' conftest.$ac_ext >&5
19467
19468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474$ac_includes_default
19475 typedef int ac__type_sizeof_;
19476int
19477main ()
19478{
19479static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19480test_array [0] = 0
19481
19482 ;
19483 return 0;
19484}
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (ac_try="$ac_compile"
19488case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491esac
19492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_compile") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } && {
19500 test -z "$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 } && test -s conftest.$ac_objext; then
19503 ac_hi=-1 ac_mid=-1
19504 while :; do
19505 cat >conftest.$ac_ext <<_ACEOF
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511$ac_includes_default
19512 typedef int ac__type_sizeof_;
19513int
19514main ()
19515{
19516static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19517test_array [0] = 0
19518
19519 ;
19520 return 0;
19521}
19522_ACEOF
19523rm -f conftest.$ac_objext
19524if { (ac_try="$ac_compile"
19525case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_compile") 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest.$ac_objext; then
19540 ac_lo=$ac_mid; break
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ac_hi=`expr '(' $ac_mid ')' - 1`
19546 if test $ac_mid -le $ac_hi; then
19547 ac_lo= ac_hi=
19548 break
19549 fi
19550 ac_mid=`expr 2 '*' $ac_mid`
19551fi
19552
19553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 done
19555else
19556 echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_lo= ac_hi=
19560fi
19561
19562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566# Binary search between lo and hi bounds.
19567while test "x$ac_lo" != "x$ac_hi"; do
19568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576 typedef int ac__type_sizeof_;
19577int
19578main ()
19579{
19580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19581test_array [0] = 0
19582
19583 ;
19584 return 0;
19585}
19586_ACEOF
19587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_hi=$ac_mid
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_lo=`expr '(' $ac_mid ')' + 1`
19610fi
19611
19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613done
19614case $ac_lo in
19615?*) ac_cv_sizeof_int=$ac_lo;;
19616'') if test "$ac_cv_type_int" = yes; then
19617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19618See \`config.log' for more details." >&5
19619echo "$as_me: error: cannot compute sizeof (int)
19620See \`config.log' for more details." >&2;}
19621 { (exit 77); exit 77; }; }
19622 else
19623 ac_cv_sizeof_int=0
19624 fi ;;
19625esac
19626else
19627 cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633$ac_includes_default
19634 typedef int ac__type_sizeof_;
19635static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19636static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19637#include <stdio.h>
19638#include <stdlib.h>
19639int
19640main ()
19641{
19642
19643 FILE *f = fopen ("conftest.val", "w");
19644 if (! f)
19645 return 1;
19646 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19647 {
19648 long int i = longval ();
19649 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19650 return 1;
19651 fprintf (f, "%ld\n", i);
19652 }
19653 else
19654 {
19655 unsigned long int i = ulongval ();
19656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19657 return 1;
19658 fprintf (f, "%lu\n", i);
19659 }
19660 return ferror (f) || fclose (f) != 0;
19661
19662 ;
19663 return 0;
19664}
19665_ACEOF
19666rm -f conftest$ac_exeext
19667if { (ac_try="$ac_link"
19668case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671esac
19672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_link") 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19677 { (case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19680esac
19681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_try") 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19686 ac_cv_sizeof_int=`cat conftest.val`
19687else
19688 echo "$as_me: program exited with status $ac_status" >&5
19689echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692( exit $ac_status )
19693if test "$ac_cv_type_int" = yes; then
19694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19695See \`config.log' for more details." >&5
19696echo "$as_me: error: cannot compute sizeof (int)
19697See \`config.log' for more details." >&2;}
19698 { (exit 77); exit 77; }; }
19699 else
19700 ac_cv_sizeof_int=0
19701 fi
19702fi
19703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19704fi
19705rm -f conftest.val
19706fi
19707{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19708echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19709
19710
19711
19712cat >>confdefs.h <<_ACEOF
19713#define SIZEOF_INT $ac_cv_sizeof_int
19714_ACEOF
19715
19716
19717{ echo "$as_me:$LINENO: checking for long int" >&5
19718echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
19719if test "${ac_cv_type_long_int+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19721else
19722 cat >conftest.$ac_ext <<_ACEOF
19723/* confdefs.h. */
19724_ACEOF
19725cat confdefs.h >>conftest.$ac_ext
19726cat >>conftest.$ac_ext <<_ACEOF
19727/* end confdefs.h. */
19728$ac_includes_default
19729typedef long int ac__type_new_;
19730int
19731main ()
19732{
19733if ((ac__type_new_ *) 0)
19734 return 0;
19735if (sizeof (ac__type_new_))
19736 return 0;
19737 ;
19738 return 0;
19739}
19740_ACEOF
19741rm -f conftest.$ac_objext
19742if { (ac_try="$ac_compile"
19743case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746esac
19747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_compile") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest.$ac_objext; then
19758 ac_cv_type_long_int=yes
19759else
19760 echo "$as_me: failed program was:" >&5
19761sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 ac_cv_type_long_int=no
19764fi
19765
19766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767fi
19768{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
19769echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
19770
19771# The cast to long int works around a bug in the HP C Compiler
19772# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19773# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19774# This bug is HP SR number 8606223364.
19775{ echo "$as_me:$LINENO: checking size of long int" >&5
19776echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
19777if test "${ac_cv_sizeof_long_int+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779else
19780 if test "$cross_compiling" = yes; then
19781 # Depending upon the size, compute the lo and hi bounds.
19782cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788$ac_includes_default
19789 typedef long int ac__type_sizeof_;
19790int
19791main ()
19792{
19793static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19794test_array [0] = 0
19795
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (ac_try="$ac_compile"
19802case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805esac
19806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_c_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest.$ac_objext; then
19817 ac_lo=0 ac_mid=0
19818 while :; do
19819 cat >conftest.$ac_ext <<_ACEOF
19820/* confdefs.h. */
19821_ACEOF
19822cat confdefs.h >>conftest.$ac_ext
19823cat >>conftest.$ac_ext <<_ACEOF
19824/* end confdefs.h. */
19825$ac_includes_default
19826 typedef long int ac__type_sizeof_;
19827int
19828main ()
19829{
19830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19831test_array [0] = 0
19832
19833 ;
19834 return 0;
19835}
19836_ACEOF
19837rm -f conftest.$ac_objext
19838if { (ac_try="$ac_compile"
19839case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842esac
19843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_compile") 2>conftest.er1
19845 ac_status=$?
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest.$ac_objext; then
19854 ac_hi=$ac_mid; break
19855else
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 ac_lo=`expr $ac_mid + 1`
19860 if test $ac_lo -le $ac_mid; then
19861 ac_lo= ac_hi=
19862 break
19863 fi
19864 ac_mid=`expr 2 '*' $ac_mid + 1`
19865fi
19866
19867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 done
19869else
19870 echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
19873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879$ac_includes_default
19880 typedef long int ac__type_sizeof_;
19881int
19882main ()
19883{
19884static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19885test_array [0] = 0
19886
19887 ;
19888 return 0;
19889}
19890_ACEOF
19891rm -f conftest.$ac_objext
19892if { (ac_try="$ac_compile"
19893case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_compile") 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_c_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest.$ac_objext; then
19908 ac_hi=-1 ac_mid=-1
19909 while :; do
19910 cat >conftest.$ac_ext <<_ACEOF
19911/* confdefs.h. */
19912_ACEOF
19913cat confdefs.h >>conftest.$ac_ext
19914cat >>conftest.$ac_ext <<_ACEOF
19915/* end confdefs.h. */
19916$ac_includes_default
19917 typedef long int ac__type_sizeof_;
19918int
19919main ()
19920{
19921static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19922test_array [0] = 0
19923
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext
19929if { (ac_try="$ac_compile"
19930case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933esac
19934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 ac_lo=$ac_mid; break
19946else
19947 echo "$as_me: failed program was:" >&5
19948sed 's/^/| /' conftest.$ac_ext >&5
19949
19950 ac_hi=`expr '(' $ac_mid ')' - 1`
19951 if test $ac_mid -le $ac_hi; then
19952 ac_lo= ac_hi=
19953 break
19954 fi
19955 ac_mid=`expr 2 '*' $ac_mid`
19956fi
19957
19958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19959 done
19960else
19961 echo "$as_me: failed program was:" >&5
19962sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_lo= ac_hi=
19965fi
19966
19967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968fi
19969
19970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971# Binary search between lo and hi bounds.
19972while test "x$ac_lo" != "x$ac_hi"; do
19973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19974 cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
19981 typedef long int ac__type_sizeof_;
19982int
19983main ()
19984{
19985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19986test_array [0] = 0
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_hi=$ac_mid
20010else
20011 echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_lo=`expr '(' $ac_mid ')' + 1`
20015fi
20016
20017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018done
20019case $ac_lo in
20020?*) ac_cv_sizeof_long_int=$ac_lo;;
20021'') if test "$ac_cv_type_long_int" = yes; then
20022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20023See \`config.log' for more details." >&5
20024echo "$as_me: error: cannot compute sizeof (long int)
20025See \`config.log' for more details." >&2;}
20026 { (exit 77); exit 77; }; }
20027 else
20028 ac_cv_sizeof_long_int=0
20029 fi ;;
20030esac
20031else
20032 cat >conftest.$ac_ext <<_ACEOF
20033/* confdefs.h. */
20034_ACEOF
20035cat confdefs.h >>conftest.$ac_ext
20036cat >>conftest.$ac_ext <<_ACEOF
20037/* end confdefs.h. */
20038$ac_includes_default
20039 typedef long int ac__type_sizeof_;
20040static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20041static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20042#include <stdio.h>
20043#include <stdlib.h>
20044int
20045main ()
20046{
20047
20048 FILE *f = fopen ("conftest.val", "w");
20049 if (! f)
20050 return 1;
20051 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20052 {
20053 long int i = longval ();
20054 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20055 return 1;
20056 fprintf (f, "%ld\n", i);
20057 }
20058 else
20059 {
20060 unsigned long int i = ulongval ();
20061 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20062 return 1;
20063 fprintf (f, "%lu\n", i);
20064 }
20065 return ferror (f) || fclose (f) != 0;
20066
20067 ;
20068 return 0;
20069}
20070_ACEOF
20071rm -f conftest$ac_exeext
20072if { (ac_try="$ac_link"
20073case "(($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_link") 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20082 { (case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085esac
20086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_try") 2>&5
20088 ac_status=$?
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; }; then
20091 ac_cv_sizeof_long_int=`cat conftest.val`
20092else
20093 echo "$as_me: program exited with status $ac_status" >&5
20094echo "$as_me: failed program was:" >&5
20095sed 's/^/| /' conftest.$ac_ext >&5
20096
20097( exit $ac_status )
20098if test "$ac_cv_type_long_int" = yes; then
20099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20100See \`config.log' for more details." >&5
20101echo "$as_me: error: cannot compute sizeof (long int)
20102See \`config.log' for more details." >&2;}
20103 { (exit 77); exit 77; }; }
20104 else
20105 ac_cv_sizeof_long_int=0
20106 fi
20107fi
20108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20109fi
20110rm -f conftest.val
20111fi
20112{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20113echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20114
20115
20116
20117cat >>confdefs.h <<_ACEOF
20118#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20119_ACEOF
20120
20121
20122{ echo "$as_me:$LINENO: checking for long long int" >&5
20123echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20124if test "${ac_cv_type_long_long_int+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127 cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
20133$ac_includes_default
20134typedef long long int ac__type_new_;
20135int
20136main ()
20137{
20138if ((ac__type_new_ *) 0)
20139 return 0;
20140if (sizeof (ac__type_new_))
20141 return 0;
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext
20147if { (ac_try="$ac_compile"
20148case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 ac_cv_type_long_long_int=yes
20164else
20165 echo "$as_me: failed program was:" >&5
20166sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 ac_cv_type_long_long_int=no
20169fi
20170
20171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172fi
20173{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20174echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
20175
20176# The cast to long int works around a bug in the HP C Compiler
20177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20179# This bug is HP SR number 8606223364.
20180{ echo "$as_me:$LINENO: checking size of long long int" >&5
20181echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
20182if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184else
20185 if test "$cross_compiling" = yes; then
20186 # Depending upon the size, compute the lo and hi bounds.
20187cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
20193$ac_includes_default
20194 typedef long long int ac__type_sizeof_;
20195int
20196main ()
20197{
20198static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20199test_array [0] = 0
20200
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext
20206if { (ac_try="$ac_compile"
20207case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest.$ac_objext; then
20222 ac_lo=0 ac_mid=0
20223 while :; do
20224 cat >conftest.$ac_ext <<_ACEOF
20225/* confdefs.h. */
20226_ACEOF
20227cat confdefs.h >>conftest.$ac_ext
20228cat >>conftest.$ac_ext <<_ACEOF
20229/* end confdefs.h. */
20230$ac_includes_default
20231 typedef long long int ac__type_sizeof_;
20232int
20233main ()
20234{
20235static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20236test_array [0] = 0
20237
20238 ;
20239 return 0;
20240}
20241_ACEOF
20242rm -f conftest.$ac_objext
20243if { (ac_try="$ac_compile"
20244case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_compile") 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest.$ac_objext; then
20259 ac_hi=$ac_mid; break
20260else
20261 echo "$as_me: failed program was:" >&5
20262sed 's/^/| /' conftest.$ac_ext >&5
20263
20264 ac_lo=`expr $ac_mid + 1`
20265 if test $ac_lo -le $ac_mid; then
20266 ac_lo= ac_hi=
20267 break
20268 fi
20269 ac_mid=`expr 2 '*' $ac_mid + 1`
20270fi
20271
20272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273 done
20274else
20275 echo "$as_me: failed program was:" >&5
20276sed 's/^/| /' conftest.$ac_ext >&5
20277
20278 cat >conftest.$ac_ext <<_ACEOF
20279/* confdefs.h. */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h. */
20284$ac_includes_default
20285 typedef long long int ac__type_sizeof_;
20286int
20287main ()
20288{
20289static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20290test_array [0] = 0
20291
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (ac_try="$ac_compile"
20298case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301esac
20302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 ac_hi=-1 ac_mid=-1
20314 while :; do
20315 cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
20321$ac_includes_default
20322 typedef long long int ac__type_sizeof_;
20323int
20324main ()
20325{
20326static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20327test_array [0] = 0
20328
20329 ;
20330 return 0;
20331}
20332_ACEOF
20333rm -f conftest.$ac_objext
20334if { (ac_try="$ac_compile"
20335case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338esac
20339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_compile") 2>conftest.er1
20341 ac_status=$?
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
20350 ac_lo=$ac_mid; break
20351else
20352 echo "$as_me: failed program was:" >&5
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ac_hi=`expr '(' $ac_mid ')' - 1`
20356 if test $ac_mid -le $ac_hi; then
20357 ac_lo= ac_hi=
20358 break
20359 fi
20360 ac_mid=`expr 2 '*' $ac_mid`
20361fi
20362
20363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 done
20365else
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ac_lo= ac_hi=
20370fi
20371
20372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20373fi
20374
20375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376# Binary search between lo and hi bounds.
20377while test "x$ac_lo" != "x$ac_hi"; do
20378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20379 cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385$ac_includes_default
20386 typedef long long int ac__type_sizeof_;
20387int
20388main ()
20389{
20390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20391test_array [0] = 0
20392
20393 ;
20394 return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (ac_try="$ac_compile"
20399case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_compile") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest.$ac_objext; then
20414 ac_hi=$ac_mid
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_lo=`expr '(' $ac_mid ')' + 1`
20420fi
20421
20422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423done
20424case $ac_lo in
20425?*) ac_cv_sizeof_long_long_int=$ac_lo;;
20426'') if test "$ac_cv_type_long_long_int" = yes; then
20427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20428See \`config.log' for more details." >&5
20429echo "$as_me: error: cannot compute sizeof (long long int)
20430See \`config.log' for more details." >&2;}
20431 { (exit 77); exit 77; }; }
20432 else
20433 ac_cv_sizeof_long_long_int=0
20434 fi ;;
20435esac
20436else
20437 cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h. */
20443$ac_includes_default
20444 typedef long long int ac__type_sizeof_;
20445static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20446static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20447#include <stdio.h>
20448#include <stdlib.h>
20449int
20450main ()
20451{
20452
20453 FILE *f = fopen ("conftest.val", "w");
20454 if (! f)
20455 return 1;
20456 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20457 {
20458 long int i = longval ();
20459 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20460 return 1;
20461 fprintf (f, "%ld\n", i);
20462 }
20463 else
20464 {
20465 unsigned long int i = ulongval ();
20466 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20467 return 1;
20468 fprintf (f, "%lu\n", i);
20469 }
20470 return ferror (f) || fclose (f) != 0;
20471
20472 ;
20473 return 0;
20474}
20475_ACEOF
20476rm -f conftest$ac_exeext
20477if { (ac_try="$ac_link"
20478case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481esac
20482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_link") 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20487 { (case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20490esac
20491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_try") 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 ac_cv_sizeof_long_long_int=`cat conftest.val`
20497else
20498 echo "$as_me: program exited with status $ac_status" >&5
20499echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
20502( exit $ac_status )
20503if test "$ac_cv_type_long_long_int" = yes; then
20504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20505See \`config.log' for more details." >&5
20506echo "$as_me: error: cannot compute sizeof (long long int)
20507See \`config.log' for more details." >&2;}
20508 { (exit 77); exit 77; }; }
20509 else
20510 ac_cv_sizeof_long_long_int=0
20511 fi
20512fi
20513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20514fi
20515rm -f conftest.val
20516fi
20517{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
20518echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
20519
20520
20521
20522cat >>confdefs.h <<_ACEOF
20523#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
20524_ACEOF
20525
20526
20527
20528# Sanity check long long for some platforms (AIX)
20529if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
20530 ac_cv_sizeof_long_long_int=0
20531fi
20532
20533# compute LLONG_MIN and LLONG_MAX if we don't know them.
20534if test -z "$have_llong_max"; then
20535 { echo "$as_me:$LINENO: checking for max value of long long" >&5
20536echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
20537 if test "$cross_compiling" = yes; then
20538
20539 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20540echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20541
20542
20543else
20544 cat >conftest.$ac_ext <<_ACEOF
20545/* confdefs.h. */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h. */
20550
20551#include <stdio.h>
20552/* Why is this so damn hard? */
20553#ifdef __GNUC__
20554# undef __GNUC__
20555#endif
20556#define __USE_ISOC99
20557#include <limits.h>
20558#define DATA "conftest.llminmax"
20559#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20560
20561/*
20562 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20563 * we do this the hard way.
20564 */
20565static int
20566fprint_ll(FILE *f, long long n)
20567{
20568 unsigned int i;
20569 int l[sizeof(long long) * 8];
20570
20571 if (n < 0)
20572 if (fprintf(f, "-") < 0)
20573 return -1;
20574 for (i = 0; n != 0; i++) {
20575 l[i] = my_abs(n % 10);
20576 n /= 10;
20577 }
20578 do {
20579 if (fprintf(f, "%d", l[--i]) < 0)
20580 return -1;
20581 } while (i != 0);
20582 if (fprintf(f, " ") < 0)
20583 return -1;
20584 return 0;
20585}
20586
20587int main(void) {
20588 FILE *f;
20589 long long i, llmin, llmax = 0;
20590
20591 if((f = fopen(DATA,"w")) == NULL)
20592 exit(1);
20593
20594#if defined(LLONG_MIN) && defined(LLONG_MAX)
20595 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
20596 llmin = LLONG_MIN;
20597 llmax = LLONG_MAX;
20598#else
20599 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
20600 /* This will work on one's complement and two's complement */
20601 for (i = 1; i > llmax; i <<= 1, i++)
20602 llmax = i;
20603 llmin = llmax + 1LL; /* wrap */
20604#endif
20605
20606 /* Sanity check */
20607 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
20608 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20609 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
20610 fprintf(f, "unknown unknown\n");
20611 exit(2);
20612 }
20613
20614 if (fprint_ll(f, llmin) < 0)
20615 exit(3);
20616 if (fprint_ll(f, llmax) < 0)
20617 exit(4);
20618 if (fclose(f) < 0)
20619 exit(5);
20620 exit(0);
20621}
20622
20623_ACEOF
20624rm -f conftest$ac_exeext
20625if { (ac_try="$ac_link"
20626case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629esac
20630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20638esac
20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644
20645 llong_min=`$AWK '{print $1}' conftest.llminmax`
20646 llong_max=`$AWK '{print $2}' conftest.llminmax`
20647
20648 { echo "$as_me:$LINENO: result: $llong_max" >&5
20649echo "${ECHO_T}$llong_max" >&6; }
20650
20651cat >>confdefs.h <<_ACEOF
20652#define LLONG_MAX ${llong_max}LL
20653_ACEOF
20654
20655 { echo "$as_me:$LINENO: checking for min value of long long" >&5
20656echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
20657 { echo "$as_me:$LINENO: result: $llong_min" >&5
20658echo "${ECHO_T}$llong_min" >&6; }
20659
20660cat >>confdefs.h <<_ACEOF
20661#define LLONG_MIN ${llong_min}LL
20662_ACEOF
20663
20664
20665else
20666 echo "$as_me: program exited with status $ac_status" >&5
20667echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
20670( exit $ac_status )
20671
20672 { echo "$as_me:$LINENO: result: not found" >&5
20673echo "${ECHO_T}not found" >&6; }
20674
20675fi
20676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20677fi
20678
20679
20680fi
20681
20682
20683# More checks for data types
20684{ echo "$as_me:$LINENO: checking for u_int type" >&5
20685echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
20686if test "${ac_cv_have_u_int+set}" = set; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20688else
20689
20690 cat >conftest.$ac_ext <<_ACEOF
20691/* confdefs.h. */
20692_ACEOF
20693cat confdefs.h >>conftest.$ac_ext
20694cat >>conftest.$ac_ext <<_ACEOF
20695/* end confdefs.h. */
20696 #include <sys/types.h>
20697int
20698main ()
20699{
20700 u_int a; a = 1;
20701 ;
20702 return 0;
20703}
20704_ACEOF
20705rm -f conftest.$ac_objext
20706if { (ac_try="$ac_compile"
20707case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20710esac
20711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.$ac_objext; then
20722 ac_cv_have_u_int="yes"
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ac_cv_have_u_int="no"
20728
20729fi
20730
20731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732
20733fi
20734{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
20735echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
20736if test "x$ac_cv_have_u_int" = "xyes" ; then
20737
20738cat >>confdefs.h <<\_ACEOF
20739#define HAVE_U_INT 1
20740_ACEOF
20741
20742 have_u_int=1
20743fi
20744
20745{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
20746echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
20747if test "${ac_cv_have_intxx_t+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749else
20750
20751 cat >conftest.$ac_ext <<_ACEOF
20752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
20757 #include <sys/types.h>
20758int
20759main ()
20760{
20761 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20762 ;
20763 return 0;
20764}
20765_ACEOF
20766rm -f conftest.$ac_objext
20767if { (ac_try="$ac_compile"
20768case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20771esac
20772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_compile") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest.$ac_objext; then
20783 ac_cv_have_intxx_t="yes"
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 ac_cv_have_intxx_t="no"
20789
20790fi
20791
20792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20793
20794fi
20795{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
20796echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
20797if test "x$ac_cv_have_intxx_t" = "xyes" ; then
20798
20799cat >>confdefs.h <<\_ACEOF
20800#define HAVE_INTXX_T 1
20801_ACEOF
20802
20803 have_intxx_t=1
20804fi
20805
20806if (test -z "$have_intxx_t" && \
20807 test "x$ac_cv_header_stdint_h" = "xyes")
20808then
20809 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
20810echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20812/* confdefs.h. */
20813_ACEOF
20814cat confdefs.h >>conftest.$ac_ext
20815cat >>conftest.$ac_ext <<_ACEOF
20816/* end confdefs.h. */
20817 #include <stdint.h>
20818int
20819main ()
20820{
20821 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20822 ;
20823 return 0;
20824}
20825_ACEOF
20826rm -f conftest.$ac_objext
20827if { (ac_try="$ac_compile"
20828case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831esac
20832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_compile") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest.$ac_objext; then
20843
20844 cat >>confdefs.h <<\_ACEOF
20845#define HAVE_INTXX_T 1
20846_ACEOF
20847
20848 { echo "$as_me:$LINENO: result: yes" >&5
20849echo "${ECHO_T}yes" >&6; }
20850
20851else
20852 echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 { echo "$as_me:$LINENO: result: no" >&5
20856echo "${ECHO_T}no" >&6; }
20857
20858fi
20859
20860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861fi
20862
20863{ echo "$as_me:$LINENO: checking for int64_t type" >&5
20864echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
20865if test "${ac_cv_have_int64_t+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868
20869 cat >conftest.$ac_ext <<_ACEOF
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
20875
20876#include <sys/types.h>
20877#ifdef HAVE_STDINT_H
20878# include <stdint.h>
20879#endif
20880#include <sys/socket.h>
20881#ifdef HAVE_SYS_BITYPES_H
20882# include <sys/bitypes.h>
20883#endif
20884
20885int
20886main ()
20887{
20888 int64_t a; a = 1;
20889 ;
20890 return 0;
20891}
20892_ACEOF
20893rm -f conftest.$ac_objext
20894if { (ac_try="$ac_compile"
20895case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898esac
20899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20910 ac_cv_have_int64_t="yes"
20911else
20912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 ac_cv_have_int64_t="no"
20916
20917fi
20918
20919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920
20921fi
20922{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
20923echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
20924if test "x$ac_cv_have_int64_t" = "xyes" ; then
20925
20926cat >>confdefs.h <<\_ACEOF
20927#define HAVE_INT64_T 1
20928_ACEOF
20929
20930fi
20931
20932{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
20933echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
20934if test "${ac_cv_have_u_intxx_t+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20936else
20937
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944 #include <sys/types.h>
20945int
20946main ()
20947{
20948 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
20949 ;
20950 return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext
20954if { (ac_try="$ac_compile"
20955case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958esac
20959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 ac_cv_have_u_intxx_t="yes"
20971else
20972 echo "$as_me: failed program was:" >&5
20973sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_cv_have_u_intxx_t="no"
20976
20977fi
20978
20979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980
20981fi
20982{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
20983echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
20984if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
20985
20986cat >>confdefs.h <<\_ACEOF
20987#define HAVE_U_INTXX_T 1
20988_ACEOF
20989
20990 have_u_intxx_t=1
20991fi
20992
20993if test -z "$have_u_intxx_t" ; then
20994 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
20995echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h. */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h. */
21002 #include <sys/socket.h>
21003int
21004main ()
21005{
21006 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21007 ;
21008 return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext
21012if { (ac_try="$ac_compile"
21013case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016esac
21017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest.$ac_objext; then
21028
21029 cat >>confdefs.h <<\_ACEOF
21030#define HAVE_U_INTXX_T 1
21031_ACEOF
21032
21033 { echo "$as_me:$LINENO: result: yes" >&5
21034echo "${ECHO_T}yes" >&6; }
21035
21036else
21037 echo "$as_me: failed program was:" >&5
21038sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 { echo "$as_me:$LINENO: result: no" >&5
21041echo "${ECHO_T}no" >&6; }
21042
21043fi
21044
21045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046fi
21047
21048{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21049echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21050if test "${ac_cv_have_u_int64_t+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052else
21053
21054 cat >conftest.$ac_ext <<_ACEOF
21055/* confdefs.h. */
21056_ACEOF
21057cat confdefs.h >>conftest.$ac_ext
21058cat >>conftest.$ac_ext <<_ACEOF
21059/* end confdefs.h. */
21060 #include <sys/types.h>
21061int
21062main ()
21063{
21064 u_int64_t a; a = 1;
21065 ;
21066 return 0;
21067}
21068_ACEOF
21069rm -f conftest.$ac_objext
21070if { (ac_try="$ac_compile"
21071case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21074esac
21075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21086 ac_cv_have_u_int64_t="yes"
21087else
21088 echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_have_u_int64_t="no"
21092
21093fi
21094
21095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096
21097fi
21098{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21099echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21100if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21101
21102cat >>confdefs.h <<\_ACEOF
21103#define HAVE_U_INT64_T 1
21104_ACEOF
21105
21106 have_u_int64_t=1
21107fi
21108
21109if test -z "$have_u_int64_t" ; then
21110 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21111echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21112 cat >conftest.$ac_ext <<_ACEOF
21113/* confdefs.h. */
21114_ACEOF
21115cat confdefs.h >>conftest.$ac_ext
21116cat >>conftest.$ac_ext <<_ACEOF
21117/* end confdefs.h. */
21118 #include <sys/bitypes.h>
21119int
21120main ()
21121{
21122 u_int64_t a; a = 1
21123 ;
21124 return 0;
21125}
21126_ACEOF
21127rm -f conftest.$ac_objext
21128if { (ac_try="$ac_compile"
21129case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132esac
21133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_compile") 2>conftest.er1
21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest.$ac_objext; then
21144
21145 cat >>confdefs.h <<\_ACEOF
21146#define HAVE_U_INT64_T 1
21147_ACEOF
21148
21149 { echo "$as_me:$LINENO: result: yes" >&5
21150echo "${ECHO_T}yes" >&6; }
21151
21152else
21153 echo "$as_me: failed program was:" >&5
21154sed 's/^/| /' conftest.$ac_ext >&5
21155
21156 { echo "$as_me:$LINENO: result: no" >&5
21157echo "${ECHO_T}no" >&6; }
21158
21159fi
21160
21161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162fi
21163
21164if test -z "$have_u_intxx_t" ; then
21165 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
21166echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
21167if test "${ac_cv_have_uintxx_t+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169else
21170
21171 cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177
21178#include <sys/types.h>
21179
21180int
21181main ()
21182{
21183 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21184 ;
21185 return 0;
21186}
21187_ACEOF
21188rm -f conftest.$ac_objext
21189if { (ac_try="$ac_compile"
21190case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193esac
21194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_compile") 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest.$ac_objext; then
21205 ac_cv_have_uintxx_t="yes"
21206else
21207 echo "$as_me: failed program was:" >&5
21208sed 's/^/| /' conftest.$ac_ext >&5
21209
21210 ac_cv_have_uintxx_t="no"
21211
21212fi
21213
21214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215
21216fi
21217{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
21218echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
21219 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
21220
21221cat >>confdefs.h <<\_ACEOF
21222#define HAVE_UINTXX_T 1
21223_ACEOF
21224
21225 fi
21226fi
21227
21228if test -z "$have_uintxx_t" ; then
21229 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
21230echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
21231 cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237 #include <stdint.h>
21238int
21239main ()
21240{
21241 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21242 ;
21243 return 0;
21244}
21245_ACEOF
21246rm -f conftest.$ac_objext
21247if { (ac_try="$ac_compile"
21248case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21251esac
21252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_compile") 2>conftest.er1
21254 ac_status=$?
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest.$ac_objext; then
21263
21264 cat >>confdefs.h <<\_ACEOF
21265#define HAVE_UINTXX_T 1
21266_ACEOF
21267
21268 { echo "$as_me:$LINENO: result: yes" >&5
21269echo "${ECHO_T}yes" >&6; }
21270
21271else
21272 echo "$as_me: failed program was:" >&5
21273sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 { echo "$as_me:$LINENO: result: no" >&5
21276echo "${ECHO_T}no" >&6; }
21277
21278fi
21279
21280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281fi
21282
21283if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
21284 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
21285then
21286 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
21287echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
21288 cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h. */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h. */
21294
21295#include <sys/bitypes.h>
21296
21297int
21298main ()
21299{
21300
21301 int8_t a; int16_t b; int32_t c;
21302 u_int8_t e; u_int16_t f; u_int32_t g;
21303 a = b = c = e = f = g = 1;
21304
21305 ;
21306 return 0;
21307}
21308_ACEOF
21309rm -f conftest.$ac_objext
21310if { (ac_try="$ac_compile"
21311case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21314esac
21315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316 (eval "$ac_compile") 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest.$ac_objext; then
21326
21327 cat >>confdefs.h <<\_ACEOF
21328#define HAVE_U_INTXX_T 1
21329_ACEOF
21330
21331 cat >>confdefs.h <<\_ACEOF
21332#define HAVE_INTXX_T 1
21333_ACEOF
21334
21335 { echo "$as_me:$LINENO: result: yes" >&5
21336echo "${ECHO_T}yes" >&6; }
21337
21338else
21339 echo "$as_me: failed program was:" >&5
21340sed 's/^/| /' conftest.$ac_ext >&5
21341
21342 { echo "$as_me:$LINENO: result: no" >&5
21343echo "${ECHO_T}no" >&6; }
21344
21345fi
21346
21347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348fi
21349
21350
21351{ echo "$as_me:$LINENO: checking for u_char" >&5
21352echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
21353if test "${ac_cv_have_u_char+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355else
21356
21357 cat >conftest.$ac_ext <<_ACEOF
21358/* confdefs.h. */
21359_ACEOF
21360cat confdefs.h >>conftest.$ac_ext
21361cat >>conftest.$ac_ext <<_ACEOF
21362/* end confdefs.h. */
21363
21364#include <sys/types.h>
21365
21366int
21367main ()
21368{
21369 u_char foo; foo = 125;
21370 ;
21371 return 0;
21372}
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (ac_try="$ac_compile"
21376case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21379esac
21380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21382 ac_status=$?
21383 grep -v '^ *+' conftest.er1 >conftest.err
21384 rm -f conftest.er1
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.$ac_objext; then
21391 ac_cv_have_u_char="yes"
21392else
21393 echo "$as_me: failed program was:" >&5
21394sed 's/^/| /' conftest.$ac_ext >&5
21395
21396 ac_cv_have_u_char="no"
21397
21398fi
21399
21400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401
21402fi
21403{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
21404echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
21405if test "x$ac_cv_have_u_char" = "xyes" ; then
21406
21407cat >>confdefs.h <<\_ACEOF
21408#define HAVE_U_CHAR 1
21409_ACEOF
21410
21411fi
21412
21413
21414 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21415echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21416if test "${ac_cv_type_socklen_t+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21418else
21419 cat >conftest.$ac_ext <<_ACEOF
21420/* confdefs.h. */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h. */
21425#include <sys/types.h>
21426#include <sys/socket.h>
21427
21428typedef socklen_t ac__type_new_;
21429int
21430main ()
21431{
21432if ((ac__type_new_ *) 0)
21433 return 0;
21434if (sizeof (ac__type_new_))
21435 return 0;
21436 ;
21437 return 0;
21438}
21439_ACEOF
21440rm -f conftest.$ac_objext
21441if { (ac_try="$ac_compile"
21442case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21445esac
21446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_compile") 2>conftest.er1
21448 ac_status=$?
21449 grep -v '^ *+' conftest.er1 >conftest.err
21450 rm -f conftest.er1
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } && {
21454 test -z "$ac_c_werror_flag" ||
21455 test ! -s conftest.err
21456 } && test -s conftest.$ac_objext; then
21457 ac_cv_type_socklen_t=yes
21458else
21459 echo "$as_me: failed program was:" >&5
21460sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 ac_cv_type_socklen_t=no
21463fi
21464
21465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466fi
21467{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21468echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21469if test $ac_cv_type_socklen_t = yes; then
21470 :
21471else
21472
21473 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
21474echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
21475 if test "${curl_cv_socklen_t_equiv+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21477else
21478
21479 # Systems have either "struct sockaddr *" or
21480 # "void *" as the second argument to getpeername
21481 curl_cv_socklen_t_equiv=
21482 for arg2 in "struct sockaddr" void; do
21483 for t in int size_t unsigned long "unsigned long"; do
21484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490
21491 #include <sys/types.h>
21492 #include <sys/socket.h>
21493
21494 int getpeername (int, $arg2 *, $t *);
21495
21496int
21497main ()
21498{
21499
21500 $t len;
21501 getpeername(0,0,&len);
21502
21503 ;
21504 return 0;
21505}
21506_ACEOF
21507rm -f conftest.$ac_objext
21508if { (ac_try="$ac_compile"
21509case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21512esac
21513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_compile") 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest.$ac_objext; then
21524
21525 curl_cv_socklen_t_equiv="$t"
21526 break
21527
21528else
21529 echo "$as_me: failed program was:" >&5
21530sed 's/^/| /' conftest.$ac_ext >&5
21531
21532
21533fi
21534
21535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536 done
21537 done
21538
21539 if test "x$curl_cv_socklen_t_equiv" = x; then
21540 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
21541echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
21542 { (exit 1); exit 1; }; }
21543 fi
21544
21545fi
21546
21547 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
21548echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
21549
21550cat >>confdefs.h <<_ACEOF
21551#define socklen_t $curl_cv_socklen_t_equiv
21552_ACEOF
21553
21554fi
21555
21556
21557
21558{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21559echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
21560if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562else
21563 cat >conftest.$ac_ext <<_ACEOF
21564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569#include <signal.h>
21570
21571typedef sig_atomic_t ac__type_new_;
21572int
21573main ()
21574{
21575if ((ac__type_new_ *) 0)
21576 return 0;
21577if (sizeof (ac__type_new_))
21578 return 0;
21579 ;
21580 return 0;
21581}
21582_ACEOF
21583rm -f conftest.$ac_objext
21584if { (ac_try="$ac_compile"
21585case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588esac
21589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21600 ac_cv_type_sig_atomic_t=yes
21601else
21602 echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605 ac_cv_type_sig_atomic_t=no
21606fi
21607
21608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609fi
21610{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21611echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
21612if test $ac_cv_type_sig_atomic_t = yes; then
21613
21614cat >>confdefs.h <<_ACEOF
21615#define HAVE_SIG_ATOMIC_T 1
21616_ACEOF
21617
21618
21619fi
21620
12731 strdup \
12732 strerror \
12733 strlcat \
12734 strlcpy \
12735 strmode \
12736 strnvis \
12737 strtonum \
12738 strtoll \
12739 strtoul \
12740 swap32 \
12741 sysconf \
12742 tcgetpgrp \
12743 truncate \
12744 unsetenv \
12745 updwtmpx \
12746 vasprintf \
12747 vhangup \
12748 vsnprintf \
12749 waitpid \
12750
12751do
12752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758 cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12766#define $ac_func innocuous_$ac_func
12767
12768/* System header to define __stub macros and hopefully few prototypes,
12769 which can conflict with char $ac_func (); below.
12770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 <limits.h> exists even on freestanding compilers. */
12772
12773#ifdef __STDC__
12774# include <limits.h>
12775#else
12776# include <assert.h>
12777#endif
12778
12779#undef $ac_func
12780
12781/* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784#ifdef __cplusplus
12785extern "C"
12786#endif
12787char $ac_func ();
12788/* The GNU C library defines this for functions which it implements
12789 to always fail with ENOSYS. Some functions are actually named
12790 something starting with __ and the normal name is an alias. */
12791#if defined __stub_$ac_func || defined __stub___$ac_func
12792choke me
12793#endif
12794
12795int
12796main ()
12797{
12798return $ac_func ();
12799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (ac_try="$ac_link"
12805case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
12821 eval "$as_ac_var=yes"
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 eval "$as_ac_var=no"
12827fi
12828
12829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
12831fi
12832ac_res=`eval echo '${'$as_ac_var'}'`
12833 { echo "$as_me:$LINENO: result: $ac_res" >&5
12834echo "${ECHO_T}$ac_res" >&6; }
12835if test `eval echo '${'$as_ac_var'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12838_ACEOF
12839
12840fi
12841done
12842
12843
12844# IRIX has a const char return value for gai_strerror()
12845
12846for ac_func in gai_strerror
12847do
12848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853else
12854 cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h. */
12860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12862#define $ac_func innocuous_$ac_func
12863
12864/* System header to define __stub macros and hopefully few prototypes,
12865 which can conflict with char $ac_func (); below.
12866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 <limits.h> exists even on freestanding compilers. */
12868
12869#ifdef __STDC__
12870# include <limits.h>
12871#else
12872# include <assert.h>
12873#endif
12874
12875#undef $ac_func
12876
12877/* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880#ifdef __cplusplus
12881extern "C"
12882#endif
12883char $ac_func ();
12884/* The GNU C library defines this for functions which it implements
12885 to always fail with ENOSYS. Some functions are actually named
12886 something starting with __ and the normal name is an alias. */
12887#if defined __stub_$ac_func || defined __stub___$ac_func
12888choke me
12889#endif
12890
12891int
12892main ()
12893{
12894return $ac_func ();
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (ac_try="$ac_link"
12901case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest$ac_exeext &&
12916 $as_test_x conftest$ac_exeext; then
12917 eval "$as_ac_var=yes"
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 eval "$as_ac_var=no"
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927fi
12928ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934_ACEOF
12935
12936 cat >>confdefs.h <<\_ACEOF
12937#define HAVE_GAI_STRERROR 1
12938_ACEOF
12939
12940 cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946
12947#include <sys/types.h>
12948#include <sys/socket.h>
12949#include <netdb.h>
12950
12951const char *gai_strerror(int);
12952int
12953main ()
12954{
12955
12956char *str;
12957
12958str = gai_strerror(0);
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963rm -f conftest.$ac_objext
12964if { (ac_try="$ac_compile"
12965case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_compile") 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && {
12977 test -z "$ac_c_werror_flag" ||
12978 test ! -s conftest.err
12979 } && test -s conftest.$ac_objext; then
12980
12981
12982cat >>confdefs.h <<\_ACEOF
12983#define HAVE_CONST_GAI_STRERROR_PROTO 1
12984_ACEOF
12985
12986else
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
12991fi
12992
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995done
12996
12997
12998{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
12999echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
13000if test "${ac_cv_search_nanosleep+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 ac_func_search_save_LIBS=$LIBS
13004cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011/* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13014#ifdef __cplusplus
13015extern "C"
13016#endif
13017char nanosleep ();
13018int
13019main ()
13020{
13021return nanosleep ();
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026for ac_lib in '' rt posix4; do
13027 if test -z "$ac_lib"; then
13028 ac_res="none required"
13029 else
13030 ac_res=-l$ac_lib
13031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13032 fi
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest$ac_exeext &&
13050 $as_test_x conftest$ac_exeext; then
13051 ac_cv_search_nanosleep=$ac_res
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056
13057fi
13058
13059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext
13061 if test "${ac_cv_search_nanosleep+set}" = set; then
13062 break
13063fi
13064done
13065if test "${ac_cv_search_nanosleep+set}" = set; then
13066 :
13067else
13068 ac_cv_search_nanosleep=no
13069fi
13070rm conftest.$ac_ext
13071LIBS=$ac_func_search_save_LIBS
13072fi
13073{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13074echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13075ac_res=$ac_cv_search_nanosleep
13076if test "$ac_res" != no; then
13077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13078
13079cat >>confdefs.h <<\_ACEOF
13080#define HAVE_NANOSLEEP 1
13081_ACEOF
13082
13083fi
13084
13085
13086{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13087echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13088if test "${ac_cv_have_decl_getrusage+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091 cat >conftest.$ac_ext <<_ACEOF
13092/* confdefs.h. */
13093_ACEOF
13094cat confdefs.h >>conftest.$ac_ext
13095cat >>conftest.$ac_ext <<_ACEOF
13096/* end confdefs.h. */
13097$ac_includes_default
13098int
13099main ()
13100{
13101#ifndef getrusage
13102 (void) getrusage;
13103#endif
13104
13105 ;
13106 return 0;
13107}
13108_ACEOF
13109rm -f conftest.$ac_objext
13110if { (ac_try="$ac_compile"
13111case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 ac_cv_have_decl_getrusage=yes
13127else
13128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_cv_have_decl_getrusage=no
13132fi
13133
13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135fi
13136{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13137echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13138if test $ac_cv_have_decl_getrusage = yes; then
13139
13140for ac_func in getrusage
13141do
13142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 cat >conftest.$ac_ext <<_ACEOF
13149/* confdefs.h. */
13150_ACEOF
13151cat confdefs.h >>conftest.$ac_ext
13152cat >>conftest.$ac_ext <<_ACEOF
13153/* end confdefs.h. */
13154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156#define $ac_func innocuous_$ac_func
13157
13158/* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13162
13163#ifdef __STDC__
13164# include <limits.h>
13165#else
13166# include <assert.h>
13167#endif
13168
13169#undef $ac_func
13170
13171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174#ifdef __cplusplus
13175extern "C"
13176#endif
13177char $ac_func ();
13178/* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181#if defined __stub_$ac_func || defined __stub___$ac_func
13182choke me
13183#endif
13184
13185int
13186main ()
13187{
13188return $ac_func ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (ac_try="$ac_link"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest$ac_exeext &&
13210 $as_test_x conftest$ac_exeext; then
13211 eval "$as_ac_var=yes"
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 eval "$as_ac_var=no"
13217fi
13218
13219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220 conftest$ac_exeext conftest.$ac_ext
13221fi
13222ac_res=`eval echo '${'$as_ac_var'}'`
13223 { echo "$as_me:$LINENO: result: $ac_res" >&5
13224echo "${ECHO_T}$ac_res" >&6; }
13225if test `eval echo '${'$as_ac_var'}'` = yes; then
13226 cat >>confdefs.h <<_ACEOF
13227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13228_ACEOF
13229
13230fi
13231done
13232
13233fi
13234
13235{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13236echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13237if test "${ac_cv_have_decl_strsep+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247#ifdef HAVE_STRING_H
13248# include <string.h>
13249#endif
13250
13251
13252int
13253main ()
13254{
13255#ifndef strsep
13256 (void) strsep;
13257#endif
13258
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext
13264if { (ac_try="$ac_compile"
13265case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_compile") 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && {
13277 test -z "$ac_c_werror_flag" ||
13278 test ! -s conftest.err
13279 } && test -s conftest.$ac_objext; then
13280 ac_cv_have_decl_strsep=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_cv_have_decl_strsep=no
13286fi
13287
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13291echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13292if test $ac_cv_have_decl_strsep = yes; then
13293
13294for ac_func in strsep
13295do
13296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 cat >conftest.$ac_ext <<_ACEOF
13303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
13308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13310#define $ac_func innocuous_$ac_func
13311
13312/* System header to define __stub macros and hopefully few prototypes,
13313 which can conflict with char $ac_func (); below.
13314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315 <limits.h> exists even on freestanding compilers. */
13316
13317#ifdef __STDC__
13318# include <limits.h>
13319#else
13320# include <assert.h>
13321#endif
13322
13323#undef $ac_func
13324
13325/* Override any GCC internal prototype to avoid an error.
13326 Use char because int might match the return type of a GCC
13327 builtin and then its argument prototype would still apply. */
13328#ifdef __cplusplus
13329extern "C"
13330#endif
13331char $ac_func ();
13332/* The GNU C library defines this for functions which it implements
13333 to always fail with ENOSYS. Some functions are actually named
13334 something starting with __ and the normal name is an alias. */
13335#if defined __stub_$ac_func || defined __stub___$ac_func
13336choke me
13337#endif
13338
13339int
13340main ()
13341{
13342return $ac_func ();
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347rm -f conftest.$ac_objext conftest$ac_exeext
13348if { (ac_try="$ac_link"
13349case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13365 eval "$as_ac_var=yes"
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 eval "$as_ac_var=no"
13371fi
13372
13373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374 conftest$ac_exeext conftest.$ac_ext
13375fi
13376ac_res=`eval echo '${'$as_ac_var'}'`
13377 { echo "$as_me:$LINENO: result: $ac_res" >&5
13378echo "${ECHO_T}$ac_res" >&6; }
13379if test `eval echo '${'$as_ac_var'}'` = yes; then
13380 cat >>confdefs.h <<_ACEOF
13381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13382_ACEOF
13383
13384fi
13385done
13386
13387fi
13388
13389
13390{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13391echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13392if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <termios.h>
13402
13403
13404int
13405main ()
13406{
13407#ifndef tcsendbreak
13408 (void) tcsendbreak;
13409#endif
13410
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (ac_try="$ac_compile"
13417case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_compile") 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_c_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest.$ac_objext; then
13432 ac_cv_have_decl_tcsendbreak=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_cv_have_decl_tcsendbreak=no
13438fi
13439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441fi
13442{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13443echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13444if test $ac_cv_have_decl_tcsendbreak = yes; then
13445 cat >>confdefs.h <<\_ACEOF
13446#define HAVE_TCSENDBREAK 1
13447_ACEOF
13448
13449else
13450
13451for ac_func in tcsendbreak
13452do
13453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467#define $ac_func innocuous_$ac_func
13468
13469/* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char $ac_func (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13473
13474#ifdef __STDC__
13475# include <limits.h>
13476#else
13477# include <assert.h>
13478#endif
13479
13480#undef $ac_func
13481
13482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char $ac_func ();
13489/* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492#if defined __stub_$ac_func || defined __stub___$ac_func
13493choke me
13494#endif
13495
13496int
13497main ()
13498{
13499return $ac_func ();
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest$ac_exeext &&
13521 $as_test_x conftest$ac_exeext; then
13522 eval "$as_ac_var=yes"
13523else
13524 echo "$as_me: failed program was:" >&5
13525sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 eval "$as_ac_var=no"
13528fi
13529
13530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13531 conftest$ac_exeext conftest.$ac_ext
13532fi
13533ac_res=`eval echo '${'$as_ac_var'}'`
13534 { echo "$as_me:$LINENO: result: $ac_res" >&5
13535echo "${ECHO_T}$ac_res" >&6; }
13536if test `eval echo '${'$as_ac_var'}'` = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13539_ACEOF
13540
13541fi
13542done
13543
13544fi
13545
13546
13547{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13548echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13549if test "${ac_cv_have_decl_h_errno+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558#include <netdb.h>
13559
13560int
13561main ()
13562{
13563#ifndef h_errno
13564 (void) h_errno;
13565#endif
13566
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
13572if { (ac_try="$ac_compile"
13573case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_compile") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest.$ac_objext; then
13588 ac_cv_have_decl_h_errno=yes
13589else
13590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_have_decl_h_errno=no
13594fi
13595
13596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597fi
13598{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13599echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13600if test $ac_cv_have_decl_h_errno = yes; then
13601
13602cat >>confdefs.h <<_ACEOF
13603#define HAVE_DECL_H_ERRNO 1
13604_ACEOF
13605
13606
13607else
13608 cat >>confdefs.h <<_ACEOF
13609#define HAVE_DECL_H_ERRNO 0
13610_ACEOF
13611
13612
13613fi
13614
13615
13616
13617{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13618echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13619if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628
13629#include <sys/types.h>
13630#include <sys/socket.h>
13631
13632
13633int
13634main ()
13635{
13636#ifndef SHUT_RD
13637 (void) SHUT_RD;
13638#endif
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (ac_try="$ac_compile"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest.$ac_objext; then
13661 ac_cv_have_decl_SHUT_RD=yes
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 ac_cv_have_decl_SHUT_RD=no
13667fi
13668
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670fi
13671{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13672echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13673if test $ac_cv_have_decl_SHUT_RD = yes; then
13674
13675cat >>confdefs.h <<_ACEOF
13676#define HAVE_DECL_SHUT_RD 1
13677_ACEOF
13678
13679
13680else
13681 cat >>confdefs.h <<_ACEOF
13682#define HAVE_DECL_SHUT_RD 0
13683_ACEOF
13684
13685
13686fi
13687
13688
13689
13690{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13691echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13692if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
13701
13702#include <sys/types.h>
13703#ifdef HAVE_SYS_STAT_H
13704# include <sys/stat.h>
13705#endif
13706#ifdef HAVE_FCNTL_H
13707# include <fcntl.h>
13708#endif
13709
13710
13711int
13712main ()
13713{
13714#ifndef O_NONBLOCK
13715 (void) O_NONBLOCK;
13716#endif
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest.$ac_objext; then
13739 ac_cv_have_decl_O_NONBLOCK=yes
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 ac_cv_have_decl_O_NONBLOCK=no
13745fi
13746
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748fi
13749{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13750echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13751if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13752
13753cat >>confdefs.h <<_ACEOF
13754#define HAVE_DECL_O_NONBLOCK 1
13755_ACEOF
13756
13757
13758else
13759 cat >>confdefs.h <<_ACEOF
13760#define HAVE_DECL_O_NONBLOCK 0
13761_ACEOF
13762
13763
13764fi
13765
13766
13767
13768{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
13769echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13770if test "${ac_cv_have_decl_writev+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779
13780#include <sys/types.h>
13781#include <sys/uio.h>
13782#include <unistd.h>
13783
13784
13785int
13786main ()
13787{
13788#ifndef writev
13789 (void) writev;
13790#endif
13791
13792 ;
13793 return 0;
13794}
13795_ACEOF
13796rm -f conftest.$ac_objext
13797if { (ac_try="$ac_compile"
13798case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801esac
13802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_compile") 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } && {
13810 test -z "$ac_c_werror_flag" ||
13811 test ! -s conftest.err
13812 } && test -s conftest.$ac_objext; then
13813 ac_cv_have_decl_writev=yes
13814else
13815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818 ac_cv_have_decl_writev=no
13819fi
13820
13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822fi
13823{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13824echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13825if test $ac_cv_have_decl_writev = yes; then
13826
13827cat >>confdefs.h <<_ACEOF
13828#define HAVE_DECL_WRITEV 1
13829_ACEOF
13830
13831
13832else
13833 cat >>confdefs.h <<_ACEOF
13834#define HAVE_DECL_WRITEV 0
13835_ACEOF
13836
13837
13838fi
13839
13840
13841
13842{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
13843echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
13844if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847 cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
13853
13854#include <sys/param.h>
13855
13856
13857int
13858main ()
13859{
13860#ifndef MAXSYMLINKS
13861 (void) MAXSYMLINKS;
13862#endif
13863
13864 ;
13865 return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (ac_try="$ac_compile"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.$ac_objext; then
13885 ac_cv_have_decl_MAXSYMLINKS=yes
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_cv_have_decl_MAXSYMLINKS=no
13891fi
13892
13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894fi
13895{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
13896echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
13897if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
13898
13899cat >>confdefs.h <<_ACEOF
13900#define HAVE_DECL_MAXSYMLINKS 1
13901_ACEOF
13902
13903
13904else
13905 cat >>confdefs.h <<_ACEOF
13906#define HAVE_DECL_MAXSYMLINKS 0
13907_ACEOF
13908
13909
13910fi
13911
13912
13913
13914{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
13915echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
13916if test "${ac_cv_have_decl_offsetof+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h. */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h. */
13925
13926#include <stddef.h>
13927
13928
13929int
13930main ()
13931{
13932#ifndef offsetof
13933 (void) offsetof;
13934#endif
13935
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext
13941if { (ac_try="$ac_compile"
13942case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13945esac
13946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_compile") 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && {
13954 test -z "$ac_c_werror_flag" ||
13955 test ! -s conftest.err
13956 } && test -s conftest.$ac_objext; then
13957 ac_cv_have_decl_offsetof=yes
13958else
13959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_cv_have_decl_offsetof=no
13963fi
13964
13965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966fi
13967{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
13968echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
13969if test $ac_cv_have_decl_offsetof = yes; then
13970
13971cat >>confdefs.h <<_ACEOF
13972#define HAVE_DECL_OFFSETOF 1
13973_ACEOF
13974
13975
13976else
13977 cat >>confdefs.h <<_ACEOF
13978#define HAVE_DECL_OFFSETOF 0
13979_ACEOF
13980
13981
13982fi
13983
13984
13985
13986
13987for ac_func in setresuid
13988do
13989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003#define $ac_func innocuous_$ac_func
14004
14005/* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14009
14010#ifdef __STDC__
14011# include <limits.h>
14012#else
14013# include <assert.h>
14014#endif
14015
14016#undef $ac_func
14017
14018/* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14021#ifdef __cplusplus
14022extern "C"
14023#endif
14024char $ac_func ();
14025/* The GNU C library defines this for functions which it implements
14026 to always fail with ENOSYS. Some functions are actually named
14027 something starting with __ and the normal name is an alias. */
14028#if defined __stub_$ac_func || defined __stub___$ac_func
14029choke me
14030#endif
14031
14032int
14033main ()
14034{
14035return $ac_func ();
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext conftest$ac_exeext
14041if { (ac_try="$ac_link"
14042case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_link") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest$ac_exeext &&
14057 $as_test_x conftest$ac_exeext; then
14058 eval "$as_ac_var=yes"
14059else
14060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 eval "$as_ac_var=no"
14064fi
14065
14066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14067 conftest$ac_exeext conftest.$ac_ext
14068fi
14069ac_res=`eval echo '${'$as_ac_var'}'`
14070 { echo "$as_me:$LINENO: result: $ac_res" >&5
14071echo "${ECHO_T}$ac_res" >&6; }
14072if test `eval echo '${'$as_ac_var'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14075_ACEOF
14076
14077 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14078echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14079 if test "$cross_compiling" = yes; then
14080 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14081echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14082
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090
14091#include <stdlib.h>
14092#include <errno.h>
14093int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14094
14095_ACEOF
14096rm -f conftest$ac_exeext
14097if { (ac_try="$ac_link"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 { echo "$as_me:$LINENO: result: yes" >&5
14117echo "${ECHO_T}yes" >&6; }
14118else
14119 echo "$as_me: program exited with status $ac_status" >&5
14120echo "$as_me: failed program was:" >&5
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
14123( exit $ac_status )
14124
14125cat >>confdefs.h <<\_ACEOF
14126#define BROKEN_SETRESUID 1
14127_ACEOF
14128
14129 { echo "$as_me:$LINENO: result: not implemented" >&5
14130echo "${ECHO_T}not implemented" >&6; }
14131fi
14132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133fi
14134
14135
14136
14137fi
14138done
14139
14140
14141
14142for ac_func in setresgid
14143do
14144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14158#define $ac_func innocuous_$ac_func
14159
14160/* System header to define __stub macros and hopefully few prototypes,
14161 which can conflict with char $ac_func (); below.
14162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14163 <limits.h> exists even on freestanding compilers. */
14164
14165#ifdef __STDC__
14166# include <limits.h>
14167#else
14168# include <assert.h>
14169#endif
14170
14171#undef $ac_func
14172
14173/* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14176#ifdef __cplusplus
14177extern "C"
14178#endif
14179char $ac_func ();
14180/* The GNU C library defines this for functions which it implements
14181 to always fail with ENOSYS. Some functions are actually named
14182 something starting with __ and the normal name is an alias. */
14183#if defined __stub_$ac_func || defined __stub___$ac_func
14184choke me
14185#endif
14186
14187int
14188main ()
14189{
14190return $ac_func ();
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195rm -f conftest.$ac_objext conftest$ac_exeext
14196if { (ac_try="$ac_link"
14197case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest$ac_exeext &&
14212 $as_test_x conftest$ac_exeext; then
14213 eval "$as_ac_var=yes"
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 eval "$as_ac_var=no"
14219fi
14220
14221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14222 conftest$ac_exeext conftest.$ac_ext
14223fi
14224ac_res=`eval echo '${'$as_ac_var'}'`
14225 { echo "$as_me:$LINENO: result: $ac_res" >&5
14226echo "${ECHO_T}$ac_res" >&6; }
14227if test `eval echo '${'$as_ac_var'}'` = yes; then
14228 cat >>confdefs.h <<_ACEOF
14229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230_ACEOF
14231
14232 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14233echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14234 if test "$cross_compiling" = yes; then
14235 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14236echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14237
14238else
14239 cat >conftest.$ac_ext <<_ACEOF
14240/* confdefs.h. */
14241_ACEOF
14242cat confdefs.h >>conftest.$ac_ext
14243cat >>conftest.$ac_ext <<_ACEOF
14244/* end confdefs.h. */
14245
14246#include <stdlib.h>
14247#include <errno.h>
14248int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14249
14250_ACEOF
14251rm -f conftest$ac_exeext
14252if { (ac_try="$ac_link"
14253case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256esac
14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_link") 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 { echo "$as_me:$LINENO: result: yes" >&5
14272echo "${ECHO_T}yes" >&6; }
14273else
14274 echo "$as_me: program exited with status $ac_status" >&5
14275echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278( exit $ac_status )
14279
14280cat >>confdefs.h <<\_ACEOF
14281#define BROKEN_SETRESGID 1
14282_ACEOF
14283
14284 { echo "$as_me:$LINENO: result: not implemented" >&5
14285echo "${ECHO_T}not implemented" >&6; }
14286fi
14287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14288fi
14289
14290
14291
14292fi
14293done
14294
14295
14296
14297
14298for ac_func in gettimeofday time
14299do
14300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306 cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
14312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314#define $ac_func innocuous_$ac_func
14315
14316/* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char $ac_func (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14320
14321#ifdef __STDC__
14322# include <limits.h>
14323#else
14324# include <assert.h>
14325#endif
14326
14327#undef $ac_func
14328
14329/* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14332#ifdef __cplusplus
14333extern "C"
14334#endif
14335char $ac_func ();
14336/* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339#if defined __stub_$ac_func || defined __stub___$ac_func
14340choke me
14341#endif
14342
14343int
14344main ()
14345{
14346return $ac_func ();
14347 ;
14348 return 0;
14349}
14350_ACEOF
14351rm -f conftest.$ac_objext conftest$ac_exeext
14352if { (ac_try="$ac_link"
14353case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356esac
14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest$ac_exeext &&
14368 $as_test_x conftest$ac_exeext; then
14369 eval "$as_ac_var=yes"
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 eval "$as_ac_var=no"
14375fi
14376
14377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
14379fi
14380ac_res=`eval echo '${'$as_ac_var'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382echo "${ECHO_T}$ac_res" >&6; }
14383if test `eval echo '${'$as_ac_var'}'` = yes; then
14384 cat >>confdefs.h <<_ACEOF
14385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14386_ACEOF
14387
14388fi
14389done
14390
14391
14392
14393
14394
14395
14396
14397for ac_func in endutent getutent getutid getutline pututline setutent
14398do
14399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14400{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 cat >conftest.$ac_ext <<_ACEOF
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14413#define $ac_func innocuous_$ac_func
14414
14415/* System header to define __stub macros and hopefully few prototypes,
14416 which can conflict with char $ac_func (); below.
14417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14418 <limits.h> exists even on freestanding compilers. */
14419
14420#ifdef __STDC__
14421# include <limits.h>
14422#else
14423# include <assert.h>
14424#endif
14425
14426#undef $ac_func
14427
14428/* Override any GCC internal prototype to avoid an error.
14429 Use char because int might match the return type of a GCC
14430 builtin and then its argument prototype would still apply. */
14431#ifdef __cplusplus
14432extern "C"
14433#endif
14434char $ac_func ();
14435/* The GNU C library defines this for functions which it implements
14436 to always fail with ENOSYS. Some functions are actually named
14437 something starting with __ and the normal name is an alias. */
14438#if defined __stub_$ac_func || defined __stub___$ac_func
14439choke me
14440#endif
14441
14442int
14443main ()
14444{
14445return $ac_func ();
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (ac_try="$ac_link"
14452case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468 eval "$as_ac_var=yes"
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 eval "$as_ac_var=no"
14474fi
14475
14476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478fi
14479ac_res=`eval echo '${'$as_ac_var'}'`
14480 { echo "$as_me:$LINENO: result: $ac_res" >&5
14481echo "${ECHO_T}$ac_res" >&6; }
14482if test `eval echo '${'$as_ac_var'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14485_ACEOF
14486
14487fi
14488done
14489
14490
14491for ac_func in utmpname
14492do
14493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14507#define $ac_func innocuous_$ac_func
14508
14509/* System header to define __stub macros and hopefully few prototypes,
14510 which can conflict with char $ac_func (); below.
14511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512 <limits.h> exists even on freestanding compilers. */
14513
14514#ifdef __STDC__
14515# include <limits.h>
14516#else
14517# include <assert.h>
14518#endif
14519
14520#undef $ac_func
14521
14522/* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525#ifdef __cplusplus
14526extern "C"
14527#endif
14528char $ac_func ();
14529/* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532#if defined __stub_$ac_func || defined __stub___$ac_func
14533choke me
14534#endif
14535
14536int
14537main ()
14538{
14539return $ac_func ();
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext conftest$ac_exeext
14545if { (ac_try="$ac_link"
14546case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } && {
14558 test -z "$ac_c_werror_flag" ||
14559 test ! -s conftest.err
14560 } && test -s conftest$ac_exeext &&
14561 $as_test_x conftest$ac_exeext; then
14562 eval "$as_ac_var=yes"
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 eval "$as_ac_var=no"
14568fi
14569
14570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14571 conftest$ac_exeext conftest.$ac_ext
14572fi
14573ac_res=`eval echo '${'$as_ac_var'}'`
14574 { echo "$as_me:$LINENO: result: $ac_res" >&5
14575echo "${ECHO_T}$ac_res" >&6; }
14576if test `eval echo '${'$as_ac_var'}'` = yes; then
14577 cat >>confdefs.h <<_ACEOF
14578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14579_ACEOF
14580
14581fi
14582done
14583
14584
14585
14586
14587
14588
14589for ac_func in endutxent getutxent getutxid getutxline pututxline
14590do
14591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14592{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14594if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596else
14597 cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14605#define $ac_func innocuous_$ac_func
14606
14607/* System header to define __stub macros and hopefully few prototypes,
14608 which can conflict with char $ac_func (); below.
14609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14610 <limits.h> exists even on freestanding compilers. */
14611
14612#ifdef __STDC__
14613# include <limits.h>
14614#else
14615# include <assert.h>
14616#endif
14617
14618#undef $ac_func
14619
14620/* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623#ifdef __cplusplus
14624extern "C"
14625#endif
14626char $ac_func ();
14627/* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630#if defined __stub_$ac_func || defined __stub___$ac_func
14631choke me
14632#endif
14633
14634int
14635main ()
14636{
14637return $ac_func ();
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext conftest$ac_exeext
14643if { (ac_try="$ac_link"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14660 eval "$as_ac_var=yes"
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 eval "$as_ac_var=no"
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14670fi
14671ac_res=`eval echo '${'$as_ac_var'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673echo "${ECHO_T}$ac_res" >&6; }
14674if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677_ACEOF
14678
14679fi
14680done
14681
14682
14683
14684for ac_func in setutxent utmpxname
14685do
14686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 cat >conftest.$ac_ext <<_ACEOF
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
14698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700#define $ac_func innocuous_$ac_func
14701
14702/* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14706
14707#ifdef __STDC__
14708# include <limits.h>
14709#else
14710# include <assert.h>
14711#endif
14712
14713#undef $ac_func
14714
14715/* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718#ifdef __cplusplus
14719extern "C"
14720#endif
14721char $ac_func ();
14722/* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725#if defined __stub_$ac_func || defined __stub___$ac_func
14726choke me
14727#endif
14728
14729int
14730main ()
14731{
14732return $ac_func ();
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext conftest$ac_exeext
14738if { (ac_try="$ac_link"
14739case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_link") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest$ac_exeext &&
14754 $as_test_x conftest$ac_exeext; then
14755 eval "$as_ac_var=yes"
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 eval "$as_ac_var=no"
14761fi
14762
14763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764 conftest$ac_exeext conftest.$ac_ext
14765fi
14766ac_res=`eval echo '${'$as_ac_var'}'`
14767 { echo "$as_me:$LINENO: result: $ac_res" >&5
14768echo "${ECHO_T}$ac_res" >&6; }
14769if test `eval echo '${'$as_ac_var'}'` = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14772_ACEOF
14773
14774fi
14775done
14776
14777
14778{ echo "$as_me:$LINENO: checking for daemon" >&5
14779echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14780if test "${ac_cv_func_daemon+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783 cat >conftest.$ac_ext <<_ACEOF
14784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14791#define daemon innocuous_daemon
14792
14793/* System header to define __stub macros and hopefully few prototypes,
14794 which can conflict with char daemon (); below.
14795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14796 <limits.h> exists even on freestanding compilers. */
14797
14798#ifdef __STDC__
14799# include <limits.h>
14800#else
14801# include <assert.h>
14802#endif
14803
14804#undef daemon
14805
14806/* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809#ifdef __cplusplus
14810extern "C"
14811#endif
14812char daemon ();
14813/* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816#if defined __stub_daemon || defined __stub___daemon
14817choke me
14818#endif
14819
14820int
14821main ()
14822{
14823return daemon ();
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext conftest$ac_exeext
14829if { (ac_try="$ac_link"
14830case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_link") 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest$ac_exeext &&
14845 $as_test_x conftest$ac_exeext; then
14846 ac_cv_func_daemon=yes
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_func_daemon=no
14852fi
14853
14854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14855 conftest$ac_exeext conftest.$ac_ext
14856fi
14857{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14858echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
14859if test $ac_cv_func_daemon = yes; then
14860
14861cat >>confdefs.h <<\_ACEOF
14862#define HAVE_DAEMON 1
14863_ACEOF
14864
14865else
14866 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
14867echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
14868if test "${ac_cv_lib_bsd_daemon+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870else
14871 ac_check_lib_save_LIBS=$LIBS
14872LIBS="-lbsd $LIBS"
14873cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879
14880/* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14883#ifdef __cplusplus
14884extern "C"
14885#endif
14886char daemon ();
14887int
14888main ()
14889{
14890return daemon ();
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
14896if { (ac_try="$ac_link"
14897case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest$ac_exeext &&
14912 $as_test_x conftest$ac_exeext; then
14913 ac_cv_lib_bsd_daemon=yes
14914else
14915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_lib_bsd_daemon=no
14919fi
14920
14921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922 conftest$ac_exeext conftest.$ac_ext
14923LIBS=$ac_check_lib_save_LIBS
14924fi
14925{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
14926echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
14927if test $ac_cv_lib_bsd_daemon = yes; then
14928 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
14929#define HAVE_DAEMON 1
14930_ACEOF
14931
14932fi
14933
14934
14935fi
14936
14937
14938{ echo "$as_me:$LINENO: checking for getpagesize" >&5
14939echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
14940if test "${ac_cv_func_getpagesize+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951#define getpagesize innocuous_getpagesize
14952
14953/* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char getpagesize (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14957
14958#ifdef __STDC__
14959# include <limits.h>
14960#else
14961# include <assert.h>
14962#endif
14963
14964#undef getpagesize
14965
14966/* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969#ifdef __cplusplus
14970extern "C"
14971#endif
14972char getpagesize ();
14973/* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976#if defined __stub_getpagesize || defined __stub___getpagesize
14977choke me
14978#endif
14979
14980int
14981main ()
14982{
14983return getpagesize ();
14984 ;
14985 return 0;
14986}
14987_ACEOF
14988rm -f conftest.$ac_objext conftest$ac_exeext
14989if { (ac_try="$ac_link"
14990case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_link") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest$ac_exeext &&
15005 $as_test_x conftest$ac_exeext; then
15006 ac_cv_func_getpagesize=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_func_getpagesize=no
15012fi
15013
15014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15016fi
15017{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
15018echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
15019if test $ac_cv_func_getpagesize = yes; then
15020
15021cat >>confdefs.h <<\_ACEOF
15022#define HAVE_GETPAGESIZE 1
15023_ACEOF
15024
15025else
15026 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
15027echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
15028if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 ac_check_lib_save_LIBS=$LIBS
15032LIBS="-lucb $LIBS"
15033cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039
15040/* Override any GCC internal prototype to avoid an error.
15041 Use char because int might match the return type of a GCC
15042 builtin and then its argument prototype would still apply. */
15043#ifdef __cplusplus
15044extern "C"
15045#endif
15046char getpagesize ();
15047int
15048main ()
15049{
15050return getpagesize ();
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext conftest$ac_exeext
15056if { (ac_try="$ac_link"
15057case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_link") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest$ac_exeext &&
15072 $as_test_x conftest$ac_exeext; then
15073 ac_cv_lib_ucb_getpagesize=yes
15074else
15075 echo "$as_me: failed program was:" >&5
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ac_cv_lib_ucb_getpagesize=no
15079fi
15080
15081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15082 conftest$ac_exeext conftest.$ac_ext
15083LIBS=$ac_check_lib_save_LIBS
15084fi
15085{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15086echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15087if test $ac_cv_lib_ucb_getpagesize = yes; then
15088 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15089#define HAVE_GETPAGESIZE 1
15090_ACEOF
15091
15092fi
15093
15094
15095fi
15096
15097
15098# Check for broken snprintf
15099if test "x$ac_cv_func_snprintf" = "xyes" ; then
15100 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15101echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15102 if test "$cross_compiling" = yes; then
15103 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15104echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15105
15106else
15107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
15113
15114#include <stdio.h>
15115int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15116
15117_ACEOF
15118rm -f conftest$ac_exeext
15119if { (ac_try="$ac_link"
15120case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 { echo "$as_me:$LINENO: result: yes" >&5
15139echo "${ECHO_T}yes" >&6; }
15140else
15141 echo "$as_me: program exited with status $ac_status" >&5
15142echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145( exit $ac_status )
15146
15147 { echo "$as_me:$LINENO: result: no" >&5
15148echo "${ECHO_T}no" >&6; }
15149
15150cat >>confdefs.h <<\_ACEOF
15151#define BROKEN_SNPRINTF 1
15152_ACEOF
15153
15154 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15155echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15156
15157fi
15158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15159fi
15160
15161
15162fi
15163
15164# If we don't have a working asprintf, then we strongly depend on vsnprintf
15165# returning the right thing on overflow: the number of characters it tried to
15166# create (as per SUSv3)
15167if test "x$ac_cv_func_asprintf" != "xyes" && \
15168 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15169 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15170echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15171 if test "$cross_compiling" = yes; then
15172 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15173echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15174
15175else
15176 cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
15182
15183#include <sys/types.h>
15184#include <stdio.h>
15185#include <stdarg.h>
15186
15187int x_snprintf(char *str,size_t count,const char *fmt,...)
15188{
15189 size_t ret; va_list ap;
15190 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15191 return ret;
15192}
15193int main(void)
15194{
15195 char x[1];
15196 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15197}
15198_ACEOF
15199rm -f conftest$ac_exeext
15200if { (ac_try="$ac_link"
15201case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 { echo "$as_me:$LINENO: result: yes" >&5
15220echo "${ECHO_T}yes" >&6; }
15221else
15222 echo "$as_me: program exited with status $ac_status" >&5
15223echo "$as_me: failed program was:" >&5
15224sed 's/^/| /' conftest.$ac_ext >&5
15225
15226( exit $ac_status )
15227
15228 { echo "$as_me:$LINENO: result: no" >&5
15229echo "${ECHO_T}no" >&6; }
15230
15231cat >>confdefs.h <<\_ACEOF
15232#define BROKEN_SNPRINTF 1
15233_ACEOF
15234
15235 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15236echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15237
15238fi
15239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15240fi
15241
15242
15243fi
15244
15245# On systems where [v]snprintf is broken, but is declared in stdio,
15246# check that the fmt argument is const char * or just char *.
15247# This is only useful for when BROKEN_SNPRINTF
15248{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15249echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256#include <stdio.h>
15257 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15258 int main(void) { snprintf(0, 0, 0); }
15259
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (ac_try="$ac_compile"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 { echo "$as_me:$LINENO: result: yes" >&5
15279echo "${ECHO_T}yes" >&6; }
15280
15281cat >>confdefs.h <<\_ACEOF
15282#define SNPRINTF_CONST const
15283_ACEOF
15284
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 { echo "$as_me:$LINENO: result: no" >&5
15290echo "${ECHO_T}no" >&6; }
15291 cat >>confdefs.h <<\_ACEOF
15292#define SNPRINTF_CONST /* not const */
15293_ACEOF
15294
15295fi
15296
15297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298
15299# Check for missing getpeereid (or equiv) support
15300NO_PEERCHECK=""
15301if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15302 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15303echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15304 cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310#include <sys/types.h>
15311 #include <sys/socket.h>
15312int
15313main ()
15314{
15315int i = SO_PEERCRED;
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext
15321if { (ac_try="$ac_compile"
15322case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_compile") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && {
15334 test -z "$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 } && test -s conftest.$ac_objext; then
15337 { echo "$as_me:$LINENO: result: yes" >&5
15338echo "${ECHO_T}yes" >&6; }
15339
15340cat >>confdefs.h <<\_ACEOF
15341#define HAVE_SO_PEERCRED 1
15342_ACEOF
15343
15344
15345else
15346 echo "$as_me: failed program was:" >&5
15347sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 { echo "$as_me:$LINENO: result: no" >&5
15350echo "${ECHO_T}no" >&6; }
15351 NO_PEERCHECK=1
15352
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356fi
15357
15358if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15359{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15360echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15361if test "$cross_compiling" = yes; then
15362
15363 { echo "$as_me:$LINENO: result: yes" >&5
15364echo "${ECHO_T}yes" >&6; }
15365 cat >>confdefs.h <<\_ACEOF
15366#define HAVE_STRICT_MKSTEMP 1
15367_ACEOF
15368
15369
15370
15371else
15372 cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378
15379#include <stdlib.h>
15380main() { char template[]="conftest.mkstemp-test";
15381if (mkstemp(template) == -1)
15382 exit(1);
15383unlink(template); exit(0);
15384}
15385
15386_ACEOF
15387rm -f conftest$ac_exeext
15388if { (ac_try="$ac_link"
15389case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_link") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407
15408 { echo "$as_me:$LINENO: result: no" >&5
15409echo "${ECHO_T}no" >&6; }
15410
15411else
15412 echo "$as_me: program exited with status $ac_status" >&5
15413echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416( exit $ac_status )
15417
15418 { echo "$as_me:$LINENO: result: yes" >&5
15419echo "${ECHO_T}yes" >&6; }
15420
15421cat >>confdefs.h <<\_ACEOF
15422#define HAVE_STRICT_MKSTEMP 1
15423_ACEOF
15424
15425
15426fi
15427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15428fi
15429
15430
15431fi
15432
15433if test ! -z "$check_for_openpty_ctty_bug"; then
15434 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
15435echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
15436 if test "$cross_compiling" = yes; then
15437
15438 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15439echo "${ECHO_T}cross-compiling" >&6; }
15440
15441
15442else
15443 cat >conftest.$ac_ext <<_ACEOF
15444/* confdefs.h. */
15445_ACEOF
15446cat confdefs.h >>conftest.$ac_ext
15447cat >>conftest.$ac_ext <<_ACEOF
15448/* end confdefs.h. */
15449
15450#include <stdio.h>
15451#include <sys/fcntl.h>
15452#include <sys/types.h>
15453#include <sys/wait.h>
15454
15455int
15456main()
15457{
15458 pid_t pid;
15459 int fd, ptyfd, ttyfd, status;
15460
15461 pid = fork();
15462 if (pid < 0) { /* failed */
15463 exit(1);
15464 } else if (pid > 0) { /* parent */
15465 waitpid(pid, &status, 0);
15466 if (WIFEXITED(status))
15467 exit(WEXITSTATUS(status));
15468 else
15469 exit(2);
15470 } else { /* child */
15471 close(0); close(1); close(2);
15472 setsid();
15473 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15474 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15475 if (fd >= 0)
15476 exit(3); /* Acquired ctty: broken */
15477 else
15478 exit(0); /* Did not acquire ctty: OK */
15479 }
15480}
15481
15482_ACEOF
15483rm -f conftest$ac_exeext
15484if { (ac_try="$ac_link"
15485case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503
15504 { echo "$as_me:$LINENO: result: yes" >&5
15505echo "${ECHO_T}yes" >&6; }
15506
15507else
15508 echo "$as_me: program exited with status $ac_status" >&5
15509echo "$as_me: failed program was:" >&5
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512( exit $ac_status )
15513
15514 { echo "$as_me:$LINENO: result: no" >&5
15515echo "${ECHO_T}no" >&6; }
15516 cat >>confdefs.h <<\_ACEOF
15517#define SSHD_ACQUIRES_CTTY 1
15518_ACEOF
15519
15520
15521fi
15522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15523fi
15524
15525
15526fi
15527
15528if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15529 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15530 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15531echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15532 if test "$cross_compiling" = yes; then
15533
15534 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15535echo "${ECHO_T}cross-compiling" >&6; }
15536
15537
15538else
15539 cat >conftest.$ac_ext <<_ACEOF
15540/* confdefs.h. */
15541_ACEOF
15542cat confdefs.h >>conftest.$ac_ext
15543cat >>conftest.$ac_ext <<_ACEOF
15544/* end confdefs.h. */
15545
15546#include <stdio.h>
15547#include <sys/socket.h>
15548#include <netdb.h>
15549#include <errno.h>
15550#include <netinet/in.h>
15551
15552#define TEST_PORT "2222"
15553
15554int
15555main(void)
15556{
15557 int err, sock;
15558 struct addrinfo *gai_ai, *ai, hints;
15559 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15560
15561 memset(&hints, 0, sizeof(hints));
15562 hints.ai_family = PF_UNSPEC;
15563 hints.ai_socktype = SOCK_STREAM;
15564 hints.ai_flags = AI_PASSIVE;
15565
15566 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15567 if (err != 0) {
15568 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15569 exit(1);
15570 }
15571
15572 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15573 if (ai->ai_family != AF_INET6)
15574 continue;
15575
15576 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15577 sizeof(ntop), strport, sizeof(strport),
15578 NI_NUMERICHOST|NI_NUMERICSERV);
15579
15580 if (err != 0) {
15581 if (err == EAI_SYSTEM)
15582 perror("getnameinfo EAI_SYSTEM");
15583 else
15584 fprintf(stderr, "getnameinfo failed: %s\n",
15585 gai_strerror(err));
15586 exit(2);
15587 }
15588
15589 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
15590 if (sock < 0)
15591 perror("socket");
15592 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
15593 if (errno == EBADF)
15594 exit(3);
15595 }
15596 }
15597 exit(0);
15598}
15599
15600_ACEOF
15601rm -f conftest$ac_exeext
15602if { (ac_try="$ac_link"
15603case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_link") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15612 { (case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_try") 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621
15622 { echo "$as_me:$LINENO: result: yes" >&5
15623echo "${ECHO_T}yes" >&6; }
15624
15625else
15626 echo "$as_me: program exited with status $ac_status" >&5
15627echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630( exit $ac_status )
15631
15632 { echo "$as_me:$LINENO: result: no" >&5
15633echo "${ECHO_T}no" >&6; }
15634 cat >>confdefs.h <<\_ACEOF
15635#define BROKEN_GETADDRINFO 1
15636_ACEOF
15637
15638
15639fi
15640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15641fi
15642
15643
15644fi
15645
15646if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15647 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
15648 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15649echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15650 if test "$cross_compiling" = yes; then
15651
15652 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15653echo "${ECHO_T}cross-compiling" >&6; }
15654
15655
15656else
15657 cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663
15664#include <stdio.h>
15665#include <sys/socket.h>
15666#include <netdb.h>
15667#include <errno.h>
15668#include <netinet/in.h>
15669
15670#define TEST_PORT "2222"
15671
15672int
15673main(void)
15674{
15675 int err, sock;
15676 struct addrinfo *gai_ai, *ai, hints;
15677 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15678
15679 memset(&hints, 0, sizeof(hints));
15680 hints.ai_family = PF_UNSPEC;
15681 hints.ai_socktype = SOCK_STREAM;
15682 hints.ai_flags = AI_PASSIVE;
15683
15684 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15685 if (err != 0) {
15686 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15687 exit(1);
15688 }
15689
15690 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15691 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
15692 continue;
15693
15694 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15695 sizeof(ntop), strport, sizeof(strport),
15696 NI_NUMERICHOST|NI_NUMERICSERV);
15697
15698 if (ai->ai_family == AF_INET && err != 0) {
15699 perror("getnameinfo");
15700 exit(2);
15701 }
15702 }
15703 exit(0);
15704}
15705
15706_ACEOF
15707rm -f conftest$ac_exeext
15708if { (ac_try="$ac_link"
15709case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_link") 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15718 { (case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721esac
15722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_try") 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727
15728 { echo "$as_me:$LINENO: result: yes" >&5
15729echo "${ECHO_T}yes" >&6; }
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define AIX_GETNAMEINFO_HACK 1
15733_ACEOF
15734
15735
15736else
15737 echo "$as_me: program exited with status $ac_status" >&5
15738echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741( exit $ac_status )
15742
15743 { echo "$as_me:$LINENO: result: no" >&5
15744echo "${ECHO_T}no" >&6; }
15745 cat >>confdefs.h <<\_ACEOF
15746#define BROKEN_GETADDRINFO 1
15747_ACEOF
15748
15749
15750fi
15751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15752fi
15753
15754
15755fi
15756
15757if test "x$check_for_conflicting_getspnam" = "x1"; then
15758 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
15759echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15761
15762#include <shadow.h>
15763int main(void) {exit(0);}
15764
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (ac_try="$ac_compile"
15768case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771esac
15772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest.$ac_objext; then
15783
15784 { echo "$as_me:$LINENO: result: no" >&5
15785echo "${ECHO_T}no" >&6; }
15786
15787else
15788 echo "$as_me: failed program was:" >&5
15789sed 's/^/| /' conftest.$ac_ext >&5
15790
15791
15792 { echo "$as_me:$LINENO: result: yes" >&5
15793echo "${ECHO_T}yes" >&6; }
15794
15795cat >>confdefs.h <<\_ACEOF
15796#define GETSPNAM_CONFLICTING_DEFS 1
15797_ACEOF
15798
15799
15800
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804fi
15805
15806{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15807echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
15808if test "${ac_cv_func_getpgrp_void+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 # Use it with a single arg.
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819int
15820main ()
15821{
15822getpgrp (0);
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (ac_try="$ac_compile"
15829case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest.$ac_objext; then
15844 ac_cv_func_getpgrp_void=no
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_cv_func_getpgrp_void=yes
15850fi
15851
15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853
15854fi
15855{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15856echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
15857if test $ac_cv_func_getpgrp_void = yes; then
15858
15859cat >>confdefs.h <<\_ACEOF
15860#define GETPGRP_VOID 1
15861_ACEOF
15862
15863fi
15864
15865
15866# Search for OpenSSL
15867saved_CPPFLAGS="$CPPFLAGS"
15868saved_LDFLAGS="$LDFLAGS"
15869
15870# Check whether --with-ssl-dir was given.
15871if test "${with_ssl_dir+set}" = set; then
15872 withval=$with_ssl_dir;
15873 if test "x$withval" != "xno" ; then
15874 case "$withval" in
15875 # Relative paths
15876 ./*|../*) withval="`pwd`/$withval"
15877 esac
15878 if test -d "$withval/lib"; then
15879 if test -n "${need_dash_r}"; then
15880 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15881 else
15882 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15883 fi
15884 else
15885 if test -n "${need_dash_r}"; then
15886 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
15887 else
15888 LDFLAGS="-L${withval} ${LDFLAGS}"
15889 fi
15890 fi
15891 if test -d "$withval/include"; then
15892 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
15893 else
15894 CPPFLAGS="-I${withval} ${CPPFLAGS}"
15895 fi
15896 fi
15897
15898
15899fi
15900
15901LIBS="-lcrypto $LIBS"
15902cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908
15909/* Override any GCC internal prototype to avoid an error.
15910 Use char because int might match the return type of a GCC
15911 builtin and then its argument prototype would still apply. */
15912#ifdef __cplusplus
15913extern "C"
15914#endif
15915char RAND_add ();
15916int
15917main ()
15918{
15919return RAND_add ();
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924rm -f conftest.$ac_objext conftest$ac_exeext
15925if { (ac_try="$ac_link"
15926case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_link") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest$ac_exeext &&
15941 $as_test_x conftest$ac_exeext; then
15942
15943cat >>confdefs.h <<\_ACEOF
15944#define HAVE_OPENSSL 1
15945_ACEOF
15946
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951
15952 if test -n "${need_dash_r}"; then
15953 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
15954 else
15955 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
15956 fi
15957 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
15958 cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964
15965/* Override any GCC internal prototype to avoid an error.
15966 Use char because int might match the return type of a GCC
15967 builtin and then its argument prototype would still apply. */
15968#ifdef __cplusplus
15969extern "C"
15970#endif
15971char RAND_add ();
15972int
15973main ()
15974{
15975return RAND_add ();
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext conftest$ac_exeext
15981if { (ac_try="$ac_link"
15982case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 cat >>confdefs.h <<\_ACEOF
15999#define HAVE_OPENSSL 1
16000_ACEOF
16001
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006
16007 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
16008echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
16009 { (exit 1); exit 1; }; }
16010
16011
16012fi
16013
16014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16015 conftest$ac_exeext conftest.$ac_ext
16016
16017
16018fi
16019
16020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021 conftest$ac_exeext conftest.$ac_ext
16022
16023# Determine OpenSSL header version
16024{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
16025echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
16026if test "$cross_compiling" = yes; then
16027
16028 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16029echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16030
16031
16032else
16033 cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039
16040#include <stdio.h>
16041#include <string.h>
16042#include <openssl/opensslv.h>
16043#define DATA "conftest.sslincver"
16044int main(void) {
16045 FILE *fd;
16046 int rc;
16047
16048 fd = fopen(DATA,"w");
16049 if(fd == NULL)
16050 exit(1);
16051
16052 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
16053 exit(1);
16054
16055 exit(0);
16056}
16057
16058_ACEOF
16059rm -f conftest$ac_exeext
16060if { (ac_try="$ac_link"
16061case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_link") 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079
16080 ssl_header_ver=`cat conftest.sslincver`
16081 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16082echo "${ECHO_T}$ssl_header_ver" >&6; }
16083
16084else
16085 echo "$as_me: program exited with status $ac_status" >&5
16086echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089( exit $ac_status )
16090
16091 { echo "$as_me:$LINENO: result: not found" >&5
16092echo "${ECHO_T}not found" >&6; }
16093 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16094echo "$as_me: error: OpenSSL version header not found." >&2;}
16095 { (exit 1); exit 1; }; }
16096
16097fi
16098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16099fi
16100
16101
16102
16103# Determine OpenSSL library version
16104{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16105echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16106if test "$cross_compiling" = yes; then
16107
16108 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16109echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16110
16111
16112else
16113 cat >conftest.$ac_ext <<_ACEOF
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119
16120#include <stdio.h>
16121#include <string.h>
16122#include <openssl/opensslv.h>
16123#include <openssl/crypto.h>
16124#define DATA "conftest.ssllibver"
16125int main(void) {
16126 FILE *fd;
16127 int rc;
16128
16129 fd = fopen(DATA,"w");
16130 if(fd == NULL)
16131 exit(1);
16132
16133 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16134 exit(1);
16135
16136 exit(0);
16137}
16138
16139_ACEOF
16140rm -f conftest$ac_exeext
16141if { (ac_try="$ac_link"
16142case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16151 { (case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_try") 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160
16161 ssl_library_ver=`cat conftest.ssllibver`
16162 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16163echo "${ECHO_T}$ssl_library_ver" >&6; }
16164
16165else
16166 echo "$as_me: program exited with status $ac_status" >&5
16167echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170( exit $ac_status )
16171
16172 { echo "$as_me:$LINENO: result: not found" >&5
16173echo "${ECHO_T}not found" >&6; }
16174 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16175echo "$as_me: error: OpenSSL library not found." >&2;}
16176 { (exit 1); exit 1; }; }
16177
16178fi
16179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16180fi
16181
16182
16183
16184
16185# Check whether --with-openssl-header-check was given.
16186if test "${with_openssl_header_check+set}" = set; then
16187 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16188 openssl_check_nonfatal=1
16189 fi
16190
16191
16192fi
16193
16194
16195# Sanity check OpenSSL headers
16196{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16197echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16198if test "$cross_compiling" = yes; then
16199
16200 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16201echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16202
16203
16204else
16205 cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
16211
16212#include <string.h>
16213#include <openssl/opensslv.h>
16214int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16215
16216_ACEOF
16217rm -f conftest$ac_exeext
16218if { (ac_try="$ac_link"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_link") 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237
16238 { echo "$as_me:$LINENO: result: yes" >&5
16239echo "${ECHO_T}yes" >&6; }
16240
16241else
16242 echo "$as_me: program exited with status $ac_status" >&5
16243echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246( exit $ac_status )
16247
16248 { echo "$as_me:$LINENO: result: no" >&5
16249echo "${ECHO_T}no" >&6; }
16250 if test "x$openssl_check_nonfatal" = "x"; then
16251 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
16252library. Check config.log for details.
16253If you are sure your installation is consistent, you can disable the check
16254by running \"./configure --without-openssl-header-check\".
16255Also see contrib/findssl.sh for help identifying header/library mismatches.
16256" >&5
16257echo "$as_me: error: Your OpenSSL headers do not match your
16258library. Check config.log for details.
16259If you are sure your installation is consistent, you can disable the check
16260by running \"./configure --without-openssl-header-check\".
16261Also see contrib/findssl.sh for help identifying header/library mismatches.
16262" >&2;}
16263 { (exit 1); exit 1; }; }
16264 else
16265 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
16266library. Check config.log for details.
16267Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
16268echo "$as_me: WARNING: Your OpenSSL headers do not match your
16269library. Check config.log for details.
16270Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
16271 fi
16272
16273fi
16274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16275fi
16276
16277
16278
16279{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
16280echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287
16288#include <openssl/evp.h>
16289int main(void) { SSLeay_add_all_algorithms(); }
16290
16291_ACEOF
16292rm -f conftest.$ac_objext conftest$ac_exeext
16293if { (ac_try="$ac_link"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_link") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } && {
16306 test -z "$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16308 } && test -s conftest$ac_exeext &&
16309 $as_test_x conftest$ac_exeext; then
16310
16311 { echo "$as_me:$LINENO: result: yes" >&5
16312echo "${ECHO_T}yes" >&6; }
16313
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318
16319 { echo "$as_me:$LINENO: result: no" >&5
16320echo "${ECHO_T}no" >&6; }
16321 saved_LIBS="$LIBS"
16322 LIBS="$LIBS -ldl"
16323 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16324echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331
16332#include <openssl/evp.h>
16333int main(void) { SSLeay_add_all_algorithms(); }
16334
16335_ACEOF
16336rm -f conftest.$ac_objext conftest$ac_exeext
16337if { (ac_try="$ac_link"
16338case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext &&
16353 $as_test_x conftest$ac_exeext; then
16354
16355 { echo "$as_me:$LINENO: result: yes" >&5
16356echo "${ECHO_T}yes" >&6; }
16357
16358else
16359 echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362
16363 { echo "$as_me:$LINENO: result: no" >&5
16364echo "${ECHO_T}no" >&6; }
16365 LIBS="$saved_LIBS"
16366
16367
16368fi
16369
16370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16372
16373
16374fi
16375
16376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378
16379
16380# Check whether --with-ssl-engine was given.
16381if test "${with_ssl_engine+set}" = set; then
16382 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16383 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16384echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16385 cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391 #include <openssl/engine.h>
16392int
16393main ()
16394{
16395
16396ENGINE_load_builtin_engines();ENGINE_register_all_complete();
16397
16398 ;
16399 return 0;
16400}
16401_ACEOF
16402rm -f conftest.$ac_objext
16403if { (ac_try="$ac_compile"
16404case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } && {
16416 test -z "$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 } && test -s conftest.$ac_objext; then
16419 { echo "$as_me:$LINENO: result: yes" >&5
16420echo "${ECHO_T}yes" >&6; }
16421
16422cat >>confdefs.h <<\_ACEOF
16423#define USE_OPENSSL_ENGINE 1
16424_ACEOF
16425
16426
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
16432echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
16433 { (exit 1); exit 1; }; }
16434
16435fi
16436
16437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 fi
16439
16440fi
16441
16442
16443# Check for OpenSSL without EVP_aes_{192,256}_cbc
16444{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
16445echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
16446cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452
16453#include <string.h>
16454#include <openssl/evp.h>
16455int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
16456
16457_ACEOF
16458rm -f conftest.$ac_objext conftest$ac_exeext
16459if { (ac_try="$ac_link"
16460case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_link") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } && {
16472 test -z "$ac_c_werror_flag" ||
16473 test ! -s conftest.err
16474 } && test -s conftest$ac_exeext &&
16475 $as_test_x conftest$ac_exeext; then
16476
16477 { echo "$as_me:$LINENO: result: no" >&5
16478echo "${ECHO_T}no" >&6; }
16479
16480else
16481 echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484
16485 { echo "$as_me:$LINENO: result: yes" >&5
16486echo "${ECHO_T}yes" >&6; }
16487
16488cat >>confdefs.h <<\_ACEOF
16489#define OPENSSL_LOBOTOMISED_AES 1
16490_ACEOF
16491
16492
16493
16494fi
16495
16496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16497 conftest$ac_exeext conftest.$ac_ext
16498
16499# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
16500# because the system crypt() is more featureful.
16501if test "x$check_for_libcrypt_before" = "x1"; then
16502
16503{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16504echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16505if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
16508 ac_check_lib_save_LIBS=$LIBS
16509LIBS="-lcrypt $LIBS"
16510cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516
16517/* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
16520#ifdef __cplusplus
16521extern "C"
16522#endif
16523char crypt ();
16524int
16525main ()
16526{
16527return crypt ();
16528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext conftest$ac_exeext
16533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && {
16546 test -z "$ac_c_werror_flag" ||
16547 test ! -s conftest.err
16548 } && test -s conftest$ac_exeext &&
16549 $as_test_x conftest$ac_exeext; then
16550 ac_cv_lib_crypt_crypt=yes
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ac_cv_lib_crypt_crypt=no
16556fi
16557
16558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16559 conftest$ac_exeext conftest.$ac_ext
16560LIBS=$ac_check_lib_save_LIBS
16561fi
16562{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16563echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16564if test $ac_cv_lib_crypt_crypt = yes; then
16565 cat >>confdefs.h <<_ACEOF
16566#define HAVE_LIBCRYPT 1
16567_ACEOF
16568
16569 LIBS="-lcrypt $LIBS"
16570
16571fi
16572
16573fi
16574
16575# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
16576# version in OpenSSL.
16577if test "x$check_for_libcrypt_later" = "x1"; then
16578 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16579echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16580if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583 ac_check_lib_save_LIBS=$LIBS
16584LIBS="-lcrypt $LIBS"
16585cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
16591
16592/* Override any GCC internal prototype to avoid an error.
16593 Use char because int might match the return type of a GCC
16594 builtin and then its argument prototype would still apply. */
16595#ifdef __cplusplus
16596extern "C"
16597#endif
16598char crypt ();
16599int
16600main ()
16601{
16602return crypt ();
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext conftest$ac_exeext
16608if { (ac_try="$ac_link"
16609case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_link") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest$ac_exeext &&
16624 $as_test_x conftest$ac_exeext; then
16625 ac_cv_lib_crypt_crypt=yes
16626else
16627 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_lib_crypt_crypt=no
16631fi
16632
16633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16634 conftest$ac_exeext conftest.$ac_ext
16635LIBS=$ac_check_lib_save_LIBS
16636fi
16637{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16638echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16639if test $ac_cv_lib_crypt_crypt = yes; then
16640 LIBS="$LIBS -lcrypt"
16641fi
16642
16643fi
16644
16645# Search for SHA256 support in libc and/or OpenSSL
16646
16647
16648for ac_func in SHA256_Update EVP_sha256
16649do
16650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655else
16656 cat >conftest.$ac_ext <<_ACEOF
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664#define $ac_func innocuous_$ac_func
16665
16666/* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char $ac_func (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16670
16671#ifdef __STDC__
16672# include <limits.h>
16673#else
16674# include <assert.h>
16675#endif
16676
16677#undef $ac_func
16678
16679/* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16682#ifdef __cplusplus
16683extern "C"
16684#endif
16685char $ac_func ();
16686/* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689#if defined __stub_$ac_func || defined __stub___$ac_func
16690choke me
16691#endif
16692
16693int
16694main ()
16695{
16696return $ac_func ();
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext conftest$ac_exeext
16702if { (ac_try="$ac_link"
16703case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } && {
16715 test -z "$ac_c_werror_flag" ||
16716 test ! -s conftest.err
16717 } && test -s conftest$ac_exeext &&
16718 $as_test_x conftest$ac_exeext; then
16719 eval "$as_ac_var=yes"
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 eval "$as_ac_var=no"
16725fi
16726
16727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16728 conftest$ac_exeext conftest.$ac_ext
16729fi
16730ac_res=`eval echo '${'$as_ac_var'}'`
16731 { echo "$as_me:$LINENO: result: $ac_res" >&5
16732echo "${ECHO_T}$ac_res" >&6; }
16733if test `eval echo '${'$as_ac_var'}'` = yes; then
16734 cat >>confdefs.h <<_ACEOF
16735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16736_ACEOF
16737
16738fi
16739done
16740
16741
16742saved_LIBS="$LIBS"
16743{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16744echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
16745if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747else
16748 ac_check_lib_save_LIBS=$LIBS
16749LIBS="-liaf $LIBS"
16750cat >conftest.$ac_ext <<_ACEOF
16751/* confdefs.h. */
16752_ACEOF
16753cat confdefs.h >>conftest.$ac_ext
16754cat >>conftest.$ac_ext <<_ACEOF
16755/* end confdefs.h. */
16756
16757/* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760#ifdef __cplusplus
16761extern "C"
16762#endif
16763char ia_openinfo ();
16764int
16765main ()
16766{
16767return ia_openinfo ();
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest.$ac_objext conftest$ac_exeext
16773if { (ac_try="$ac_link"
16774case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } && {
16786 test -z "$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16788 } && test -s conftest$ac_exeext &&
16789 $as_test_x conftest$ac_exeext; then
16790 ac_cv_lib_iaf_ia_openinfo=yes
16791else
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ac_cv_lib_iaf_ia_openinfo=no
16796fi
16797
16798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16799 conftest$ac_exeext conftest.$ac_ext
16800LIBS=$ac_check_lib_save_LIBS
16801fi
16802{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16803echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16804if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16805
16806 LIBS="$LIBS -liaf"
16807
16808for ac_func in set_id
16809do
16810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16813if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824#define $ac_func innocuous_$ac_func
16825
16826/* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char $ac_func (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16830
16831#ifdef __STDC__
16832# include <limits.h>
16833#else
16834# include <assert.h>
16835#endif
16836
16837#undef $ac_func
16838
16839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845char $ac_func ();
16846/* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849#if defined __stub_$ac_func || defined __stub___$ac_func
16850choke me
16851#endif
16852
16853int
16854main ()
16855{
16856return $ac_func ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
16862if { (ac_try="$ac_link"
16863case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest$ac_exeext &&
16878 $as_test_x conftest$ac_exeext; then
16879 eval "$as_ac_var=yes"
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 eval "$as_ac_var=no"
16885fi
16886
16887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889fi
16890ac_res=`eval echo '${'$as_ac_var'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892echo "${ECHO_T}$ac_res" >&6; }
16893if test `eval echo '${'$as_ac_var'}'` = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896_ACEOF
16897 SSHDLIBS="$SSHDLIBS -liaf"
16898
16899cat >>confdefs.h <<\_ACEOF
16900#define HAVE_LIBIAF 1
16901_ACEOF
16902
16903
16904fi
16905done
16906
16907
16908fi
16909
16910LIBS="$saved_LIBS"
16911
16912### Configure cryptographic random number support
16913
16914# Check wheter OpenSSL seeds itself
16915{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
16916echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
16917if test "$cross_compiling" = yes; then
16918
16919 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
16920echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
16921 # This is safe, since all recent OpenSSL versions will
16922 # complain at runtime if not seeded correctly.
16923 OPENSSL_SEEDS_ITSELF=yes
16924
16925
16926else
16927 cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
16933
16934#include <string.h>
16935#include <openssl/rand.h>
16936int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
16937
16938_ACEOF
16939rm -f conftest$ac_exeext
16940if { (ac_try="$ac_link"
16941case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959
16960 OPENSSL_SEEDS_ITSELF=yes
16961 { echo "$as_me:$LINENO: result: yes" >&5
16962echo "${ECHO_T}yes" >&6; }
16963
16964else
16965 echo "$as_me: program exited with status $ac_status" >&5
16966echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969( exit $ac_status )
16970
16971 { echo "$as_me:$LINENO: result: no" >&5
16972echo "${ECHO_T}no" >&6; }
16973 # Default to use of the rand helper if OpenSSL doesn't
16974 # seed itself
16975 USE_RAND_HELPER=yes
16976
16977fi
16978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16979fi
16980
16981
16982
16983# Check for PAM libs
16984PAM_MSG="no"
16985
16986# Check whether --with-pam was given.
16987if test "${with_pam+set}" = set; then
16988 withval=$with_pam;
16989 if test "x$withval" != "xno" ; then
16990 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16991 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16992 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16993echo "$as_me: error: PAM headers not found" >&2;}
16994 { (exit 1); exit 1; }; }
16995 fi
16996
16997 saved_LIBS="$LIBS"
16998
16999{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17000echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17001if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004 ac_check_lib_save_LIBS=$LIBS
17005LIBS="-ldl $LIBS"
17006cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012
17013/* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17016#ifdef __cplusplus
17017extern "C"
17018#endif
17019char dlopen ();
17020int
17021main ()
17022{
17023return dlopen ();
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext conftest$ac_exeext
17029if { (ac_try="$ac_link"
17030case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046 ac_cv_lib_dl_dlopen=yes
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_cv_lib_dl_dlopen=no
17052fi
17053
17054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17055 conftest$ac_exeext conftest.$ac_ext
17056LIBS=$ac_check_lib_save_LIBS
17057fi
17058{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17060if test $ac_cv_lib_dl_dlopen = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062#define HAVE_LIBDL 1
17063_ACEOF
17064
17065 LIBS="-ldl $LIBS"
17066
17067fi
17068
17069
17070{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17071echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17072if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075 ac_check_lib_save_LIBS=$LIBS
17076LIBS="-lpam $LIBS"
17077cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083
17084/* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char pam_set_item ();
17091int
17092main ()
17093{
17094return pam_set_item ();
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext conftest$ac_exeext
17100if { (ac_try="$ac_link"
17101case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext &&
17116 $as_test_x conftest$ac_exeext; then
17117 ac_cv_lib_pam_pam_set_item=yes
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_cv_lib_pam_pam_set_item=no
17123fi
17124
17125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17126 conftest$ac_exeext conftest.$ac_ext
17127LIBS=$ac_check_lib_save_LIBS
17128fi
17129{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17130echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17131if test $ac_cv_lib_pam_pam_set_item = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133#define HAVE_LIBPAM 1
17134_ACEOF
17135
17136 LIBS="-lpam $LIBS"
17137
17138else
17139 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17140echo "$as_me: error: *** libpam missing" >&2;}
17141 { (exit 1); exit 1; }; }
17142fi
17143
17144
17145for ac_func in pam_getenvlist
17146do
17147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153 cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161#define $ac_func innocuous_$ac_func
17162
17163/* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17167
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
17173
17174#undef $ac_func
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char $ac_func ();
17183/* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186#if defined __stub_$ac_func || defined __stub___$ac_func
17187choke me
17188#endif
17189
17190int
17191main ()
17192{
17193return $ac_func ();
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (ac_try="$ac_link"
17200case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest$ac_exeext &&
17215 $as_test_x conftest$ac_exeext; then
17216 eval "$as_ac_var=yes"
17217else
17218 echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 eval "$as_ac_var=no"
17222fi
17223
17224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225 conftest$ac_exeext conftest.$ac_ext
17226fi
17227ac_res=`eval echo '${'$as_ac_var'}'`
17228 { echo "$as_me:$LINENO: result: $ac_res" >&5
17229echo "${ECHO_T}$ac_res" >&6; }
17230if test `eval echo '${'$as_ac_var'}'` = yes; then
17231 cat >>confdefs.h <<_ACEOF
17232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17233_ACEOF
17234
17235fi
17236done
17237
17238
17239for ac_func in pam_putenv
17240do
17241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246else
17247 cat >conftest.$ac_ext <<_ACEOF
17248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
17253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17255#define $ac_func innocuous_$ac_func
17256
17257/* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char $ac_func (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
17261
17262#ifdef __STDC__
17263# include <limits.h>
17264#else
17265# include <assert.h>
17266#endif
17267
17268#undef $ac_func
17269
17270/* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276char $ac_func ();
17277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280#if defined __stub_$ac_func || defined __stub___$ac_func
17281choke me
17282#endif
17283
17284int
17285main ()
17286{
17287return $ac_func ();
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
17293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext &&
17309 $as_test_x conftest$ac_exeext; then
17310 eval "$as_ac_var=yes"
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 eval "$as_ac_var=no"
17316fi
17317
17318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17319 conftest$ac_exeext conftest.$ac_ext
17320fi
17321ac_res=`eval echo '${'$as_ac_var'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323echo "${ECHO_T}$ac_res" >&6; }
17324if test `eval echo '${'$as_ac_var'}'` = yes; then
17325 cat >>confdefs.h <<_ACEOF
17326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17327_ACEOF
17328
17329fi
17330done
17331
17332 LIBS="$saved_LIBS"
17333
17334 PAM_MSG="yes"
17335
17336 SSHDLIBS="$SSHDLIBS -lpam"
17337
17338cat >>confdefs.h <<\_ACEOF
17339#define USE_PAM 1
17340_ACEOF
17341
17342
17343 if test $ac_cv_lib_dl_dlopen = yes; then
17344 case "$LIBS" in
17345 *-ldl*)
17346 # libdl already in LIBS
17347 ;;
17348 *)
17349 SSHDLIBS="$SSHDLIBS -ldl"
17350 ;;
17351 esac
17352 fi
17353 fi
17354
17355
17356fi
17357
17358
17359# Check for older PAM
17360if test "x$PAM_MSG" = "xyes" ; then
17361 # Check PAM strerror arguments (old PAM)
17362 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
17363echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
17364 cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370
17371#include <stdlib.h>
17372#if defined(HAVE_SECURITY_PAM_APPL_H)
17373#include <security/pam_appl.h>
17374#elif defined (HAVE_PAM_PAM_APPL_H)
17375#include <pam/pam_appl.h>
17376#endif
17377
17378int
17379main ()
17380{
17381(void)pam_strerror((pam_handle_t *)NULL, -1);
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (ac_try="$ac_compile"
17388case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_compile") 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && {
17400 test -z "$ac_c_werror_flag" ||
17401 test ! -s conftest.err
17402 } && test -s conftest.$ac_objext; then
17403 { echo "$as_me:$LINENO: result: no" >&5
17404echo "${ECHO_T}no" >&6; }
17405else
17406 echo "$as_me: failed program was:" >&5
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409
17410
17411cat >>confdefs.h <<\_ACEOF
17412#define HAVE_OLD_PAM 1
17413_ACEOF
17414
17415 { echo "$as_me:$LINENO: result: yes" >&5
17416echo "${ECHO_T}yes" >&6; }
17417 PAM_MSG="yes (old library)"
17418
17419
17420fi
17421
17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423fi
17424
17425# Do we want to force the use of the rand helper?
17426
17427# Check whether --with-rand-helper was given.
17428if test "${with_rand_helper+set}" = set; then
17429 withval=$with_rand_helper;
17430 if test "x$withval" = "xno" ; then
17431 # Force use of OpenSSL's internal RNG, even if
17432 # the previous test showed it to be unseeded.
17433 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
17434 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
17435echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
17436 OPENSSL_SEEDS_ITSELF=yes
17437 USE_RAND_HELPER=""
17438 fi
17439 else
17440 USE_RAND_HELPER=yes
17441 fi
17442
17443fi
17444
17445
17446# Which randomness source do we use?
17447if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
17448 # OpenSSL only
17449
17450cat >>confdefs.h <<\_ACEOF
17451#define OPENSSL_PRNG_ONLY 1
17452_ACEOF
17453
17454 RAND_MSG="OpenSSL internal ONLY"
17455 INSTALL_SSH_RAND_HELPER=""
17456elif test ! -z "$USE_RAND_HELPER" ; then
17457 # install rand helper
17458 RAND_MSG="ssh-rand-helper"
17459 INSTALL_SSH_RAND_HELPER="yes"
17460fi
17461
17462
17463### Configuration of ssh-rand-helper
17464
17465# PRNGD TCP socket
17466
17467# Check whether --with-prngd-port was given.
17468if test "${with_prngd_port+set}" = set; then
17469 withval=$with_prngd_port;
17470 case "$withval" in
17471 no)
17472 withval=""
17473 ;;
17474 [0-9]*)
17475 ;;
17476 *)
17477 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
17478echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
17479 { (exit 1); exit 1; }; }
17480 ;;
17481 esac
17482 if test ! -z "$withval" ; then
17483 PRNGD_PORT="$withval"
17484
17485cat >>confdefs.h <<_ACEOF
17486#define PRNGD_PORT $PRNGD_PORT
17487_ACEOF
17488
17489 fi
17490
17491
17492fi
17493
17494
17495# PRNGD Unix domain socket
17496
17497# Check whether --with-prngd-socket was given.
17498if test "${with_prngd_socket+set}" = set; then
17499 withval=$with_prngd_socket;
17500 case "$withval" in
17501 yes)
17502 withval="/var/run/egd-pool"
17503 ;;
17504 no)
17505 withval=""
17506 ;;
17507 /*)
17508 ;;
17509 *)
17510 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
17511echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
17512 { (exit 1); exit 1; }; }
17513 ;;
17514 esac
17515
17516 if test ! -z "$withval" ; then
17517 if test ! -z "$PRNGD_PORT" ; then
17518 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
17519echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
17520 { (exit 1); exit 1; }; }
17521 fi
17522 if test ! -r "$withval" ; then
17523 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
17524echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
17525 fi
17526 PRNGD_SOCKET="$withval"
17527
17528cat >>confdefs.h <<_ACEOF
17529#define PRNGD_SOCKET "$PRNGD_SOCKET"
17530_ACEOF
17531
17532 fi
17533
17534else
17535
17536 # Check for existing socket only if we don't have a random device already
17537 if test "$USE_RAND_HELPER" = yes ; then
17538 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
17539echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
17540 # Insert other locations here
17541 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
17542 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
17543 PRNGD_SOCKET="$sock"
17544 cat >>confdefs.h <<_ACEOF
17545#define PRNGD_SOCKET "$PRNGD_SOCKET"
17546_ACEOF
17547
17548 break;
17549 fi
17550 done
17551 if test ! -z "$PRNGD_SOCKET" ; then
17552 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
17553echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
17554 else
17555 { echo "$as_me:$LINENO: result: not found" >&5
17556echo "${ECHO_T}not found" >&6; }
17557 fi
17558 fi
17559
17560
17561fi
17562
17563
17564# Change default command timeout for hashing entropy source
17565entropy_timeout=200
17566
17567# Check whether --with-entropy-timeout was given.
17568if test "${with_entropy_timeout+set}" = set; then
17569 withval=$with_entropy_timeout;
17570 if test -n "$withval" && test "x$withval" != "xno" && \
17571 test "x${withval}" != "xyes"; then
17572 entropy_timeout=$withval
17573 fi
17574
17575
17576fi
17577
17578
17579cat >>confdefs.h <<_ACEOF
17580#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
17581_ACEOF
17582
17583
17584SSH_PRIVSEP_USER=sshd
17585
17586# Check whether --with-privsep-user was given.
17587if test "${with_privsep_user+set}" = set; then
17588 withval=$with_privsep_user;
17589 if test -n "$withval" && test "x$withval" != "xno" && \
17590 test "x${withval}" != "xyes"; then
17591 SSH_PRIVSEP_USER=$withval
17592 fi
17593
17594
17595fi
17596
17597
17598cat >>confdefs.h <<_ACEOF
17599#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
17600_ACEOF
17601
17602
17603
17604# We do this little dance with the search path to insure
17605# that programs that we select for use by installed programs
17606# (which may be run by the super-user) come from trusted
17607# locations before they come from the user's private area.
17608# This should help avoid accidentally configuring some
17609# random version of a program in someone's personal bin.
17610
17611OPATH=$PATH
17612PATH=/bin:/usr/bin
17613test -h /bin 2> /dev/null && PATH=/usr/bin
17614test -d /sbin && PATH=$PATH:/sbin
17615test -d /usr/sbin && PATH=$PATH:/usr/sbin
17616PATH=$PATH:/etc:$OPATH
17617
17618# These programs are used by the command hashing source to gather entropy
17619
17620 # Extract the first word of "ls", so it can be a program name with args.
17621set dummy ls; ac_word=$2
17622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17624if test "${ac_cv_path_PROG_LS+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17626else
17627 case $PROG_LS in
17628 [\\/]* | ?:[\\/]*)
17629 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
17630 ;;
17631 *)
17632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17633for as_dir in $PATH
17634do
17635 IFS=$as_save_IFS
17636 test -z "$as_dir" && as_dir=.
17637 for ac_exec_ext in '' $ac_executable_extensions; do
17638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17639 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
17640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17641 break 2
17642 fi
17643done
17644done
17645IFS=$as_save_IFS
17646
17647 ;;
17648esac
17649fi
17650PROG_LS=$ac_cv_path_PROG_LS
17651if test -n "$PROG_LS"; then
17652 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
17653echo "${ECHO_T}$PROG_LS" >&6; }
17654else
17655 { echo "$as_me:$LINENO: result: no" >&5
17656echo "${ECHO_T}no" >&6; }
17657fi
17658
17659
17660 if test -z "$PROG_LS" ; then
17661 PROG_LS="undef"
17662 fi
17663
17664
17665
17666 # Extract the first word of "netstat", so it can be a program name with args.
17667set dummy netstat; ac_word=$2
17668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17670if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 case $PROG_NETSTAT in
17674 [\\/]* | ?:[\\/]*)
17675 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
17676 ;;
17677 *)
17678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17679for as_dir in $PATH
17680do
17681 IFS=$as_save_IFS
17682 test -z "$as_dir" && as_dir=.
17683 for ac_exec_ext in '' $ac_executable_extensions; do
17684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17685 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
17686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17687 break 2
17688 fi
17689done
17690done
17691IFS=$as_save_IFS
17692
17693 ;;
17694esac
17695fi
17696PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
17697if test -n "$PROG_NETSTAT"; then
17698 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
17699echo "${ECHO_T}$PROG_NETSTAT" >&6; }
17700else
17701 { echo "$as_me:$LINENO: result: no" >&5
17702echo "${ECHO_T}no" >&6; }
17703fi
17704
17705
17706 if test -z "$PROG_NETSTAT" ; then
17707 PROG_NETSTAT="undef"
17708 fi
17709
17710
17711
17712 # Extract the first word of "arp", so it can be a program name with args.
17713set dummy arp; ac_word=$2
17714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17716if test "${ac_cv_path_PROG_ARP+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719 case $PROG_ARP in
17720 [\\/]* | ?:[\\/]*)
17721 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
17722 ;;
17723 *)
17724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725for as_dir in $PATH
17726do
17727 IFS=$as_save_IFS
17728 test -z "$as_dir" && as_dir=.
17729 for ac_exec_ext in '' $ac_executable_extensions; do
17730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17731 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
17732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17733 break 2
17734 fi
17735done
17736done
17737IFS=$as_save_IFS
17738
17739 ;;
17740esac
17741fi
17742PROG_ARP=$ac_cv_path_PROG_ARP
17743if test -n "$PROG_ARP"; then
17744 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
17745echo "${ECHO_T}$PROG_ARP" >&6; }
17746else
17747 { echo "$as_me:$LINENO: result: no" >&5
17748echo "${ECHO_T}no" >&6; }
17749fi
17750
17751
17752 if test -z "$PROG_ARP" ; then
17753 PROG_ARP="undef"
17754 fi
17755
17756
17757
17758 # Extract the first word of "ifconfig", so it can be a program name with args.
17759set dummy ifconfig; ac_word=$2
17760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17762if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 case $PROG_IFCONFIG in
17766 [\\/]* | ?:[\\/]*)
17767 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
17768 ;;
17769 *)
17770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771for as_dir in $PATH
17772do
17773 IFS=$as_save_IFS
17774 test -z "$as_dir" && as_dir=.
17775 for ac_exec_ext in '' $ac_executable_extensions; do
17776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17777 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
17778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17779 break 2
17780 fi
17781done
17782done
17783IFS=$as_save_IFS
17784
17785 ;;
17786esac
17787fi
17788PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
17789if test -n "$PROG_IFCONFIG"; then
17790 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
17791echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
17792else
17793 { echo "$as_me:$LINENO: result: no" >&5
17794echo "${ECHO_T}no" >&6; }
17795fi
17796
17797
17798 if test -z "$PROG_IFCONFIG" ; then
17799 PROG_IFCONFIG="undef"
17800 fi
17801
17802
17803
17804 # Extract the first word of "jstat", so it can be a program name with args.
17805set dummy jstat; ac_word=$2
17806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17808if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 case $PROG_JSTAT in
17812 [\\/]* | ?:[\\/]*)
17813 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
17814 ;;
17815 *)
17816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17817for as_dir in $PATH
17818do
17819 IFS=$as_save_IFS
17820 test -z "$as_dir" && as_dir=.
17821 for ac_exec_ext in '' $ac_executable_extensions; do
17822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17823 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
17824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17825 break 2
17826 fi
17827done
17828done
17829IFS=$as_save_IFS
17830
17831 ;;
17832esac
17833fi
17834PROG_JSTAT=$ac_cv_path_PROG_JSTAT
17835if test -n "$PROG_JSTAT"; then
17836 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
17837echo "${ECHO_T}$PROG_JSTAT" >&6; }
17838else
17839 { echo "$as_me:$LINENO: result: no" >&5
17840echo "${ECHO_T}no" >&6; }
17841fi
17842
17843
17844 if test -z "$PROG_JSTAT" ; then
17845 PROG_JSTAT="undef"
17846 fi
17847
17848
17849
17850 # Extract the first word of "ps", so it can be a program name with args.
17851set dummy ps; ac_word=$2
17852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17854if test "${ac_cv_path_PROG_PS+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856else
17857 case $PROG_PS in
17858 [\\/]* | ?:[\\/]*)
17859 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
17860 ;;
17861 *)
17862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863for as_dir in $PATH
17864do
17865 IFS=$as_save_IFS
17866 test -z "$as_dir" && as_dir=.
17867 for ac_exec_ext in '' $ac_executable_extensions; do
17868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17869 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
17870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17871 break 2
17872 fi
17873done
17874done
17875IFS=$as_save_IFS
17876
17877 ;;
17878esac
17879fi
17880PROG_PS=$ac_cv_path_PROG_PS
17881if test -n "$PROG_PS"; then
17882 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
17883echo "${ECHO_T}$PROG_PS" >&6; }
17884else
17885 { echo "$as_me:$LINENO: result: no" >&5
17886echo "${ECHO_T}no" >&6; }
17887fi
17888
17889
17890 if test -z "$PROG_PS" ; then
17891 PROG_PS="undef"
17892 fi
17893
17894
17895
17896 # Extract the first word of "sar", so it can be a program name with args.
17897set dummy sar; ac_word=$2
17898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17900if test "${ac_cv_path_PROG_SAR+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 case $PROG_SAR in
17904 [\\/]* | ?:[\\/]*)
17905 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
17906 ;;
17907 *)
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909for as_dir in $PATH
17910do
17911 IFS=$as_save_IFS
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
17916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17917 break 2
17918 fi
17919done
17920done
17921IFS=$as_save_IFS
17922
17923 ;;
17924esac
17925fi
17926PROG_SAR=$ac_cv_path_PROG_SAR
17927if test -n "$PROG_SAR"; then
17928 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
17929echo "${ECHO_T}$PROG_SAR" >&6; }
17930else
17931 { echo "$as_me:$LINENO: result: no" >&5
17932echo "${ECHO_T}no" >&6; }
17933fi
17934
17935
17936 if test -z "$PROG_SAR" ; then
17937 PROG_SAR="undef"
17938 fi
17939
17940
17941
17942 # Extract the first word of "w", so it can be a program name with args.
17943set dummy w; ac_word=$2
17944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17946if test "${ac_cv_path_PROG_W+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948else
17949 case $PROG_W in
17950 [\\/]* | ?:[\\/]*)
17951 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
17952 ;;
17953 *)
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955for as_dir in $PATH
17956do
17957 IFS=$as_save_IFS
17958 test -z "$as_dir" && as_dir=.
17959 for ac_exec_ext in '' $ac_executable_extensions; do
17960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17961 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
17962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17963 break 2
17964 fi
17965done
17966done
17967IFS=$as_save_IFS
17968
17969 ;;
17970esac
17971fi
17972PROG_W=$ac_cv_path_PROG_W
17973if test -n "$PROG_W"; then
17974 { echo "$as_me:$LINENO: result: $PROG_W" >&5
17975echo "${ECHO_T}$PROG_W" >&6; }
17976else
17977 { echo "$as_me:$LINENO: result: no" >&5
17978echo "${ECHO_T}no" >&6; }
17979fi
17980
17981
17982 if test -z "$PROG_W" ; then
17983 PROG_W="undef"
17984 fi
17985
17986
17987
17988 # Extract the first word of "who", so it can be a program name with args.
17989set dummy who; ac_word=$2
17990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17992if test "${ac_cv_path_PROG_WHO+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 case $PROG_WHO in
17996 [\\/]* | ?:[\\/]*)
17997 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
17998 ;;
17999 *)
18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18001for as_dir in $PATH
18002do
18003 IFS=$as_save_IFS
18004 test -z "$as_dir" && as_dir=.
18005 for ac_exec_ext in '' $ac_executable_extensions; do
18006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18007 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
18008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 break 2
18010 fi
18011done
18012done
18013IFS=$as_save_IFS
18014
18015 ;;
18016esac
18017fi
18018PROG_WHO=$ac_cv_path_PROG_WHO
18019if test -n "$PROG_WHO"; then
18020 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
18021echo "${ECHO_T}$PROG_WHO" >&6; }
18022else
18023 { echo "$as_me:$LINENO: result: no" >&5
18024echo "${ECHO_T}no" >&6; }
18025fi
18026
18027
18028 if test -z "$PROG_WHO" ; then
18029 PROG_WHO="undef"
18030 fi
18031
18032
18033
18034 # Extract the first word of "last", so it can be a program name with args.
18035set dummy last; ac_word=$2
18036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18038if test "${ac_cv_path_PROG_LAST+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040else
18041 case $PROG_LAST in
18042 [\\/]* | ?:[\\/]*)
18043 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
18044 ;;
18045 *)
18046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18047for as_dir in $PATH
18048do
18049 IFS=$as_save_IFS
18050 test -z "$as_dir" && as_dir=.
18051 for ac_exec_ext in '' $ac_executable_extensions; do
18052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18053 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
18054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18055 break 2
18056 fi
18057done
18058done
18059IFS=$as_save_IFS
18060
18061 ;;
18062esac
18063fi
18064PROG_LAST=$ac_cv_path_PROG_LAST
18065if test -n "$PROG_LAST"; then
18066 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18067echo "${ECHO_T}$PROG_LAST" >&6; }
18068else
18069 { echo "$as_me:$LINENO: result: no" >&5
18070echo "${ECHO_T}no" >&6; }
18071fi
18072
18073
18074 if test -z "$PROG_LAST" ; then
18075 PROG_LAST="undef"
18076 fi
18077
18078
18079
18080 # Extract the first word of "lastlog", so it can be a program name with args.
18081set dummy lastlog; ac_word=$2
18082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18084if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087 case $PROG_LASTLOG in
18088 [\\/]* | ?:[\\/]*)
18089 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18090 ;;
18091 *)
18092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18093for as_dir in $PATH
18094do
18095 IFS=$as_save_IFS
18096 test -z "$as_dir" && as_dir=.
18097 for ac_exec_ext in '' $ac_executable_extensions; do
18098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18099 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18101 break 2
18102 fi
18103done
18104done
18105IFS=$as_save_IFS
18106
18107 ;;
18108esac
18109fi
18110PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18111if test -n "$PROG_LASTLOG"; then
18112 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18113echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18114else
18115 { echo "$as_me:$LINENO: result: no" >&5
18116echo "${ECHO_T}no" >&6; }
18117fi
18118
18119
18120 if test -z "$PROG_LASTLOG" ; then
18121 PROG_LASTLOG="undef"
18122 fi
18123
18124
18125
18126 # Extract the first word of "df", so it can be a program name with args.
18127set dummy df; ac_word=$2
18128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18130if test "${ac_cv_path_PROG_DF+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 case $PROG_DF in
18134 [\\/]* | ?:[\\/]*)
18135 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18136 ;;
18137 *)
18138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18139for as_dir in $PATH
18140do
18141 IFS=$as_save_IFS
18142 test -z "$as_dir" && as_dir=.
18143 for ac_exec_ext in '' $ac_executable_extensions; do
18144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18145 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18147 break 2
18148 fi
18149done
18150done
18151IFS=$as_save_IFS
18152
18153 ;;
18154esac
18155fi
18156PROG_DF=$ac_cv_path_PROG_DF
18157if test -n "$PROG_DF"; then
18158 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18159echo "${ECHO_T}$PROG_DF" >&6; }
18160else
18161 { echo "$as_me:$LINENO: result: no" >&5
18162echo "${ECHO_T}no" >&6; }
18163fi
18164
18165
18166 if test -z "$PROG_DF" ; then
18167 PROG_DF="undef"
18168 fi
18169
18170
18171
18172 # Extract the first word of "vmstat", so it can be a program name with args.
18173set dummy vmstat; ac_word=$2
18174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18176if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179 case $PROG_VMSTAT in
18180 [\\/]* | ?:[\\/]*)
18181 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18182 ;;
18183 *)
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18191 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
18192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 break 2
18194 fi
18195done
18196done
18197IFS=$as_save_IFS
18198
18199 ;;
18200esac
18201fi
18202PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
18203if test -n "$PROG_VMSTAT"; then
18204 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
18205echo "${ECHO_T}$PROG_VMSTAT" >&6; }
18206else
18207 { echo "$as_me:$LINENO: result: no" >&5
18208echo "${ECHO_T}no" >&6; }
18209fi
18210
18211
18212 if test -z "$PROG_VMSTAT" ; then
18213 PROG_VMSTAT="undef"
18214 fi
18215
18216
18217
18218 # Extract the first word of "uptime", so it can be a program name with args.
18219set dummy uptime; ac_word=$2
18220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18222if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 case $PROG_UPTIME in
18226 [\\/]* | ?:[\\/]*)
18227 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
18228 ;;
18229 *)
18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231for as_dir in $PATH
18232do
18233 IFS=$as_save_IFS
18234 test -z "$as_dir" && as_dir=.
18235 for ac_exec_ext in '' $ac_executable_extensions; do
18236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18237 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
18238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18239 break 2
18240 fi
18241done
18242done
18243IFS=$as_save_IFS
18244
18245 ;;
18246esac
18247fi
18248PROG_UPTIME=$ac_cv_path_PROG_UPTIME
18249if test -n "$PROG_UPTIME"; then
18250 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
18251echo "${ECHO_T}$PROG_UPTIME" >&6; }
18252else
18253 { echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6; }
18255fi
18256
18257
18258 if test -z "$PROG_UPTIME" ; then
18259 PROG_UPTIME="undef"
18260 fi
18261
18262
18263
18264 # Extract the first word of "ipcs", so it can be a program name with args.
18265set dummy ipcs; ac_word=$2
18266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18268if test "${ac_cv_path_PROG_IPCS+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270else
18271 case $PROG_IPCS in
18272 [\\/]* | ?:[\\/]*)
18273 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
18274 ;;
18275 *)
18276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18277for as_dir in $PATH
18278do
18279 IFS=$as_save_IFS
18280 test -z "$as_dir" && as_dir=.
18281 for ac_exec_ext in '' $ac_executable_extensions; do
18282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18283 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
18284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18285 break 2
18286 fi
18287done
18288done
18289IFS=$as_save_IFS
18290
18291 ;;
18292esac
18293fi
18294PROG_IPCS=$ac_cv_path_PROG_IPCS
18295if test -n "$PROG_IPCS"; then
18296 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
18297echo "${ECHO_T}$PROG_IPCS" >&6; }
18298else
18299 { echo "$as_me:$LINENO: result: no" >&5
18300echo "${ECHO_T}no" >&6; }
18301fi
18302
18303
18304 if test -z "$PROG_IPCS" ; then
18305 PROG_IPCS="undef"
18306 fi
18307
18308
18309
18310 # Extract the first word of "tail", so it can be a program name with args.
18311set dummy tail; ac_word=$2
18312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18314if test "${ac_cv_path_PROG_TAIL+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316else
18317 case $PROG_TAIL in
18318 [\\/]* | ?:[\\/]*)
18319 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
18320 ;;
18321 *)
18322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18323for as_dir in $PATH
18324do
18325 IFS=$as_save_IFS
18326 test -z "$as_dir" && as_dir=.
18327 for ac_exec_ext in '' $ac_executable_extensions; do
18328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18329 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
18330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18331 break 2
18332 fi
18333done
18334done
18335IFS=$as_save_IFS
18336
18337 ;;
18338esac
18339fi
18340PROG_TAIL=$ac_cv_path_PROG_TAIL
18341if test -n "$PROG_TAIL"; then
18342 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
18343echo "${ECHO_T}$PROG_TAIL" >&6; }
18344else
18345 { echo "$as_me:$LINENO: result: no" >&5
18346echo "${ECHO_T}no" >&6; }
18347fi
18348
18349
18350 if test -z "$PROG_TAIL" ; then
18351 PROG_TAIL="undef"
18352 fi
18353
18354
18355# restore PATH
18356PATH=$OPATH
18357
18358# Where does ssh-rand-helper get its randomness from?
18359INSTALL_SSH_PRNG_CMDS=""
18360if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
18361 if test ! -z "$PRNGD_PORT" ; then
18362 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
18363 elif test ! -z "$PRNGD_SOCKET" ; then
18364 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
18365 else
18366 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
18367 RAND_HELPER_CMDHASH=yes
18368 INSTALL_SSH_PRNG_CMDS="yes"
18369 fi
18370fi
18371
18372
18373
18374# Cheap hack to ensure NEWS-OS libraries are arranged right.
18375if test ! -z "$SONY" ; then
18376 LIBS="$LIBS -liberty";
18377fi
18378
18379# Check for long long datatypes
18380{ echo "$as_me:$LINENO: checking for long long" >&5
18381echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18382if test "${ac_cv_type_long_long+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385 cat >conftest.$ac_ext <<_ACEOF
18386/* confdefs.h. */
18387_ACEOF
18388cat confdefs.h >>conftest.$ac_ext
18389cat >>conftest.$ac_ext <<_ACEOF
18390/* end confdefs.h. */
18391$ac_includes_default
18392typedef long long ac__type_new_;
18393int
18394main ()
18395{
18396if ((ac__type_new_ *) 0)
18397 return 0;
18398if (sizeof (ac__type_new_))
18399 return 0;
18400 ;
18401 return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext
18405if { (ac_try="$ac_compile"
18406case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_cv_type_long_long=yes
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_type_long_long=no
18427fi
18428
18429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430fi
18431{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18432echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18433if test $ac_cv_type_long_long = yes; then
18434
18435cat >>confdefs.h <<_ACEOF
18436#define HAVE_LONG_LONG 1
18437_ACEOF
18438
18439
18440fi
18441{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
18442echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
18443if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445else
18446 cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452$ac_includes_default
18453typedef unsigned long long ac__type_new_;
18454int
18455main ()
18456{
18457if ((ac__type_new_ *) 0)
18458 return 0;
18459if (sizeof (ac__type_new_))
18460 return 0;
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
18466if { (ac_try="$ac_compile"
18467case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_type_unsigned_long_long=yes
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 ac_cv_type_unsigned_long_long=no
18488fi
18489
18490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18491fi
18492{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
18493echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
18494if test $ac_cv_type_unsigned_long_long = yes; then
18495
18496cat >>confdefs.h <<_ACEOF
18497#define HAVE_UNSIGNED_LONG_LONG 1
18498_ACEOF
18499
18500
18501fi
18502{ echo "$as_me:$LINENO: checking for long double" >&5
18503echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18504if test "${ac_cv_type_long_double+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513$ac_includes_default
18514typedef long double ac__type_new_;
18515int
18516main ()
18517{
18518if ((ac__type_new_ *) 0)
18519 return 0;
18520if (sizeof (ac__type_new_))
18521 return 0;
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (ac_try="$ac_compile"
18528case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18543 ac_cv_type_long_double=yes
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_type_long_double=no
18549fi
18550
18551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18552fi
18553{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
18554echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
18555if test $ac_cv_type_long_double = yes; then
18556
18557cat >>confdefs.h <<_ACEOF
18558#define HAVE_LONG_DOUBLE 1
18559_ACEOF
18560
18561
18562fi
18563
18564
18565# Check datatype sizes
18566{ echo "$as_me:$LINENO: checking for char" >&5
18567echo $ECHO_N "checking for char... $ECHO_C" >&6; }
18568if test "${ac_cv_type_char+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570else
18571 cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
18577$ac_includes_default
18578typedef char ac__type_new_;
18579int
18580main ()
18581{
18582if ((ac__type_new_ *) 0)
18583 return 0;
18584if (sizeof (ac__type_new_))
18585 return 0;
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext
18591if { (ac_try="$ac_compile"
18592case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595esac
18596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 ac_cv_type_char=yes
18608else
18609 echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 ac_cv_type_char=no
18613fi
18614
18615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616fi
18617{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18618echo "${ECHO_T}$ac_cv_type_char" >&6; }
18619
18620# The cast to long int works around a bug in the HP C Compiler
18621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18623# This bug is HP SR number 8606223364.
18624{ echo "$as_me:$LINENO: checking size of char" >&5
18625echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
18626if test "${ac_cv_sizeof_char+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 if test "$cross_compiling" = yes; then
18630 # Depending upon the size, compute the lo and hi bounds.
18631cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637$ac_includes_default
18638 typedef char ac__type_sizeof_;
18639int
18640main ()
18641{
18642static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18643test_array [0] = 0
18644
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (ac_try="$ac_compile"
18651case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654esac
18655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_lo=0 ac_mid=0
18667 while :; do
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675 typedef char ac__type_sizeof_;
18676int
18677main ()
18678{
18679static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18680test_array [0] = 0
18681
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext
18687if { (ac_try="$ac_compile"
18688case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_compile") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest.$ac_objext; then
18703 ac_hi=$ac_mid; break
18704else
18705 echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_lo=`expr $ac_mid + 1`
18709 if test $ac_lo -le $ac_mid; then
18710 ac_lo= ac_hi=
18711 break
18712 fi
18713 ac_mid=`expr 2 '*' $ac_mid + 1`
18714fi
18715
18716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 done
18718else
18719 echo "$as_me: failed program was:" >&5
18720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 cat >conftest.$ac_ext <<_ACEOF
18723/* confdefs.h. */
18724_ACEOF
18725cat confdefs.h >>conftest.$ac_ext
18726cat >>conftest.$ac_ext <<_ACEOF
18727/* end confdefs.h. */
18728$ac_includes_default
18729 typedef char ac__type_sizeof_;
18730int
18731main ()
18732{
18733static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18734test_array [0] = 0
18735
18736 ;
18737 return 0;
18738}
18739_ACEOF
18740rm -f conftest.$ac_objext
18741if { (ac_try="$ac_compile"
18742case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest.$ac_objext; then
18757 ac_hi=-1 ac_mid=-1
18758 while :; do
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765$ac_includes_default
18766 typedef char ac__type_sizeof_;
18767int
18768main ()
18769{
18770static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18771test_array [0] = 0
18772
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext
18778if { (ac_try="$ac_compile"
18779case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_compile") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest.$ac_objext; then
18794 ac_lo=$ac_mid; break
18795else
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_hi=`expr '(' $ac_mid ')' - 1`
18800 if test $ac_mid -le $ac_hi; then
18801 ac_lo= ac_hi=
18802 break
18803 fi
18804 ac_mid=`expr 2 '*' $ac_mid`
18805fi
18806
18807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 done
18809else
18810 echo "$as_me: failed program was:" >&5
18811sed 's/^/| /' conftest.$ac_ext >&5
18812
18813 ac_lo= ac_hi=
18814fi
18815
18816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817fi
18818
18819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18820# Binary search between lo and hi bounds.
18821while test "x$ac_lo" != "x$ac_hi"; do
18822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18823 cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829$ac_includes_default
18830 typedef char ac__type_sizeof_;
18831int
18832main ()
18833{
18834static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18835test_array [0] = 0
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (ac_try="$ac_compile"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_compile") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest.$ac_objext; then
18858 ac_hi=$ac_mid
18859else
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_lo=`expr '(' $ac_mid ')' + 1`
18864fi
18865
18866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867done
18868case $ac_lo in
18869?*) ac_cv_sizeof_char=$ac_lo;;
18870'') if test "$ac_cv_type_char" = yes; then
18871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18872See \`config.log' for more details." >&5
18873echo "$as_me: error: cannot compute sizeof (char)
18874See \`config.log' for more details." >&2;}
18875 { (exit 77); exit 77; }; }
18876 else
18877 ac_cv_sizeof_char=0
18878 fi ;;
18879esac
18880else
18881 cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887$ac_includes_default
18888 typedef char ac__type_sizeof_;
18889static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18890static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18891#include <stdio.h>
18892#include <stdlib.h>
18893int
18894main ()
18895{
18896
18897 FILE *f = fopen ("conftest.val", "w");
18898 if (! f)
18899 return 1;
18900 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18901 {
18902 long int i = longval ();
18903 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18904 return 1;
18905 fprintf (f, "%ld\n", i);
18906 }
18907 else
18908 {
18909 unsigned long int i = ulongval ();
18910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18911 return 1;
18912 fprintf (f, "%lu\n", i);
18913 }
18914 return ferror (f) || fclose (f) != 0;
18915
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920rm -f conftest$ac_exeext
18921if { (ac_try="$ac_link"
18922case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18931 { (case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_try") 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_cv_sizeof_char=`cat conftest.val`
18941else
18942 echo "$as_me: program exited with status $ac_status" >&5
18943echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946( exit $ac_status )
18947if test "$ac_cv_type_char" = yes; then
18948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18949See \`config.log' for more details." >&5
18950echo "$as_me: error: cannot compute sizeof (char)
18951See \`config.log' for more details." >&2;}
18952 { (exit 77); exit 77; }; }
18953 else
18954 ac_cv_sizeof_char=0
18955 fi
18956fi
18957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18958fi
18959rm -f conftest.val
18960fi
18961{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18962echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18963
18964
18965
18966cat >>confdefs.h <<_ACEOF
18967#define SIZEOF_CHAR $ac_cv_sizeof_char
18968_ACEOF
18969
18970
18971{ echo "$as_me:$LINENO: checking for short int" >&5
18972echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
18973if test "${ac_cv_type_short_int+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
18982$ac_includes_default
18983typedef short int ac__type_new_;
18984int
18985main ()
18986{
18987if ((ac__type_new_ *) 0)
18988 return 0;
18989if (sizeof (ac__type_new_))
18990 return 0;
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext
18996if { (ac_try="$ac_compile"
18997case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_compile") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest.$ac_objext; then
19012 ac_cv_type_short_int=yes
19013else
19014 echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017 ac_cv_type_short_int=no
19018fi
19019
19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021fi
19022{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
19023echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
19024
19025# The cast to long int works around a bug in the HP C Compiler
19026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19028# This bug is HP SR number 8606223364.
19029{ echo "$as_me:$LINENO: checking size of short int" >&5
19030echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
19031if test "${ac_cv_sizeof_short_int+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 if test "$cross_compiling" = yes; then
19035 # Depending upon the size, compute the lo and hi bounds.
19036cat >conftest.$ac_ext <<_ACEOF
19037/* confdefs.h. */
19038_ACEOF
19039cat confdefs.h >>conftest.$ac_ext
19040cat >>conftest.$ac_ext <<_ACEOF
19041/* end confdefs.h. */
19042$ac_includes_default
19043 typedef short int ac__type_sizeof_;
19044int
19045main ()
19046{
19047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19048test_array [0] = 0
19049
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (ac_try="$ac_compile"
19056case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest.$ac_objext; then
19071 ac_lo=0 ac_mid=0
19072 while :; do
19073 cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079$ac_includes_default
19080 typedef short int ac__type_sizeof_;
19081int
19082main ()
19083{
19084static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19085test_array [0] = 0
19086
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (ac_try="$ac_compile"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_compile") 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && {
19105 test -z "$ac_c_werror_flag" ||
19106 test ! -s conftest.err
19107 } && test -s conftest.$ac_objext; then
19108 ac_hi=$ac_mid; break
19109else
19110 echo "$as_me: failed program was:" >&5
19111sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_lo=`expr $ac_mid + 1`
19114 if test $ac_lo -le $ac_mid; then
19115 ac_lo= ac_hi=
19116 break
19117 fi
19118 ac_mid=`expr 2 '*' $ac_mid + 1`
19119fi
19120
19121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 done
19123else
19124 echo "$as_me: failed program was:" >&5
19125sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 cat >conftest.$ac_ext <<_ACEOF
19128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
19133$ac_includes_default
19134 typedef short int ac__type_sizeof_;
19135int
19136main ()
19137{
19138static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19139test_array [0] = 0
19140
19141 ;
19142 return 0;
19143}
19144_ACEOF
19145rm -f conftest.$ac_objext
19146if { (ac_try="$ac_compile"
19147case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 ac_hi=-1 ac_mid=-1
19163 while :; do
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170$ac_includes_default
19171 typedef short int ac__type_sizeof_;
19172int
19173main ()
19174{
19175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19176test_array [0] = 0
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (ac_try="$ac_compile"
19184case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_compile") 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest.$ac_objext; then
19199 ac_lo=$ac_mid; break
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_hi=`expr '(' $ac_mid ')' - 1`
19205 if test $ac_mid -le $ac_hi; then
19206 ac_lo= ac_hi=
19207 break
19208 fi
19209 ac_mid=`expr 2 '*' $ac_mid`
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 done
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_lo= ac_hi=
19219fi
19220
19221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222fi
19223
19224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225# Binary search between lo and hi bounds.
19226while test "x$ac_lo" != "x$ac_hi"; do
19227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234$ac_includes_default
19235 typedef short int ac__type_sizeof_;
19236int
19237main ()
19238{
19239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19240test_array [0] = 0
19241
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext
19247if { (ac_try="$ac_compile"
19248case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest.$ac_objext; then
19263 ac_hi=$ac_mid
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 ac_lo=`expr '(' $ac_mid ')' + 1`
19269fi
19270
19271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272done
19273case $ac_lo in
19274?*) ac_cv_sizeof_short_int=$ac_lo;;
19275'') if test "$ac_cv_type_short_int" = yes; then
19276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19277See \`config.log' for more details." >&5
19278echo "$as_me: error: cannot compute sizeof (short int)
19279See \`config.log' for more details." >&2;}
19280 { (exit 77); exit 77; }; }
19281 else
19282 ac_cv_sizeof_short_int=0
19283 fi ;;
19284esac
19285else
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292$ac_includes_default
19293 typedef short int ac__type_sizeof_;
19294static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19295static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19296#include <stdio.h>
19297#include <stdlib.h>
19298int
19299main ()
19300{
19301
19302 FILE *f = fopen ("conftest.val", "w");
19303 if (! f)
19304 return 1;
19305 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19306 {
19307 long int i = longval ();
19308 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19309 return 1;
19310 fprintf (f, "%ld\n", i);
19311 }
19312 else
19313 {
19314 unsigned long int i = ulongval ();
19315 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19316 return 1;
19317 fprintf (f, "%lu\n", i);
19318 }
19319 return ferror (f) || fclose (f) != 0;
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest$ac_exeext
19326if { (ac_try="$ac_link"
19327case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19330esac
19331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_link") 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_cv_sizeof_short_int=`cat conftest.val`
19346else
19347 echo "$as_me: program exited with status $ac_status" >&5
19348echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351( exit $ac_status )
19352if test "$ac_cv_type_short_int" = yes; then
19353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19354See \`config.log' for more details." >&5
19355echo "$as_me: error: cannot compute sizeof (short int)
19356See \`config.log' for more details." >&2;}
19357 { (exit 77); exit 77; }; }
19358 else
19359 ac_cv_sizeof_short_int=0
19360 fi
19361fi
19362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19363fi
19364rm -f conftest.val
19365fi
19366{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
19367echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
19368
19369
19370
19371cat >>confdefs.h <<_ACEOF
19372#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
19373_ACEOF
19374
19375
19376{ echo "$as_me:$LINENO: checking for int" >&5
19377echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19378if test "${ac_cv_type_int+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381 cat >conftest.$ac_ext <<_ACEOF
19382/* confdefs.h. */
19383_ACEOF
19384cat confdefs.h >>conftest.$ac_ext
19385cat >>conftest.$ac_ext <<_ACEOF
19386/* end confdefs.h. */
19387$ac_includes_default
19388typedef int ac__type_new_;
19389int
19390main ()
19391{
19392if ((ac__type_new_ *) 0)
19393 return 0;
19394if (sizeof (ac__type_new_))
19395 return 0;
19396 ;
19397 return 0;
19398}
19399_ACEOF
19400rm -f conftest.$ac_objext
19401if { (ac_try="$ac_compile"
19402case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405esac
19406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_cv_type_int=yes
19418else
19419 echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_cv_type_int=no
19423fi
19424
19425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426fi
19427{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19428echo "${ECHO_T}$ac_cv_type_int" >&6; }
19429
19430# The cast to long int works around a bug in the HP C Compiler
19431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19433# This bug is HP SR number 8606223364.
19434{ echo "$as_me:$LINENO: checking size of int" >&5
19435echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19436if test "${ac_cv_sizeof_int+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19438else
19439 if test "$cross_compiling" = yes; then
19440 # Depending upon the size, compute the lo and hi bounds.
19441cat >conftest.$ac_ext <<_ACEOF
19442/* confdefs.h. */
19443_ACEOF
19444cat confdefs.h >>conftest.$ac_ext
19445cat >>conftest.$ac_ext <<_ACEOF
19446/* end confdefs.h. */
19447$ac_includes_default
19448 typedef int ac__type_sizeof_;
19449int
19450main ()
19451{
19452static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19453test_array [0] = 0
19454
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext
19460if { (ac_try="$ac_compile"
19461case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_compile") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && {
19473 test -z "$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 } && test -s conftest.$ac_objext; then
19476 ac_lo=0 ac_mid=0
19477 while :; do
19478 cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484$ac_includes_default
19485 typedef int ac__type_sizeof_;
19486int
19487main ()
19488{
19489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19490test_array [0] = 0
19491
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_compile") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest.$ac_objext; then
19513 ac_hi=$ac_mid; break
19514else
19515 echo "$as_me: failed program was:" >&5
19516sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_lo=`expr $ac_mid + 1`
19519 if test $ac_lo -le $ac_mid; then
19520 ac_lo= ac_hi=
19521 break
19522 fi
19523 ac_mid=`expr 2 '*' $ac_mid + 1`
19524fi
19525
19526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 done
19528else
19529 echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 cat >conftest.$ac_ext <<_ACEOF
19533/* confdefs.h. */
19534_ACEOF
19535cat confdefs.h >>conftest.$ac_ext
19536cat >>conftest.$ac_ext <<_ACEOF
19537/* end confdefs.h. */
19538$ac_includes_default
19539 typedef int ac__type_sizeof_;
19540int
19541main ()
19542{
19543static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19544test_array [0] = 0
19545
19546 ;
19547 return 0;
19548}
19549_ACEOF
19550rm -f conftest.$ac_objext
19551if { (ac_try="$ac_compile"
19552case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_compile") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest.$ac_objext; then
19567 ac_hi=-1 ac_mid=-1
19568 while :; do
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576 typedef int ac__type_sizeof_;
19577int
19578main ()
19579{
19580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19581test_array [0] = 0
19582
19583 ;
19584 return 0;
19585}
19586_ACEOF
19587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_lo=$ac_mid; break
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_hi=`expr '(' $ac_mid ')' - 1`
19610 if test $ac_mid -le $ac_hi; then
19611 ac_lo= ac_hi=
19612 break
19613 fi
19614 ac_mid=`expr 2 '*' $ac_mid`
19615fi
19616
19617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19618 done
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_lo= ac_hi=
19624fi
19625
19626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627fi
19628
19629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630# Binary search between lo and hi bounds.
19631while test "x$ac_lo" != "x$ac_hi"; do
19632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19633 cat >conftest.$ac_ext <<_ACEOF
19634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
19639$ac_includes_default
19640 typedef int ac__type_sizeof_;
19641int
19642main ()
19643{
19644static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19645test_array [0] = 0
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (ac_try="$ac_compile"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_compile") 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest.$ac_objext; then
19668 ac_hi=$ac_mid
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_lo=`expr '(' $ac_mid ')' + 1`
19674fi
19675
19676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677done
19678case $ac_lo in
19679?*) ac_cv_sizeof_int=$ac_lo;;
19680'') if test "$ac_cv_type_int" = yes; then
19681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19682See \`config.log' for more details." >&5
19683echo "$as_me: error: cannot compute sizeof (int)
19684See \`config.log' for more details." >&2;}
19685 { (exit 77); exit 77; }; }
19686 else
19687 ac_cv_sizeof_int=0
19688 fi ;;
19689esac
19690else
19691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
19697$ac_includes_default
19698 typedef int ac__type_sizeof_;
19699static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19700static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19701#include <stdio.h>
19702#include <stdlib.h>
19703int
19704main ()
19705{
19706
19707 FILE *f = fopen ("conftest.val", "w");
19708 if (! f)
19709 return 1;
19710 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19711 {
19712 long int i = longval ();
19713 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19714 return 1;
19715 fprintf (f, "%ld\n", i);
19716 }
19717 else
19718 {
19719 unsigned long int i = ulongval ();
19720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19721 return 1;
19722 fprintf (f, "%lu\n", i);
19723 }
19724 return ferror (f) || fclose (f) != 0;
19725
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest$ac_exeext
19731if { (ac_try="$ac_link"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_sizeof_int=`cat conftest.val`
19751else
19752 echo "$as_me: program exited with status $ac_status" >&5
19753echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756( exit $ac_status )
19757if test "$ac_cv_type_int" = yes; then
19758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19759See \`config.log' for more details." >&5
19760echo "$as_me: error: cannot compute sizeof (int)
19761See \`config.log' for more details." >&2;}
19762 { (exit 77); exit 77; }; }
19763 else
19764 ac_cv_sizeof_int=0
19765 fi
19766fi
19767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19768fi
19769rm -f conftest.val
19770fi
19771{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19772echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19773
19774
19775
19776cat >>confdefs.h <<_ACEOF
19777#define SIZEOF_INT $ac_cv_sizeof_int
19778_ACEOF
19779
19780
19781{ echo "$as_me:$LINENO: checking for long int" >&5
19782echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
19783if test "${ac_cv_type_long_int+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792$ac_includes_default
19793typedef long int ac__type_new_;
19794int
19795main ()
19796{
19797if ((ac__type_new_ *) 0)
19798 return 0;
19799if (sizeof (ac__type_new_))
19800 return 0;
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext
19806if { (ac_try="$ac_compile"
19807case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_compile") 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
19822 ac_cv_type_long_int=yes
19823else
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ac_cv_type_long_int=no
19828fi
19829
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831fi
19832{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
19833echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
19834
19835# The cast to long int works around a bug in the HP C Compiler
19836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19838# This bug is HP SR number 8606223364.
19839{ echo "$as_me:$LINENO: checking size of long int" >&5
19840echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
19841if test "${ac_cv_sizeof_long_int+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843else
19844 if test "$cross_compiling" = yes; then
19845 # Depending upon the size, compute the lo and hi bounds.
19846cat >conftest.$ac_ext <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852$ac_includes_default
19853 typedef long int ac__type_sizeof_;
19854int
19855main ()
19856{
19857static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19858test_array [0] = 0
19859
19860 ;
19861 return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (ac_try="$ac_compile"
19866case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_compile") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest.$ac_objext; then
19881 ac_lo=0 ac_mid=0
19882 while :; do
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889$ac_includes_default
19890 typedef long int ac__type_sizeof_;
19891int
19892main ()
19893{
19894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19895test_array [0] = 0
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest.$ac_objext; then
19918 ac_hi=$ac_mid; break
19919else
19920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_lo=`expr $ac_mid + 1`
19924 if test $ac_lo -le $ac_mid; then
19925 ac_lo= ac_hi=
19926 break
19927 fi
19928 ac_mid=`expr 2 '*' $ac_mid + 1`
19929fi
19930
19931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 done
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
19943$ac_includes_default
19944 typedef long int ac__type_sizeof_;
19945int
19946main ()
19947{
19948static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19949test_array [0] = 0
19950
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext
19956if { (ac_try="$ac_compile"
19957case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.$ac_objext; then
19972 ac_hi=-1 ac_mid=-1
19973 while :; do
19974 cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
19981 typedef long int ac__type_sizeof_;
19982int
19983main ()
19984{
19985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19986test_array [0] = 0
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_lo=$ac_mid; break
20010else
20011 echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_hi=`expr '(' $ac_mid ')' - 1`
20015 if test $ac_mid -le $ac_hi; then
20016 ac_lo= ac_hi=
20017 break
20018 fi
20019 ac_mid=`expr 2 '*' $ac_mid`
20020fi
20021
20022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 done
20024else
20025 echo "$as_me: failed program was:" >&5
20026sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 ac_lo= ac_hi=
20029fi
20030
20031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032fi
20033
20034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035# Binary search between lo and hi bounds.
20036while test "x$ac_lo" != "x$ac_hi"; do
20037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20038 cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
20044$ac_includes_default
20045 typedef long int ac__type_sizeof_;
20046int
20047main ()
20048{
20049static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20050test_array [0] = 0
20051
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext
20057if { (ac_try="$ac_compile"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest.$ac_objext; then
20073 ac_hi=$ac_mid
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_lo=`expr '(' $ac_mid ')' + 1`
20079fi
20080
20081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082done
20083case $ac_lo in
20084?*) ac_cv_sizeof_long_int=$ac_lo;;
20085'') if test "$ac_cv_type_long_int" = yes; then
20086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20087See \`config.log' for more details." >&5
20088echo "$as_me: error: cannot compute sizeof (long int)
20089See \`config.log' for more details." >&2;}
20090 { (exit 77); exit 77; }; }
20091 else
20092 ac_cv_sizeof_long_int=0
20093 fi ;;
20094esac
20095else
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
20102$ac_includes_default
20103 typedef long int ac__type_sizeof_;
20104static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20105static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20106#include <stdio.h>
20107#include <stdlib.h>
20108int
20109main ()
20110{
20111
20112 FILE *f = fopen ("conftest.val", "w");
20113 if (! f)
20114 return 1;
20115 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20116 {
20117 long int i = longval ();
20118 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20119 return 1;
20120 fprintf (f, "%ld\n", i);
20121 }
20122 else
20123 {
20124 unsigned long int i = ulongval ();
20125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20126 return 1;
20127 fprintf (f, "%lu\n", i);
20128 }
20129 return ferror (f) || fclose (f) != 0;
20130
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest$ac_exeext
20136if { (ac_try="$ac_link"
20137case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_sizeof_long_int=`cat conftest.val`
20156else
20157 echo "$as_me: program exited with status $ac_status" >&5
20158echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161( exit $ac_status )
20162if test "$ac_cv_type_long_int" = yes; then
20163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20164See \`config.log' for more details." >&5
20165echo "$as_me: error: cannot compute sizeof (long int)
20166See \`config.log' for more details." >&2;}
20167 { (exit 77); exit 77; }; }
20168 else
20169 ac_cv_sizeof_long_int=0
20170 fi
20171fi
20172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20173fi
20174rm -f conftest.val
20175fi
20176{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20177echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20178
20179
20180
20181cat >>confdefs.h <<_ACEOF
20182#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20183_ACEOF
20184
20185
20186{ echo "$as_me:$LINENO: checking for long long int" >&5
20187echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20188if test "${ac_cv_type_long_long_int+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190else
20191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
20196/* end confdefs.h. */
20197$ac_includes_default
20198typedef long long int ac__type_new_;
20199int
20200main ()
20201{
20202if ((ac__type_new_ *) 0)
20203 return 0;
20204if (sizeof (ac__type_new_))
20205 return 0;
20206 ;
20207 return 0;
20208}
20209_ACEOF
20210rm -f conftest.$ac_objext
20211if { (ac_try="$ac_compile"
20212case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 ac_cv_type_long_long_int=yes
20228else
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_type_long_long_int=no
20233fi
20234
20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236fi
20237{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20238echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
20239
20240# The cast to long int works around a bug in the HP C Compiler
20241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20243# This bug is HP SR number 8606223364.
20244{ echo "$as_me:$LINENO: checking size of long long int" >&5
20245echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
20246if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248else
20249 if test "$cross_compiling" = yes; then
20250 # Depending upon the size, compute the lo and hi bounds.
20251cat >conftest.$ac_ext <<_ACEOF
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
20257$ac_includes_default
20258 typedef long long int ac__type_sizeof_;
20259int
20260main ()
20261{
20262static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20263test_array [0] = 0
20264
20265 ;
20266 return 0;
20267}
20268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (ac_try="$ac_compile"
20271case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_lo=0 ac_mid=0
20287 while :; do
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294$ac_includes_default
20295 typedef long long int ac__type_sizeof_;
20296int
20297main ()
20298{
20299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20300test_array [0] = 0
20301
20302 ;
20303 return 0;
20304}
20305_ACEOF
20306rm -f conftest.$ac_objext
20307if { (ac_try="$ac_compile"
20308case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311esac
20312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && {
20320 test -z "$ac_c_werror_flag" ||
20321 test ! -s conftest.err
20322 } && test -s conftest.$ac_objext; then
20323 ac_hi=$ac_mid; break
20324else
20325 echo "$as_me: failed program was:" >&5
20326sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_lo=`expr $ac_mid + 1`
20329 if test $ac_lo -le $ac_mid; then
20330 ac_lo= ac_hi=
20331 break
20332 fi
20333 ac_mid=`expr 2 '*' $ac_mid + 1`
20334fi
20335
20336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337 done
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348$ac_includes_default
20349 typedef long long int ac__type_sizeof_;
20350int
20351main ()
20352{
20353static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20354test_array [0] = 0
20355
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (ac_try="$ac_compile"
20362case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20365esac
20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_compile") 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } && {
20374 test -z "$ac_c_werror_flag" ||
20375 test ! -s conftest.err
20376 } && test -s conftest.$ac_objext; then
20377 ac_hi=-1 ac_mid=-1
20378 while :; do
20379 cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385$ac_includes_default
20386 typedef long long int ac__type_sizeof_;
20387int
20388main ()
20389{
20390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20391test_array [0] = 0
20392
20393 ;
20394 return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (ac_try="$ac_compile"
20399case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_compile") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest.$ac_objext; then
20414 ac_lo=$ac_mid; break
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_hi=`expr '(' $ac_mid ')' - 1`
20420 if test $ac_mid -le $ac_hi; then
20421 ac_lo= ac_hi=
20422 break
20423 fi
20424 ac_mid=`expr 2 '*' $ac_mid`
20425fi
20426
20427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 done
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_lo= ac_hi=
20434fi
20435
20436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437fi
20438
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440# Binary search between lo and hi bounds.
20441while test "x$ac_lo" != "x$ac_hi"; do
20442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20443 cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h. */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h. */
20449$ac_includes_default
20450 typedef long long int ac__type_sizeof_;
20451int
20452main ()
20453{
20454static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20455test_array [0] = 0
20456
20457 ;
20458 return 0;
20459}
20460_ACEOF
20461rm -f conftest.$ac_objext
20462if { (ac_try="$ac_compile"
20463case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466esac
20467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_hi=$ac_mid
20479else
20480 echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_lo=`expr '(' $ac_mid ')' + 1`
20484fi
20485
20486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487done
20488case $ac_lo in
20489?*) ac_cv_sizeof_long_long_int=$ac_lo;;
20490'') if test "$ac_cv_type_long_long_int" = yes; then
20491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20492See \`config.log' for more details." >&5
20493echo "$as_me: error: cannot compute sizeof (long long int)
20494See \`config.log' for more details." >&2;}
20495 { (exit 77); exit 77; }; }
20496 else
20497 ac_cv_sizeof_long_long_int=0
20498 fi ;;
20499esac
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507$ac_includes_default
20508 typedef long long int ac__type_sizeof_;
20509static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20510static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20511#include <stdio.h>
20512#include <stdlib.h>
20513int
20514main ()
20515{
20516
20517 FILE *f = fopen ("conftest.val", "w");
20518 if (! f)
20519 return 1;
20520 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20521 {
20522 long int i = longval ();
20523 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20524 return 1;
20525 fprintf (f, "%ld\n", i);
20526 }
20527 else
20528 {
20529 unsigned long int i = ulongval ();
20530 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20531 return 1;
20532 fprintf (f, "%lu\n", i);
20533 }
20534 return ferror (f) || fclose (f) != 0;
20535
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest$ac_exeext
20541if { (ac_try="$ac_link"
20542case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_link") 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_sizeof_long_long_int=`cat conftest.val`
20561else
20562 echo "$as_me: program exited with status $ac_status" >&5
20563echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566( exit $ac_status )
20567if test "$ac_cv_type_long_long_int" = yes; then
20568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20569See \`config.log' for more details." >&5
20570echo "$as_me: error: cannot compute sizeof (long long int)
20571See \`config.log' for more details." >&2;}
20572 { (exit 77); exit 77; }; }
20573 else
20574 ac_cv_sizeof_long_long_int=0
20575 fi
20576fi
20577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20578fi
20579rm -f conftest.val
20580fi
20581{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
20582echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
20583
20584
20585
20586cat >>confdefs.h <<_ACEOF
20587#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
20588_ACEOF
20589
20590
20591
20592# Sanity check long long for some platforms (AIX)
20593if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
20594 ac_cv_sizeof_long_long_int=0
20595fi
20596
20597# compute LLONG_MIN and LLONG_MAX if we don't know them.
20598if test -z "$have_llong_max"; then
20599 { echo "$as_me:$LINENO: checking for max value of long long" >&5
20600echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
20601 if test "$cross_compiling" = yes; then
20602
20603 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20604echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20605
20606
20607else
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614
20615#include <stdio.h>
20616/* Why is this so damn hard? */
20617#ifdef __GNUC__
20618# undef __GNUC__
20619#endif
20620#define __USE_ISOC99
20621#include <limits.h>
20622#define DATA "conftest.llminmax"
20623#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20624
20625/*
20626 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20627 * we do this the hard way.
20628 */
20629static int
20630fprint_ll(FILE *f, long long n)
20631{
20632 unsigned int i;
20633 int l[sizeof(long long) * 8];
20634
20635 if (n < 0)
20636 if (fprintf(f, "-") < 0)
20637 return -1;
20638 for (i = 0; n != 0; i++) {
20639 l[i] = my_abs(n % 10);
20640 n /= 10;
20641 }
20642 do {
20643 if (fprintf(f, "%d", l[--i]) < 0)
20644 return -1;
20645 } while (i != 0);
20646 if (fprintf(f, " ") < 0)
20647 return -1;
20648 return 0;
20649}
20650
20651int main(void) {
20652 FILE *f;
20653 long long i, llmin, llmax = 0;
20654
20655 if((f = fopen(DATA,"w")) == NULL)
20656 exit(1);
20657
20658#if defined(LLONG_MIN) && defined(LLONG_MAX)
20659 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
20660 llmin = LLONG_MIN;
20661 llmax = LLONG_MAX;
20662#else
20663 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
20664 /* This will work on one's complement and two's complement */
20665 for (i = 1; i > llmax; i <<= 1, i++)
20666 llmax = i;
20667 llmin = llmax + 1LL; /* wrap */
20668#endif
20669
20670 /* Sanity check */
20671 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
20672 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20673 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
20674 fprintf(f, "unknown unknown\n");
20675 exit(2);
20676 }
20677
20678 if (fprint_ll(f, llmin) < 0)
20679 exit(3);
20680 if (fprint_ll(f, llmax) < 0)
20681 exit(4);
20682 if (fclose(f) < 0)
20683 exit(5);
20684 exit(0);
20685}
20686
20687_ACEOF
20688rm -f conftest$ac_exeext
20689if { (ac_try="$ac_link"
20690case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693esac
20694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702esac
20703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708
20709 llong_min=`$AWK '{print $1}' conftest.llminmax`
20710 llong_max=`$AWK '{print $2}' conftest.llminmax`
20711
20712 { echo "$as_me:$LINENO: result: $llong_max" >&5
20713echo "${ECHO_T}$llong_max" >&6; }
20714
20715cat >>confdefs.h <<_ACEOF
20716#define LLONG_MAX ${llong_max}LL
20717_ACEOF
20718
20719 { echo "$as_me:$LINENO: checking for min value of long long" >&5
20720echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
20721 { echo "$as_me:$LINENO: result: $llong_min" >&5
20722echo "${ECHO_T}$llong_min" >&6; }
20723
20724cat >>confdefs.h <<_ACEOF
20725#define LLONG_MIN ${llong_min}LL
20726_ACEOF
20727
20728
20729else
20730 echo "$as_me: program exited with status $ac_status" >&5
20731echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734( exit $ac_status )
20735
20736 { echo "$as_me:$LINENO: result: not found" >&5
20737echo "${ECHO_T}not found" >&6; }
20738
20739fi
20740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20741fi
20742
20743
20744fi
20745
20746
20747# More checks for data types
20748{ echo "$as_me:$LINENO: checking for u_int type" >&5
20749echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
20750if test "${ac_cv_have_u_int+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20752else
20753
20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760 #include <sys/types.h>
20761int
20762main ()
20763{
20764 u_int a; a = 1;
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769rm -f conftest.$ac_objext
20770if { (ac_try="$ac_compile"
20771case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774esac
20775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest.$ac_objext; then
20786 ac_cv_have_u_int="yes"
20787else
20788 echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 ac_cv_have_u_int="no"
20792
20793fi
20794
20795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796
20797fi
20798{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
20799echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
20800if test "x$ac_cv_have_u_int" = "xyes" ; then
20801
20802cat >>confdefs.h <<\_ACEOF
20803#define HAVE_U_INT 1
20804_ACEOF
20805
20806 have_u_int=1
20807fi
20808
20809{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
20810echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
20811if test "${ac_cv_have_intxx_t+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813else
20814
20815 cat >conftest.$ac_ext <<_ACEOF
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821 #include <sys/types.h>
20822int
20823main ()
20824{
20825 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20826 ;
20827 return 0;
20828}
20829_ACEOF
20830rm -f conftest.$ac_objext
20831if { (ac_try="$ac_compile"
20832case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835esac
20836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_compile") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest.$ac_objext; then
20847 ac_cv_have_intxx_t="yes"
20848else
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 ac_cv_have_intxx_t="no"
20853
20854fi
20855
20856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857
20858fi
20859{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
20860echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
20861if test "x$ac_cv_have_intxx_t" = "xyes" ; then
20862
20863cat >>confdefs.h <<\_ACEOF
20864#define HAVE_INTXX_T 1
20865_ACEOF
20866
20867 have_intxx_t=1
20868fi
20869
20870if (test -z "$have_intxx_t" && \
20871 test "x$ac_cv_header_stdint_h" = "xyes")
20872then
20873 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
20874echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
20881 #include <stdint.h>
20882int
20883main ()
20884{
20885 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (ac_try="$ac_compile"
20892case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_compile") 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest.$ac_objext; then
20907
20908 cat >>confdefs.h <<\_ACEOF
20909#define HAVE_INTXX_T 1
20910_ACEOF
20911
20912 { echo "$as_me:$LINENO: result: yes" >&5
20913echo "${ECHO_T}yes" >&6; }
20914
20915else
20916 echo "$as_me: failed program was:" >&5
20917sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 { echo "$as_me:$LINENO: result: no" >&5
20920echo "${ECHO_T}no" >&6; }
20921
20922fi
20923
20924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925fi
20926
20927{ echo "$as_me:$LINENO: checking for int64_t type" >&5
20928echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
20929if test "${ac_cv_have_int64_t+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932
20933 cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
20939
20940#include <sys/types.h>
20941#ifdef HAVE_STDINT_H
20942# include <stdint.h>
20943#endif
20944#include <sys/socket.h>
20945#ifdef HAVE_SYS_BITYPES_H
20946# include <sys/bitypes.h>
20947#endif
20948
20949int
20950main ()
20951{
20952 int64_t a; a = 1;
20953 ;
20954 return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext
20958if { (ac_try="$ac_compile"
20959case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_cv_have_int64_t="yes"
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979 ac_cv_have_int64_t="no"
20980
20981fi
20982
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984
20985fi
20986{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
20987echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
20988if test "x$ac_cv_have_int64_t" = "xyes" ; then
20989
20990cat >>confdefs.h <<\_ACEOF
20991#define HAVE_INT64_T 1
20992_ACEOF
20993
20994fi
20995
20996{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
20997echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
20998if test "${ac_cv_have_u_intxx_t+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001
21002 cat >conftest.$ac_ext <<_ACEOF
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008 #include <sys/types.h>
21009int
21010main ()
21011{
21012 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21013 ;
21014 return 0;
21015}
21016_ACEOF
21017rm -f conftest.$ac_objext
21018if { (ac_try="$ac_compile"
21019case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022esac
21023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest.$ac_objext; then
21034 ac_cv_have_u_intxx_t="yes"
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 ac_cv_have_u_intxx_t="no"
21040
21041fi
21042
21043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044
21045fi
21046{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
21047echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
21048if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
21049
21050cat >>confdefs.h <<\_ACEOF
21051#define HAVE_U_INTXX_T 1
21052_ACEOF
21053
21054 have_u_intxx_t=1
21055fi
21056
21057if test -z "$have_u_intxx_t" ; then
21058 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
21059echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
21060 cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066 #include <sys/socket.h>
21067int
21068main ()
21069{
21070 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (ac_try="$ac_compile"
21077case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080esac
21081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092
21093 cat >>confdefs.h <<\_ACEOF
21094#define HAVE_U_INTXX_T 1
21095_ACEOF
21096
21097 { echo "$as_me:$LINENO: result: yes" >&5
21098echo "${ECHO_T}yes" >&6; }
21099
21100else
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 { echo "$as_me:$LINENO: result: no" >&5
21105echo "${ECHO_T}no" >&6; }
21106
21107fi
21108
21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110fi
21111
21112{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21113echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21114if test "${ac_cv_have_u_int64_t+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21116else
21117
21118 cat >conftest.$ac_ext <<_ACEOF
21119/* confdefs.h. */
21120_ACEOF
21121cat confdefs.h >>conftest.$ac_ext
21122cat >>conftest.$ac_ext <<_ACEOF
21123/* end confdefs.h. */
21124 #include <sys/types.h>
21125int
21126main ()
21127{
21128 u_int64_t a; a = 1;
21129 ;
21130 return 0;
21131}
21132_ACEOF
21133rm -f conftest.$ac_objext
21134if { (ac_try="$ac_compile"
21135case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21150 ac_cv_have_u_int64_t="yes"
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_cv_have_u_int64_t="no"
21156
21157fi
21158
21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160
21161fi
21162{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21163echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21164if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21165
21166cat >>confdefs.h <<\_ACEOF
21167#define HAVE_U_INT64_T 1
21168_ACEOF
21169
21170 have_u_int64_t=1
21171fi
21172
21173if test -z "$have_u_int64_t" ; then
21174 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21175echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21176 cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
21182 #include <sys/bitypes.h>
21183int
21184main ()
21185{
21186 u_int64_t a; a = 1
21187 ;
21188 return 0;
21189}
21190_ACEOF
21191rm -f conftest.$ac_objext
21192if { (ac_try="$ac_compile"
21193case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196esac
21197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208
21209 cat >>confdefs.h <<\_ACEOF
21210#define HAVE_U_INT64_T 1
21211_ACEOF
21212
21213 { echo "$as_me:$LINENO: result: yes" >&5
21214echo "${ECHO_T}yes" >&6; }
21215
21216else
21217 echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 { echo "$as_me:$LINENO: result: no" >&5
21221echo "${ECHO_T}no" >&6; }
21222
21223fi
21224
21225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226fi
21227
21228if test -z "$have_u_intxx_t" ; then
21229 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
21230echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
21231if test "${ac_cv_have_uintxx_t+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233else
21234
21235 cat >conftest.$ac_ext <<_ACEOF
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h. */
21241
21242#include <sys/types.h>
21243
21244int
21245main ()
21246{
21247 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (ac_try="$ac_compile"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257esac
21258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_compile") 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest.$ac_objext; then
21269 ac_cv_have_uintxx_t="yes"
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ac_cv_have_uintxx_t="no"
21275
21276fi
21277
21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279
21280fi
21281{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
21282echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
21283 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
21284
21285cat >>confdefs.h <<\_ACEOF
21286#define HAVE_UINTXX_T 1
21287_ACEOF
21288
21289 fi
21290fi
21291
21292if test -z "$have_uintxx_t" ; then
21293 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
21294echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h. */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h. */
21301 #include <stdint.h>
21302int
21303main ()
21304{
21305 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext
21311if { (ac_try="$ac_compile"
21312case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315esac
21316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_compile") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest.$ac_objext; then
21327
21328 cat >>confdefs.h <<\_ACEOF
21329#define HAVE_UINTXX_T 1
21330_ACEOF
21331
21332 { echo "$as_me:$LINENO: result: yes" >&5
21333echo "${ECHO_T}yes" >&6; }
21334
21335else
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 { echo "$as_me:$LINENO: result: no" >&5
21340echo "${ECHO_T}no" >&6; }
21341
21342fi
21343
21344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345fi
21346
21347if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
21348 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
21349then
21350 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
21351echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21353/* confdefs.h. */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h. */
21358
21359#include <sys/bitypes.h>
21360
21361int
21362main ()
21363{
21364
21365 int8_t a; int16_t b; int32_t c;
21366 u_int8_t e; u_int16_t f; u_int32_t g;
21367 a = b = c = e = f = g = 1;
21368
21369 ;
21370 return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (ac_try="$ac_compile"
21375case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378esac
21379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392#define HAVE_U_INTXX_T 1
21393_ACEOF
21394
21395 cat >>confdefs.h <<\_ACEOF
21396#define HAVE_INTXX_T 1
21397_ACEOF
21398
21399 { echo "$as_me:$LINENO: result: yes" >&5
21400echo "${ECHO_T}yes" >&6; }
21401
21402else
21403 echo "$as_me: failed program was:" >&5
21404sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 { echo "$as_me:$LINENO: result: no" >&5
21407echo "${ECHO_T}no" >&6; }
21408
21409fi
21410
21411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412fi
21413
21414
21415{ echo "$as_me:$LINENO: checking for u_char" >&5
21416echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
21417if test "${ac_cv_have_u_char+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419else
21420
21421 cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427
21428#include <sys/types.h>
21429
21430int
21431main ()
21432{
21433 u_char foo; foo = 125;
21434 ;
21435 return 0;
21436}
21437_ACEOF
21438rm -f conftest.$ac_objext
21439if { (ac_try="$ac_compile"
21440case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21443esac
21444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21455 ac_cv_have_u_char="yes"
21456else
21457 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ac_cv_have_u_char="no"
21461
21462fi
21463
21464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465
21466fi
21467{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
21468echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
21469if test "x$ac_cv_have_u_char" = "xyes" ; then
21470
21471cat >>confdefs.h <<\_ACEOF
21472#define HAVE_U_CHAR 1
21473_ACEOF
21474
21475fi
21476
21477
21478 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21479echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21480if test "${ac_cv_type_socklen_t+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482else
21483 cat >conftest.$ac_ext <<_ACEOF
21484/* confdefs.h. */
21485_ACEOF
21486cat confdefs.h >>conftest.$ac_ext
21487cat >>conftest.$ac_ext <<_ACEOF
21488/* end confdefs.h. */
21489#include <sys/types.h>
21490#include <sys/socket.h>
21491
21492typedef socklen_t ac__type_new_;
21493int
21494main ()
21495{
21496if ((ac__type_new_ *) 0)
21497 return 0;
21498if (sizeof (ac__type_new_))
21499 return 0;
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext
21505if { (ac_try="$ac_compile"
21506case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509esac
21510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_cv_type_socklen_t=yes
21522else
21523 echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_cv_type_socklen_t=no
21527fi
21528
21529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530fi
21531{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21532echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21533if test $ac_cv_type_socklen_t = yes; then
21534 :
21535else
21536
21537 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
21538echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
21539 if test "${curl_cv_socklen_t_equiv+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542
21543 # Systems have either "struct sockaddr *" or
21544 # "void *" as the second argument to getpeername
21545 curl_cv_socklen_t_equiv=
21546 for arg2 in "struct sockaddr" void; do
21547 for t in int size_t unsigned long "unsigned long"; do
21548 cat >conftest.$ac_ext <<_ACEOF
21549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
21554
21555 #include <sys/types.h>
21556 #include <sys/socket.h>
21557
21558 int getpeername (int, $arg2 *, $t *);
21559
21560int
21561main ()
21562{
21563
21564 $t len;
21565 getpeername(0,0,&len);
21566
21567 ;
21568 return 0;
21569}
21570_ACEOF
21571rm -f conftest.$ac_objext
21572if { (ac_try="$ac_compile"
21573case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576esac
21577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588
21589 curl_cv_socklen_t_equiv="$t"
21590 break
21591
21592else
21593 echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596
21597fi
21598
21599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 done
21601 done
21602
21603 if test "x$curl_cv_socklen_t_equiv" = x; then
21604 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
21605echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
21606 { (exit 1); exit 1; }; }
21607 fi
21608
21609fi
21610
21611 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
21612echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
21613
21614cat >>confdefs.h <<_ACEOF
21615#define socklen_t $curl_cv_socklen_t_equiv
21616_ACEOF
21617
21618fi
21619
21620
21621
21622{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21623echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
21624if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626else
21627 cat >conftest.$ac_ext <<_ACEOF
21628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
21633#include <signal.h>
21634
21635typedef sig_atomic_t ac__type_new_;
21636int
21637main ()
21638{
21639if ((ac__type_new_ *) 0)
21640 return 0;
21641if (sizeof (ac__type_new_))
21642 return 0;
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest.$ac_objext
21648if { (ac_try="$ac_compile"
21649case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652esac
21653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_compile") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest.$ac_objext; then
21664 ac_cv_type_sig_atomic_t=yes
21665else
21666 echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ac_cv_type_sig_atomic_t=no
21670fi
21671
21672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673fi
21674{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21675echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
21676if test $ac_cv_type_sig_atomic_t = yes; then
21677
21678cat >>confdefs.h <<_ACEOF
21679#define HAVE_SIG_ATOMIC_T 1
21680_ACEOF
21681
21682
21683fi
21684
21685{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
21686echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
21687if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690 cat >conftest.$ac_ext <<_ACEOF
21691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
21621
21696
21697#include <sys/types.h>
21698#ifdef HAVE_SYS_BITYPES_H
21699#include <sys/bitypes.h>
21700#endif
21701#ifdef HAVE_SYS_STATFS_H
21702#include <sys/statfs.h>
21703#endif
21704#ifdef HAVE_SYS_STATVFS_H
21705#include <sys/statvfs.h>
21706#endif
21707
21708
21709typedef fsblkcnt_t ac__type_new_;
21710int
21711main ()
21712{
21713if ((ac__type_new_ *) 0)
21714 return 0;
21715if (sizeof (ac__type_new_))
21716 return 0;
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext
21722if { (ac_try="$ac_compile"
21723case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_cv_type_fsblkcnt_t=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_cv_type_fsblkcnt_t=no
21744fi
21745
21746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747fi
21748{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
21749echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
21750if test $ac_cv_type_fsblkcnt_t = yes; then
21751
21752cat >>confdefs.h <<_ACEOF
21753#define HAVE_FSBLKCNT_T 1
21754_ACEOF
21755
21756
21757fi
21758{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
21759echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
21760if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763 cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769
21770#include <sys/types.h>
21771#ifdef HAVE_SYS_BITYPES_H
21772#include <sys/bitypes.h>
21773#endif
21774#ifdef HAVE_SYS_STATFS_H
21775#include <sys/statfs.h>
21776#endif
21777#ifdef HAVE_SYS_STATVFS_H
21778#include <sys/statvfs.h>
21779#endif
21780
21781
21782typedef fsfilcnt_t ac__type_new_;
21783int
21784main ()
21785{
21786if ((ac__type_new_ *) 0)
21787 return 0;
21788if (sizeof (ac__type_new_))
21789 return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
21795if { (ac_try="$ac_compile"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 ac_cv_type_fsfilcnt_t=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_cv_type_fsfilcnt_t=no
21817fi
21818
21819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820fi
21821{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
21822echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
21823if test $ac_cv_type_fsfilcnt_t = yes; then
21824
21825cat >>confdefs.h <<_ACEOF
21826#define HAVE_FSFILCNT_T 1
21827_ACEOF
21828
21829
21830fi
21831
21832
21622{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21623echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
21624if test "${ac_cv_type_in_addr_t+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626else
21627 cat >conftest.$ac_ext <<_ACEOF
21628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
21633#include <sys/types.h>
21634#include <netinet/in.h>
21635
21636typedef in_addr_t ac__type_new_;
21637int
21638main ()
21639{
21640if ((ac__type_new_ *) 0)
21641 return 0;
21642if (sizeof (ac__type_new_))
21643 return 0;
21644 ;
21645 return 0;
21646}
21647_ACEOF
21648rm -f conftest.$ac_objext
21649if { (ac_try="$ac_compile"
21650case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21653esac
21654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_compile") 2>conftest.er1
21656 ac_status=$?
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } && {
21662 test -z "$ac_c_werror_flag" ||
21663 test ! -s conftest.err
21664 } && test -s conftest.$ac_objext; then
21665 ac_cv_type_in_addr_t=yes
21666else
21667 echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 ac_cv_type_in_addr_t=no
21671fi
21672
21673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21674fi
21675{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21676echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21677if test $ac_cv_type_in_addr_t = yes; then
21678
21679cat >>confdefs.h <<_ACEOF
21680#define HAVE_IN_ADDR_T 1
21681_ACEOF
21682
21683
21684fi
21685
21686
21687{ echo "$as_me:$LINENO: checking for size_t" >&5
21688echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21689if test "${ac_cv_have_size_t+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21691else
21692
21693 cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
21699
21700#include <sys/types.h>
21701
21702int
21703main ()
21704{
21705 size_t foo; foo = 1235;
21706 ;
21707 return 0;
21708}
21709_ACEOF
21710rm -f conftest.$ac_objext
21711if { (ac_try="$ac_compile"
21712case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715esac
21716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_compile") 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest.$ac_objext; then
21727 ac_cv_have_size_t="yes"
21728else
21729 echo "$as_me: failed program was:" >&5
21730sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 ac_cv_have_size_t="no"
21733
21734fi
21735
21736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737
21738fi
21739{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
21740echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
21741if test "x$ac_cv_have_size_t" = "xyes" ; then
21742
21743cat >>confdefs.h <<\_ACEOF
21744#define HAVE_SIZE_T 1
21745_ACEOF
21746
21747fi
21748
21749{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21750echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21751if test "${ac_cv_have_ssize_t+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21753else
21754
21755 cat >conftest.$ac_ext <<_ACEOF
21756/* confdefs.h. */
21757_ACEOF
21758cat confdefs.h >>conftest.$ac_ext
21759cat >>conftest.$ac_ext <<_ACEOF
21760/* end confdefs.h. */
21761
21762#include <sys/types.h>
21763
21764int
21765main ()
21766{
21767 ssize_t foo; foo = 1235;
21768 ;
21769 return 0;
21770}
21771_ACEOF
21772rm -f conftest.$ac_objext
21773if { (ac_try="$ac_compile"
21774case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777esac
21778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_compile") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && {
21786 test -z "$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 } && test -s conftest.$ac_objext; then
21789 ac_cv_have_ssize_t="yes"
21790else
21791 echo "$as_me: failed program was:" >&5
21792sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ac_cv_have_ssize_t="no"
21795
21796fi
21797
21798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799
21800fi
21801{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
21802echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
21803if test "x$ac_cv_have_ssize_t" = "xyes" ; then
21804
21805cat >>confdefs.h <<\_ACEOF
21806#define HAVE_SSIZE_T 1
21807_ACEOF
21808
21809fi
21810
21811{ echo "$as_me:$LINENO: checking for clock_t" >&5
21812echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
21813if test "${ac_cv_have_clock_t+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816
21817 cat >conftest.$ac_ext <<_ACEOF
21818/* confdefs.h. */
21819_ACEOF
21820cat confdefs.h >>conftest.$ac_ext
21821cat >>conftest.$ac_ext <<_ACEOF
21822/* end confdefs.h. */
21823
21824#include <time.h>
21825
21826int
21827main ()
21828{
21829 clock_t foo; foo = 1235;
21830 ;
21831 return 0;
21832}
21833_ACEOF
21834rm -f conftest.$ac_objext
21835if { (ac_try="$ac_compile"
21836case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839esac
21840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_cv_have_clock_t="yes"
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ac_cv_have_clock_t="no"
21857
21858fi
21859
21860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861
21862fi
21863{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
21864echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
21865if test "x$ac_cv_have_clock_t" = "xyes" ; then
21866
21867cat >>confdefs.h <<\_ACEOF
21868#define HAVE_CLOCK_T 1
21869_ACEOF
21870
21871fi
21872
21873{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
21874echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
21875if test "${ac_cv_have_sa_family_t+set}" = set; then
21876 echo $ECHO_N "(cached) $ECHO_C" >&6
21877else
21878
21879 cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885
21886#include <sys/types.h>
21887#include <sys/socket.h>
21888
21889int
21890main ()
21891{
21892 sa_family_t foo; foo = 1235;
21893 ;
21894 return 0;
21895}
21896_ACEOF
21897rm -f conftest.$ac_objext
21898if { (ac_try="$ac_compile"
21899case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21902esac
21903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_compile") 2>conftest.er1
21905 ac_status=$?
21906 grep -v '^ *+' conftest.er1 >conftest.err
21907 rm -f conftest.er1
21908 cat conftest.err >&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest.$ac_objext; then
21914 ac_cv_have_sa_family_t="yes"
21915else
21916 echo "$as_me: failed program was:" >&5
21917sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 cat >conftest.$ac_ext <<_ACEOF
21920/* confdefs.h. */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h. */
21925
21926#include <sys/types.h>
21927#include <sys/socket.h>
21928#include <netinet/in.h>
21929
21930int
21931main ()
21932{
21933 sa_family_t foo; foo = 1235;
21934 ;
21935 return 0;
21936}
21937_ACEOF
21938rm -f conftest.$ac_objext
21939if { (ac_try="$ac_compile"
21940case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21943esac
21944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_compile") 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.$ac_objext; then
21955 ac_cv_have_sa_family_t="yes"
21956else
21957 echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960 ac_cv_have_sa_family_t="no"
21961
21962fi
21963
21964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965
21966fi
21967
21968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969
21970fi
21971{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
21972echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
21973if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
21974
21975cat >>confdefs.h <<\_ACEOF
21976#define HAVE_SA_FAMILY_T 1
21977_ACEOF
21978
21979fi
21980
21981{ echo "$as_me:$LINENO: checking for pid_t" >&5
21982echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21983if test "${ac_cv_have_pid_t+set}" = set; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21985else
21986
21987 cat >conftest.$ac_ext <<_ACEOF
21988/* confdefs.h. */
21989_ACEOF
21990cat confdefs.h >>conftest.$ac_ext
21991cat >>conftest.$ac_ext <<_ACEOF
21992/* end confdefs.h. */
21993
21994#include <sys/types.h>
21995
21996int
21997main ()
21998{
21999 pid_t foo; foo = 1235;
22000 ;
22001 return 0;
22002}
22003_ACEOF
22004rm -f conftest.$ac_objext
22005if { (ac_try="$ac_compile"
22006case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009esac
22010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021 ac_cv_have_pid_t="yes"
22022else
22023 echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026 ac_cv_have_pid_t="no"
22027
22028fi
22029
22030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031
22032fi
22033{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
22034echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
22035if test "x$ac_cv_have_pid_t" = "xyes" ; then
22036
22037cat >>confdefs.h <<\_ACEOF
22038#define HAVE_PID_T 1
22039_ACEOF
22040
22041fi
22042
22043{ echo "$as_me:$LINENO: checking for mode_t" >&5
22044echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22045if test "${ac_cv_have_mode_t+set}" = set; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22047else
22048
22049 cat >conftest.$ac_ext <<_ACEOF
22050/* confdefs.h. */
22051_ACEOF
22052cat confdefs.h >>conftest.$ac_ext
22053cat >>conftest.$ac_ext <<_ACEOF
22054/* end confdefs.h. */
22055
22056#include <sys/types.h>
22057
22058int
22059main ()
22060{
22061 mode_t foo; foo = 1235;
22062 ;
22063 return 0;
22064}
22065_ACEOF
22066rm -f conftest.$ac_objext
22067if { (ac_try="$ac_compile"
22068case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071esac
22072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22074 ac_status=$?
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22083 ac_cv_have_mode_t="yes"
22084else
22085 echo "$as_me: failed program was:" >&5
22086sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_cv_have_mode_t="no"
22089
22090fi
22091
22092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093
22094fi
22095{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
22096echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
22097if test "x$ac_cv_have_mode_t" = "xyes" ; then
22098
22099cat >>confdefs.h <<\_ACEOF
22100#define HAVE_MODE_T 1
22101_ACEOF
22102
22103fi
22104
22105
22106{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22107echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22108if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22110else
22111
22112 cat >conftest.$ac_ext <<_ACEOF
22113/* confdefs.h. */
22114_ACEOF
22115cat confdefs.h >>conftest.$ac_ext
22116cat >>conftest.$ac_ext <<_ACEOF
22117/* end confdefs.h. */
22118
22119#include <sys/types.h>
22120#include <sys/socket.h>
22121
22122int
22123main ()
22124{
22125 struct sockaddr_storage s;
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext
22131if { (ac_try="$ac_compile"
22132case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22135esac
22136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_compile") 2>conftest.er1
22138 ac_status=$?
22139 grep -v '^ *+' conftest.er1 >conftest.err
22140 rm -f conftest.er1
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest.$ac_objext; then
22147 ac_cv_have_struct_sockaddr_storage="yes"
22148else
22149 echo "$as_me: failed program was:" >&5
22150sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ac_cv_have_struct_sockaddr_storage="no"
22153
22154fi
22155
22156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157
22158fi
22159{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
22160echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
22161if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
22162
22163cat >>confdefs.h <<\_ACEOF
22164#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22165_ACEOF
22166
22167fi
22168
22169{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22170echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22171if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22173else
22174
22175 cat >conftest.$ac_ext <<_ACEOF
22176/* confdefs.h. */
22177_ACEOF
22178cat confdefs.h >>conftest.$ac_ext
22179cat >>conftest.$ac_ext <<_ACEOF
22180/* end confdefs.h. */
22181
22182#include <sys/types.h>
22183#include <netinet/in.h>
22184
22185int
22186main ()
22187{
22188 struct sockaddr_in6 s; s.sin6_family = 0;
22189 ;
22190 return 0;
22191}
22192_ACEOF
22193rm -f conftest.$ac_objext
22194if { (ac_try="$ac_compile"
22195case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22198esac
22199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 ac_cv_have_struct_sockaddr_in6="yes"
22211else
22212 echo "$as_me: failed program was:" >&5
22213sed 's/^/| /' conftest.$ac_ext >&5
22214
22215 ac_cv_have_struct_sockaddr_in6="no"
22216
22217fi
22218
22219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220
22221fi
22222{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
22223echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
22224if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
22225
22226cat >>confdefs.h <<\_ACEOF
22227#define HAVE_STRUCT_SOCKADDR_IN6 1
22228_ACEOF
22229
22230fi
22231
22232{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22233echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22234if test "${ac_cv_have_struct_in6_addr+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236else
22237
22238 cat >conftest.$ac_ext <<_ACEOF
22239/* confdefs.h. */
22240_ACEOF
22241cat confdefs.h >>conftest.$ac_ext
22242cat >>conftest.$ac_ext <<_ACEOF
22243/* end confdefs.h. */
22244
22245#include <sys/types.h>
22246#include <netinet/in.h>
22247
22248int
22249main ()
22250{
22251 struct in6_addr s; s.s6_addr[0] = 0;
22252 ;
22253 return 0;
22254}
22255_ACEOF
22256rm -f conftest.$ac_objext
22257if { (ac_try="$ac_compile"
22258case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261esac
22262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22273 ac_cv_have_struct_in6_addr="yes"
22274else
22275 echo "$as_me: failed program was:" >&5
22276sed 's/^/| /' conftest.$ac_ext >&5
22277
22278 ac_cv_have_struct_in6_addr="no"
22279
22280fi
22281
22282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283
22284fi
22285{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
22286echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
22287if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
22288
22289cat >>confdefs.h <<\_ACEOF
22290#define HAVE_STRUCT_IN6_ADDR 1
22291_ACEOF
22292
22293fi
22294
22295{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22296echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
22297if test "${ac_cv_have_struct_addrinfo+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22299else
22300
22301 cat >conftest.$ac_ext <<_ACEOF
22302/* confdefs.h. */
22303_ACEOF
22304cat confdefs.h >>conftest.$ac_ext
22305cat >>conftest.$ac_ext <<_ACEOF
22306/* end confdefs.h. */
22307
22308#include <sys/types.h>
22309#include <sys/socket.h>
22310#include <netdb.h>
22311
22312int
22313main ()
22314{
22315 struct addrinfo s; s.ai_flags = AI_PASSIVE;
22316 ;
22317 return 0;
22318}
22319_ACEOF
22320rm -f conftest.$ac_objext
22321if { (ac_try="$ac_compile"
22322case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325esac
22326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_compile") 2>conftest.er1
22328 ac_status=$?
22329 grep -v '^ *+' conftest.er1 >conftest.err
22330 rm -f conftest.er1
22331 cat conftest.err >&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } && {
22334 test -z "$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 } && test -s conftest.$ac_objext; then
22337 ac_cv_have_struct_addrinfo="yes"
22338else
22339 echo "$as_me: failed program was:" >&5
22340sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 ac_cv_have_struct_addrinfo="no"
22343
22344fi
22345
22346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347
22348fi
22349{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
22350echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
22351if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
22352
22353cat >>confdefs.h <<\_ACEOF
22354#define HAVE_STRUCT_ADDRINFO 1
22355_ACEOF
22356
22357fi
22358
22359{ echo "$as_me:$LINENO: checking for struct timeval" >&5
22360echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
22361if test "${ac_cv_have_struct_timeval+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363else
22364
22365 cat >conftest.$ac_ext <<_ACEOF
22366/* confdefs.h. */
22367_ACEOF
22368cat confdefs.h >>conftest.$ac_ext
22369cat >>conftest.$ac_ext <<_ACEOF
22370/* end confdefs.h. */
22371 #include <sys/time.h>
22372int
22373main ()
22374{
22375 struct timeval tv; tv.tv_sec = 1;
22376 ;
22377 return 0;
22378}
22379_ACEOF
22380rm -f conftest.$ac_objext
22381if { (ac_try="$ac_compile"
22382case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22385esac
22386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_compile") 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && {
22394 test -z "$ac_c_werror_flag" ||
22395 test ! -s conftest.err
22396 } && test -s conftest.$ac_objext; then
22397 ac_cv_have_struct_timeval="yes"
22398else
22399 echo "$as_me: failed program was:" >&5
22400sed 's/^/| /' conftest.$ac_ext >&5
22401
22402 ac_cv_have_struct_timeval="no"
22403
22404fi
22405
22406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407
22408fi
22409{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
22410echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
22411if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
22412
22413cat >>confdefs.h <<\_ACEOF
22414#define HAVE_STRUCT_TIMEVAL 1
22415_ACEOF
22416
22417 have_struct_timeval=1
22418fi
22419
22420{ echo "$as_me:$LINENO: checking for struct timespec" >&5
22421echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
22422if test "${ac_cv_type_struct_timespec+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22424else
22425 cat >conftest.$ac_ext <<_ACEOF
22426/* confdefs.h. */
22427_ACEOF
22428cat confdefs.h >>conftest.$ac_ext
22429cat >>conftest.$ac_ext <<_ACEOF
22430/* end confdefs.h. */
22431$ac_includes_default
22432typedef struct timespec ac__type_new_;
22433int
22434main ()
22435{
22436if ((ac__type_new_ *) 0)
22437 return 0;
22438if (sizeof (ac__type_new_))
22439 return 0;
22440 ;
22441 return 0;
22442}
22443_ACEOF
22444rm -f conftest.$ac_objext
22445if { (ac_try="$ac_compile"
22446case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449esac
22450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.$ac_objext; then
22461 ac_cv_type_struct_timespec=yes
22462else
22463 echo "$as_me: failed program was:" >&5
22464sed 's/^/| /' conftest.$ac_ext >&5
22465
22466 ac_cv_type_struct_timespec=no
22467fi
22468
22469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470fi
22471{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
22472echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
22473if test $ac_cv_type_struct_timespec = yes; then
22474
22475cat >>confdefs.h <<_ACEOF
22476#define HAVE_STRUCT_TIMESPEC 1
22477_ACEOF
22478
22479
22480fi
22481
22482
22483# We need int64_t or else certian parts of the compile will fail.
22484if test "x$ac_cv_have_int64_t" = "xno" && \
22485 test "x$ac_cv_sizeof_long_int" != "x8" && \
22486 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
22487 echo "OpenSSH requires int64_t support. Contact your vendor or install"
22488 echo "an alternative compiler (I.E., GCC) before continuing."
22489 echo ""
22490 exit 1;
22491else
22492 if test "$cross_compiling" = yes; then
22493 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
22494echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
22495
22496else
22497 cat >conftest.$ac_ext <<_ACEOF
22498/* confdefs.h. */
22499_ACEOF
22500cat confdefs.h >>conftest.$ac_ext
22501cat >>conftest.$ac_ext <<_ACEOF
22502/* end confdefs.h. */
22503
22504#include <stdio.h>
22505#include <string.h>
22506#ifdef HAVE_SNPRINTF
22507main()
22508{
22509 char buf[50];
22510 char expected_out[50];
22511 int mazsize = 50 ;
22512#if (SIZEOF_LONG_INT == 8)
22513 long int num = 0x7fffffffffffffff;
22514#else
22515 long long num = 0x7fffffffffffffffll;
22516#endif
22517 strcpy(expected_out, "9223372036854775807");
22518 snprintf(buf, mazsize, "%lld", num);
22519 if(strcmp(buf, expected_out) != 0)
22520 exit(1);
22521 exit(0);
22522}
22523#else
22524main() { exit(0); }
22525#endif
22526
22527_ACEOF
22528rm -f conftest$ac_exeext
22529if { (ac_try="$ac_link"
22530case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533esac
22534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_link") 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539 { (case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542esac
22543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_try") 2>&5
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 true
22549else
22550 echo "$as_me: program exited with status $ac_status" >&5
22551echo "$as_me: failed program was:" >&5
22552sed 's/^/| /' conftest.$ac_ext >&5
22553
22554( exit $ac_status )
22555 cat >>confdefs.h <<\_ACEOF
22556#define BROKEN_SNPRINTF 1
22557_ACEOF
22558
22559fi
22560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22561fi
22562
22563
22564fi
22565
22566
22567# look for field 'ut_host' in header 'utmp.h'
22568 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22569 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22570 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
22571echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
22572 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574else
22575
22576 cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582#include <utmp.h>
22583
22584_ACEOF
22585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22586 $EGREP "ut_host" >/dev/null 2>&1; then
22587 eval "$ossh_varname=yes"
22588else
22589 eval "$ossh_varname=no"
22590fi
22591rm -f conftest*
22592
22593fi
22594
22595 ossh_result=`eval 'echo $'"$ossh_varname"`
22596 if test -n "`echo $ossh_varname`"; then
22597 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22598echo "${ECHO_T}$ossh_result" >&6; }
22599 if test "x$ossh_result" = "xyes"; then
22600
22601cat >>confdefs.h <<\_ACEOF
22602#define HAVE_HOST_IN_UTMP 1
22603_ACEOF
22604
22605 fi
22606 else
22607 { echo "$as_me:$LINENO: result: no" >&5
22608echo "${ECHO_T}no" >&6; }
22609 fi
22610
22611
22612# look for field 'ut_host' in header 'utmpx.h'
22613 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22614 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22615 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
22616echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
22617 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22619else
22620
22621 cat >conftest.$ac_ext <<_ACEOF
22622/* confdefs.h. */
22623_ACEOF
22624cat confdefs.h >>conftest.$ac_ext
22625cat >>conftest.$ac_ext <<_ACEOF
22626/* end confdefs.h. */
22627#include <utmpx.h>
22628
22629_ACEOF
22630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22631 $EGREP "ut_host" >/dev/null 2>&1; then
22632 eval "$ossh_varname=yes"
22633else
22634 eval "$ossh_varname=no"
22635fi
22636rm -f conftest*
22637
22638fi
22639
22640 ossh_result=`eval 'echo $'"$ossh_varname"`
22641 if test -n "`echo $ossh_varname`"; then
22642 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22643echo "${ECHO_T}$ossh_result" >&6; }
22644 if test "x$ossh_result" = "xyes"; then
22645
22646cat >>confdefs.h <<\_ACEOF
22647#define HAVE_HOST_IN_UTMPX 1
22648_ACEOF
22649
22650 fi
22651 else
22652 { echo "$as_me:$LINENO: result: no" >&5
22653echo "${ECHO_T}no" >&6; }
22654 fi
22655
22656
22657# look for field 'syslen' in header 'utmpx.h'
22658 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22659 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
22660 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
22661echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
22662 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22664else
22665
22666 cat >conftest.$ac_ext <<_ACEOF
22667/* confdefs.h. */
22668_ACEOF
22669cat confdefs.h >>conftest.$ac_ext
22670cat >>conftest.$ac_ext <<_ACEOF
22671/* end confdefs.h. */
22672#include <utmpx.h>
22673
22674_ACEOF
22675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22676 $EGREP "syslen" >/dev/null 2>&1; then
22677 eval "$ossh_varname=yes"
22678else
22679 eval "$ossh_varname=no"
22680fi
22681rm -f conftest*
22682
22683fi
22684
22685 ossh_result=`eval 'echo $'"$ossh_varname"`
22686 if test -n "`echo $ossh_varname`"; then
22687 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22688echo "${ECHO_T}$ossh_result" >&6; }
22689 if test "x$ossh_result" = "xyes"; then
22690
22691cat >>confdefs.h <<\_ACEOF
22692#define HAVE_SYSLEN_IN_UTMPX 1
22693_ACEOF
22694
22695 fi
22696 else
22697 { echo "$as_me:$LINENO: result: no" >&5
22698echo "${ECHO_T}no" >&6; }
22699 fi
22700
22701
22702# look for field 'ut_pid' in header 'utmp.h'
22703 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22704 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
22705 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
22706echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
22707 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22709else
22710
22711 cat >conftest.$ac_ext <<_ACEOF
22712/* confdefs.h. */
22713_ACEOF
22714cat confdefs.h >>conftest.$ac_ext
22715cat >>conftest.$ac_ext <<_ACEOF
22716/* end confdefs.h. */
22717#include <utmp.h>
22718
22719_ACEOF
22720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22721 $EGREP "ut_pid" >/dev/null 2>&1; then
22722 eval "$ossh_varname=yes"
22723else
22724 eval "$ossh_varname=no"
22725fi
22726rm -f conftest*
22727
22728fi
22729
22730 ossh_result=`eval 'echo $'"$ossh_varname"`
22731 if test -n "`echo $ossh_varname`"; then
22732 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22733echo "${ECHO_T}$ossh_result" >&6; }
22734 if test "x$ossh_result" = "xyes"; then
22735
22736cat >>confdefs.h <<\_ACEOF
22737#define HAVE_PID_IN_UTMP 1
22738_ACEOF
22739
22740 fi
22741 else
22742 { echo "$as_me:$LINENO: result: no" >&5
22743echo "${ECHO_T}no" >&6; }
22744 fi
22745
22746
22747# look for field 'ut_type' in header 'utmp.h'
22748 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22749 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22750 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
22751echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
22752 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754else
22755
22756 cat >conftest.$ac_ext <<_ACEOF
22757/* confdefs.h. */
22758_ACEOF
22759cat confdefs.h >>conftest.$ac_ext
22760cat >>conftest.$ac_ext <<_ACEOF
22761/* end confdefs.h. */
22762#include <utmp.h>
22763
22764_ACEOF
22765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22766 $EGREP "ut_type" >/dev/null 2>&1; then
22767 eval "$ossh_varname=yes"
22768else
22769 eval "$ossh_varname=no"
22770fi
22771rm -f conftest*
22772
22773fi
22774
22775 ossh_result=`eval 'echo $'"$ossh_varname"`
22776 if test -n "`echo $ossh_varname`"; then
22777 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22778echo "${ECHO_T}$ossh_result" >&6; }
22779 if test "x$ossh_result" = "xyes"; then
22780
22781cat >>confdefs.h <<\_ACEOF
22782#define HAVE_TYPE_IN_UTMP 1
22783_ACEOF
22784
22785 fi
22786 else
22787 { echo "$as_me:$LINENO: result: no" >&5
22788echo "${ECHO_T}no" >&6; }
22789 fi
22790
22791
22792# look for field 'ut_type' in header 'utmpx.h'
22793 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22794 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22795 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
22796echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
22797 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22798 echo $ECHO_N "(cached) $ECHO_C" >&6
22799else
22800
22801 cat >conftest.$ac_ext <<_ACEOF
22802/* confdefs.h. */
22803_ACEOF
22804cat confdefs.h >>conftest.$ac_ext
22805cat >>conftest.$ac_ext <<_ACEOF
22806/* end confdefs.h. */
22807#include <utmpx.h>
22808
22809_ACEOF
22810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22811 $EGREP "ut_type" >/dev/null 2>&1; then
22812 eval "$ossh_varname=yes"
22813else
22814 eval "$ossh_varname=no"
22815fi
22816rm -f conftest*
22817
22818fi
22819
22820 ossh_result=`eval 'echo $'"$ossh_varname"`
22821 if test -n "`echo $ossh_varname`"; then
22822 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22823echo "${ECHO_T}$ossh_result" >&6; }
22824 if test "x$ossh_result" = "xyes"; then
22825
22826cat >>confdefs.h <<\_ACEOF
22827#define HAVE_TYPE_IN_UTMPX 1
22828_ACEOF
22829
22830 fi
22831 else
22832 { echo "$as_me:$LINENO: result: no" >&5
22833echo "${ECHO_T}no" >&6; }
22834 fi
22835
22836
22837# look for field 'ut_tv' in header 'utmp.h'
22838 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22839 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
22840 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
22841echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
22842 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844else
22845
22846 cat >conftest.$ac_ext <<_ACEOF
22847/* confdefs.h. */
22848_ACEOF
22849cat confdefs.h >>conftest.$ac_ext
22850cat >>conftest.$ac_ext <<_ACEOF
22851/* end confdefs.h. */
22852#include <utmp.h>
22853
22854_ACEOF
22855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22856 $EGREP "ut_tv" >/dev/null 2>&1; then
22857 eval "$ossh_varname=yes"
22858else
22859 eval "$ossh_varname=no"
22860fi
22861rm -f conftest*
22862
22863fi
22864
22865 ossh_result=`eval 'echo $'"$ossh_varname"`
22866 if test -n "`echo $ossh_varname`"; then
22867 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22868echo "${ECHO_T}$ossh_result" >&6; }
22869 if test "x$ossh_result" = "xyes"; then
22870
22871cat >>confdefs.h <<\_ACEOF
22872#define HAVE_TV_IN_UTMP 1
22873_ACEOF
22874
22875 fi
22876 else
22877 { echo "$as_me:$LINENO: result: no" >&5
22878echo "${ECHO_T}no" >&6; }
22879 fi
22880
22881
22882# look for field 'ut_id' in header 'utmp.h'
22883 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22884 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
22885 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
22886echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
22887 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889else
22890
22891 cat >conftest.$ac_ext <<_ACEOF
22892/* confdefs.h. */
22893_ACEOF
22894cat confdefs.h >>conftest.$ac_ext
22895cat >>conftest.$ac_ext <<_ACEOF
22896/* end confdefs.h. */
22897#include <utmp.h>
22898
22899_ACEOF
22900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22901 $EGREP "ut_id" >/dev/null 2>&1; then
22902 eval "$ossh_varname=yes"
22903else
22904 eval "$ossh_varname=no"
22905fi
22906rm -f conftest*
22907
22908fi
22909
22910 ossh_result=`eval 'echo $'"$ossh_varname"`
22911 if test -n "`echo $ossh_varname`"; then
22912 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22913echo "${ECHO_T}$ossh_result" >&6; }
22914 if test "x$ossh_result" = "xyes"; then
22915
22916cat >>confdefs.h <<\_ACEOF
22917#define HAVE_ID_IN_UTMP 1
22918_ACEOF
22919
22920 fi
22921 else
22922 { echo "$as_me:$LINENO: result: no" >&5
22923echo "${ECHO_T}no" >&6; }
22924 fi
22925
22926
22927# look for field 'ut_id' in header 'utmpx.h'
22928 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22929 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
22930 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
22931echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
22932 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22934else
22935
22936 cat >conftest.$ac_ext <<_ACEOF
22937/* confdefs.h. */
22938_ACEOF
22939cat confdefs.h >>conftest.$ac_ext
22940cat >>conftest.$ac_ext <<_ACEOF
22941/* end confdefs.h. */
22942#include <utmpx.h>
22943
22944_ACEOF
22945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22946 $EGREP "ut_id" >/dev/null 2>&1; then
22947 eval "$ossh_varname=yes"
22948else
22949 eval "$ossh_varname=no"
22950fi
22951rm -f conftest*
22952
22953fi
22954
22955 ossh_result=`eval 'echo $'"$ossh_varname"`
22956 if test -n "`echo $ossh_varname`"; then
22957 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22958echo "${ECHO_T}$ossh_result" >&6; }
22959 if test "x$ossh_result" = "xyes"; then
22960
22961cat >>confdefs.h <<\_ACEOF
22962#define HAVE_ID_IN_UTMPX 1
22963_ACEOF
22964
22965 fi
22966 else
22967 { echo "$as_me:$LINENO: result: no" >&5
22968echo "${ECHO_T}no" >&6; }
22969 fi
22970
22971
22972# look for field 'ut_addr' in header 'utmp.h'
22973 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22974 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
22975 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
22976echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
22977 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979else
22980
22981 cat >conftest.$ac_ext <<_ACEOF
22982/* confdefs.h. */
22983_ACEOF
22984cat confdefs.h >>conftest.$ac_ext
22985cat >>conftest.$ac_ext <<_ACEOF
22986/* end confdefs.h. */
22987#include <utmp.h>
22988
22989_ACEOF
22990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22991 $EGREP "ut_addr" >/dev/null 2>&1; then
22992 eval "$ossh_varname=yes"
22993else
22994 eval "$ossh_varname=no"
22995fi
22996rm -f conftest*
22997
22998fi
22999
23000 ossh_result=`eval 'echo $'"$ossh_varname"`
23001 if test -n "`echo $ossh_varname`"; then
23002 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23003echo "${ECHO_T}$ossh_result" >&6; }
23004 if test "x$ossh_result" = "xyes"; then
23005
23006cat >>confdefs.h <<\_ACEOF
23007#define HAVE_ADDR_IN_UTMP 1
23008_ACEOF
23009
23010 fi
23011 else
23012 { echo "$as_me:$LINENO: result: no" >&5
23013echo "${ECHO_T}no" >&6; }
23014 fi
23015
23016
23017# look for field 'ut_addr' in header 'utmpx.h'
23018 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23019 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23020 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
23021echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
23022 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23024else
23025
23026 cat >conftest.$ac_ext <<_ACEOF
23027/* confdefs.h. */
23028_ACEOF
23029cat confdefs.h >>conftest.$ac_ext
23030cat >>conftest.$ac_ext <<_ACEOF
23031/* end confdefs.h. */
23032#include <utmpx.h>
23033
23034_ACEOF
23035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23036 $EGREP "ut_addr" >/dev/null 2>&1; then
23037 eval "$ossh_varname=yes"
23038else
23039 eval "$ossh_varname=no"
23040fi
23041rm -f conftest*
23042
23043fi
23044
23045 ossh_result=`eval 'echo $'"$ossh_varname"`
23046 if test -n "`echo $ossh_varname`"; then
23047 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23048echo "${ECHO_T}$ossh_result" >&6; }
23049 if test "x$ossh_result" = "xyes"; then
23050
23051cat >>confdefs.h <<\_ACEOF
23052#define HAVE_ADDR_IN_UTMPX 1
23053_ACEOF
23054
23055 fi
23056 else
23057 { echo "$as_me:$LINENO: result: no" >&5
23058echo "${ECHO_T}no" >&6; }
23059 fi
23060
23061
23062# look for field 'ut_addr_v6' in header 'utmp.h'
23063 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23064 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23065 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
23066echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
23067 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23069else
23070
23071 cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h. */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h. */
23077#include <utmp.h>
23078
23079_ACEOF
23080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23081 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23082 eval "$ossh_varname=yes"
23083else
23084 eval "$ossh_varname=no"
23085fi
23086rm -f conftest*
23087
23088fi
23089
23090 ossh_result=`eval 'echo $'"$ossh_varname"`
23091 if test -n "`echo $ossh_varname`"; then
23092 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23093echo "${ECHO_T}$ossh_result" >&6; }
23094 if test "x$ossh_result" = "xyes"; then
23095
23096cat >>confdefs.h <<\_ACEOF
23097#define HAVE_ADDR_V6_IN_UTMP 1
23098_ACEOF
23099
23100 fi
23101 else
23102 { echo "$as_me:$LINENO: result: no" >&5
23103echo "${ECHO_T}no" >&6; }
23104 fi
23105
23106
23107# look for field 'ut_addr_v6' in header 'utmpx.h'
23108 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23109 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23110 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
23111echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
23112 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23114else
23115
23116 cat >conftest.$ac_ext <<_ACEOF
23117/* confdefs.h. */
23118_ACEOF
23119cat confdefs.h >>conftest.$ac_ext
23120cat >>conftest.$ac_ext <<_ACEOF
23121/* end confdefs.h. */
23122#include <utmpx.h>
23123
23124_ACEOF
23125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23126 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23127 eval "$ossh_varname=yes"
23128else
23129 eval "$ossh_varname=no"
23130fi
23131rm -f conftest*
23132
23133fi
23134
23135 ossh_result=`eval 'echo $'"$ossh_varname"`
23136 if test -n "`echo $ossh_varname`"; then
23137 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23138echo "${ECHO_T}$ossh_result" >&6; }
23139 if test "x$ossh_result" = "xyes"; then
23140
23141cat >>confdefs.h <<\_ACEOF
23142#define HAVE_ADDR_V6_IN_UTMPX 1
23143_ACEOF
23144
23145 fi
23146 else
23147 { echo "$as_me:$LINENO: result: no" >&5
23148echo "${ECHO_T}no" >&6; }
23149 fi
23150
23151
23152# look for field 'ut_exit' in header 'utmp.h'
23153 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23154 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
23155 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
23156echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
23157 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23159else
23160
23161 cat >conftest.$ac_ext <<_ACEOF
23162/* confdefs.h. */
23163_ACEOF
23164cat confdefs.h >>conftest.$ac_ext
23165cat >>conftest.$ac_ext <<_ACEOF
23166/* end confdefs.h. */
23167#include <utmp.h>
23168
23169_ACEOF
23170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23171 $EGREP "ut_exit" >/dev/null 2>&1; then
23172 eval "$ossh_varname=yes"
23173else
23174 eval "$ossh_varname=no"
23175fi
23176rm -f conftest*
23177
23178fi
23179
23180 ossh_result=`eval 'echo $'"$ossh_varname"`
23181 if test -n "`echo $ossh_varname`"; then
23182 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23183echo "${ECHO_T}$ossh_result" >&6; }
23184 if test "x$ossh_result" = "xyes"; then
23185
23186cat >>confdefs.h <<\_ACEOF
23187#define HAVE_EXIT_IN_UTMP 1
23188_ACEOF
23189
23190 fi
23191 else
23192 { echo "$as_me:$LINENO: result: no" >&5
23193echo "${ECHO_T}no" >&6; }
23194 fi
23195
23196
23197# look for field 'ut_time' in header 'utmp.h'
23198 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23199 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23200 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
23201echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
23202 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204else
23205
23206 cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212#include <utmp.h>
23213
23214_ACEOF
23215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23216 $EGREP "ut_time" >/dev/null 2>&1; then
23217 eval "$ossh_varname=yes"
23218else
23219 eval "$ossh_varname=no"
23220fi
23221rm -f conftest*
23222
23223fi
23224
23225 ossh_result=`eval 'echo $'"$ossh_varname"`
23226 if test -n "`echo $ossh_varname`"; then
23227 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23228echo "${ECHO_T}$ossh_result" >&6; }
23229 if test "x$ossh_result" = "xyes"; then
23230
23231cat >>confdefs.h <<\_ACEOF
23232#define HAVE_TIME_IN_UTMP 1
23233_ACEOF
23234
23235 fi
23236 else
23237 { echo "$as_me:$LINENO: result: no" >&5
23238echo "${ECHO_T}no" >&6; }
23239 fi
23240
23241
23242# look for field 'ut_time' in header 'utmpx.h'
23243 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23244 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23245 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
23246echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
23247 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23249else
23250
23251 cat >conftest.$ac_ext <<_ACEOF
23252/* confdefs.h. */
23253_ACEOF
23254cat confdefs.h >>conftest.$ac_ext
23255cat >>conftest.$ac_ext <<_ACEOF
23256/* end confdefs.h. */
23257#include <utmpx.h>
23258
23259_ACEOF
23260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23261 $EGREP "ut_time" >/dev/null 2>&1; then
23262 eval "$ossh_varname=yes"
23263else
23264 eval "$ossh_varname=no"
23265fi
23266rm -f conftest*
23267
23268fi
23269
23270 ossh_result=`eval 'echo $'"$ossh_varname"`
23271 if test -n "`echo $ossh_varname`"; then
23272 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23273echo "${ECHO_T}$ossh_result" >&6; }
23274 if test "x$ossh_result" = "xyes"; then
23275
23276cat >>confdefs.h <<\_ACEOF
23277#define HAVE_TIME_IN_UTMPX 1
23278_ACEOF
23279
23280 fi
23281 else
23282 { echo "$as_me:$LINENO: result: no" >&5
23283echo "${ECHO_T}no" >&6; }
23284 fi
23285
23286
23287# look for field 'ut_tv' in header 'utmpx.h'
23288 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23289 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23290 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
23291echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
23292 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23294else
23295
23296 cat >conftest.$ac_ext <<_ACEOF
23297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
23302#include <utmpx.h>
23303
23304_ACEOF
23305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23306 $EGREP "ut_tv" >/dev/null 2>&1; then
23307 eval "$ossh_varname=yes"
23308else
23309 eval "$ossh_varname=no"
23310fi
23311rm -f conftest*
23312
23313fi
23314
23315 ossh_result=`eval 'echo $'"$ossh_varname"`
23316 if test -n "`echo $ossh_varname`"; then
23317 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23318echo "${ECHO_T}$ossh_result" >&6; }
23319 if test "x$ossh_result" = "xyes"; then
23320
23321cat >>confdefs.h <<\_ACEOF
23322#define HAVE_TV_IN_UTMPX 1
23323_ACEOF
23324
23325 fi
23326 else
23327 { echo "$as_me:$LINENO: result: no" >&5
23328echo "${ECHO_T}no" >&6; }
23329 fi
23330
23331
23332{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
23333echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
23334if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23336else
23337 cat >conftest.$ac_ext <<_ACEOF
23338/* confdefs.h. */
23339_ACEOF
23340cat confdefs.h >>conftest.$ac_ext
23341cat >>conftest.$ac_ext <<_ACEOF
23342/* end confdefs.h. */
23343$ac_includes_default
23344int
23345main ()
23346{
23347static struct stat ac_aggr;
23348if (ac_aggr.st_blksize)
23349return 0;
23350 ;
23351 return 0;
23352}
23353_ACEOF
23354rm -f conftest.$ac_objext
23355if { (ac_try="$ac_compile"
23356case "(($ac_try" in
23357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358 *) ac_try_echo=$ac_try;;
23359esac
23360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361 (eval "$ac_compile") 2>conftest.er1
23362 ac_status=$?
23363 grep -v '^ *+' conftest.er1 >conftest.err
23364 rm -f conftest.er1
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } && {
23368 test -z "$ac_c_werror_flag" ||
23369 test ! -s conftest.err
23370 } && test -s conftest.$ac_objext; then
23371 ac_cv_member_struct_stat_st_blksize=yes
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
23376 cat >conftest.$ac_ext <<_ACEOF
23377/* confdefs.h. */
23378_ACEOF
23379cat confdefs.h >>conftest.$ac_ext
23380cat >>conftest.$ac_ext <<_ACEOF
23381/* end confdefs.h. */
23382$ac_includes_default
23383int
23384main ()
23385{
23386static struct stat ac_aggr;
23387if (sizeof ac_aggr.st_blksize)
23388return 0;
23389 ;
23390 return 0;
23391}
23392_ACEOF
23393rm -f conftest.$ac_objext
23394if { (ac_try="$ac_compile"
23395case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398esac
23399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 ac_cv_member_struct_stat_st_blksize=yes
23411else
23412 echo "$as_me: failed program was:" >&5
23413sed 's/^/| /' conftest.$ac_ext >&5
23414
23415 ac_cv_member_struct_stat_st_blksize=no
23416fi
23417
23418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419fi
23420
23421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23422fi
23423{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
23424echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
23425if test $ac_cv_member_struct_stat_st_blksize = yes; then
23426
23427cat >>confdefs.h <<_ACEOF
23428#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23429_ACEOF
23430
23431
23432fi
23433
23434{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
23435echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
23436if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23438else
23439 cat >conftest.$ac_ext <<_ACEOF
23440/* confdefs.h. */
23441_ACEOF
23442cat confdefs.h >>conftest.$ac_ext
23443cat >>conftest.$ac_ext <<_ACEOF
23444/* end confdefs.h. */
23445
23446#include <stdio.h>
23447#if HAVE_SYS_TYPES_H
23448# include <sys/types.h>
23449#endif
23450#include <netinet/in.h>
23451#include <arpa/nameser.h>
23452#include <resolv.h>
23453
23454
23455int
23456main ()
23457{
23458static struct __res_state ac_aggr;
23459if (ac_aggr.retrans)
23460return 0;
23461 ;
23462 return 0;
23463}
23464_ACEOF
23465rm -f conftest.$ac_objext
23466if { (ac_try="$ac_compile"
23467case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23470esac
23471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23473 ac_status=$?
23474 grep -v '^ *+' conftest.er1 >conftest.err
23475 rm -f conftest.er1
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 ac_cv_member_struct___res_state_retrans=yes
23483else
23484 echo "$as_me: failed program was:" >&5
23485sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 cat >conftest.$ac_ext <<_ACEOF
23488/* confdefs.h. */
23489_ACEOF
23490cat confdefs.h >>conftest.$ac_ext
23491cat >>conftest.$ac_ext <<_ACEOF
23492/* end confdefs.h. */
23493
23494#include <stdio.h>
23495#if HAVE_SYS_TYPES_H
23496# include <sys/types.h>
23497#endif
23498#include <netinet/in.h>
23499#include <arpa/nameser.h>
23500#include <resolv.h>
23501
23502
23503int
23504main ()
23505{
23506static struct __res_state ac_aggr;
23507if (sizeof ac_aggr.retrans)
23508return 0;
23509 ;
23510 return 0;
23511}
23512_ACEOF
23513rm -f conftest.$ac_objext
23514if { (ac_try="$ac_compile"
23515case "(($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_compile") 2>conftest.er1
23521 ac_status=$?
23522 grep -v '^ *+' conftest.er1 >conftest.err
23523 rm -f conftest.er1
23524 cat conftest.err >&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } && {
23527 test -z "$ac_c_werror_flag" ||
23528 test ! -s conftest.err
23529 } && test -s conftest.$ac_objext; then
23530 ac_cv_member_struct___res_state_retrans=yes
23531else
23532 echo "$as_me: failed program was:" >&5
23533sed 's/^/| /' conftest.$ac_ext >&5
23534
23535 ac_cv_member_struct___res_state_retrans=no
23536fi
23537
23538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539fi
23540
23541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542fi
23543{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
23544echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
23545if test $ac_cv_member_struct___res_state_retrans = yes; then
23546 :
23547else
23548
23549cat >>confdefs.h <<\_ACEOF
23550#define __res_state state
23551_ACEOF
23552
23553fi
23554
23555
23556{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
23557echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23558if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560else
23561
23562 cat >conftest.$ac_ext <<_ACEOF
23563/* confdefs.h. */
23564_ACEOF
23565cat confdefs.h >>conftest.$ac_ext
23566cat >>conftest.$ac_ext <<_ACEOF
23567/* end confdefs.h. */
23568
23569#include <sys/types.h>
23570#include <sys/socket.h>
23571
23572int
23573main ()
23574{
23575 struct sockaddr_storage s; s.ss_family = 1;
23576 ;
23577 return 0;
23578}
23579_ACEOF
23580rm -f conftest.$ac_objext
23581if { (ac_try="$ac_compile"
23582case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585esac
23586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23588 ac_status=$?
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23597 ac_cv_have_ss_family_in_struct_ss="yes"
23598else
23599 echo "$as_me: failed program was:" >&5
23600sed 's/^/| /' conftest.$ac_ext >&5
23601
23602 ac_cv_have_ss_family_in_struct_ss="no"
23603fi
23604
23605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23606
23607fi
23608{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
23609echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
23610if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
23611
23612cat >>confdefs.h <<\_ACEOF
23613#define HAVE_SS_FAMILY_IN_SS 1
23614_ACEOF
23615
23616fi
23617
23618{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
23619echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23620if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622else
23623
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/types.h>
23632#include <sys/socket.h>
23633
23634int
23635main ()
23636{
23637 struct sockaddr_storage s; s.__ss_family = 1;
23638 ;
23639 return 0;
23640}
23641_ACEOF
23642rm -f conftest.$ac_objext
23643if { (ac_try="$ac_compile"
23644case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23647esac
23648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_compile") 2>conftest.er1
23650 ac_status=$?
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && {
23656 test -z "$ac_c_werror_flag" ||
23657 test ! -s conftest.err
23658 } && test -s conftest.$ac_objext; then
23659 ac_cv_have___ss_family_in_struct_ss="yes"
23660else
23661 echo "$as_me: failed program was:" >&5
23662sed 's/^/| /' conftest.$ac_ext >&5
23663
23664 ac_cv_have___ss_family_in_struct_ss="no"
23665
23666fi
23667
23668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669
23670fi
23671{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
23672echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
23673if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
23674
23675cat >>confdefs.h <<\_ACEOF
23676#define HAVE___SS_FAMILY_IN_SS 1
23677_ACEOF
23678
23679fi
23680
23681{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
23682echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
23683if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685else
23686
23687 cat >conftest.$ac_ext <<_ACEOF
23688/* confdefs.h. */
23689_ACEOF
23690cat confdefs.h >>conftest.$ac_ext
23691cat >>conftest.$ac_ext <<_ACEOF
23692/* end confdefs.h. */
23693
23694#include <pwd.h>
23695
23696int
23697main ()
23698{
23699 struct passwd p; p.pw_class = 0;
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704rm -f conftest.$ac_objext
23705if { (ac_try="$ac_compile"
23706case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23709esac
23710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711 (eval "$ac_compile") 2>conftest.er1
23712 ac_status=$?
23713 grep -v '^ *+' conftest.er1 >conftest.err
23714 rm -f conftest.er1
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } && {
23718 test -z "$ac_c_werror_flag" ||
23719 test ! -s conftest.err
23720 } && test -s conftest.$ac_objext; then
23721 ac_cv_have_pw_class_in_struct_passwd="yes"
23722else
23723 echo "$as_me: failed program was:" >&5
23724sed 's/^/| /' conftest.$ac_ext >&5
23725
23726 ac_cv_have_pw_class_in_struct_passwd="no"
23727
23728fi
23729
23730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23731
23732fi
23733{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
23734echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
23735if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
23736
23737cat >>confdefs.h <<\_ACEOF
23738#define HAVE_PW_CLASS_IN_PASSWD 1
23739_ACEOF
23740
23741fi
23742
23743{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
23744echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
23745if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23747else
23748
23749 cat >conftest.$ac_ext <<_ACEOF
23750/* confdefs.h. */
23751_ACEOF
23752cat confdefs.h >>conftest.$ac_ext
23753cat >>conftest.$ac_ext <<_ACEOF
23754/* end confdefs.h. */
23755
23756#include <pwd.h>
23757
23758int
23759main ()
23760{
23761 struct passwd p; p.pw_expire = 0;
23762 ;
23763 return 0;
23764}
23765_ACEOF
23766rm -f conftest.$ac_objext
23767if { (ac_try="$ac_compile"
23768case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23771esac
23772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_compile") 2>conftest.er1
23774 ac_status=$?
23775 grep -v '^ *+' conftest.er1 >conftest.err
23776 rm -f conftest.er1
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } && {
23780 test -z "$ac_c_werror_flag" ||
23781 test ! -s conftest.err
23782 } && test -s conftest.$ac_objext; then
23783 ac_cv_have_pw_expire_in_struct_passwd="yes"
23784else
23785 echo "$as_me: failed program was:" >&5
23786sed 's/^/| /' conftest.$ac_ext >&5
23787
23788 ac_cv_have_pw_expire_in_struct_passwd="no"
23789
23790fi
23791
23792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793
23794fi
23795{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
23796echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
23797if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
23798
23799cat >>confdefs.h <<\_ACEOF
23800#define HAVE_PW_EXPIRE_IN_PASSWD 1
23801_ACEOF
23802
23803fi
23804
23805{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
23806echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
23807if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23809else
23810
23811 cat >conftest.$ac_ext <<_ACEOF
23812/* confdefs.h. */
23813_ACEOF
23814cat confdefs.h >>conftest.$ac_ext
23815cat >>conftest.$ac_ext <<_ACEOF
23816/* end confdefs.h. */
23817
23818#include <pwd.h>
23819
23820int
23821main ()
23822{
23823 struct passwd p; p.pw_change = 0;
23824 ;
23825 return 0;
23826}
23827_ACEOF
23828rm -f conftest.$ac_objext
23829if { (ac_try="$ac_compile"
23830case "(($ac_try" in
23831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832 *) ac_try_echo=$ac_try;;
23833esac
23834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23835 (eval "$ac_compile") 2>conftest.er1
23836 ac_status=$?
23837 grep -v '^ *+' conftest.er1 >conftest.err
23838 rm -f conftest.er1
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && {
23842 test -z "$ac_c_werror_flag" ||
23843 test ! -s conftest.err
23844 } && test -s conftest.$ac_objext; then
23845 ac_cv_have_pw_change_in_struct_passwd="yes"
23846else
23847 echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850 ac_cv_have_pw_change_in_struct_passwd="no"
23851
23852fi
23853
23854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855
23856fi
23857{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
23858echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
23859if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
23860
23861cat >>confdefs.h <<\_ACEOF
23862#define HAVE_PW_CHANGE_IN_PASSWD 1
23863_ACEOF
23864
23865fi
23866
23867{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
23868echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
23869if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871else
23872
23873 cat >conftest.$ac_ext <<_ACEOF
23874
23875#include <sys/types.h>
23876#include <sys/socket.h>
23877#include <sys/uio.h>
23878int main() {
23879#ifdef msg_accrights
23880#error "msg_accrights is a macro"
23881exit(1);
23882#endif
23883struct msghdr m;
23884m.msg_accrights = 0;
23885exit(0);
23886}
23887
23888_ACEOF
23889rm -f conftest.$ac_objext
23890if { (ac_try="$ac_compile"
23891case "(($ac_try" in
23892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23894esac
23895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_compile") 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } && {
23903 test -z "$ac_c_werror_flag" ||
23904 test ! -s conftest.err
23905 } && test -s conftest.$ac_objext; then
23906 ac_cv_have_accrights_in_msghdr="yes"
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 ac_cv_have_accrights_in_msghdr="no"
23912
23913fi
23914
23915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23916
23917fi
23918{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
23919echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
23920if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
23921
23922cat >>confdefs.h <<\_ACEOF
23923#define HAVE_ACCRIGHTS_IN_MSGHDR 1
23924_ACEOF
23925
23926fi
23927
21833{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21834echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
21835if test "${ac_cv_type_in_addr_t+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837else
21838 cat >conftest.$ac_ext <<_ACEOF
21839/* confdefs.h. */
21840_ACEOF
21841cat confdefs.h >>conftest.$ac_ext
21842cat >>conftest.$ac_ext <<_ACEOF
21843/* end confdefs.h. */
21844#include <sys/types.h>
21845#include <netinet/in.h>
21846
21847typedef in_addr_t ac__type_new_;
21848int
21849main ()
21850{
21851if ((ac__type_new_ *) 0)
21852 return 0;
21853if (sizeof (ac__type_new_))
21854 return 0;
21855 ;
21856 return 0;
21857}
21858_ACEOF
21859rm -f conftest.$ac_objext
21860if { (ac_try="$ac_compile"
21861case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864esac
21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_cv_type_in_addr_t=yes
21877else
21878 echo "$as_me: failed program was:" >&5
21879sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ac_cv_type_in_addr_t=no
21882fi
21883
21884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885fi
21886{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21887echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21888if test $ac_cv_type_in_addr_t = yes; then
21889
21890cat >>confdefs.h <<_ACEOF
21891#define HAVE_IN_ADDR_T 1
21892_ACEOF
21893
21894
21895fi
21896
21897
21898{ echo "$as_me:$LINENO: checking for size_t" >&5
21899echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21900if test "${ac_cv_have_size_t+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21902else
21903
21904 cat >conftest.$ac_ext <<_ACEOF
21905/* confdefs.h. */
21906_ACEOF
21907cat confdefs.h >>conftest.$ac_ext
21908cat >>conftest.$ac_ext <<_ACEOF
21909/* end confdefs.h. */
21910
21911#include <sys/types.h>
21912
21913int
21914main ()
21915{
21916 size_t foo; foo = 1235;
21917 ;
21918 return 0;
21919}
21920_ACEOF
21921rm -f conftest.$ac_objext
21922if { (ac_try="$ac_compile"
21923case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926esac
21927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_cv_have_size_t="yes"
21939else
21940 echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ac_cv_have_size_t="no"
21944
21945fi
21946
21947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948
21949fi
21950{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
21951echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
21952if test "x$ac_cv_have_size_t" = "xyes" ; then
21953
21954cat >>confdefs.h <<\_ACEOF
21955#define HAVE_SIZE_T 1
21956_ACEOF
21957
21958fi
21959
21960{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21961echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21962if test "${ac_cv_have_ssize_t+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964else
21965
21966 cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
21973#include <sys/types.h>
21974
21975int
21976main ()
21977{
21978 ssize_t foo; foo = 1235;
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext
21984if { (ac_try="$ac_compile"
21985case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988esac
21989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22000 ac_cv_have_ssize_t="yes"
22001else
22002 echo "$as_me: failed program was:" >&5
22003sed 's/^/| /' conftest.$ac_ext >&5
22004
22005 ac_cv_have_ssize_t="no"
22006
22007fi
22008
22009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010
22011fi
22012{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
22013echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
22014if test "x$ac_cv_have_ssize_t" = "xyes" ; then
22015
22016cat >>confdefs.h <<\_ACEOF
22017#define HAVE_SSIZE_T 1
22018_ACEOF
22019
22020fi
22021
22022{ echo "$as_me:$LINENO: checking for clock_t" >&5
22023echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
22024if test "${ac_cv_have_clock_t+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026else
22027
22028 cat >conftest.$ac_ext <<_ACEOF
22029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
22033/* end confdefs.h. */
22034
22035#include <time.h>
22036
22037int
22038main ()
22039{
22040 clock_t foo; foo = 1235;
22041 ;
22042 return 0;
22043}
22044_ACEOF
22045rm -f conftest.$ac_objext
22046if { (ac_try="$ac_compile"
22047case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050esac
22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_compile") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest.$ac_objext; then
22062 ac_cv_have_clock_t="yes"
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067 ac_cv_have_clock_t="no"
22068
22069fi
22070
22071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072
22073fi
22074{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
22075echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
22076if test "x$ac_cv_have_clock_t" = "xyes" ; then
22077
22078cat >>confdefs.h <<\_ACEOF
22079#define HAVE_CLOCK_T 1
22080_ACEOF
22081
22082fi
22083
22084{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22085echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22086if test "${ac_cv_have_sa_family_t+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088else
22089
22090 cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096
22097#include <sys/types.h>
22098#include <sys/socket.h>
22099
22100int
22101main ()
22102{
22103 sa_family_t foo; foo = 1235;
22104 ;
22105 return 0;
22106}
22107_ACEOF
22108rm -f conftest.$ac_objext
22109if { (ac_try="$ac_compile"
22110case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113esac
22114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_compile") 2>conftest.er1
22116 ac_status=$?
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest.$ac_objext; then
22125 ac_cv_have_sa_family_t="yes"
22126else
22127 echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130 cat >conftest.$ac_ext <<_ACEOF
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
22136
22137#include <sys/types.h>
22138#include <sys/socket.h>
22139#include <netinet/in.h>
22140
22141int
22142main ()
22143{
22144 sa_family_t foo; foo = 1235;
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext
22150if { (ac_try="$ac_compile"
22151case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154esac
22155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_compile") 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest.$ac_objext; then
22166 ac_cv_have_sa_family_t="yes"
22167else
22168 echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_cv_have_sa_family_t="no"
22172
22173fi
22174
22175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176
22177fi
22178
22179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180
22181fi
22182{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
22183echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
22184if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
22185
22186cat >>confdefs.h <<\_ACEOF
22187#define HAVE_SA_FAMILY_T 1
22188_ACEOF
22189
22190fi
22191
22192{ echo "$as_me:$LINENO: checking for pid_t" >&5
22193echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22194if test "${ac_cv_have_pid_t+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197
22198 cat >conftest.$ac_ext <<_ACEOF
22199/* confdefs.h. */
22200_ACEOF
22201cat confdefs.h >>conftest.$ac_ext
22202cat >>conftest.$ac_ext <<_ACEOF
22203/* end confdefs.h. */
22204
22205#include <sys/types.h>
22206
22207int
22208main ()
22209{
22210 pid_t foo; foo = 1235;
22211 ;
22212 return 0;
22213}
22214_ACEOF
22215rm -f conftest.$ac_objext
22216if { (ac_try="$ac_compile"
22217case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220esac
22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.$ac_objext; then
22232 ac_cv_have_pid_t="yes"
22233else
22234 echo "$as_me: failed program was:" >&5
22235sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 ac_cv_have_pid_t="no"
22238
22239fi
22240
22241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242
22243fi
22244{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
22245echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
22246if test "x$ac_cv_have_pid_t" = "xyes" ; then
22247
22248cat >>confdefs.h <<\_ACEOF
22249#define HAVE_PID_T 1
22250_ACEOF
22251
22252fi
22253
22254{ echo "$as_me:$LINENO: checking for mode_t" >&5
22255echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22256if test "${ac_cv_have_mode_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259
22260 cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h. */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h. */
22266
22267#include <sys/types.h>
22268
22269int
22270main ()
22271{
22272 mode_t foo; foo = 1235;
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (ac_try="$ac_compile"
22279case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22285 ac_status=$?
22286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22294 ac_cv_have_mode_t="yes"
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299 ac_cv_have_mode_t="no"
22300
22301fi
22302
22303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304
22305fi
22306{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
22307echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
22308if test "x$ac_cv_have_mode_t" = "xyes" ; then
22309
22310cat >>confdefs.h <<\_ACEOF
22311#define HAVE_MODE_T 1
22312_ACEOF
22313
22314fi
22315
22316
22317{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22318echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22319if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321else
22322
22323 cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329
22330#include <sys/types.h>
22331#include <sys/socket.h>
22332
22333int
22334main ()
22335{
22336 struct sockaddr_storage s;
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext
22342if { (ac_try="$ac_compile"
22343case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346esac
22347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_compile") 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest.$ac_objext; then
22358 ac_cv_have_struct_sockaddr_storage="yes"
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 ac_cv_have_struct_sockaddr_storage="no"
22364
22365fi
22366
22367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368
22369fi
22370{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
22371echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
22372if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
22373
22374cat >>confdefs.h <<\_ACEOF
22375#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22376_ACEOF
22377
22378fi
22379
22380{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22381echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22382if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384else
22385
22386 cat >conftest.$ac_ext <<_ACEOF
22387/* confdefs.h. */
22388_ACEOF
22389cat confdefs.h >>conftest.$ac_ext
22390cat >>conftest.$ac_ext <<_ACEOF
22391/* end confdefs.h. */
22392
22393#include <sys/types.h>
22394#include <netinet/in.h>
22395
22396int
22397main ()
22398{
22399 struct sockaddr_in6 s; s.sin6_family = 0;
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext
22405if { (ac_try="$ac_compile"
22406case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409esac
22410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_cv_have_struct_sockaddr_in6="yes"
22422else
22423 echo "$as_me: failed program was:" >&5
22424sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_cv_have_struct_sockaddr_in6="no"
22427
22428fi
22429
22430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431
22432fi
22433{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
22434echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
22435if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
22436
22437cat >>confdefs.h <<\_ACEOF
22438#define HAVE_STRUCT_SOCKADDR_IN6 1
22439_ACEOF
22440
22441fi
22442
22443{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22444echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22445if test "${ac_cv_have_struct_in6_addr+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447else
22448
22449 cat >conftest.$ac_ext <<_ACEOF
22450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455
22456#include <sys/types.h>
22457#include <netinet/in.h>
22458
22459int
22460main ()
22461{
22462 struct in6_addr s; s.s6_addr[0] = 0;
22463 ;
22464 return 0;
22465}
22466_ACEOF
22467rm -f conftest.$ac_objext
22468if { (ac_try="$ac_compile"
22469case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472esac
22473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_have_struct_in6_addr="yes"
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ac_cv_have_struct_in6_addr="no"
22490
22491fi
22492
22493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494
22495fi
22496{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
22497echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
22498if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
22499
22500cat >>confdefs.h <<\_ACEOF
22501#define HAVE_STRUCT_IN6_ADDR 1
22502_ACEOF
22503
22504fi
22505
22506{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22507echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
22508if test "${ac_cv_have_struct_addrinfo+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510else
22511
22512 cat >conftest.$ac_ext <<_ACEOF
22513/* confdefs.h. */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h. */
22518
22519#include <sys/types.h>
22520#include <sys/socket.h>
22521#include <netdb.h>
22522
22523int
22524main ()
22525{
22526 struct addrinfo s; s.ai_flags = AI_PASSIVE;
22527 ;
22528 return 0;
22529}
22530_ACEOF
22531rm -f conftest.$ac_objext
22532if { (ac_try="$ac_compile"
22533case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536esac
22537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_compile") 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest.$ac_objext; then
22548 ac_cv_have_struct_addrinfo="yes"
22549else
22550 echo "$as_me: failed program was:" >&5
22551sed 's/^/| /' conftest.$ac_ext >&5
22552
22553 ac_cv_have_struct_addrinfo="no"
22554
22555fi
22556
22557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558
22559fi
22560{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
22561echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
22562if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
22563
22564cat >>confdefs.h <<\_ACEOF
22565#define HAVE_STRUCT_ADDRINFO 1
22566_ACEOF
22567
22568fi
22569
22570{ echo "$as_me:$LINENO: checking for struct timeval" >&5
22571echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
22572if test "${ac_cv_have_struct_timeval+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574else
22575
22576 cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582 #include <sys/time.h>
22583int
22584main ()
22585{
22586 struct timeval tv; tv.tv_sec = 1;
22587 ;
22588 return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext
22592if { (ac_try="$ac_compile"
22593case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596esac
22597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_cv_have_struct_timeval="yes"
22609else
22610 echo "$as_me: failed program was:" >&5
22611sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_cv_have_struct_timeval="no"
22614
22615fi
22616
22617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618
22619fi
22620{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
22621echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
22622if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
22623
22624cat >>confdefs.h <<\_ACEOF
22625#define HAVE_STRUCT_TIMEVAL 1
22626_ACEOF
22627
22628 have_struct_timeval=1
22629fi
22630
22631{ echo "$as_me:$LINENO: checking for struct timespec" >&5
22632echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
22633if test "${ac_cv_type_struct_timespec+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635else
22636 cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642$ac_includes_default
22643typedef struct timespec ac__type_new_;
22644int
22645main ()
22646{
22647if ((ac__type_new_ *) 0)
22648 return 0;
22649if (sizeof (ac__type_new_))
22650 return 0;
22651 ;
22652 return 0;
22653}
22654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (ac_try="$ac_compile"
22657case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660esac
22661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_compile") 2>conftest.er1
22663 ac_status=$?
22664 grep -v '^ *+' conftest.er1 >conftest.err
22665 rm -f conftest.er1
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } && {
22669 test -z "$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22671 } && test -s conftest.$ac_objext; then
22672 ac_cv_type_struct_timespec=yes
22673else
22674 echo "$as_me: failed program was:" >&5
22675sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 ac_cv_type_struct_timespec=no
22678fi
22679
22680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681fi
22682{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
22683echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
22684if test $ac_cv_type_struct_timespec = yes; then
22685
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_STRUCT_TIMESPEC 1
22688_ACEOF
22689
22690
22691fi
22692
22693
22694# We need int64_t or else certian parts of the compile will fail.
22695if test "x$ac_cv_have_int64_t" = "xno" && \
22696 test "x$ac_cv_sizeof_long_int" != "x8" && \
22697 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
22698 echo "OpenSSH requires int64_t support. Contact your vendor or install"
22699 echo "an alternative compiler (I.E., GCC) before continuing."
22700 echo ""
22701 exit 1;
22702else
22703 if test "$cross_compiling" = yes; then
22704 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
22705echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
22706
22707else
22708 cat >conftest.$ac_ext <<_ACEOF
22709/* confdefs.h. */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h. */
22714
22715#include <stdio.h>
22716#include <string.h>
22717#ifdef HAVE_SNPRINTF
22718main()
22719{
22720 char buf[50];
22721 char expected_out[50];
22722 int mazsize = 50 ;
22723#if (SIZEOF_LONG_INT == 8)
22724 long int num = 0x7fffffffffffffff;
22725#else
22726 long long num = 0x7fffffffffffffffll;
22727#endif
22728 strcpy(expected_out, "9223372036854775807");
22729 snprintf(buf, mazsize, "%lld", num);
22730 if(strcmp(buf, expected_out) != 0)
22731 exit(1);
22732 exit(0);
22733}
22734#else
22735main() { exit(0); }
22736#endif
22737
22738_ACEOF
22739rm -f conftest$ac_exeext
22740if { (ac_try="$ac_link"
22741case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744esac
22745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_link") 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22750 { (case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22753esac
22754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_try") 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 true
22760else
22761 echo "$as_me: program exited with status $ac_status" >&5
22762echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764
22765( exit $ac_status )
22766 cat >>confdefs.h <<\_ACEOF
22767#define BROKEN_SNPRINTF 1
22768_ACEOF
22769
22770fi
22771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22772fi
22773
22774
22775fi
22776
22777
22778# look for field 'ut_host' in header 'utmp.h'
22779 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22780 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22781 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
22782echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
22783 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785else
22786
22787 cat >conftest.$ac_ext <<_ACEOF
22788/* confdefs.h. */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h. */
22793#include <utmp.h>
22794
22795_ACEOF
22796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22797 $EGREP "ut_host" >/dev/null 2>&1; then
22798 eval "$ossh_varname=yes"
22799else
22800 eval "$ossh_varname=no"
22801fi
22802rm -f conftest*
22803
22804fi
22805
22806 ossh_result=`eval 'echo $'"$ossh_varname"`
22807 if test -n "`echo $ossh_varname`"; then
22808 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22809echo "${ECHO_T}$ossh_result" >&6; }
22810 if test "x$ossh_result" = "xyes"; then
22811
22812cat >>confdefs.h <<\_ACEOF
22813#define HAVE_HOST_IN_UTMP 1
22814_ACEOF
22815
22816 fi
22817 else
22818 { echo "$as_me:$LINENO: result: no" >&5
22819echo "${ECHO_T}no" >&6; }
22820 fi
22821
22822
22823# look for field 'ut_host' in header 'utmpx.h'
22824 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22825 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22826 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
22827echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
22828 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830else
22831
22832 cat >conftest.$ac_ext <<_ACEOF
22833/* confdefs.h. */
22834_ACEOF
22835cat confdefs.h >>conftest.$ac_ext
22836cat >>conftest.$ac_ext <<_ACEOF
22837/* end confdefs.h. */
22838#include <utmpx.h>
22839
22840_ACEOF
22841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22842 $EGREP "ut_host" >/dev/null 2>&1; then
22843 eval "$ossh_varname=yes"
22844else
22845 eval "$ossh_varname=no"
22846fi
22847rm -f conftest*
22848
22849fi
22850
22851 ossh_result=`eval 'echo $'"$ossh_varname"`
22852 if test -n "`echo $ossh_varname`"; then
22853 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22854echo "${ECHO_T}$ossh_result" >&6; }
22855 if test "x$ossh_result" = "xyes"; then
22856
22857cat >>confdefs.h <<\_ACEOF
22858#define HAVE_HOST_IN_UTMPX 1
22859_ACEOF
22860
22861 fi
22862 else
22863 { echo "$as_me:$LINENO: result: no" >&5
22864echo "${ECHO_T}no" >&6; }
22865 fi
22866
22867
22868# look for field 'syslen' in header 'utmpx.h'
22869 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22870 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
22871 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
22872echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
22873 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22875else
22876
22877 cat >conftest.$ac_ext <<_ACEOF
22878/* confdefs.h. */
22879_ACEOF
22880cat confdefs.h >>conftest.$ac_ext
22881cat >>conftest.$ac_ext <<_ACEOF
22882/* end confdefs.h. */
22883#include <utmpx.h>
22884
22885_ACEOF
22886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22887 $EGREP "syslen" >/dev/null 2>&1; then
22888 eval "$ossh_varname=yes"
22889else
22890 eval "$ossh_varname=no"
22891fi
22892rm -f conftest*
22893
22894fi
22895
22896 ossh_result=`eval 'echo $'"$ossh_varname"`
22897 if test -n "`echo $ossh_varname`"; then
22898 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22899echo "${ECHO_T}$ossh_result" >&6; }
22900 if test "x$ossh_result" = "xyes"; then
22901
22902cat >>confdefs.h <<\_ACEOF
22903#define HAVE_SYSLEN_IN_UTMPX 1
22904_ACEOF
22905
22906 fi
22907 else
22908 { echo "$as_me:$LINENO: result: no" >&5
22909echo "${ECHO_T}no" >&6; }
22910 fi
22911
22912
22913# look for field 'ut_pid' in header 'utmp.h'
22914 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22915 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
22916 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
22917echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
22918 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22920else
22921
22922 cat >conftest.$ac_ext <<_ACEOF
22923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
22928#include <utmp.h>
22929
22930_ACEOF
22931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22932 $EGREP "ut_pid" >/dev/null 2>&1; then
22933 eval "$ossh_varname=yes"
22934else
22935 eval "$ossh_varname=no"
22936fi
22937rm -f conftest*
22938
22939fi
22940
22941 ossh_result=`eval 'echo $'"$ossh_varname"`
22942 if test -n "`echo $ossh_varname`"; then
22943 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22944echo "${ECHO_T}$ossh_result" >&6; }
22945 if test "x$ossh_result" = "xyes"; then
22946
22947cat >>confdefs.h <<\_ACEOF
22948#define HAVE_PID_IN_UTMP 1
22949_ACEOF
22950
22951 fi
22952 else
22953 { echo "$as_me:$LINENO: result: no" >&5
22954echo "${ECHO_T}no" >&6; }
22955 fi
22956
22957
22958# look for field 'ut_type' in header 'utmp.h'
22959 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22960 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22961 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
22962echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
22963 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965else
22966
22967 cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
22973#include <utmp.h>
22974
22975_ACEOF
22976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22977 $EGREP "ut_type" >/dev/null 2>&1; then
22978 eval "$ossh_varname=yes"
22979else
22980 eval "$ossh_varname=no"
22981fi
22982rm -f conftest*
22983
22984fi
22985
22986 ossh_result=`eval 'echo $'"$ossh_varname"`
22987 if test -n "`echo $ossh_varname`"; then
22988 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22989echo "${ECHO_T}$ossh_result" >&6; }
22990 if test "x$ossh_result" = "xyes"; then
22991
22992cat >>confdefs.h <<\_ACEOF
22993#define HAVE_TYPE_IN_UTMP 1
22994_ACEOF
22995
22996 fi
22997 else
22998 { echo "$as_me:$LINENO: result: no" >&5
22999echo "${ECHO_T}no" >&6; }
23000 fi
23001
23002
23003# look for field 'ut_type' in header 'utmpx.h'
23004 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23005 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23006 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
23007echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
23008 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010else
23011
23012 cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018#include <utmpx.h>
23019
23020_ACEOF
23021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23022 $EGREP "ut_type" >/dev/null 2>&1; then
23023 eval "$ossh_varname=yes"
23024else
23025 eval "$ossh_varname=no"
23026fi
23027rm -f conftest*
23028
23029fi
23030
23031 ossh_result=`eval 'echo $'"$ossh_varname"`
23032 if test -n "`echo $ossh_varname`"; then
23033 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23034echo "${ECHO_T}$ossh_result" >&6; }
23035 if test "x$ossh_result" = "xyes"; then
23036
23037cat >>confdefs.h <<\_ACEOF
23038#define HAVE_TYPE_IN_UTMPX 1
23039_ACEOF
23040
23041 fi
23042 else
23043 { echo "$as_me:$LINENO: result: no" >&5
23044echo "${ECHO_T}no" >&6; }
23045 fi
23046
23047
23048# look for field 'ut_tv' in header 'utmp.h'
23049 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23050 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23051 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
23052echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
23053 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23055else
23056
23057 cat >conftest.$ac_ext <<_ACEOF
23058/* confdefs.h. */
23059_ACEOF
23060cat confdefs.h >>conftest.$ac_ext
23061cat >>conftest.$ac_ext <<_ACEOF
23062/* end confdefs.h. */
23063#include <utmp.h>
23064
23065_ACEOF
23066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067 $EGREP "ut_tv" >/dev/null 2>&1; then
23068 eval "$ossh_varname=yes"
23069else
23070 eval "$ossh_varname=no"
23071fi
23072rm -f conftest*
23073
23074fi
23075
23076 ossh_result=`eval 'echo $'"$ossh_varname"`
23077 if test -n "`echo $ossh_varname`"; then
23078 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23079echo "${ECHO_T}$ossh_result" >&6; }
23080 if test "x$ossh_result" = "xyes"; then
23081
23082cat >>confdefs.h <<\_ACEOF
23083#define HAVE_TV_IN_UTMP 1
23084_ACEOF
23085
23086 fi
23087 else
23088 { echo "$as_me:$LINENO: result: no" >&5
23089echo "${ECHO_T}no" >&6; }
23090 fi
23091
23092
23093# look for field 'ut_id' in header 'utmp.h'
23094 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23095 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23096 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
23097echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
23098 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23100else
23101
23102 cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
23108#include <utmp.h>
23109
23110_ACEOF
23111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23112 $EGREP "ut_id" >/dev/null 2>&1; then
23113 eval "$ossh_varname=yes"
23114else
23115 eval "$ossh_varname=no"
23116fi
23117rm -f conftest*
23118
23119fi
23120
23121 ossh_result=`eval 'echo $'"$ossh_varname"`
23122 if test -n "`echo $ossh_varname`"; then
23123 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23124echo "${ECHO_T}$ossh_result" >&6; }
23125 if test "x$ossh_result" = "xyes"; then
23126
23127cat >>confdefs.h <<\_ACEOF
23128#define HAVE_ID_IN_UTMP 1
23129_ACEOF
23130
23131 fi
23132 else
23133 { echo "$as_me:$LINENO: result: no" >&5
23134echo "${ECHO_T}no" >&6; }
23135 fi
23136
23137
23138# look for field 'ut_id' in header 'utmpx.h'
23139 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23140 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23141 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
23142echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
23143 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23145else
23146
23147 cat >conftest.$ac_ext <<_ACEOF
23148/* confdefs.h. */
23149_ACEOF
23150cat confdefs.h >>conftest.$ac_ext
23151cat >>conftest.$ac_ext <<_ACEOF
23152/* end confdefs.h. */
23153#include <utmpx.h>
23154
23155_ACEOF
23156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23157 $EGREP "ut_id" >/dev/null 2>&1; then
23158 eval "$ossh_varname=yes"
23159else
23160 eval "$ossh_varname=no"
23161fi
23162rm -f conftest*
23163
23164fi
23165
23166 ossh_result=`eval 'echo $'"$ossh_varname"`
23167 if test -n "`echo $ossh_varname`"; then
23168 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23169echo "${ECHO_T}$ossh_result" >&6; }
23170 if test "x$ossh_result" = "xyes"; then
23171
23172cat >>confdefs.h <<\_ACEOF
23173#define HAVE_ID_IN_UTMPX 1
23174_ACEOF
23175
23176 fi
23177 else
23178 { echo "$as_me:$LINENO: result: no" >&5
23179echo "${ECHO_T}no" >&6; }
23180 fi
23181
23182
23183# look for field 'ut_addr' in header 'utmp.h'
23184 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23185 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23186 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
23187echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
23188 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190else
23191
23192 cat >conftest.$ac_ext <<_ACEOF
23193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
23198#include <utmp.h>
23199
23200_ACEOF
23201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23202 $EGREP "ut_addr" >/dev/null 2>&1; then
23203 eval "$ossh_varname=yes"
23204else
23205 eval "$ossh_varname=no"
23206fi
23207rm -f conftest*
23208
23209fi
23210
23211 ossh_result=`eval 'echo $'"$ossh_varname"`
23212 if test -n "`echo $ossh_varname`"; then
23213 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23214echo "${ECHO_T}$ossh_result" >&6; }
23215 if test "x$ossh_result" = "xyes"; then
23216
23217cat >>confdefs.h <<\_ACEOF
23218#define HAVE_ADDR_IN_UTMP 1
23219_ACEOF
23220
23221 fi
23222 else
23223 { echo "$as_me:$LINENO: result: no" >&5
23224echo "${ECHO_T}no" >&6; }
23225 fi
23226
23227
23228# look for field 'ut_addr' in header 'utmpx.h'
23229 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23230 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23231 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
23232echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
23233 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235else
23236
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <utmpx.h>
23244
23245_ACEOF
23246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23247 $EGREP "ut_addr" >/dev/null 2>&1; then
23248 eval "$ossh_varname=yes"
23249else
23250 eval "$ossh_varname=no"
23251fi
23252rm -f conftest*
23253
23254fi
23255
23256 ossh_result=`eval 'echo $'"$ossh_varname"`
23257 if test -n "`echo $ossh_varname`"; then
23258 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23259echo "${ECHO_T}$ossh_result" >&6; }
23260 if test "x$ossh_result" = "xyes"; then
23261
23262cat >>confdefs.h <<\_ACEOF
23263#define HAVE_ADDR_IN_UTMPX 1
23264_ACEOF
23265
23266 fi
23267 else
23268 { echo "$as_me:$LINENO: result: no" >&5
23269echo "${ECHO_T}no" >&6; }
23270 fi
23271
23272
23273# look for field 'ut_addr_v6' in header 'utmp.h'
23274 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23275 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23276 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
23277echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
23278 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281
23282 cat >conftest.$ac_ext <<_ACEOF
23283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
23288#include <utmp.h>
23289
23290_ACEOF
23291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23292 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23293 eval "$ossh_varname=yes"
23294else
23295 eval "$ossh_varname=no"
23296fi
23297rm -f conftest*
23298
23299fi
23300
23301 ossh_result=`eval 'echo $'"$ossh_varname"`
23302 if test -n "`echo $ossh_varname`"; then
23303 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23304echo "${ECHO_T}$ossh_result" >&6; }
23305 if test "x$ossh_result" = "xyes"; then
23306
23307cat >>confdefs.h <<\_ACEOF
23308#define HAVE_ADDR_V6_IN_UTMP 1
23309_ACEOF
23310
23311 fi
23312 else
23313 { echo "$as_me:$LINENO: result: no" >&5
23314echo "${ECHO_T}no" >&6; }
23315 fi
23316
23317
23318# look for field 'ut_addr_v6' in header 'utmpx.h'
23319 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23320 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23321 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
23322echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
23323 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325else
23326
23327 cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
23333#include <utmpx.h>
23334
23335_ACEOF
23336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23337 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23338 eval "$ossh_varname=yes"
23339else
23340 eval "$ossh_varname=no"
23341fi
23342rm -f conftest*
23343
23344fi
23345
23346 ossh_result=`eval 'echo $'"$ossh_varname"`
23347 if test -n "`echo $ossh_varname`"; then
23348 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23349echo "${ECHO_T}$ossh_result" >&6; }
23350 if test "x$ossh_result" = "xyes"; then
23351
23352cat >>confdefs.h <<\_ACEOF
23353#define HAVE_ADDR_V6_IN_UTMPX 1
23354_ACEOF
23355
23356 fi
23357 else
23358 { echo "$as_me:$LINENO: result: no" >&5
23359echo "${ECHO_T}no" >&6; }
23360 fi
23361
23362
23363# look for field 'ut_exit' in header 'utmp.h'
23364 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23365 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
23366 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
23367echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
23368 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371
23372 cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
23378#include <utmp.h>
23379
23380_ACEOF
23381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23382 $EGREP "ut_exit" >/dev/null 2>&1; then
23383 eval "$ossh_varname=yes"
23384else
23385 eval "$ossh_varname=no"
23386fi
23387rm -f conftest*
23388
23389fi
23390
23391 ossh_result=`eval 'echo $'"$ossh_varname"`
23392 if test -n "`echo $ossh_varname`"; then
23393 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23394echo "${ECHO_T}$ossh_result" >&6; }
23395 if test "x$ossh_result" = "xyes"; then
23396
23397cat >>confdefs.h <<\_ACEOF
23398#define HAVE_EXIT_IN_UTMP 1
23399_ACEOF
23400
23401 fi
23402 else
23403 { echo "$as_me:$LINENO: result: no" >&5
23404echo "${ECHO_T}no" >&6; }
23405 fi
23406
23407
23408# look for field 'ut_time' in header 'utmp.h'
23409 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23410 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23411 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
23412echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
23413 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415else
23416
23417 cat >conftest.$ac_ext <<_ACEOF
23418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
23423#include <utmp.h>
23424
23425_ACEOF
23426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23427 $EGREP "ut_time" >/dev/null 2>&1; then
23428 eval "$ossh_varname=yes"
23429else
23430 eval "$ossh_varname=no"
23431fi
23432rm -f conftest*
23433
23434fi
23435
23436 ossh_result=`eval 'echo $'"$ossh_varname"`
23437 if test -n "`echo $ossh_varname`"; then
23438 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23439echo "${ECHO_T}$ossh_result" >&6; }
23440 if test "x$ossh_result" = "xyes"; then
23441
23442cat >>confdefs.h <<\_ACEOF
23443#define HAVE_TIME_IN_UTMP 1
23444_ACEOF
23445
23446 fi
23447 else
23448 { echo "$as_me:$LINENO: result: no" >&5
23449echo "${ECHO_T}no" >&6; }
23450 fi
23451
23452
23453# look for field 'ut_time' in header 'utmpx.h'
23454 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23455 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23456 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
23457echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
23458 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460else
23461
23462 cat >conftest.$ac_ext <<_ACEOF
23463/* confdefs.h. */
23464_ACEOF
23465cat confdefs.h >>conftest.$ac_ext
23466cat >>conftest.$ac_ext <<_ACEOF
23467/* end confdefs.h. */
23468#include <utmpx.h>
23469
23470_ACEOF
23471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23472 $EGREP "ut_time" >/dev/null 2>&1; then
23473 eval "$ossh_varname=yes"
23474else
23475 eval "$ossh_varname=no"
23476fi
23477rm -f conftest*
23478
23479fi
23480
23481 ossh_result=`eval 'echo $'"$ossh_varname"`
23482 if test -n "`echo $ossh_varname`"; then
23483 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23484echo "${ECHO_T}$ossh_result" >&6; }
23485 if test "x$ossh_result" = "xyes"; then
23486
23487cat >>confdefs.h <<\_ACEOF
23488#define HAVE_TIME_IN_UTMPX 1
23489_ACEOF
23490
23491 fi
23492 else
23493 { echo "$as_me:$LINENO: result: no" >&5
23494echo "${ECHO_T}no" >&6; }
23495 fi
23496
23497
23498# look for field 'ut_tv' in header 'utmpx.h'
23499 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23500 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23501 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
23502echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
23503 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505else
23506
23507 cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
23513#include <utmpx.h>
23514
23515_ACEOF
23516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517 $EGREP "ut_tv" >/dev/null 2>&1; then
23518 eval "$ossh_varname=yes"
23519else
23520 eval "$ossh_varname=no"
23521fi
23522rm -f conftest*
23523
23524fi
23525
23526 ossh_result=`eval 'echo $'"$ossh_varname"`
23527 if test -n "`echo $ossh_varname`"; then
23528 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23529echo "${ECHO_T}$ossh_result" >&6; }
23530 if test "x$ossh_result" = "xyes"; then
23531
23532cat >>confdefs.h <<\_ACEOF
23533#define HAVE_TV_IN_UTMPX 1
23534_ACEOF
23535
23536 fi
23537 else
23538 { echo "$as_me:$LINENO: result: no" >&5
23539echo "${ECHO_T}no" >&6; }
23540 fi
23541
23542
23543{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
23544echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
23545if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23547else
23548 cat >conftest.$ac_ext <<_ACEOF
23549/* confdefs.h. */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h. */
23554$ac_includes_default
23555int
23556main ()
23557{
23558static struct stat ac_aggr;
23559if (ac_aggr.st_blksize)
23560return 0;
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext
23566if { (ac_try="$ac_compile"
23567case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570esac
23571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_member_struct_stat_st_blksize=yes
23583else
23584 echo "$as_me: failed program was:" >&5
23585sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 cat >conftest.$ac_ext <<_ACEOF
23588/* confdefs.h. */
23589_ACEOF
23590cat confdefs.h >>conftest.$ac_ext
23591cat >>conftest.$ac_ext <<_ACEOF
23592/* end confdefs.h. */
23593$ac_includes_default
23594int
23595main ()
23596{
23597static struct stat ac_aggr;
23598if (sizeof ac_aggr.st_blksize)
23599return 0;
23600 ;
23601 return 0;
23602}
23603_ACEOF
23604rm -f conftest.$ac_objext
23605if { (ac_try="$ac_compile"
23606case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609esac
23610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_compile") 2>conftest.er1
23612 ac_status=$?
23613 grep -v '^ *+' conftest.er1 >conftest.err
23614 rm -f conftest.er1
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest.$ac_objext; then
23621 ac_cv_member_struct_stat_st_blksize=yes
23622else
23623 echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626 ac_cv_member_struct_stat_st_blksize=no
23627fi
23628
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630fi
23631
23632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633fi
23634{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
23635echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
23636if test $ac_cv_member_struct_stat_st_blksize = yes; then
23637
23638cat >>confdefs.h <<_ACEOF
23639#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23640_ACEOF
23641
23642
23643fi
23644
23645{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
23646echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
23647if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23649else
23650 cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657#include <stdio.h>
23658#if HAVE_SYS_TYPES_H
23659# include <sys/types.h>
23660#endif
23661#include <netinet/in.h>
23662#include <arpa/nameser.h>
23663#include <resolv.h>
23664
23665
23666int
23667main ()
23668{
23669static struct __res_state ac_aggr;
23670if (ac_aggr.retrans)
23671return 0;
23672 ;
23673 return 0;
23674}
23675_ACEOF
23676rm -f conftest.$ac_objext
23677if { (ac_try="$ac_compile"
23678case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681esac
23682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.$ac_objext; then
23693 ac_cv_member_struct___res_state_retrans=yes
23694else
23695 echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698 cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h. */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h. */
23704
23705#include <stdio.h>
23706#if HAVE_SYS_TYPES_H
23707# include <sys/types.h>
23708#endif
23709#include <netinet/in.h>
23710#include <arpa/nameser.h>
23711#include <resolv.h>
23712
23713
23714int
23715main ()
23716{
23717static struct __res_state ac_aggr;
23718if (sizeof ac_aggr.retrans)
23719return 0;
23720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext
23725if { (ac_try="$ac_compile"
23726case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729esac
23730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731 (eval "$ac_compile") 2>conftest.er1
23732 ac_status=$?
23733 grep -v '^ *+' conftest.er1 >conftest.err
23734 rm -f conftest.er1
23735 cat conftest.err >&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); } && {
23738 test -z "$ac_c_werror_flag" ||
23739 test ! -s conftest.err
23740 } && test -s conftest.$ac_objext; then
23741 ac_cv_member_struct___res_state_retrans=yes
23742else
23743 echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ac_cv_member_struct___res_state_retrans=no
23747fi
23748
23749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750fi
23751
23752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753fi
23754{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
23755echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
23756if test $ac_cv_member_struct___res_state_retrans = yes; then
23757 :
23758else
23759
23760cat >>confdefs.h <<\_ACEOF
23761#define __res_state state
23762_ACEOF
23763
23764fi
23765
23766
23767{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
23768echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23769if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23771else
23772
23773 cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h. */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h. */
23779
23780#include <sys/types.h>
23781#include <sys/socket.h>
23782
23783int
23784main ()
23785{
23786 struct sockaddr_storage s; s.ss_family = 1;
23787 ;
23788 return 0;
23789}
23790_ACEOF
23791rm -f conftest.$ac_objext
23792if { (ac_try="$ac_compile"
23793case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23796esac
23797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 ac_cv_have_ss_family_in_struct_ss="yes"
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_cv_have_ss_family_in_struct_ss="no"
23814fi
23815
23816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817
23818fi
23819{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
23820echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
23821if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
23822
23823cat >>confdefs.h <<\_ACEOF
23824#define HAVE_SS_FAMILY_IN_SS 1
23825_ACEOF
23826
23827fi
23828
23829{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
23830echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23831if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833else
23834
23835 cat >conftest.$ac_ext <<_ACEOF
23836/* confdefs.h. */
23837_ACEOF
23838cat confdefs.h >>conftest.$ac_ext
23839cat >>conftest.$ac_ext <<_ACEOF
23840/* end confdefs.h. */
23841
23842#include <sys/types.h>
23843#include <sys/socket.h>
23844
23845int
23846main ()
23847{
23848 struct sockaddr_storage s; s.__ss_family = 1;
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext
23854if { (ac_try="$ac_compile"
23855case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858esac
23859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_compile") 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest.$ac_objext; then
23870 ac_cv_have___ss_family_in_struct_ss="yes"
23871else
23872 echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_have___ss_family_in_struct_ss="no"
23876
23877fi
23878
23879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880
23881fi
23882{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
23883echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
23884if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
23885
23886cat >>confdefs.h <<\_ACEOF
23887#define HAVE___SS_FAMILY_IN_SS 1
23888_ACEOF
23889
23890fi
23891
23892{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
23893echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
23894if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896else
23897
23898 cat >conftest.$ac_ext <<_ACEOF
23899/* confdefs.h. */
23900_ACEOF
23901cat confdefs.h >>conftest.$ac_ext
23902cat >>conftest.$ac_ext <<_ACEOF
23903/* end confdefs.h. */
23904
23905#include <pwd.h>
23906
23907int
23908main ()
23909{
23910 struct passwd p; p.pw_class = 0;
23911 ;
23912 return 0;
23913}
23914_ACEOF
23915rm -f conftest.$ac_objext
23916if { (ac_try="$ac_compile"
23917case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920esac
23921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest.$ac_objext; then
23932 ac_cv_have_pw_class_in_struct_passwd="yes"
23933else
23934 echo "$as_me: failed program was:" >&5
23935sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ac_cv_have_pw_class_in_struct_passwd="no"
23938
23939fi
23940
23941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942
23943fi
23944{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
23945echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
23946if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
23947
23948cat >>confdefs.h <<\_ACEOF
23949#define HAVE_PW_CLASS_IN_PASSWD 1
23950_ACEOF
23951
23952fi
23953
23954{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
23955echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
23956if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958else
23959
23960 cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
23966
23967#include <pwd.h>
23968
23969int
23970main ()
23971{
23972 struct passwd p; p.pw_expire = 0;
23973 ;
23974 return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext
23978if { (ac_try="$ac_compile"
23979case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23982esac
23983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 ac_cv_have_pw_expire_in_struct_passwd="yes"
23995else
23996 echo "$as_me: failed program was:" >&5
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
23999 ac_cv_have_pw_expire_in_struct_passwd="no"
24000
24001fi
24002
24003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004
24005fi
24006{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
24007echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
24008if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
24009
24010cat >>confdefs.h <<\_ACEOF
24011#define HAVE_PW_EXPIRE_IN_PASSWD 1
24012_ACEOF
24013
24014fi
24015
24016{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
24017echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
24018if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020else
24021
24022 cat >conftest.$ac_ext <<_ACEOF
24023/* confdefs.h. */
24024_ACEOF
24025cat confdefs.h >>conftest.$ac_ext
24026cat >>conftest.$ac_ext <<_ACEOF
24027/* end confdefs.h. */
24028
24029#include <pwd.h>
24030
24031int
24032main ()
24033{
24034 struct passwd p; p.pw_change = 0;
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039rm -f conftest.$ac_objext
24040if { (ac_try="$ac_compile"
24041case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24044esac
24045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_compile") 2>conftest.er1
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest.$ac_objext; then
24056 ac_cv_have_pw_change_in_struct_passwd="yes"
24057else
24058 echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
24061 ac_cv_have_pw_change_in_struct_passwd="no"
24062
24063fi
24064
24065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066
24067fi
24068{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
24069echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
24070if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
24071
24072cat >>confdefs.h <<\_ACEOF
24073#define HAVE_PW_CHANGE_IN_PASSWD 1
24074_ACEOF
24075
24076fi
24077
24078{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
24079echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
24080if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24082else
24083
24084 cat >conftest.$ac_ext <<_ACEOF
24085
24086#include <sys/types.h>
24087#include <sys/socket.h>
24088#include <sys/uio.h>
24089int main() {
24090#ifdef msg_accrights
24091#error "msg_accrights is a macro"
24092exit(1);
24093#endif
24094struct msghdr m;
24095m.msg_accrights = 0;
24096exit(0);
24097}
24098
24099_ACEOF
24100rm -f conftest.$ac_objext
24101if { (ac_try="$ac_compile"
24102case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105esac
24106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_compile") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest.$ac_objext; then
24117 ac_cv_have_accrights_in_msghdr="yes"
24118else
24119 echo "$as_me: failed program was:" >&5
24120sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_cv_have_accrights_in_msghdr="no"
24123
24124fi
24125
24126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127
24128fi
24129{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
24130echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
24131if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
24132
24133cat >>confdefs.h <<\_ACEOF
24134#define HAVE_ACCRIGHTS_IN_MSGHDR 1
24135_ACEOF
24136
24137fi
24138
24139{ echo "$as_me:$LINENO: checking if f_fsid has val members" >&5
24140echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; }
24141cat >conftest.$ac_ext <<_ACEOF
24142/* confdefs.h. */
24143_ACEOF
24144cat confdefs.h >>conftest.$ac_ext
24145cat >>conftest.$ac_ext <<_ACEOF
24146/* end confdefs.h. */
24147
24148#include <sys/types.h>
24149#include <sys/statvfs.h>
24150int
24151main ()
24152{
24153struct fsid_t t; t.val[0] = 0;
24154 ;
24155 return 0;
24156}
24157_ACEOF
24158rm -f conftest.$ac_objext
24159if { (ac_try="$ac_compile"
24160case "(($ac_try" in
24161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162 *) ac_try_echo=$ac_try;;
24163esac
24164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165 (eval "$ac_compile") 2>conftest.er1
24166 ac_status=$?
24167 grep -v '^ *+' conftest.er1 >conftest.err
24168 rm -f conftest.er1
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } && {
24172 test -z "$ac_c_werror_flag" ||
24173 test ! -s conftest.err
24174 } && test -s conftest.$ac_objext; then
24175 { echo "$as_me:$LINENO: result: yes" >&5
24176echo "${ECHO_T}yes" >&6; }
24177
24178cat >>confdefs.h <<\_ACEOF
24179#define FSID_HAS_VAL 1
24180_ACEOF
24181
24182else
24183 echo "$as_me: failed program was:" >&5
24184sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 { echo "$as_me:$LINENO: result: no" >&5
24187echo "${ECHO_T}no" >&6; }
24188
24189fi
24190
24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
23928{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
23929echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
23930if test "${ac_cv_have_control_in_msghdr+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23932else
23933
23934 cat >conftest.$ac_ext <<_ACEOF
23935
23936#include <sys/types.h>
23937#include <sys/socket.h>
23938#include <sys/uio.h>
23939int main() {
23940#ifdef msg_control
23941#error "msg_control is a macro"
23942exit(1);
23943#endif
23944struct msghdr m;
23945m.msg_control = 0;
23946exit(0);
23947}
23948
23949_ACEOF
23950rm -f conftest.$ac_objext
23951if { (ac_try="$ac_compile"
23952case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23955esac
23956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_compile") 2>conftest.er1
23958 ac_status=$?
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest.$ac_objext; then
23967 ac_cv_have_control_in_msghdr="yes"
23968else
23969 echo "$as_me: failed program was:" >&5
23970sed 's/^/| /' conftest.$ac_ext >&5
23971
23972 ac_cv_have_control_in_msghdr="no"
23973
23974fi
23975
23976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23977
23978fi
23979{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
23980echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
23981if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
23982
23983cat >>confdefs.h <<\_ACEOF
23984#define HAVE_CONTROL_IN_MSGHDR 1
23985_ACEOF
23986
23987fi
23988
23989{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
23990echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
23991if test "${ac_cv_libc_defines___progname+set}" = set; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23993else
23994
23995 cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
24001
24002int
24003main ()
24004{
24005 extern char *__progname; printf("%s", __progname);
24006 ;
24007 return 0;
24008}
24009_ACEOF
24010rm -f conftest.$ac_objext conftest$ac_exeext
24011if { (ac_try="$ac_link"
24012case "(($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_link") 2>conftest.er1
24018 ac_status=$?
24019 grep -v '^ *+' conftest.er1 >conftest.err
24020 rm -f conftest.er1
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest$ac_exeext &&
24027 $as_test_x conftest$ac_exeext; then
24028 ac_cv_libc_defines___progname="yes"
24029else
24030 echo "$as_me: failed program was:" >&5
24031sed 's/^/| /' conftest.$ac_ext >&5
24032
24033 ac_cv_libc_defines___progname="no"
24034
24035fi
24036
24037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24038 conftest$ac_exeext conftest.$ac_ext
24039
24040fi
24041{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
24042echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
24043if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
24044
24045cat >>confdefs.h <<\_ACEOF
24046#define HAVE___PROGNAME 1
24047_ACEOF
24048
24049fi
24050
24051{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
24052echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
24053if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24055else
24056
24057 cat >conftest.$ac_ext <<_ACEOF
24058/* confdefs.h. */
24059_ACEOF
24060cat confdefs.h >>conftest.$ac_ext
24061cat >>conftest.$ac_ext <<_ACEOF
24062/* end confdefs.h. */
24063
24064#include <stdio.h>
24065
24066int
24067main ()
24068{
24069 printf("%s", __FUNCTION__);
24070 ;
24071 return 0;
24072}
24073_ACEOF
24074rm -f conftest.$ac_objext conftest$ac_exeext
24075if { (ac_try="$ac_link"
24076case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24079esac
24080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_link") 2>conftest.er1
24082 ac_status=$?
24083 grep -v '^ *+' conftest.er1 >conftest.err
24084 rm -f conftest.er1
24085 cat conftest.err >&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } && {
24088 test -z "$ac_c_werror_flag" ||
24089 test ! -s conftest.err
24090 } && test -s conftest$ac_exeext &&
24091 $as_test_x conftest$ac_exeext; then
24092 ac_cv_cc_implements___FUNCTION__="yes"
24093else
24094 echo "$as_me: failed program was:" >&5
24095sed 's/^/| /' conftest.$ac_ext >&5
24096
24097 ac_cv_cc_implements___FUNCTION__="no"
24098
24099fi
24100
24101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24102 conftest$ac_exeext conftest.$ac_ext
24103
24104fi
24105{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
24106echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
24107if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
24108
24109cat >>confdefs.h <<\_ACEOF
24110#define HAVE___FUNCTION__ 1
24111_ACEOF
24112
24113fi
24114
24115{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
24116echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
24117if test "${ac_cv_cc_implements___func__+set}" = set; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24119else
24120
24121 cat >conftest.$ac_ext <<_ACEOF
24122/* confdefs.h. */
24123_ACEOF
24124cat confdefs.h >>conftest.$ac_ext
24125cat >>conftest.$ac_ext <<_ACEOF
24126/* end confdefs.h. */
24127
24128#include <stdio.h>
24129
24130int
24131main ()
24132{
24133 printf("%s", __func__);
24134 ;
24135 return 0;
24136}
24137_ACEOF
24138rm -f conftest.$ac_objext conftest$ac_exeext
24139if { (ac_try="$ac_link"
24140case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24143esac
24144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_link") 2>conftest.er1
24146 ac_status=$?
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest$ac_exeext &&
24155 $as_test_x conftest$ac_exeext; then
24156 ac_cv_cc_implements___func__="yes"
24157else
24158 echo "$as_me: failed program was:" >&5
24159sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 ac_cv_cc_implements___func__="no"
24162
24163fi
24164
24165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24167
24168fi
24169{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
24170echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
24171if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
24172
24173cat >>confdefs.h <<\_ACEOF
24174#define HAVE___func__ 1
24175_ACEOF
24176
24177fi
24178
24179{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
24180echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
24181if test "${ac_cv_have_va_copy+set}" = set; then
24182 echo $ECHO_N "(cached) $ECHO_C" >&6
24183else
24184
24185 cat >conftest.$ac_ext <<_ACEOF
24186/* confdefs.h. */
24187_ACEOF
24188cat confdefs.h >>conftest.$ac_ext
24189cat >>conftest.$ac_ext <<_ACEOF
24190/* end confdefs.h. */
24191#include <stdarg.h>
24192 va_list x,y;
24193int
24194main ()
24195{
24196va_copy(x,y);
24197 ;
24198 return 0;
24199}
24200_ACEOF
24201rm -f conftest.$ac_objext conftest$ac_exeext
24202if { (ac_try="$ac_link"
24203case "(($ac_try" in
24204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205 *) ac_try_echo=$ac_try;;
24206esac
24207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208 (eval "$ac_link") 2>conftest.er1
24209 ac_status=$?
24210 grep -v '^ *+' conftest.er1 >conftest.err
24211 rm -f conftest.er1
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } && {
24215 test -z "$ac_c_werror_flag" ||
24216 test ! -s conftest.err
24217 } && test -s conftest$ac_exeext &&
24218 $as_test_x conftest$ac_exeext; then
24219 ac_cv_have_va_copy="yes"
24220else
24221 echo "$as_me: failed program was:" >&5
24222sed 's/^/| /' conftest.$ac_ext >&5
24223
24224 ac_cv_have_va_copy="no"
24225
24226fi
24227
24228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24229 conftest$ac_exeext conftest.$ac_ext
24230
24231fi
24232{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
24233echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
24234if test "x$ac_cv_have_va_copy" = "xyes" ; then
24235
24236cat >>confdefs.h <<\_ACEOF
24237#define HAVE_VA_COPY 1
24238_ACEOF
24239
24240fi
24241
24242{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
24243echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
24244if test "${ac_cv_have___va_copy+set}" = set; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24246else
24247
24248 cat >conftest.$ac_ext <<_ACEOF
24249/* confdefs.h. */
24250_ACEOF
24251cat confdefs.h >>conftest.$ac_ext
24252cat >>conftest.$ac_ext <<_ACEOF
24253/* end confdefs.h. */
24254#include <stdarg.h>
24255 va_list x,y;
24256int
24257main ()
24258{
24259__va_copy(x,y);
24260 ;
24261 return 0;
24262}
24263_ACEOF
24264rm -f conftest.$ac_objext conftest$ac_exeext
24265if { (ac_try="$ac_link"
24266case "(($ac_try" in
24267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268 *) ac_try_echo=$ac_try;;
24269esac
24270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271 (eval "$ac_link") 2>conftest.er1
24272 ac_status=$?
24273 grep -v '^ *+' conftest.er1 >conftest.err
24274 rm -f conftest.er1
24275 cat conftest.err >&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } && {
24278 test -z "$ac_c_werror_flag" ||
24279 test ! -s conftest.err
24280 } && test -s conftest$ac_exeext &&
24281 $as_test_x conftest$ac_exeext; then
24282 ac_cv_have___va_copy="yes"
24283else
24284 echo "$as_me: failed program was:" >&5
24285sed 's/^/| /' conftest.$ac_ext >&5
24286
24287 ac_cv_have___va_copy="no"
24288
24289fi
24290
24291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24292 conftest$ac_exeext conftest.$ac_ext
24293
24294fi
24295{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
24296echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
24297if test "x$ac_cv_have___va_copy" = "xyes" ; then
24298
24299cat >>confdefs.h <<\_ACEOF
24300#define HAVE___VA_COPY 1
24301_ACEOF
24302
24303fi
24304
24305{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
24306echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
24307if test "${ac_cv_have_getopt_optreset+set}" = set; then
24308 echo $ECHO_N "(cached) $ECHO_C" >&6
24309else
24310
24311 cat >conftest.$ac_ext <<_ACEOF
24312/* confdefs.h. */
24313_ACEOF
24314cat confdefs.h >>conftest.$ac_ext
24315cat >>conftest.$ac_ext <<_ACEOF
24316/* end confdefs.h. */
24317
24318#include <getopt.h>
24319
24320int
24321main ()
24322{
24323 extern int optreset; optreset = 0;
24324 ;
24325 return 0;
24326}
24327_ACEOF
24328rm -f conftest.$ac_objext conftest$ac_exeext
24329if { (ac_try="$ac_link"
24330case "(($ac_try" in
24331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332 *) ac_try_echo=$ac_try;;
24333esac
24334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24335 (eval "$ac_link") 2>conftest.er1
24336 ac_status=$?
24337 grep -v '^ *+' conftest.er1 >conftest.err
24338 rm -f conftest.er1
24339 cat conftest.err >&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } && {
24342 test -z "$ac_c_werror_flag" ||
24343 test ! -s conftest.err
24344 } && test -s conftest$ac_exeext &&
24345 $as_test_x conftest$ac_exeext; then
24346 ac_cv_have_getopt_optreset="yes"
24347else
24348 echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351 ac_cv_have_getopt_optreset="no"
24352
24353fi
24354
24355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24356 conftest$ac_exeext conftest.$ac_ext
24357
24358fi
24359{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
24360echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
24361if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
24362
24363cat >>confdefs.h <<\_ACEOF
24364#define HAVE_GETOPT_OPTRESET 1
24365_ACEOF
24366
24367fi
24368
24369{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
24370echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
24371if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
24372 echo $ECHO_N "(cached) $ECHO_C" >&6
24373else
24374
24375 cat >conftest.$ac_ext <<_ACEOF
24376/* confdefs.h. */
24377_ACEOF
24378cat confdefs.h >>conftest.$ac_ext
24379cat >>conftest.$ac_ext <<_ACEOF
24380/* end confdefs.h. */
24381
24382int
24383main ()
24384{
24385 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
24386 ;
24387 return 0;
24388}
24389_ACEOF
24390rm -f conftest.$ac_objext conftest$ac_exeext
24391if { (ac_try="$ac_link"
24392case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24395esac
24396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397 (eval "$ac_link") 2>conftest.er1
24398 ac_status=$?
24399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest$ac_exeext &&
24407 $as_test_x conftest$ac_exeext; then
24408 ac_cv_libc_defines_sys_errlist="yes"
24409else
24410 echo "$as_me: failed program was:" >&5
24411sed 's/^/| /' conftest.$ac_ext >&5
24412
24413 ac_cv_libc_defines_sys_errlist="no"
24414
24415fi
24416
24417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24418 conftest$ac_exeext conftest.$ac_ext
24419
24420fi
24421{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
24422echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
24423if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
24424
24425cat >>confdefs.h <<\_ACEOF
24426#define HAVE_SYS_ERRLIST 1
24427_ACEOF
24428
24429fi
24430
24431
24432{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
24433echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
24434if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24436else
24437
24438 cat >conftest.$ac_ext <<_ACEOF
24439/* confdefs.h. */
24440_ACEOF
24441cat confdefs.h >>conftest.$ac_ext
24442cat >>conftest.$ac_ext <<_ACEOF
24443/* end confdefs.h. */
24444
24445int
24446main ()
24447{
24448 extern int sys_nerr; printf("%i", sys_nerr);
24449 ;
24450 return 0;
24451}
24452_ACEOF
24453rm -f conftest.$ac_objext conftest$ac_exeext
24454if { (ac_try="$ac_link"
24455case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24458esac
24459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_link") 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest$ac_exeext &&
24470 $as_test_x conftest$ac_exeext; then
24471 ac_cv_libc_defines_sys_nerr="yes"
24472else
24473 echo "$as_me: failed program was:" >&5
24474sed 's/^/| /' conftest.$ac_ext >&5
24475
24476 ac_cv_libc_defines_sys_nerr="no"
24477
24478fi
24479
24480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24481 conftest$ac_exeext conftest.$ac_ext
24482
24483fi
24484{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
24485echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
24486if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
24487
24488cat >>confdefs.h <<\_ACEOF
24489#define HAVE_SYS_NERR 1
24490_ACEOF
24491
24492fi
24493
24494SCARD_MSG="no"
24495# Check whether user wants sectok support
24496
24497# Check whether --with-sectok was given.
24498if test "${with_sectok+set}" = set; then
24499 withval=$with_sectok;
24500 if test "x$withval" != "xno" ; then
24501 if test "x$withval" != "xyes" ; then
24502 CPPFLAGS="$CPPFLAGS -I${withval}"
24503 LDFLAGS="$LDFLAGS -L${withval}"
24504 if test ! -z "$need_dash_r" ; then
24505 LDFLAGS="$LDFLAGS -R${withval}"
24506 fi
24507 if test ! -z "$blibpath" ; then
24508 blibpath="$blibpath:${withval}"
24509 fi
24510 fi
24511
24512for ac_header in sectok.h
24513do
24514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24519 echo $ECHO_N "(cached) $ECHO_C" >&6
24520fi
24521ac_res=`eval echo '${'$as_ac_Header'}'`
24522 { echo "$as_me:$LINENO: result: $ac_res" >&5
24523echo "${ECHO_T}$ac_res" >&6; }
24524else
24525 # Is the header compilable?
24526{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24528cat >conftest.$ac_ext <<_ACEOF
24529/* confdefs.h. */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h. */
24534$ac_includes_default
24535#include <$ac_header>
24536_ACEOF
24537rm -f conftest.$ac_objext
24538if { (ac_try="$ac_compile"
24539case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24542esac
24543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_compile") 2>conftest.er1
24545 ac_status=$?
24546 grep -v '^ *+' conftest.er1 >conftest.err
24547 rm -f conftest.er1
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } && {
24551 test -z "$ac_c_werror_flag" ||
24552 test ! -s conftest.err
24553 } && test -s conftest.$ac_objext; then
24554 ac_header_compiler=yes
24555else
24556 echo "$as_me: failed program was:" >&5
24557sed 's/^/| /' conftest.$ac_ext >&5
24558
24559 ac_header_compiler=no
24560fi
24561
24562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24564echo "${ECHO_T}$ac_header_compiler" >&6; }
24565
24566# Is the header present?
24567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24569cat >conftest.$ac_ext <<_ACEOF
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575#include <$ac_header>
24576_ACEOF
24577if { (ac_try="$ac_cpp conftest.$ac_ext"
24578case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24581esac
24582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24584 ac_status=$?
24585 grep -v '^ *+' conftest.er1 >conftest.err
24586 rm -f conftest.er1
24587 cat conftest.err >&5
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } >/dev/null && {
24590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24591 test ! -s conftest.err
24592 }; then
24593 ac_header_preproc=yes
24594else
24595 echo "$as_me: failed program was:" >&5
24596sed 's/^/| /' conftest.$ac_ext >&5
24597
24598 ac_header_preproc=no
24599fi
24600
24601rm -f conftest.err conftest.$ac_ext
24602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24603echo "${ECHO_T}$ac_header_preproc" >&6; }
24604
24605# So? What about this header?
24606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24607 yes:no: )
24608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24612 ac_header_preproc=yes
24613 ;;
24614 no:yes:* )
24615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24627 ( cat <<\_ASBOX
24628## ------------------------------------------- ##
24629## Report this to openssh-unix-dev@mindrot.org ##
24630## ------------------------------------------- ##
24631_ASBOX
24632 ) | sed "s/^/$as_me: WARNING: /" >&2
24633 ;;
24634esac
24635{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24639else
24640 eval "$as_ac_Header=\$ac_header_preproc"
24641fi
24642ac_res=`eval echo '${'$as_ac_Header'}'`
24643 { echo "$as_me:$LINENO: result: $ac_res" >&5
24644echo "${ECHO_T}$ac_res" >&6; }
24645
24646fi
24647if test `eval echo '${'$as_ac_Header'}'` = yes; then
24648 cat >>confdefs.h <<_ACEOF
24649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24650_ACEOF
24651
24652fi
24653
24654done
24655
24656 if test "$ac_cv_header_sectok_h" != yes; then
24657 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
24658echo "$as_me: error: Can't find sectok.h" >&2;}
24659 { (exit 1); exit 1; }; }
24660 fi
24661
24662{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
24663echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
24664if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
24665 echo $ECHO_N "(cached) $ECHO_C" >&6
24666else
24667 ac_check_lib_save_LIBS=$LIBS
24668LIBS="-lsectok $LIBS"
24669cat >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/* Override any GCC internal prototype to avoid an error.
24677 Use char because int might match the return type of a GCC
24678 builtin and then its argument prototype would still apply. */
24679#ifdef __cplusplus
24680extern "C"
24681#endif
24682char sectok_open ();
24683int
24684main ()
24685{
24686return sectok_open ();
24687 ;
24688 return 0;
24689}
24690_ACEOF
24691rm -f conftest.$ac_objext conftest$ac_exeext
24692if { (ac_try="$ac_link"
24693case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696esac
24697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_link") 2>conftest.er1
24699 ac_status=$?
24700 grep -v '^ *+' conftest.er1 >conftest.err
24701 rm -f conftest.er1
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && {
24705 test -z "$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24707 } && test -s conftest$ac_exeext &&
24708 $as_test_x conftest$ac_exeext; then
24709 ac_cv_lib_sectok_sectok_open=yes
24710else
24711 echo "$as_me: failed program was:" >&5
24712sed 's/^/| /' conftest.$ac_ext >&5
24713
24714 ac_cv_lib_sectok_sectok_open=no
24715fi
24716
24717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24718 conftest$ac_exeext conftest.$ac_ext
24719LIBS=$ac_check_lib_save_LIBS
24720fi
24721{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
24722echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
24723if test $ac_cv_lib_sectok_sectok_open = yes; then
24724 cat >>confdefs.h <<_ACEOF
24725#define HAVE_LIBSECTOK 1
24726_ACEOF
24727
24728 LIBS="-lsectok $LIBS"
24729
24730fi
24731
24732 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
24733 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
24734echo "$as_me: error: Can't find libsectok" >&2;}
24735 { (exit 1); exit 1; }; }
24736 fi
24737
24738cat >>confdefs.h <<\_ACEOF
24739#define SMARTCARD 1
24740_ACEOF
24741
24742
24743cat >>confdefs.h <<\_ACEOF
24744#define USE_SECTOK 1
24745_ACEOF
24746
24747 SCARD_MSG="yes, using sectok"
24748 fi
24749
24750
24751fi
24752
24753
24754# Check whether user wants OpenSC support
24755OPENSC_CONFIG="no"
24756
24757# Check whether --with-opensc was given.
24758if test "${with_opensc+set}" = set; then
24759 withval=$with_opensc;
24760 if test "x$withval" != "xno" ; then
24761 if test "x$withval" != "xyes" ; then
24762 OPENSC_CONFIG=$withval/bin/opensc-config
24763 else
24764 # Extract the first word of "opensc-config", so it can be a program name with args.
24765set dummy opensc-config; ac_word=$2
24766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24768if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24770else
24771 case $OPENSC_CONFIG in
24772 [\\/]* | ?:[\\/]*)
24773 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
24774 ;;
24775 *)
24776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24777for as_dir in $PATH
24778do
24779 IFS=$as_save_IFS
24780 test -z "$as_dir" && as_dir=.
24781 for ac_exec_ext in '' $ac_executable_extensions; do
24782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24783 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24785 break 2
24786 fi
24787done
24788done
24789IFS=$as_save_IFS
24790
24791 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
24792 ;;
24793esac
24794fi
24795OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
24796if test -n "$OPENSC_CONFIG"; then
24797 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
24798echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
24799else
24800 { echo "$as_me:$LINENO: result: no" >&5
24801echo "${ECHO_T}no" >&6; }
24802fi
24803
24804
24805 fi
24806 if test "$OPENSC_CONFIG" != "no"; then
24807 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
24808 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
24809 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
24810 LIBS="$LIBS $LIBOPENSC_LIBS"
24811 cat >>confdefs.h <<\_ACEOF
24812#define SMARTCARD 1
24813_ACEOF
24814
24815
24816cat >>confdefs.h <<\_ACEOF
24817#define USE_OPENSC 1
24818_ACEOF
24819
24820 SCARD_MSG="yes, using OpenSC"
24821 fi
24822 fi
24823
24824
24825fi
24826
24827
24828# Check libraries needed by DNS fingerprint support
24829{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
24830echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
24831if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24833else
24834 ac_func_search_save_LIBS=$LIBS
24835cat >conftest.$ac_ext <<_ACEOF
24836/* confdefs.h. */
24837_ACEOF
24838cat confdefs.h >>conftest.$ac_ext
24839cat >>conftest.$ac_ext <<_ACEOF
24840/* end confdefs.h. */
24841
24842/* Override any GCC internal prototype to avoid an error.
24843 Use char because int might match the return type of a GCC
24844 builtin and then its argument prototype would still apply. */
24845#ifdef __cplusplus
24846extern "C"
24847#endif
24848char getrrsetbyname ();
24849int
24850main ()
24851{
24852return getrrsetbyname ();
24853 ;
24854 return 0;
24855}
24856_ACEOF
24857for ac_lib in '' resolv; do
24858 if test -z "$ac_lib"; then
24859 ac_res="none required"
24860 else
24861 ac_res=-l$ac_lib
24862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24863 fi
24864 rm -f conftest.$ac_objext conftest$ac_exeext
24865if { (ac_try="$ac_link"
24866case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869esac
24870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_link") 2>conftest.er1
24872 ac_status=$?
24873 grep -v '^ *+' conftest.er1 >conftest.err
24874 rm -f conftest.er1
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } && {
24878 test -z "$ac_c_werror_flag" ||
24879 test ! -s conftest.err
24880 } && test -s conftest$ac_exeext &&
24881 $as_test_x conftest$ac_exeext; then
24882 ac_cv_search_getrrsetbyname=$ac_res
24883else
24884 echo "$as_me: failed program was:" >&5
24885sed 's/^/| /' conftest.$ac_ext >&5
24886
24887
24888fi
24889
24890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24891 conftest$ac_exeext
24892 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24893 break
24894fi
24895done
24896if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24897 :
24898else
24899 ac_cv_search_getrrsetbyname=no
24900fi
24901rm conftest.$ac_ext
24902LIBS=$ac_func_search_save_LIBS
24903fi
24904{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
24905echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
24906ac_res=$ac_cv_search_getrrsetbyname
24907if test "$ac_res" != no; then
24908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24909
24910cat >>confdefs.h <<\_ACEOF
24911#define HAVE_GETRRSETBYNAME 1
24912_ACEOF
24913
24914else
24915
24916 # Needed by our getrrsetbyname()
24917 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
24918echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
24919if test "${ac_cv_search_res_query+set}" = set; then
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24921else
24922 ac_func_search_save_LIBS=$LIBS
24923cat >conftest.$ac_ext <<_ACEOF
24924/* confdefs.h. */
24925_ACEOF
24926cat confdefs.h >>conftest.$ac_ext
24927cat >>conftest.$ac_ext <<_ACEOF
24928/* end confdefs.h. */
24929
24930/* Override any GCC internal prototype to avoid an error.
24931 Use char because int might match the return type of a GCC
24932 builtin and then its argument prototype would still apply. */
24933#ifdef __cplusplus
24934extern "C"
24935#endif
24936char res_query ();
24937int
24938main ()
24939{
24940return res_query ();
24941 ;
24942 return 0;
24943}
24944_ACEOF
24945for ac_lib in '' resolv; do
24946 if test -z "$ac_lib"; then
24947 ac_res="none required"
24948 else
24949 ac_res=-l$ac_lib
24950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24951 fi
24952 rm -f conftest.$ac_objext conftest$ac_exeext
24953if { (ac_try="$ac_link"
24954case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24957esac
24958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959 (eval "$ac_link") 2>conftest.er1
24960 ac_status=$?
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest$ac_exeext &&
24969 $as_test_x conftest$ac_exeext; then
24970 ac_cv_search_res_query=$ac_res
24971else
24972 echo "$as_me: failed program was:" >&5
24973sed 's/^/| /' conftest.$ac_ext >&5
24974
24975
24976fi
24977
24978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24979 conftest$ac_exeext
24980 if test "${ac_cv_search_res_query+set}" = set; then
24981 break
24982fi
24983done
24984if test "${ac_cv_search_res_query+set}" = set; then
24985 :
24986else
24987 ac_cv_search_res_query=no
24988fi
24989rm conftest.$ac_ext
24990LIBS=$ac_func_search_save_LIBS
24991fi
24992{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
24993echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
24994ac_res=$ac_cv_search_res_query
24995if test "$ac_res" != no; then
24996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24997
24998fi
24999
25000 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25001echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25002if test "${ac_cv_search_dn_expand+set}" = set; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25004else
25005 ac_func_search_save_LIBS=$LIBS
25006cat >conftest.$ac_ext <<_ACEOF
25007/* confdefs.h. */
25008_ACEOF
25009cat confdefs.h >>conftest.$ac_ext
25010cat >>conftest.$ac_ext <<_ACEOF
25011/* end confdefs.h. */
25012
25013/* Override any GCC internal prototype to avoid an error.
25014 Use char because int might match the return type of a GCC
25015 builtin and then its argument prototype would still apply. */
25016#ifdef __cplusplus
25017extern "C"
25018#endif
25019char dn_expand ();
25020int
25021main ()
25022{
25023return dn_expand ();
25024 ;
25025 return 0;
25026}
25027_ACEOF
25028for ac_lib in '' resolv; do
25029 if test -z "$ac_lib"; then
25030 ac_res="none required"
25031 else
25032 ac_res=-l$ac_lib
25033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25034 fi
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036if { (ac_try="$ac_link"
25037case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25040esac
25041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042 (eval "$ac_link") 2>conftest.er1
25043 ac_status=$?
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest$ac_exeext &&
25052 $as_test_x conftest$ac_exeext; then
25053 ac_cv_search_dn_expand=$ac_res
25054else
25055 echo "$as_me: failed program was:" >&5
25056sed 's/^/| /' conftest.$ac_ext >&5
25057
25058
25059fi
25060
25061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25062 conftest$ac_exeext
25063 if test "${ac_cv_search_dn_expand+set}" = set; then
25064 break
25065fi
25066done
25067if test "${ac_cv_search_dn_expand+set}" = set; then
25068 :
25069else
25070 ac_cv_search_dn_expand=no
25071fi
25072rm conftest.$ac_ext
25073LIBS=$ac_func_search_save_LIBS
25074fi
25075{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25076echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25077ac_res=$ac_cv_search_dn_expand
25078if test "$ac_res" != no; then
25079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25080
25081fi
25082
25083 { echo "$as_me:$LINENO: checking if res_query will link" >&5
25084echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
25085 cat >conftest.$ac_ext <<_ACEOF
25086/* confdefs.h. */
25087_ACEOF
25088cat confdefs.h >>conftest.$ac_ext
25089cat >>conftest.$ac_ext <<_ACEOF
25090/* end confdefs.h. */
25091
25092/* Override any GCC internal prototype to avoid an error.
25093 Use char because int might match the return type of a GCC
25094 builtin and then its argument prototype would still apply. */
25095#ifdef __cplusplus
25096extern "C"
25097#endif
25098char res_query ();
25099int
25100main ()
25101{
25102return res_query ();
25103 ;
25104 return 0;
25105}
25106_ACEOF
25107rm -f conftest.$ac_objext conftest$ac_exeext
25108if { (ac_try="$ac_link"
25109case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112esac
25113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_link") 2>conftest.er1
25115 ac_status=$?
25116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } && {
25121 test -z "$ac_c_werror_flag" ||
25122 test ! -s conftest.err
25123 } && test -s conftest$ac_exeext &&
25124 $as_test_x conftest$ac_exeext; then
25125 { echo "$as_me:$LINENO: result: yes" >&5
25126echo "${ECHO_T}yes" >&6; }
25127else
25128 echo "$as_me: failed program was:" >&5
25129sed 's/^/| /' conftest.$ac_ext >&5
25130
25131 { echo "$as_me:$LINENO: result: no" >&5
25132echo "${ECHO_T}no" >&6; }
25133 saved_LIBS="$LIBS"
25134 LIBS="$LIBS -lresolv"
25135 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
25136echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
25137 cat >conftest.$ac_ext <<_ACEOF
25138
25139#include <resolv.h>
25140int main()
25141{
25142 res_query (0, 0, 0, 0, 0);
25143 return 0;
25144}
25145
25146_ACEOF
25147rm -f conftest.$ac_objext conftest$ac_exeext
25148if { (ac_try="$ac_link"
25149case "(($ac_try" in
25150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25151 *) ac_try_echo=$ac_try;;
25152esac
25153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25154 (eval "$ac_link") 2>conftest.er1
25155 ac_status=$?
25156 grep -v '^ *+' conftest.er1 >conftest.err
25157 rm -f conftest.er1
25158 cat conftest.err >&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); } && {
25161 test -z "$ac_c_werror_flag" ||
25162 test ! -s conftest.err
25163 } && test -s conftest$ac_exeext &&
25164 $as_test_x conftest$ac_exeext; then
25165 LIBS="$LIBS -lresolv"
25166 { echo "$as_me:$LINENO: result: yes" >&5
25167echo "${ECHO_T}yes" >&6; }
25168else
25169 echo "$as_me: failed program was:" >&5
25170sed 's/^/| /' conftest.$ac_ext >&5
25171
25172 LIBS="$saved_LIBS"
25173 { echo "$as_me:$LINENO: result: no" >&5
25174echo "${ECHO_T}no" >&6; }
25175fi
25176
25177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25178 conftest$ac_exeext conftest.$ac_ext
25179
25180fi
25181
25182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25183 conftest$ac_exeext conftest.$ac_ext
25184
25185
25186for ac_func in _getshort _getlong
25187do
25188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25193else
25194 cat >conftest.$ac_ext <<_ACEOF
25195/* confdefs.h. */
25196_ACEOF
25197cat confdefs.h >>conftest.$ac_ext
25198cat >>conftest.$ac_ext <<_ACEOF
25199/* end confdefs.h. */
25200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25202#define $ac_func innocuous_$ac_func
25203
25204/* System header to define __stub macros and hopefully few prototypes,
25205 which can conflict with char $ac_func (); below.
25206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25207 <limits.h> exists even on freestanding compilers. */
25208
25209#ifdef __STDC__
25210# include <limits.h>
25211#else
25212# include <assert.h>
25213#endif
25214
25215#undef $ac_func
25216
25217/* Override any GCC internal prototype to avoid an error.
25218 Use char because int might match the return type of a GCC
25219 builtin and then its argument prototype would still apply. */
25220#ifdef __cplusplus
25221extern "C"
25222#endif
25223char $ac_func ();
25224/* The GNU C library defines this for functions which it implements
25225 to always fail with ENOSYS. Some functions are actually named
25226 something starting with __ and the normal name is an alias. */
25227#if defined __stub_$ac_func || defined __stub___$ac_func
25228choke me
25229#endif
25230
25231int
25232main ()
25233{
25234return $ac_func ();
25235 ;
25236 return 0;
25237}
25238_ACEOF
25239rm -f conftest.$ac_objext conftest$ac_exeext
25240if { (ac_try="$ac_link"
25241case "(($ac_try" in
25242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243 *) ac_try_echo=$ac_try;;
25244esac
25245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246 (eval "$ac_link") 2>conftest.er1
25247 ac_status=$?
25248 grep -v '^ *+' conftest.er1 >conftest.err
25249 rm -f conftest.er1
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } && {
25253 test -z "$ac_c_werror_flag" ||
25254 test ! -s conftest.err
25255 } && test -s conftest$ac_exeext &&
25256 $as_test_x conftest$ac_exeext; then
25257 eval "$as_ac_var=yes"
25258else
25259 echo "$as_me: failed program was:" >&5
25260sed 's/^/| /' conftest.$ac_ext >&5
25261
25262 eval "$as_ac_var=no"
25263fi
25264
25265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25266 conftest$ac_exeext conftest.$ac_ext
25267fi
25268ac_res=`eval echo '${'$as_ac_var'}'`
25269 { echo "$as_me:$LINENO: result: $ac_res" >&5
25270echo "${ECHO_T}$ac_res" >&6; }
25271if test `eval echo '${'$as_ac_var'}'` = yes; then
25272 cat >>confdefs.h <<_ACEOF
25273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25274_ACEOF
25275
25276fi
25277done
25278
25279 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
25280echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
25281if test "${ac_cv_have_decl__getshort+set}" = set; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25283else
25284 cat >conftest.$ac_ext <<_ACEOF
25285/* confdefs.h. */
25286_ACEOF
25287cat confdefs.h >>conftest.$ac_ext
25288cat >>conftest.$ac_ext <<_ACEOF
25289/* end confdefs.h. */
25290#include <sys/types.h>
25291 #include <arpa/nameser.h>
25292
25293int
25294main ()
25295{
25296#ifndef _getshort
25297 (void) _getshort;
25298#endif
25299
25300 ;
25301 return 0;
25302}
25303_ACEOF
25304rm -f conftest.$ac_objext
25305if { (ac_try="$ac_compile"
25306case "(($ac_try" in
25307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308 *) ac_try_echo=$ac_try;;
25309esac
25310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311 (eval "$ac_compile") 2>conftest.er1
25312 ac_status=$?
25313 grep -v '^ *+' conftest.er1 >conftest.err
25314 rm -f conftest.er1
25315 cat conftest.err >&5
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } && {
25318 test -z "$ac_c_werror_flag" ||
25319 test ! -s conftest.err
25320 } && test -s conftest.$ac_objext; then
25321 ac_cv_have_decl__getshort=yes
25322else
25323 echo "$as_me: failed program was:" >&5
25324sed 's/^/| /' conftest.$ac_ext >&5
25325
25326 ac_cv_have_decl__getshort=no
25327fi
25328
25329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25330fi
25331{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
25332echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
25333if test $ac_cv_have_decl__getshort = yes; then
25334
25335cat >>confdefs.h <<_ACEOF
25336#define HAVE_DECL__GETSHORT 1
25337_ACEOF
25338
25339
25340else
25341 cat >>confdefs.h <<_ACEOF
25342#define HAVE_DECL__GETSHORT 0
25343_ACEOF
25344
25345
25346fi
25347{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
25348echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
25349if test "${ac_cv_have_decl__getlong+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25351else
25352 cat >conftest.$ac_ext <<_ACEOF
25353/* confdefs.h. */
25354_ACEOF
25355cat confdefs.h >>conftest.$ac_ext
25356cat >>conftest.$ac_ext <<_ACEOF
25357/* end confdefs.h. */
25358#include <sys/types.h>
25359 #include <arpa/nameser.h>
25360
25361int
25362main ()
25363{
25364#ifndef _getlong
25365 (void) _getlong;
25366#endif
25367
25368 ;
25369 return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext
25373if { (ac_try="$ac_compile"
25374case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377esac
25378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_compile") 2>conftest.er1
25380 ac_status=$?
25381 grep -v '^ *+' conftest.er1 >conftest.err
25382 rm -f conftest.er1
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } && {
25386 test -z "$ac_c_werror_flag" ||
25387 test ! -s conftest.err
25388 } && test -s conftest.$ac_objext; then
25389 ac_cv_have_decl__getlong=yes
25390else
25391 echo "$as_me: failed program was:" >&5
25392sed 's/^/| /' conftest.$ac_ext >&5
25393
25394 ac_cv_have_decl__getlong=no
25395fi
25396
25397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398fi
25399{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
25400echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
25401if test $ac_cv_have_decl__getlong = yes; then
25402
25403cat >>confdefs.h <<_ACEOF
25404#define HAVE_DECL__GETLONG 1
25405_ACEOF
25406
25407
25408else
25409 cat >>confdefs.h <<_ACEOF
25410#define HAVE_DECL__GETLONG 0
25411_ACEOF
25412
25413
25414fi
25415
25416
25417 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
25418echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
25419if test "${ac_cv_member_HEADER_ad+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25421else
25422 cat >conftest.$ac_ext <<_ACEOF
25423/* confdefs.h. */
25424_ACEOF
25425cat confdefs.h >>conftest.$ac_ext
25426cat >>conftest.$ac_ext <<_ACEOF
25427/* end confdefs.h. */
25428#include <arpa/nameser.h>
25429
25430int
25431main ()
25432{
25433static HEADER ac_aggr;
25434if (ac_aggr.ad)
25435return 0;
25436 ;
25437 return 0;
25438}
25439_ACEOF
25440rm -f conftest.$ac_objext
25441if { (ac_try="$ac_compile"
25442case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25445esac
25446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447 (eval "$ac_compile") 2>conftest.er1
25448 ac_status=$?
25449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } && {
25454 test -z "$ac_c_werror_flag" ||
25455 test ! -s conftest.err
25456 } && test -s conftest.$ac_objext; then
25457 ac_cv_member_HEADER_ad=yes
25458else
25459 echo "$as_me: failed program was:" >&5
25460sed 's/^/| /' conftest.$ac_ext >&5
25461
25462 cat >conftest.$ac_ext <<_ACEOF
25463/* confdefs.h. */
25464_ACEOF
25465cat confdefs.h >>conftest.$ac_ext
25466cat >>conftest.$ac_ext <<_ACEOF
25467/* end confdefs.h. */
25468#include <arpa/nameser.h>
25469
25470int
25471main ()
25472{
25473static HEADER ac_aggr;
25474if (sizeof ac_aggr.ad)
25475return 0;
25476 ;
25477 return 0;
25478}
25479_ACEOF
25480rm -f conftest.$ac_objext
25481if { (ac_try="$ac_compile"
25482case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25485esac
25486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_compile") 2>conftest.er1
25488 ac_status=$?
25489 grep -v '^ *+' conftest.er1 >conftest.err
25490 rm -f conftest.er1
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest.$ac_objext; then
25497 ac_cv_member_HEADER_ad=yes
25498else
25499 echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 ac_cv_member_HEADER_ad=no
25503fi
25504
25505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506fi
25507
25508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25509fi
25510{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
25511echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
25512if test $ac_cv_member_HEADER_ad = yes; then
25513
25514cat >>confdefs.h <<\_ACEOF
25515#define HAVE_HEADER_AD 1
25516_ACEOF
25517
25518fi
25519
25520
25521fi
25522
25523
25524{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
25525echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
25526cat >conftest.$ac_ext <<_ACEOF
25527
25528#include <stdio.h>
25529#if HAVE_SYS_TYPES_H
25530# include <sys/types.h>
25531#endif
25532#include <netinet/in.h>
25533#include <arpa/nameser.h>
25534#include <resolv.h>
25535extern struct __res_state _res;
25536int main() { return 0; }
25537
25538_ACEOF
25539rm -f conftest.$ac_objext conftest$ac_exeext
25540if { (ac_try="$ac_link"
25541case "(($ac_try" in
25542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543 *) ac_try_echo=$ac_try;;
25544esac
25545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546 (eval "$ac_link") 2>conftest.er1
25547 ac_status=$?
25548 grep -v '^ *+' conftest.er1 >conftest.err
25549 rm -f conftest.er1
25550 cat conftest.err >&5
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); } && {
25553 test -z "$ac_c_werror_flag" ||
25554 test ! -s conftest.err
25555 } && test -s conftest$ac_exeext &&
25556 $as_test_x conftest$ac_exeext; then
25557 { echo "$as_me:$LINENO: result: yes" >&5
25558echo "${ECHO_T}yes" >&6; }
25559
25560cat >>confdefs.h <<\_ACEOF
25561#define HAVE__RES_EXTERN 1
25562_ACEOF
25563
25564
25565else
25566 echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569 { echo "$as_me:$LINENO: result: no" >&5
25570echo "${ECHO_T}no" >&6; }
25571
25572fi
25573
25574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25575 conftest$ac_exeext conftest.$ac_ext
25576
25577# Check whether user wants SELinux support
25578SELINUX_MSG="no"
25579LIBSELINUX=""
25580
25581# Check whether --with-selinux was given.
25582if test "${with_selinux+set}" = set; then
25583 withval=$with_selinux; if test "x$withval" != "xno" ; then
25584 save_LIBS="$LIBS"
25585
25586cat >>confdefs.h <<\_ACEOF
25587#define WITH_SELINUX 1
25588_ACEOF
25589
25590 SELINUX_MSG="yes"
25591 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25592 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25593echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25594if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596fi
25597{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25598echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25599else
25600 # Is the header compilable?
25601{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25602echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
25603cat >conftest.$ac_ext <<_ACEOF
25604/* confdefs.h. */
25605_ACEOF
25606cat confdefs.h >>conftest.$ac_ext
25607cat >>conftest.$ac_ext <<_ACEOF
25608/* end confdefs.h. */
25609$ac_includes_default
25610#include <selinux/selinux.h>
25611_ACEOF
25612rm -f conftest.$ac_objext
25613if { (ac_try="$ac_compile"
25614case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25617esac
25618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_compile") 2>conftest.er1
25620 ac_status=$?
25621 grep -v '^ *+' conftest.er1 >conftest.err
25622 rm -f conftest.er1
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } && {
25626 test -z "$ac_c_werror_flag" ||
25627 test ! -s conftest.err
25628 } && test -s conftest.$ac_objext; then
25629 ac_header_compiler=yes
25630else
25631 echo "$as_me: failed program was:" >&5
25632sed 's/^/| /' conftest.$ac_ext >&5
25633
25634 ac_header_compiler=no
25635fi
25636
25637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25638{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25639echo "${ECHO_T}$ac_header_compiler" >&6; }
25640
25641# Is the header present?
25642{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25643echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
25644cat >conftest.$ac_ext <<_ACEOF
25645/* confdefs.h. */
25646_ACEOF
25647cat confdefs.h >>conftest.$ac_ext
25648cat >>conftest.$ac_ext <<_ACEOF
25649/* end confdefs.h. */
25650#include <selinux/selinux.h>
25651_ACEOF
25652if { (ac_try="$ac_cpp conftest.$ac_ext"
25653case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25656esac
25657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25659 ac_status=$?
25660 grep -v '^ *+' conftest.er1 >conftest.err
25661 rm -f conftest.er1
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } >/dev/null && {
25665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25666 test ! -s conftest.err
25667 }; then
25668 ac_header_preproc=yes
25669else
25670 echo "$as_me: failed program was:" >&5
25671sed 's/^/| /' conftest.$ac_ext >&5
25672
25673 ac_header_preproc=no
25674fi
25675
25676rm -f conftest.err conftest.$ac_ext
25677{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25678echo "${ECHO_T}$ac_header_preproc" >&6; }
25679
25680# So? What about this header?
25681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25682 yes:no: )
25683 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25684echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25685 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25686echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25687 ac_header_preproc=yes
25688 ;;
25689 no:yes:* )
25690 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25691echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25693echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25695echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25697echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25699echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25701echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25702 ( cat <<\_ASBOX
25703## ------------------------------------------- ##
25704## Report this to openssh-unix-dev@mindrot.org ##
25705## ------------------------------------------- ##
25706_ASBOX
25707 ) | sed "s/^/$as_me: WARNING: /" >&2
25708 ;;
25709esac
25710{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25711echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25712if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25714else
25715 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25716fi
25717{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25718echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25719
25720fi
25721if test $ac_cv_header_selinux_selinux_h = yes; then
25722 :
25723else
25724 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25725echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25726 { (exit 1); exit 1; }; }
25727fi
25728
25729
25730 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25731echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25732if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
25734else
25735 ac_check_lib_save_LIBS=$LIBS
25736LIBS="-lselinux $LIBS"
25737cat >conftest.$ac_ext <<_ACEOF
25738/* confdefs.h. */
25739_ACEOF
25740cat confdefs.h >>conftest.$ac_ext
25741cat >>conftest.$ac_ext <<_ACEOF
25742/* end confdefs.h. */
25743
25744/* Override any GCC internal prototype to avoid an error.
25745 Use char because int might match the return type of a GCC
25746 builtin and then its argument prototype would still apply. */
25747#ifdef __cplusplus
25748extern "C"
25749#endif
25750char setexeccon ();
25751int
25752main ()
25753{
25754return setexeccon ();
25755 ;
25756 return 0;
25757}
25758_ACEOF
25759rm -f conftest.$ac_objext conftest$ac_exeext
25760if { (ac_try="$ac_link"
25761case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764esac
25765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25766 (eval "$ac_link") 2>conftest.er1
25767 ac_status=$?
25768 grep -v '^ *+' conftest.er1 >conftest.err
25769 rm -f conftest.er1
25770 cat conftest.err >&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } && {
25773 test -z "$ac_c_werror_flag" ||
25774 test ! -s conftest.err
25775 } && test -s conftest$ac_exeext &&
25776 $as_test_x conftest$ac_exeext; then
25777 ac_cv_lib_selinux_setexeccon=yes
25778else
25779 echo "$as_me: failed program was:" >&5
25780sed 's/^/| /' conftest.$ac_ext >&5
25781
25782 ac_cv_lib_selinux_setexeccon=no
25783fi
25784
25785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25786 conftest$ac_exeext conftest.$ac_ext
25787LIBS=$ac_check_lib_save_LIBS
25788fi
25789{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
25790echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
25791if test $ac_cv_lib_selinux_setexeccon = yes; then
25792 LIBSELINUX="-lselinux"
25793else
25794 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
25795echo "$as_me: error: SELinux support requires libselinux library" >&2;}
25796 { (exit 1); exit 1; }; }
25797fi
25798
25799 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
25800
25801
25802for ac_func in getseuserbyname get_default_context_with_level
25803do
25804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25808 echo $ECHO_N "(cached) $ECHO_C" >&6
25809else
25810 cat >conftest.$ac_ext <<_ACEOF
25811/* confdefs.h. */
25812_ACEOF
25813cat confdefs.h >>conftest.$ac_ext
25814cat >>conftest.$ac_ext <<_ACEOF
25815/* end confdefs.h. */
25816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25818#define $ac_func innocuous_$ac_func
25819
25820/* System header to define __stub macros and hopefully few prototypes,
25821 which can conflict with char $ac_func (); below.
25822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25823 <limits.h> exists even on freestanding compilers. */
25824
25825#ifdef __STDC__
25826# include <limits.h>
25827#else
25828# include <assert.h>
25829#endif
25830
25831#undef $ac_func
25832
25833/* Override any GCC internal prototype to avoid an error.
25834 Use char because int might match the return type of a GCC
25835 builtin and then its argument prototype would still apply. */
25836#ifdef __cplusplus
25837extern "C"
25838#endif
25839char $ac_func ();
25840/* The GNU C library defines this for functions which it implements
25841 to always fail with ENOSYS. Some functions are actually named
25842 something starting with __ and the normal name is an alias. */
25843#if defined __stub_$ac_func || defined __stub___$ac_func
25844choke me
25845#endif
25846
25847int
25848main ()
25849{
25850return $ac_func ();
25851 ;
25852 return 0;
25853}
25854_ACEOF
25855rm -f conftest.$ac_objext conftest$ac_exeext
25856if { (ac_try="$ac_link"
25857case "(($ac_try" in
25858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859 *) ac_try_echo=$ac_try;;
25860esac
25861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862 (eval "$ac_link") 2>conftest.er1
25863 ac_status=$?
25864 grep -v '^ *+' conftest.er1 >conftest.err
25865 rm -f conftest.er1
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } && {
25869 test -z "$ac_c_werror_flag" ||
25870 test ! -s conftest.err
25871 } && test -s conftest$ac_exeext &&
25872 $as_test_x conftest$ac_exeext; then
25873 eval "$as_ac_var=yes"
25874else
25875 echo "$as_me: failed program was:" >&5
25876sed 's/^/| /' conftest.$ac_ext >&5
25877
25878 eval "$as_ac_var=no"
25879fi
25880
25881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25882 conftest$ac_exeext conftest.$ac_ext
25883fi
25884ac_res=`eval echo '${'$as_ac_var'}'`
25885 { echo "$as_me:$LINENO: result: $ac_res" >&5
25886echo "${ECHO_T}$ac_res" >&6; }
25887if test `eval echo '${'$as_ac_var'}'` = yes; then
25888 cat >>confdefs.h <<_ACEOF
25889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25890_ACEOF
25891
25892fi
25893done
25894
25895 LIBS="$save_LIBS"
25896 fi
25897
25898fi
25899
25900
25901# Check whether user wants Kerberos 5 support
25902KRB5_MSG="no"
25903
25904# Check whether --with-kerberos5 was given.
25905if test "${with_kerberos5+set}" = set; then
25906 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
25907 if test "x$withval" = "xyes" ; then
25908 KRB5ROOT="/usr/local"
25909 else
25910 KRB5ROOT=${withval}
25911 fi
25912
25913
25914cat >>confdefs.h <<\_ACEOF
25915#define KRB5 1
25916_ACEOF
25917
25918 KRB5_MSG="yes"
25919
25920 { echo "$as_me:$LINENO: checking for krb5-config" >&5
25921echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
25922 if test -x $KRB5ROOT/bin/krb5-config ; then
25923 KRB5CONF=$KRB5ROOT/bin/krb5-config
25924 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
25925echo "${ECHO_T}$KRB5CONF" >&6; }
25926
25927 { echo "$as_me:$LINENO: checking for gssapi support" >&5
25928echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
25929 if $KRB5CONF | grep gssapi >/dev/null ; then
25930 { echo "$as_me:$LINENO: result: yes" >&5
25931echo "${ECHO_T}yes" >&6; }
25932
25933cat >>confdefs.h <<\_ACEOF
25934#define GSSAPI 1
25935_ACEOF
25936
25937 k5confopts=gssapi
25938 else
25939 { echo "$as_me:$LINENO: result: no" >&5
25940echo "${ECHO_T}no" >&6; }
25941 k5confopts=""
25942 fi
25943 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
25944 K5LIBS="`$KRB5CONF --libs $k5confopts`"
25945 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
25946 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
25947echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
25948 cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
25954 #include <krb5.h>
25955int
25956main ()
25957{
25958 char *tmp = heimdal_version;
25959 ;
25960 return 0;
25961}
25962_ACEOF
25963rm -f conftest.$ac_objext
25964if { (ac_try="$ac_compile"
25965case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25968esac
25969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_compile") 2>conftest.er1
25971 ac_status=$?
25972 grep -v '^ *+' conftest.er1 >conftest.err
25973 rm -f conftest.er1
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && {
25977 test -z "$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 } && test -s conftest.$ac_objext; then
25980 { echo "$as_me:$LINENO: result: yes" >&5
25981echo "${ECHO_T}yes" >&6; }
25982
25983cat >>confdefs.h <<\_ACEOF
25984#define HEIMDAL 1
25985_ACEOF
25986
25987else
25988 echo "$as_me: failed program was:" >&5
25989sed 's/^/| /' conftest.$ac_ext >&5
25990
25991 { echo "$as_me:$LINENO: result: no" >&5
25992echo "${ECHO_T}no" >&6; }
25993
25994fi
25995
25996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25997 else
25998 { echo "$as_me:$LINENO: result: no" >&5
25999echo "${ECHO_T}no" >&6; }
26000 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
26001 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
26002 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26003echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26004 cat >conftest.$ac_ext <<_ACEOF
26005/* confdefs.h. */
26006_ACEOF
26007cat confdefs.h >>conftest.$ac_ext
26008cat >>conftest.$ac_ext <<_ACEOF
26009/* end confdefs.h. */
26010 #include <krb5.h>
26011int
26012main ()
26013{
26014 char *tmp = heimdal_version;
26015 ;
26016 return 0;
26017}
26018_ACEOF
26019rm -f conftest.$ac_objext
26020if { (ac_try="$ac_compile"
26021case "(($ac_try" in
26022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023 *) ac_try_echo=$ac_try;;
26024esac
26025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26026 (eval "$ac_compile") 2>conftest.er1
26027 ac_status=$?
26028 grep -v '^ *+' conftest.er1 >conftest.err
26029 rm -f conftest.er1
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } && {
26033 test -z "$ac_c_werror_flag" ||
26034 test ! -s conftest.err
26035 } && test -s conftest.$ac_objext; then
26036 { echo "$as_me:$LINENO: result: yes" >&5
26037echo "${ECHO_T}yes" >&6; }
26038 cat >>confdefs.h <<\_ACEOF
26039#define HEIMDAL 1
26040_ACEOF
26041
26042 K5LIBS="-lkrb5 -ldes"
26043 K5LIBS="$K5LIBS -lcom_err -lasn1"
26044 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
26045echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
26046if test "${ac_cv_lib_roken_net_write+set}" = set; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26048else
26049 ac_check_lib_save_LIBS=$LIBS
26050LIBS="-lroken $LIBS"
26051cat >conftest.$ac_ext <<_ACEOF
26052/* confdefs.h. */
26053_ACEOF
26054cat confdefs.h >>conftest.$ac_ext
26055cat >>conftest.$ac_ext <<_ACEOF
26056/* end confdefs.h. */
26057
26058/* Override any GCC internal prototype to avoid an error.
26059 Use char because int might match the return type of a GCC
26060 builtin and then its argument prototype would still apply. */
26061#ifdef __cplusplus
26062extern "C"
26063#endif
26064char net_write ();
26065int
26066main ()
26067{
26068return net_write ();
26069 ;
26070 return 0;
26071}
26072_ACEOF
26073rm -f conftest.$ac_objext conftest$ac_exeext
26074if { (ac_try="$ac_link"
26075case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26078esac
26079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26080 (eval "$ac_link") 2>conftest.er1
26081 ac_status=$?
26082 grep -v '^ *+' conftest.er1 >conftest.err
26083 rm -f conftest.er1
26084 cat conftest.err >&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); } && {
26087 test -z "$ac_c_werror_flag" ||
26088 test ! -s conftest.err
26089 } && test -s conftest$ac_exeext &&
26090 $as_test_x conftest$ac_exeext; then
26091 ac_cv_lib_roken_net_write=yes
26092else
26093 echo "$as_me: failed program was:" >&5
26094sed 's/^/| /' conftest.$ac_ext >&5
26095
26096 ac_cv_lib_roken_net_write=no
26097fi
26098
26099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26100 conftest$ac_exeext conftest.$ac_ext
26101LIBS=$ac_check_lib_save_LIBS
26102fi
26103{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
26104echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
26105if test $ac_cv_lib_roken_net_write = yes; then
26106 K5LIBS="$K5LIBS -lroken"
26107fi
26108
26109
26110else
26111 echo "$as_me: failed program was:" >&5
26112sed 's/^/| /' conftest.$ac_ext >&5
26113
26114 { echo "$as_me:$LINENO: result: no" >&5
26115echo "${ECHO_T}no" >&6; }
26116 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
26117
26118
26119fi
26120
26121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26122 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
26123echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
26124if test "${ac_cv_search_dn_expand+set}" = set; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26126else
26127 ac_func_search_save_LIBS=$LIBS
26128cat >conftest.$ac_ext <<_ACEOF
26129/* confdefs.h. */
26130_ACEOF
26131cat confdefs.h >>conftest.$ac_ext
26132cat >>conftest.$ac_ext <<_ACEOF
26133/* end confdefs.h. */
26134
26135/* Override any GCC internal prototype to avoid an error.
26136 Use char because int might match the return type of a GCC
26137 builtin and then its argument prototype would still apply. */
26138#ifdef __cplusplus
26139extern "C"
26140#endif
26141char dn_expand ();
26142int
26143main ()
26144{
26145return dn_expand ();
26146 ;
26147 return 0;
26148}
26149_ACEOF
26150for ac_lib in '' resolv; do
26151 if test -z "$ac_lib"; then
26152 ac_res="none required"
26153 else
26154 ac_res=-l$ac_lib
26155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26156 fi
26157 rm -f conftest.$ac_objext conftest$ac_exeext
26158if { (ac_try="$ac_link"
26159case "(($ac_try" in
26160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161 *) ac_try_echo=$ac_try;;
26162esac
26163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164 (eval "$ac_link") 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } && {
26171 test -z "$ac_c_werror_flag" ||
26172 test ! -s conftest.err
26173 } && test -s conftest$ac_exeext &&
26174 $as_test_x conftest$ac_exeext; then
26175 ac_cv_search_dn_expand=$ac_res
26176else
26177 echo "$as_me: failed program was:" >&5
26178sed 's/^/| /' conftest.$ac_ext >&5
26179
26180
26181fi
26182
26183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26184 conftest$ac_exeext
26185 if test "${ac_cv_search_dn_expand+set}" = set; then
26186 break
26187fi
26188done
26189if test "${ac_cv_search_dn_expand+set}" = set; then
26190 :
26191else
26192 ac_cv_search_dn_expand=no
26193fi
26194rm conftest.$ac_ext
26195LIBS=$ac_func_search_save_LIBS
26196fi
26197{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
26198echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
26199ac_res=$ac_cv_search_dn_expand
26200if test "$ac_res" != no; then
26201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26202
26203fi
26204
26205
24193{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
24194echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
24195if test "${ac_cv_have_control_in_msghdr+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
24197else
24198
24199 cat >conftest.$ac_ext <<_ACEOF
24200
24201#include <sys/types.h>
24202#include <sys/socket.h>
24203#include <sys/uio.h>
24204int main() {
24205#ifdef msg_control
24206#error "msg_control is a macro"
24207exit(1);
24208#endif
24209struct msghdr m;
24210m.msg_control = 0;
24211exit(0);
24212}
24213
24214_ACEOF
24215rm -f conftest.$ac_objext
24216if { (ac_try="$ac_compile"
24217case "(($ac_try" in
24218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219 *) ac_try_echo=$ac_try;;
24220esac
24221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24222 (eval "$ac_compile") 2>conftest.er1
24223 ac_status=$?
24224 grep -v '^ *+' conftest.er1 >conftest.err
24225 rm -f conftest.er1
24226 cat conftest.err >&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } && {
24229 test -z "$ac_c_werror_flag" ||
24230 test ! -s conftest.err
24231 } && test -s conftest.$ac_objext; then
24232 ac_cv_have_control_in_msghdr="yes"
24233else
24234 echo "$as_me: failed program was:" >&5
24235sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ac_cv_have_control_in_msghdr="no"
24238
24239fi
24240
24241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24242
24243fi
24244{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
24245echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
24246if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
24247
24248cat >>confdefs.h <<\_ACEOF
24249#define HAVE_CONTROL_IN_MSGHDR 1
24250_ACEOF
24251
24252fi
24253
24254{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
24255echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
24256if test "${ac_cv_libc_defines___progname+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258else
24259
24260 cat >conftest.$ac_ext <<_ACEOF
24261/* confdefs.h. */
24262_ACEOF
24263cat confdefs.h >>conftest.$ac_ext
24264cat >>conftest.$ac_ext <<_ACEOF
24265/* end confdefs.h. */
24266
24267int
24268main ()
24269{
24270 extern char *__progname; printf("%s", __progname);
24271 ;
24272 return 0;
24273}
24274_ACEOF
24275rm -f conftest.$ac_objext conftest$ac_exeext
24276if { (ac_try="$ac_link"
24277case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280esac
24281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282 (eval "$ac_link") 2>conftest.er1
24283 ac_status=$?
24284 grep -v '^ *+' conftest.er1 >conftest.err
24285 rm -f conftest.er1
24286 cat conftest.err >&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest$ac_exeext &&
24292 $as_test_x conftest$ac_exeext; then
24293 ac_cv_libc_defines___progname="yes"
24294else
24295 echo "$as_me: failed program was:" >&5
24296sed 's/^/| /' conftest.$ac_ext >&5
24297
24298 ac_cv_libc_defines___progname="no"
24299
24300fi
24301
24302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24303 conftest$ac_exeext conftest.$ac_ext
24304
24305fi
24306{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
24307echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
24308if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
24309
24310cat >>confdefs.h <<\_ACEOF
24311#define HAVE___PROGNAME 1
24312_ACEOF
24313
24314fi
24315
24316{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
24317echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
24318if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320else
24321
24322 cat >conftest.$ac_ext <<_ACEOF
24323/* confdefs.h. */
24324_ACEOF
24325cat confdefs.h >>conftest.$ac_ext
24326cat >>conftest.$ac_ext <<_ACEOF
24327/* end confdefs.h. */
24328
24329#include <stdio.h>
24330
24331int
24332main ()
24333{
24334 printf("%s", __FUNCTION__);
24335 ;
24336 return 0;
24337}
24338_ACEOF
24339rm -f conftest.$ac_objext conftest$ac_exeext
24340if { (ac_try="$ac_link"
24341case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24344esac
24345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_link") 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest$ac_exeext &&
24356 $as_test_x conftest$ac_exeext; then
24357 ac_cv_cc_implements___FUNCTION__="yes"
24358else
24359 echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362 ac_cv_cc_implements___FUNCTION__="no"
24363
24364fi
24365
24366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367 conftest$ac_exeext conftest.$ac_ext
24368
24369fi
24370{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
24371echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
24372if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
24373
24374cat >>confdefs.h <<\_ACEOF
24375#define HAVE___FUNCTION__ 1
24376_ACEOF
24377
24378fi
24379
24380{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
24381echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
24382if test "${ac_cv_cc_implements___func__+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384else
24385
24386 cat >conftest.$ac_ext <<_ACEOF
24387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
24392
24393#include <stdio.h>
24394
24395int
24396main ()
24397{
24398 printf("%s", __func__);
24399 ;
24400 return 0;
24401}
24402_ACEOF
24403rm -f conftest.$ac_objext conftest$ac_exeext
24404if { (ac_try="$ac_link"
24405case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24408esac
24409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_link") 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest$ac_exeext &&
24420 $as_test_x conftest$ac_exeext; then
24421 ac_cv_cc_implements___func__="yes"
24422else
24423 echo "$as_me: failed program was:" >&5
24424sed 's/^/| /' conftest.$ac_ext >&5
24425
24426 ac_cv_cc_implements___func__="no"
24427
24428fi
24429
24430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431 conftest$ac_exeext conftest.$ac_ext
24432
24433fi
24434{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
24435echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
24436if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
24437
24438cat >>confdefs.h <<\_ACEOF
24439#define HAVE___func__ 1
24440_ACEOF
24441
24442fi
24443
24444{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
24445echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
24446if test "${ac_cv_have_va_copy+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24448else
24449
24450 cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
24456#include <stdarg.h>
24457 va_list x,y;
24458int
24459main ()
24460{
24461va_copy(x,y);
24462 ;
24463 return 0;
24464}
24465_ACEOF
24466rm -f conftest.$ac_objext conftest$ac_exeext
24467if { (ac_try="$ac_link"
24468case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24471esac
24472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_link") 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest$ac_exeext &&
24483 $as_test_x conftest$ac_exeext; then
24484 ac_cv_have_va_copy="yes"
24485else
24486 echo "$as_me: failed program was:" >&5
24487sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_have_va_copy="no"
24490
24491fi
24492
24493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24494 conftest$ac_exeext conftest.$ac_ext
24495
24496fi
24497{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
24498echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
24499if test "x$ac_cv_have_va_copy" = "xyes" ; then
24500
24501cat >>confdefs.h <<\_ACEOF
24502#define HAVE_VA_COPY 1
24503_ACEOF
24504
24505fi
24506
24507{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
24508echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
24509if test "${ac_cv_have___va_copy+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511else
24512
24513 cat >conftest.$ac_ext <<_ACEOF
24514/* confdefs.h. */
24515_ACEOF
24516cat confdefs.h >>conftest.$ac_ext
24517cat >>conftest.$ac_ext <<_ACEOF
24518/* end confdefs.h. */
24519#include <stdarg.h>
24520 va_list x,y;
24521int
24522main ()
24523{
24524__va_copy(x,y);
24525 ;
24526 return 0;
24527}
24528_ACEOF
24529rm -f conftest.$ac_objext conftest$ac_exeext
24530if { (ac_try="$ac_link"
24531case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24534esac
24535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536 (eval "$ac_link") 2>conftest.er1
24537 ac_status=$?
24538 grep -v '^ *+' conftest.er1 >conftest.err
24539 rm -f conftest.er1
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } && {
24543 test -z "$ac_c_werror_flag" ||
24544 test ! -s conftest.err
24545 } && test -s conftest$ac_exeext &&
24546 $as_test_x conftest$ac_exeext; then
24547 ac_cv_have___va_copy="yes"
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_cv_have___va_copy="no"
24553
24554fi
24555
24556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24557 conftest$ac_exeext conftest.$ac_ext
24558
24559fi
24560{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
24561echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
24562if test "x$ac_cv_have___va_copy" = "xyes" ; then
24563
24564cat >>confdefs.h <<\_ACEOF
24565#define HAVE___VA_COPY 1
24566_ACEOF
24567
24568fi
24569
24570{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
24571echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
24572if test "${ac_cv_have_getopt_optreset+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574else
24575
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
24583#include <getopt.h>
24584
24585int
24586main ()
24587{
24588 extern int optreset; optreset = 0;
24589 ;
24590 return 0;
24591}
24592_ACEOF
24593rm -f conftest.$ac_objext conftest$ac_exeext
24594if { (ac_try="$ac_link"
24595case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24598esac
24599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_link") 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest$ac_exeext &&
24610 $as_test_x conftest$ac_exeext; then
24611 ac_cv_have_getopt_optreset="yes"
24612else
24613 echo "$as_me: failed program was:" >&5
24614sed 's/^/| /' conftest.$ac_ext >&5
24615
24616 ac_cv_have_getopt_optreset="no"
24617
24618fi
24619
24620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24621 conftest$ac_exeext conftest.$ac_ext
24622
24623fi
24624{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
24625echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
24626if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
24627
24628cat >>confdefs.h <<\_ACEOF
24629#define HAVE_GETOPT_OPTRESET 1
24630_ACEOF
24631
24632fi
24633
24634{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
24635echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
24636if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24638else
24639
24640 cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
24646
24647int
24648main ()
24649{
24650 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
24651 ;
24652 return 0;
24653}
24654_ACEOF
24655rm -f conftest.$ac_objext conftest$ac_exeext
24656if { (ac_try="$ac_link"
24657case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660esac
24661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_link") 2>conftest.er1
24663 ac_status=$?
24664 grep -v '^ *+' conftest.er1 >conftest.err
24665 rm -f conftest.er1
24666 cat conftest.err >&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } && {
24669 test -z "$ac_c_werror_flag" ||
24670 test ! -s conftest.err
24671 } && test -s conftest$ac_exeext &&
24672 $as_test_x conftest$ac_exeext; then
24673 ac_cv_libc_defines_sys_errlist="yes"
24674else
24675 echo "$as_me: failed program was:" >&5
24676sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_cv_libc_defines_sys_errlist="no"
24679
24680fi
24681
24682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24683 conftest$ac_exeext conftest.$ac_ext
24684
24685fi
24686{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
24687echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
24688if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
24689
24690cat >>confdefs.h <<\_ACEOF
24691#define HAVE_SYS_ERRLIST 1
24692_ACEOF
24693
24694fi
24695
24696
24697{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
24698echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
24699if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24701else
24702
24703 cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709
24710int
24711main ()
24712{
24713 extern int sys_nerr; printf("%i", sys_nerr);
24714 ;
24715 return 0;
24716}
24717_ACEOF
24718rm -f conftest.$ac_objext conftest$ac_exeext
24719if { (ac_try="$ac_link"
24720case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723esac
24724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24725 (eval "$ac_link") 2>conftest.er1
24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } && {
24732 test -z "$ac_c_werror_flag" ||
24733 test ! -s conftest.err
24734 } && test -s conftest$ac_exeext &&
24735 $as_test_x conftest$ac_exeext; then
24736 ac_cv_libc_defines_sys_nerr="yes"
24737else
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_cv_libc_defines_sys_nerr="no"
24742
24743fi
24744
24745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24746 conftest$ac_exeext conftest.$ac_ext
24747
24748fi
24749{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
24750echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
24751if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
24752
24753cat >>confdefs.h <<\_ACEOF
24754#define HAVE_SYS_NERR 1
24755_ACEOF
24756
24757fi
24758
24759SCARD_MSG="no"
24760# Check whether user wants sectok support
24761
24762# Check whether --with-sectok was given.
24763if test "${with_sectok+set}" = set; then
24764 withval=$with_sectok;
24765 if test "x$withval" != "xno" ; then
24766 if test "x$withval" != "xyes" ; then
24767 CPPFLAGS="$CPPFLAGS -I${withval}"
24768 LDFLAGS="$LDFLAGS -L${withval}"
24769 if test ! -z "$need_dash_r" ; then
24770 LDFLAGS="$LDFLAGS -R${withval}"
24771 fi
24772 if test ! -z "$blibpath" ; then
24773 blibpath="$blibpath:${withval}"
24774 fi
24775 fi
24776
24777for ac_header in sectok.h
24778do
24779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785fi
24786ac_res=`eval echo '${'$as_ac_Header'}'`
24787 { echo "$as_me:$LINENO: result: $ac_res" >&5
24788echo "${ECHO_T}$ac_res" >&6; }
24789else
24790 # Is the header compilable?
24791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24793cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h. */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h. */
24799$ac_includes_default
24800#include <$ac_header>
24801_ACEOF
24802rm -f conftest.$ac_objext
24803if { (ac_try="$ac_compile"
24804case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807esac
24808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_header_compiler=no
24825fi
24826
24827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829echo "${ECHO_T}$ac_header_compiler" >&6; }
24830
24831# Is the header present?
24832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24834cat >conftest.$ac_ext <<_ACEOF
24835/* confdefs.h. */
24836_ACEOF
24837cat confdefs.h >>conftest.$ac_ext
24838cat >>conftest.$ac_ext <<_ACEOF
24839/* end confdefs.h. */
24840#include <$ac_header>
24841_ACEOF
24842if { (ac_try="$ac_cpp conftest.$ac_ext"
24843case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846esac
24847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } >/dev/null && {
24855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24857 }; then
24858 ac_header_preproc=yes
24859else
24860 echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 ac_header_preproc=no
24864fi
24865
24866rm -f conftest.err conftest.$ac_ext
24867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868echo "${ECHO_T}$ac_header_preproc" >&6; }
24869
24870# So? What about this header?
24871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24872 yes:no: )
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc=yes
24878 ;;
24879 no:yes:* )
24880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24892 ( cat <<\_ASBOX
24893## ------------------------------------------- ##
24894## Report this to openssh-unix-dev@mindrot.org ##
24895## ------------------------------------------- ##
24896_ASBOX
24897 ) | sed "s/^/$as_me: WARNING: /" >&2
24898 ;;
24899esac
24900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24904else
24905 eval "$as_ac_Header=\$ac_header_preproc"
24906fi
24907ac_res=`eval echo '${'$as_ac_Header'}'`
24908 { echo "$as_me:$LINENO: result: $ac_res" >&5
24909echo "${ECHO_T}$ac_res" >&6; }
24910
24911fi
24912if test `eval echo '${'$as_ac_Header'}'` = yes; then
24913 cat >>confdefs.h <<_ACEOF
24914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24915_ACEOF
24916
24917fi
24918
24919done
24920
24921 if test "$ac_cv_header_sectok_h" != yes; then
24922 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
24923echo "$as_me: error: Can't find sectok.h" >&2;}
24924 { (exit 1); exit 1; }; }
24925 fi
24926
24927{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
24928echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
24929if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931else
24932 ac_check_lib_save_LIBS=$LIBS
24933LIBS="-lsectok $LIBS"
24934cat >conftest.$ac_ext <<_ACEOF
24935/* confdefs.h. */
24936_ACEOF
24937cat confdefs.h >>conftest.$ac_ext
24938cat >>conftest.$ac_ext <<_ACEOF
24939/* end confdefs.h. */
24940
24941/* Override any GCC internal prototype to avoid an error.
24942 Use char because int might match the return type of a GCC
24943 builtin and then its argument prototype would still apply. */
24944#ifdef __cplusplus
24945extern "C"
24946#endif
24947char sectok_open ();
24948int
24949main ()
24950{
24951return sectok_open ();
24952 ;
24953 return 0;
24954}
24955_ACEOF
24956rm -f conftest.$ac_objext conftest$ac_exeext
24957if { (ac_try="$ac_link"
24958case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961esac
24962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_link") 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_c_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest$ac_exeext &&
24973 $as_test_x conftest$ac_exeext; then
24974 ac_cv_lib_sectok_sectok_open=yes
24975else
24976 echo "$as_me: failed program was:" >&5
24977sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 ac_cv_lib_sectok_sectok_open=no
24980fi
24981
24982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24983 conftest$ac_exeext conftest.$ac_ext
24984LIBS=$ac_check_lib_save_LIBS
24985fi
24986{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
24987echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
24988if test $ac_cv_lib_sectok_sectok_open = yes; then
24989 cat >>confdefs.h <<_ACEOF
24990#define HAVE_LIBSECTOK 1
24991_ACEOF
24992
24993 LIBS="-lsectok $LIBS"
24994
24995fi
24996
24997 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
24998 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
24999echo "$as_me: error: Can't find libsectok" >&2;}
25000 { (exit 1); exit 1; }; }
25001 fi
25002
25003cat >>confdefs.h <<\_ACEOF
25004#define SMARTCARD 1
25005_ACEOF
25006
25007
25008cat >>confdefs.h <<\_ACEOF
25009#define USE_SECTOK 1
25010_ACEOF
25011
25012 SCARD_MSG="yes, using sectok"
25013 fi
25014
25015
25016fi
25017
25018
25019# Check whether user wants OpenSC support
25020OPENSC_CONFIG="no"
25021
25022# Check whether --with-opensc was given.
25023if test "${with_opensc+set}" = set; then
25024 withval=$with_opensc;
25025 if test "x$withval" != "xno" ; then
25026 if test "x$withval" != "xyes" ; then
25027 OPENSC_CONFIG=$withval/bin/opensc-config
25028 else
25029 # Extract the first word of "opensc-config", so it can be a program name with args.
25030set dummy opensc-config; ac_word=$2
25031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25033if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035else
25036 case $OPENSC_CONFIG in
25037 [\\/]* | ?:[\\/]*)
25038 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
25039 ;;
25040 *)
25041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25042for as_dir in $PATH
25043do
25044 IFS=$as_save_IFS
25045 test -z "$as_dir" && as_dir=.
25046 for ac_exec_ext in '' $ac_executable_extensions; do
25047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25048 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25050 break 2
25051 fi
25052done
25053done
25054IFS=$as_save_IFS
25055
25056 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
25057 ;;
25058esac
25059fi
25060OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
25061if test -n "$OPENSC_CONFIG"; then
25062 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
25063echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
25064else
25065 { echo "$as_me:$LINENO: result: no" >&5
25066echo "${ECHO_T}no" >&6; }
25067fi
25068
25069
25070 fi
25071 if test "$OPENSC_CONFIG" != "no"; then
25072 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
25073 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
25074 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
25075 LIBS="$LIBS $LIBOPENSC_LIBS"
25076 cat >>confdefs.h <<\_ACEOF
25077#define SMARTCARD 1
25078_ACEOF
25079
25080
25081cat >>confdefs.h <<\_ACEOF
25082#define USE_OPENSC 1
25083_ACEOF
25084
25085 SCARD_MSG="yes, using OpenSC"
25086 fi
25087 fi
25088
25089
25090fi
25091
25092
25093# Check libraries needed by DNS fingerprint support
25094{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
25095echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
25096if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_func_search_save_LIBS=$LIBS
25100cat >conftest.$ac_ext <<_ACEOF
25101/* confdefs.h. */
25102_ACEOF
25103cat confdefs.h >>conftest.$ac_ext
25104cat >>conftest.$ac_ext <<_ACEOF
25105/* end confdefs.h. */
25106
25107/* Override any GCC internal prototype to avoid an error.
25108 Use char because int might match the return type of a GCC
25109 builtin and then its argument prototype would still apply. */
25110#ifdef __cplusplus
25111extern "C"
25112#endif
25113char getrrsetbyname ();
25114int
25115main ()
25116{
25117return getrrsetbyname ();
25118 ;
25119 return 0;
25120}
25121_ACEOF
25122for ac_lib in '' resolv; do
25123 if test -z "$ac_lib"; then
25124 ac_res="none required"
25125 else
25126 ac_res=-l$ac_lib
25127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25128 fi
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130if { (ac_try="$ac_link"
25131case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134esac
25135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_link") 2>conftest.er1
25137 ac_status=$?
25138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && {
25143 test -z "$ac_c_werror_flag" ||
25144 test ! -s conftest.err
25145 } && test -s conftest$ac_exeext &&
25146 $as_test_x conftest$ac_exeext; then
25147 ac_cv_search_getrrsetbyname=$ac_res
25148else
25149 echo "$as_me: failed program was:" >&5
25150sed 's/^/| /' conftest.$ac_ext >&5
25151
25152
25153fi
25154
25155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25156 conftest$ac_exeext
25157 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25158 break
25159fi
25160done
25161if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25162 :
25163else
25164 ac_cv_search_getrrsetbyname=no
25165fi
25166rm conftest.$ac_ext
25167LIBS=$ac_func_search_save_LIBS
25168fi
25169{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
25170echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
25171ac_res=$ac_cv_search_getrrsetbyname
25172if test "$ac_res" != no; then
25173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25174
25175cat >>confdefs.h <<\_ACEOF
25176#define HAVE_GETRRSETBYNAME 1
25177_ACEOF
25178
25179else
25180
25181 # Needed by our getrrsetbyname()
25182 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
25183echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
25184if test "${ac_cv_search_res_query+set}" = set; then
25185 echo $ECHO_N "(cached) $ECHO_C" >&6
25186else
25187 ac_func_search_save_LIBS=$LIBS
25188cat >conftest.$ac_ext <<_ACEOF
25189/* confdefs.h. */
25190_ACEOF
25191cat confdefs.h >>conftest.$ac_ext
25192cat >>conftest.$ac_ext <<_ACEOF
25193/* end confdefs.h. */
25194
25195/* Override any GCC internal prototype to avoid an error.
25196 Use char because int might match the return type of a GCC
25197 builtin and then its argument prototype would still apply. */
25198#ifdef __cplusplus
25199extern "C"
25200#endif
25201char res_query ();
25202int
25203main ()
25204{
25205return res_query ();
25206 ;
25207 return 0;
25208}
25209_ACEOF
25210for ac_lib in '' resolv; do
25211 if test -z "$ac_lib"; then
25212 ac_res="none required"
25213 else
25214 ac_res=-l$ac_lib
25215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25216 fi
25217 rm -f conftest.$ac_objext conftest$ac_exeext
25218if { (ac_try="$ac_link"
25219case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25222esac
25223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_link") 2>conftest.er1
25225 ac_status=$?
25226 grep -v '^ *+' conftest.er1 >conftest.err
25227 rm -f conftest.er1
25228 cat conftest.err >&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && {
25231 test -z "$ac_c_werror_flag" ||
25232 test ! -s conftest.err
25233 } && test -s conftest$ac_exeext &&
25234 $as_test_x conftest$ac_exeext; then
25235 ac_cv_search_res_query=$ac_res
25236else
25237 echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240
25241fi
25242
25243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25244 conftest$ac_exeext
25245 if test "${ac_cv_search_res_query+set}" = set; then
25246 break
25247fi
25248done
25249if test "${ac_cv_search_res_query+set}" = set; then
25250 :
25251else
25252 ac_cv_search_res_query=no
25253fi
25254rm conftest.$ac_ext
25255LIBS=$ac_func_search_save_LIBS
25256fi
25257{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
25258echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
25259ac_res=$ac_cv_search_res_query
25260if test "$ac_res" != no; then
25261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25262
25263fi
25264
25265 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25266echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25267if test "${ac_cv_search_dn_expand+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25269else
25270 ac_func_search_save_LIBS=$LIBS
25271cat >conftest.$ac_ext <<_ACEOF
25272/* confdefs.h. */
25273_ACEOF
25274cat confdefs.h >>conftest.$ac_ext
25275cat >>conftest.$ac_ext <<_ACEOF
25276/* end confdefs.h. */
25277
25278/* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284char dn_expand ();
25285int
25286main ()
25287{
25288return dn_expand ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
25293for ac_lib in '' resolv; do
25294 if test -z "$ac_lib"; then
25295 ac_res="none required"
25296 else
25297 ac_res=-l$ac_lib
25298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25299 fi
25300 rm -f conftest.$ac_objext conftest$ac_exeext
25301if { (ac_try="$ac_link"
25302case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305esac
25306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_link") 2>conftest.er1
25308 ac_status=$?
25309 grep -v '^ *+' conftest.er1 >conftest.err
25310 rm -f conftest.er1
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest$ac_exeext &&
25317 $as_test_x conftest$ac_exeext; then
25318 ac_cv_search_dn_expand=$ac_res
25319else
25320 echo "$as_me: failed program was:" >&5
25321sed 's/^/| /' conftest.$ac_ext >&5
25322
25323
25324fi
25325
25326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25327 conftest$ac_exeext
25328 if test "${ac_cv_search_dn_expand+set}" = set; then
25329 break
25330fi
25331done
25332if test "${ac_cv_search_dn_expand+set}" = set; then
25333 :
25334else
25335 ac_cv_search_dn_expand=no
25336fi
25337rm conftest.$ac_ext
25338LIBS=$ac_func_search_save_LIBS
25339fi
25340{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25341echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25342ac_res=$ac_cv_search_dn_expand
25343if test "$ac_res" != no; then
25344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25345
25346fi
25347
25348 { echo "$as_me:$LINENO: checking if res_query will link" >&5
25349echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
25350 cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h. */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h. */
25356
25357/* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25360#ifdef __cplusplus
25361extern "C"
25362#endif
25363char res_query ();
25364int
25365main ()
25366{
25367return res_query ();
25368 ;
25369 return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext conftest$ac_exeext
25373if { (ac_try="$ac_link"
25374case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377esac
25378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>conftest.er1
25380 ac_status=$?
25381 grep -v '^ *+' conftest.er1 >conftest.err
25382 rm -f conftest.er1
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } && {
25386 test -z "$ac_c_werror_flag" ||
25387 test ! -s conftest.err
25388 } && test -s conftest$ac_exeext &&
25389 $as_test_x conftest$ac_exeext; then
25390 { echo "$as_me:$LINENO: result: yes" >&5
25391echo "${ECHO_T}yes" >&6; }
25392else
25393 echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396 { echo "$as_me:$LINENO: result: no" >&5
25397echo "${ECHO_T}no" >&6; }
25398 saved_LIBS="$LIBS"
25399 LIBS="$LIBS -lresolv"
25400 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
25401echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25403
25404#include <resolv.h>
25405int main()
25406{
25407 res_query (0, 0, 0, 0, 0);
25408 return 0;
25409}
25410
25411_ACEOF
25412rm -f conftest.$ac_objext conftest$ac_exeext
25413if { (ac_try="$ac_link"
25414case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25417esac
25418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25419 (eval "$ac_link") 2>conftest.er1
25420 ac_status=$?
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } && {
25426 test -z "$ac_c_werror_flag" ||
25427 test ! -s conftest.err
25428 } && test -s conftest$ac_exeext &&
25429 $as_test_x conftest$ac_exeext; then
25430 LIBS="$LIBS -lresolv"
25431 { echo "$as_me:$LINENO: result: yes" >&5
25432echo "${ECHO_T}yes" >&6; }
25433else
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 LIBS="$saved_LIBS"
25438 { echo "$as_me:$LINENO: result: no" >&5
25439echo "${ECHO_T}no" >&6; }
25440fi
25441
25442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25443 conftest$ac_exeext conftest.$ac_ext
25444
25445fi
25446
25447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25448 conftest$ac_exeext conftest.$ac_ext
25449
25450
25451for ac_func in _getshort _getlong
25452do
25453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459 cat >conftest.$ac_ext <<_ACEOF
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
25465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25467#define $ac_func innocuous_$ac_func
25468
25469/* System header to define __stub macros and hopefully few prototypes,
25470 which can conflict with char $ac_func (); below.
25471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25472 <limits.h> exists even on freestanding compilers. */
25473
25474#ifdef __STDC__
25475# include <limits.h>
25476#else
25477# include <assert.h>
25478#endif
25479
25480#undef $ac_func
25481
25482/* Override any GCC internal prototype to avoid an error.
25483 Use char because int might match the return type of a GCC
25484 builtin and then its argument prototype would still apply. */
25485#ifdef __cplusplus
25486extern "C"
25487#endif
25488char $ac_func ();
25489/* The GNU C library defines this for functions which it implements
25490 to always fail with ENOSYS. Some functions are actually named
25491 something starting with __ and the normal name is an alias. */
25492#if defined __stub_$ac_func || defined __stub___$ac_func
25493choke me
25494#endif
25495
25496int
25497main ()
25498{
25499return $ac_func ();
25500 ;
25501 return 0;
25502}
25503_ACEOF
25504rm -f conftest.$ac_objext conftest$ac_exeext
25505if { (ac_try="$ac_link"
25506case "(($ac_try" in
25507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25508 *) ac_try_echo=$ac_try;;
25509esac
25510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25511 (eval "$ac_link") 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } && {
25518 test -z "$ac_c_werror_flag" ||
25519 test ! -s conftest.err
25520 } && test -s conftest$ac_exeext &&
25521 $as_test_x conftest$ac_exeext; then
25522 eval "$as_ac_var=yes"
25523else
25524 echo "$as_me: failed program was:" >&5
25525sed 's/^/| /' conftest.$ac_ext >&5
25526
25527 eval "$as_ac_var=no"
25528fi
25529
25530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25531 conftest$ac_exeext conftest.$ac_ext
25532fi
25533ac_res=`eval echo '${'$as_ac_var'}'`
25534 { echo "$as_me:$LINENO: result: $ac_res" >&5
25535echo "${ECHO_T}$ac_res" >&6; }
25536if test `eval echo '${'$as_ac_var'}'` = yes; then
25537 cat >>confdefs.h <<_ACEOF
25538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25539_ACEOF
25540
25541fi
25542done
25543
25544 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
25545echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
25546if test "${ac_cv_have_decl__getshort+set}" = set; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25548else
25549 cat >conftest.$ac_ext <<_ACEOF
25550/* confdefs.h. */
25551_ACEOF
25552cat confdefs.h >>conftest.$ac_ext
25553cat >>conftest.$ac_ext <<_ACEOF
25554/* end confdefs.h. */
25555#include <sys/types.h>
25556 #include <arpa/nameser.h>
25557
25558int
25559main ()
25560{
25561#ifndef _getshort
25562 (void) _getshort;
25563#endif
25564
25565 ;
25566 return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext
25570if { (ac_try="$ac_compile"
25571case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574esac
25575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576 (eval "$ac_compile") 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } && {
25583 test -z "$ac_c_werror_flag" ||
25584 test ! -s conftest.err
25585 } && test -s conftest.$ac_objext; then
25586 ac_cv_have_decl__getshort=yes
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591 ac_cv_have_decl__getshort=no
25592fi
25593
25594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595fi
25596{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
25597echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
25598if test $ac_cv_have_decl__getshort = yes; then
25599
25600cat >>confdefs.h <<_ACEOF
25601#define HAVE_DECL__GETSHORT 1
25602_ACEOF
25603
25604
25605else
25606 cat >>confdefs.h <<_ACEOF
25607#define HAVE_DECL__GETSHORT 0
25608_ACEOF
25609
25610
25611fi
25612{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
25613echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
25614if test "${ac_cv_have_decl__getlong+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25616else
25617 cat >conftest.$ac_ext <<_ACEOF
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
25623#include <sys/types.h>
25624 #include <arpa/nameser.h>
25625
25626int
25627main ()
25628{
25629#ifndef _getlong
25630 (void) _getlong;
25631#endif
25632
25633 ;
25634 return 0;
25635}
25636_ACEOF
25637rm -f conftest.$ac_objext
25638if { (ac_try="$ac_compile"
25639case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25642esac
25643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_cv_have_decl__getlong=yes
25655else
25656 echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659 ac_cv_have_decl__getlong=no
25660fi
25661
25662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663fi
25664{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
25665echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
25666if test $ac_cv_have_decl__getlong = yes; then
25667
25668cat >>confdefs.h <<_ACEOF
25669#define HAVE_DECL__GETLONG 1
25670_ACEOF
25671
25672
25673else
25674 cat >>confdefs.h <<_ACEOF
25675#define HAVE_DECL__GETLONG 0
25676_ACEOF
25677
25678
25679fi
25680
25681
25682 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
25683echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
25684if test "${ac_cv_member_HEADER_ad+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25686else
25687 cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h. */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h. */
25693#include <arpa/nameser.h>
25694
25695int
25696main ()
25697{
25698static HEADER ac_aggr;
25699if (ac_aggr.ad)
25700return 0;
25701 ;
25702 return 0;
25703}
25704_ACEOF
25705rm -f conftest.$ac_objext
25706if { (ac_try="$ac_compile"
25707case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25710esac
25711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_compile") 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest.$ac_objext; then
25722 ac_cv_member_HEADER_ad=yes
25723else
25724 echo "$as_me: failed program was:" >&5
25725sed 's/^/| /' conftest.$ac_ext >&5
25726
25727 cat >conftest.$ac_ext <<_ACEOF
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h. */
25733#include <arpa/nameser.h>
25734
25735int
25736main ()
25737{
25738static HEADER ac_aggr;
25739if (sizeof ac_aggr.ad)
25740return 0;
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (ac_try="$ac_compile"
25747case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25750esac
25751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752 (eval "$ac_compile") 2>conftest.er1
25753 ac_status=$?
25754 grep -v '^ *+' conftest.er1 >conftest.err
25755 rm -f conftest.er1
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest.$ac_objext; then
25762 ac_cv_member_HEADER_ad=yes
25763else
25764 echo "$as_me: failed program was:" >&5
25765sed 's/^/| /' conftest.$ac_ext >&5
25766
25767 ac_cv_member_HEADER_ad=no
25768fi
25769
25770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771fi
25772
25773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774fi
25775{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
25776echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
25777if test $ac_cv_member_HEADER_ad = yes; then
25778
25779cat >>confdefs.h <<\_ACEOF
25780#define HAVE_HEADER_AD 1
25781_ACEOF
25782
25783fi
25784
25785
25786fi
25787
25788
25789{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
25790echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
25791cat >conftest.$ac_ext <<_ACEOF
25792
25793#include <stdio.h>
25794#if HAVE_SYS_TYPES_H
25795# include <sys/types.h>
25796#endif
25797#include <netinet/in.h>
25798#include <arpa/nameser.h>
25799#include <resolv.h>
25800extern struct __res_state _res;
25801int main() { return 0; }
25802
25803_ACEOF
25804rm -f conftest.$ac_objext conftest$ac_exeext
25805if { (ac_try="$ac_link"
25806case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809esac
25810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_link") 2>conftest.er1
25812 ac_status=$?
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest$ac_exeext &&
25821 $as_test_x conftest$ac_exeext; then
25822 { echo "$as_me:$LINENO: result: yes" >&5
25823echo "${ECHO_T}yes" >&6; }
25824
25825cat >>confdefs.h <<\_ACEOF
25826#define HAVE__RES_EXTERN 1
25827_ACEOF
25828
25829
25830else
25831 echo "$as_me: failed program was:" >&5
25832sed 's/^/| /' conftest.$ac_ext >&5
25833
25834 { echo "$as_me:$LINENO: result: no" >&5
25835echo "${ECHO_T}no" >&6; }
25836
25837fi
25838
25839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25840 conftest$ac_exeext conftest.$ac_ext
25841
25842# Check whether user wants SELinux support
25843SELINUX_MSG="no"
25844LIBSELINUX=""
25845
25846# Check whether --with-selinux was given.
25847if test "${with_selinux+set}" = set; then
25848 withval=$with_selinux; if test "x$withval" != "xno" ; then
25849 save_LIBS="$LIBS"
25850
25851cat >>confdefs.h <<\_ACEOF
25852#define WITH_SELINUX 1
25853_ACEOF
25854
25855 SELINUX_MSG="yes"
25856 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25857 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25858echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25859if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25861fi
25862{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25863echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25864else
25865 # Is the header compilable?
25866{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25867echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
25868cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874$ac_includes_default
25875#include <selinux/selinux.h>
25876_ACEOF
25877rm -f conftest.$ac_objext
25878if { (ac_try="$ac_compile"
25879case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25882esac
25883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884 (eval "$ac_compile") 2>conftest.er1
25885 ac_status=$?
25886 grep -v '^ *+' conftest.er1 >conftest.err
25887 rm -f conftest.er1
25888 cat conftest.err >&5
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); } && {
25891 test -z "$ac_c_werror_flag" ||
25892 test ! -s conftest.err
25893 } && test -s conftest.$ac_objext; then
25894 ac_header_compiler=yes
25895else
25896 echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899 ac_header_compiler=no
25900fi
25901
25902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25904echo "${ECHO_T}$ac_header_compiler" >&6; }
25905
25906# Is the header present?
25907{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25908echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
25909cat >conftest.$ac_ext <<_ACEOF
25910/* confdefs.h. */
25911_ACEOF
25912cat confdefs.h >>conftest.$ac_ext
25913cat >>conftest.$ac_ext <<_ACEOF
25914/* end confdefs.h. */
25915#include <selinux/selinux.h>
25916_ACEOF
25917if { (ac_try="$ac_cpp conftest.$ac_ext"
25918case "(($ac_try" in
25919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25920 *) ac_try_echo=$ac_try;;
25921esac
25922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25924 ac_status=$?
25925 grep -v '^ *+' conftest.er1 >conftest.err
25926 rm -f conftest.er1
25927 cat conftest.err >&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); } >/dev/null && {
25930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25931 test ! -s conftest.err
25932 }; then
25933 ac_header_preproc=yes
25934else
25935 echo "$as_me: failed program was:" >&5
25936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938 ac_header_preproc=no
25939fi
25940
25941rm -f conftest.err conftest.$ac_ext
25942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25943echo "${ECHO_T}$ac_header_preproc" >&6; }
25944
25945# So? What about this header?
25946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25947 yes:no: )
25948 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25949echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25950 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25951echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25952 ac_header_preproc=yes
25953 ;;
25954 no:yes:* )
25955 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25956echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25957 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25958echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25959 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25960echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25961 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25962echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25963 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25964echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25965 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25966echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25967 ( cat <<\_ASBOX
25968## ------------------------------------------- ##
25969## Report this to openssh-unix-dev@mindrot.org ##
25970## ------------------------------------------- ##
25971_ASBOX
25972 ) | sed "s/^/$as_me: WARNING: /" >&2
25973 ;;
25974esac
25975{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25976echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25977if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25979else
25980 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25981fi
25982{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25983echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25984
25985fi
25986if test $ac_cv_header_selinux_selinux_h = yes; then
25987 :
25988else
25989 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25990echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25991 { (exit 1); exit 1; }; }
25992fi
25993
25994
25995 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25996echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25997if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000 ac_check_lib_save_LIBS=$LIBS
26001LIBS="-lselinux $LIBS"
26002cat >conftest.$ac_ext <<_ACEOF
26003/* confdefs.h. */
26004_ACEOF
26005cat confdefs.h >>conftest.$ac_ext
26006cat >>conftest.$ac_ext <<_ACEOF
26007/* end confdefs.h. */
26008
26009/* Override any GCC internal prototype to avoid an error.
26010 Use char because int might match the return type of a GCC
26011 builtin and then its argument prototype would still apply. */
26012#ifdef __cplusplus
26013extern "C"
26014#endif
26015char setexeccon ();
26016int
26017main ()
26018{
26019return setexeccon ();
26020 ;
26021 return 0;
26022}
26023_ACEOF
26024rm -f conftest.$ac_objext conftest$ac_exeext
26025if { (ac_try="$ac_link"
26026case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26029esac
26030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031 (eval "$ac_link") 2>conftest.er1
26032 ac_status=$?
26033 grep -v '^ *+' conftest.er1 >conftest.err
26034 rm -f conftest.er1
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } && {
26038 test -z "$ac_c_werror_flag" ||
26039 test ! -s conftest.err
26040 } && test -s conftest$ac_exeext &&
26041 $as_test_x conftest$ac_exeext; then
26042 ac_cv_lib_selinux_setexeccon=yes
26043else
26044 echo "$as_me: failed program was:" >&5
26045sed 's/^/| /' conftest.$ac_ext >&5
26046
26047 ac_cv_lib_selinux_setexeccon=no
26048fi
26049
26050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26051 conftest$ac_exeext conftest.$ac_ext
26052LIBS=$ac_check_lib_save_LIBS
26053fi
26054{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
26055echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
26056if test $ac_cv_lib_selinux_setexeccon = yes; then
26057 LIBSELINUX="-lselinux"
26058else
26059 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
26060echo "$as_me: error: SELinux support requires libselinux library" >&2;}
26061 { (exit 1); exit 1; }; }
26062fi
26063
26064 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
26065
26066
26067for ac_func in getseuserbyname get_default_context_with_level
26068do
26069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26070{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26074else
26075 cat >conftest.$ac_ext <<_ACEOF
26076/* confdefs.h. */
26077_ACEOF
26078cat confdefs.h >>conftest.$ac_ext
26079cat >>conftest.$ac_ext <<_ACEOF
26080/* end confdefs.h. */
26081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26083#define $ac_func innocuous_$ac_func
26084
26085/* System header to define __stub macros and hopefully few prototypes,
26086 which can conflict with char $ac_func (); below.
26087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26088 <limits.h> exists even on freestanding compilers. */
26089
26090#ifdef __STDC__
26091# include <limits.h>
26092#else
26093# include <assert.h>
26094#endif
26095
26096#undef $ac_func
26097
26098/* Override any GCC internal prototype to avoid an error.
26099 Use char because int might match the return type of a GCC
26100 builtin and then its argument prototype would still apply. */
26101#ifdef __cplusplus
26102extern "C"
26103#endif
26104char $ac_func ();
26105/* The GNU C library defines this for functions which it implements
26106 to always fail with ENOSYS. Some functions are actually named
26107 something starting with __ and the normal name is an alias. */
26108#if defined __stub_$ac_func || defined __stub___$ac_func
26109choke me
26110#endif
26111
26112int
26113main ()
26114{
26115return $ac_func ();
26116 ;
26117 return 0;
26118}
26119_ACEOF
26120rm -f conftest.$ac_objext conftest$ac_exeext
26121if { (ac_try="$ac_link"
26122case "(($ac_try" in
26123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124 *) ac_try_echo=$ac_try;;
26125esac
26126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26127 (eval "$ac_link") 2>conftest.er1
26128 ac_status=$?
26129 grep -v '^ *+' conftest.er1 >conftest.err
26130 rm -f conftest.er1
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } && {
26134 test -z "$ac_c_werror_flag" ||
26135 test ! -s conftest.err
26136 } && test -s conftest$ac_exeext &&
26137 $as_test_x conftest$ac_exeext; then
26138 eval "$as_ac_var=yes"
26139else
26140 echo "$as_me: failed program was:" >&5
26141sed 's/^/| /' conftest.$ac_ext >&5
26142
26143 eval "$as_ac_var=no"
26144fi
26145
26146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26147 conftest$ac_exeext conftest.$ac_ext
26148fi
26149ac_res=`eval echo '${'$as_ac_var'}'`
26150 { echo "$as_me:$LINENO: result: $ac_res" >&5
26151echo "${ECHO_T}$ac_res" >&6; }
26152if test `eval echo '${'$as_ac_var'}'` = yes; then
26153 cat >>confdefs.h <<_ACEOF
26154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26155_ACEOF
26156
26157fi
26158done
26159
26160 LIBS="$save_LIBS"
26161 fi
26162
26163fi
26164
26165
26166# Check whether user wants Kerberos 5 support
26167KRB5_MSG="no"
26168
26169# Check whether --with-kerberos5 was given.
26170if test "${with_kerberos5+set}" = set; then
26171 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
26172 if test "x$withval" = "xyes" ; then
26173 KRB5ROOT="/usr/local"
26174 else
26175 KRB5ROOT=${withval}
26176 fi
26177
26178
26179cat >>confdefs.h <<\_ACEOF
26180#define KRB5 1
26181_ACEOF
26182
26183 KRB5_MSG="yes"
26184
26185 { echo "$as_me:$LINENO: checking for krb5-config" >&5
26186echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
26187 if test -x $KRB5ROOT/bin/krb5-config ; then
26188 KRB5CONF=$KRB5ROOT/bin/krb5-config
26189 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
26190echo "${ECHO_T}$KRB5CONF" >&6; }
26191
26192 { echo "$as_me:$LINENO: checking for gssapi support" >&5
26193echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
26194 if $KRB5CONF | grep gssapi >/dev/null ; then
26195 { echo "$as_me:$LINENO: result: yes" >&5
26196echo "${ECHO_T}yes" >&6; }
26197
26198cat >>confdefs.h <<\_ACEOF
26199#define GSSAPI 1
26200_ACEOF
26201
26202 k5confopts=gssapi
26203 else
26204 { echo "$as_me:$LINENO: result: no" >&5
26205echo "${ECHO_T}no" >&6; }
26206 k5confopts=""
26207 fi
26208 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
26209 K5LIBS="`$KRB5CONF --libs $k5confopts`"
26210 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
26211 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26212echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26213 cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219 #include <krb5.h>
26220int
26221main ()
26222{
26223 char *tmp = heimdal_version;
26224 ;
26225 return 0;
26226}
26227_ACEOF
26228rm -f conftest.$ac_objext
26229if { (ac_try="$ac_compile"
26230case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26233esac
26234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235 (eval "$ac_compile") 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } && {
26242 test -z "$ac_c_werror_flag" ||
26243 test ! -s conftest.err
26244 } && test -s conftest.$ac_objext; then
26245 { echo "$as_me:$LINENO: result: yes" >&5
26246echo "${ECHO_T}yes" >&6; }
26247
26248cat >>confdefs.h <<\_ACEOF
26249#define HEIMDAL 1
26250_ACEOF
26251
26252else
26253 echo "$as_me: failed program was:" >&5
26254sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 { echo "$as_me:$LINENO: result: no" >&5
26257echo "${ECHO_T}no" >&6; }
26258
26259fi
26260
26261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 else
26263 { echo "$as_me:$LINENO: result: no" >&5
26264echo "${ECHO_T}no" >&6; }
26265 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
26266 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
26267 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26268echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275 #include <krb5.h>
26276int
26277main ()
26278{
26279 char *tmp = heimdal_version;
26280 ;
26281 return 0;
26282}
26283_ACEOF
26284rm -f conftest.$ac_objext
26285if { (ac_try="$ac_compile"
26286case "(($ac_try" in
26287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288 *) ac_try_echo=$ac_try;;
26289esac
26290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291 (eval "$ac_compile") 2>conftest.er1
26292 ac_status=$?
26293 grep -v '^ *+' conftest.er1 >conftest.err
26294 rm -f conftest.er1
26295 cat conftest.err >&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } && {
26298 test -z "$ac_c_werror_flag" ||
26299 test ! -s conftest.err
26300 } && test -s conftest.$ac_objext; then
26301 { echo "$as_me:$LINENO: result: yes" >&5
26302echo "${ECHO_T}yes" >&6; }
26303 cat >>confdefs.h <<\_ACEOF
26304#define HEIMDAL 1
26305_ACEOF
26306
26307 K5LIBS="-lkrb5 -ldes"
26308 K5LIBS="$K5LIBS -lcom_err -lasn1"
26309 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
26310echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
26311if test "${ac_cv_lib_roken_net_write+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26313else
26314 ac_check_lib_save_LIBS=$LIBS
26315LIBS="-lroken $LIBS"
26316cat >conftest.$ac_ext <<_ACEOF
26317/* confdefs.h. */
26318_ACEOF
26319cat confdefs.h >>conftest.$ac_ext
26320cat >>conftest.$ac_ext <<_ACEOF
26321/* end confdefs.h. */
26322
26323/* Override any GCC internal prototype to avoid an error.
26324 Use char because int might match the return type of a GCC
26325 builtin and then its argument prototype would still apply. */
26326#ifdef __cplusplus
26327extern "C"
26328#endif
26329char net_write ();
26330int
26331main ()
26332{
26333return net_write ();
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338rm -f conftest.$ac_objext conftest$ac_exeext
26339if { (ac_try="$ac_link"
26340case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26343esac
26344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_link") 2>conftest.er1
26346 ac_status=$?
26347 grep -v '^ *+' conftest.er1 >conftest.err
26348 rm -f conftest.er1
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && {
26352 test -z "$ac_c_werror_flag" ||
26353 test ! -s conftest.err
26354 } && test -s conftest$ac_exeext &&
26355 $as_test_x conftest$ac_exeext; then
26356 ac_cv_lib_roken_net_write=yes
26357else
26358 echo "$as_me: failed program was:" >&5
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
26361 ac_cv_lib_roken_net_write=no
26362fi
26363
26364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365 conftest$ac_exeext conftest.$ac_ext
26366LIBS=$ac_check_lib_save_LIBS
26367fi
26368{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
26369echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
26370if test $ac_cv_lib_roken_net_write = yes; then
26371 K5LIBS="$K5LIBS -lroken"
26372fi
26373
26374
26375else
26376 echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 { echo "$as_me:$LINENO: result: no" >&5
26380echo "${ECHO_T}no" >&6; }
26381 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
26382
26383
26384fi
26385
26386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
26388echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
26389if test "${ac_cv_search_dn_expand+set}" = set; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391else
26392 ac_func_search_save_LIBS=$LIBS
26393cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h. */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char dn_expand ();
26407int
26408main ()
26409{
26410return dn_expand ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415for ac_lib in '' resolv; do
26416 if test -z "$ac_lib"; then
26417 ac_res="none required"
26418 else
26419 ac_res=-l$ac_lib
26420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26421 fi
26422 rm -f conftest.$ac_objext conftest$ac_exeext
26423if { (ac_try="$ac_link"
26424case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427esac
26428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_link") 2>conftest.er1
26430 ac_status=$?
26431 grep -v '^ *+' conftest.er1 >conftest.err
26432 rm -f conftest.er1
26433 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && {
26436 test -z "$ac_c_werror_flag" ||
26437 test ! -s conftest.err
26438 } && test -s conftest$ac_exeext &&
26439 $as_test_x conftest$ac_exeext; then
26440 ac_cv_search_dn_expand=$ac_res
26441else
26442 echo "$as_me: failed program was:" >&5
26443sed 's/^/| /' conftest.$ac_ext >&5
26444
26445
26446fi
26447
26448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26449 conftest$ac_exeext
26450 if test "${ac_cv_search_dn_expand+set}" = set; then
26451 break
26452fi
26453done
26454if test "${ac_cv_search_dn_expand+set}" = set; then
26455 :
26456else
26457 ac_cv_search_dn_expand=no
26458fi
26459rm conftest.$ac_ext
26460LIBS=$ac_func_search_save_LIBS
26461fi
26462{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
26463echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
26464ac_res=$ac_cv_search_dn_expand
26465if test "$ac_res" != no; then
26466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26467
26468fi
26469
26470
26206 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
26207echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
26208if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
26471 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
26472echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
26473if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
26209 echo $ECHO_N "(cached) $ECHO_C" >&6
26210else
26211 ac_check_lib_save_LIBS=$LIBS
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475else
26476 ac_check_lib_save_LIBS=$LIBS
26212LIBS="-lgssapi $K5LIBS $LIBS"
26477LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
26213cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219
26220/* Override any GCC internal prototype to avoid an error.
26221 Use char because int might match the return type of a GCC
26222 builtin and then its argument prototype would still apply. */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226char gss_init_sec_context ();
26227int
26228main ()
26229{
26230return gss_init_sec_context ();
26231 ;
26232 return 0;
26233}
26234_ACEOF
26235rm -f conftest.$ac_objext conftest$ac_exeext
26236if { (ac_try="$ac_link"
26237case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26240esac
26241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_link") 2>conftest.er1
26243 ac_status=$?
26244 grep -v '^ *+' conftest.er1 >conftest.err
26245 rm -f conftest.er1
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest$ac_exeext &&
26252 $as_test_x conftest$ac_exeext; then
26478cat >conftest.$ac_ext <<_ACEOF
26479/* confdefs.h. */
26480_ACEOF
26481cat confdefs.h >>conftest.$ac_ext
26482cat >>conftest.$ac_ext <<_ACEOF
26483/* end confdefs.h. */
26484
26485/* Override any GCC internal prototype to avoid an error.
26486 Use char because int might match the return type of a GCC
26487 builtin and then its argument prototype would still apply. */
26488#ifdef __cplusplus
26489extern "C"
26490#endif
26491char gss_init_sec_context ();
26492int
26493main ()
26494{
26495return gss_init_sec_context ();
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext conftest$ac_exeext
26501if { (ac_try="$ac_link"
26502case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26505esac
26506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_link") 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest$ac_exeext &&
26517 $as_test_x conftest$ac_exeext; then
26253 ac_cv_lib_gssapi_gss_init_sec_context=yes
26518 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26254else
26255 echo "$as_me: failed program was:" >&5
26256sed 's/^/| /' conftest.$ac_ext >&5
26257
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26258 ac_cv_lib_gssapi_gss_init_sec_context=no
26523 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26259fi
26260
26261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26262 conftest$ac_exeext conftest.$ac_ext
26263LIBS=$ac_check_lib_save_LIBS
26264fi
26524fi
26525
26526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26527 conftest$ac_exeext conftest.$ac_ext
26528LIBS=$ac_check_lib_save_LIBS
26529fi
26265{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
26266echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
26267if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
26530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26531echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26532if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26268 cat >>confdefs.h <<\_ACEOF
26269#define GSSAPI 1
26270_ACEOF
26271
26533 cat >>confdefs.h <<\_ACEOF
26534#define GSSAPI 1
26535_ACEOF
26536
26272 K5LIBS="-lgssapi $K5LIBS"
26537 K5LIBS="-lgssapi_krb5 $K5LIBS"
26273else
26538else
26274 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
26275echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
26276if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
26539 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
26540echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
26541if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26278else
26279 ac_check_lib_save_LIBS=$LIBS
26542 echo $ECHO_N "(cached) $ECHO_C" >&6
26543else
26544 ac_check_lib_save_LIBS=$LIBS
26280LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
26545LIBS="-lgssapi $K5LIBS $LIBS"
26281cat >conftest.$ac_ext <<_ACEOF
26282/* confdefs.h. */
26283_ACEOF
26284cat confdefs.h >>conftest.$ac_ext
26285cat >>conftest.$ac_ext <<_ACEOF
26286/* end confdefs.h. */
26287
26288/* Override any GCC internal prototype to avoid an error.
26289 Use char because int might match the return type of a GCC
26290 builtin and then its argument prototype would still apply. */
26291#ifdef __cplusplus
26292extern "C"
26293#endif
26294char gss_init_sec_context ();
26295int
26296main ()
26297{
26298return gss_init_sec_context ();
26299 ;
26300 return 0;
26301}
26302_ACEOF
26303rm -f conftest.$ac_objext conftest$ac_exeext
26304if { (ac_try="$ac_link"
26305case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26308esac
26309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_link") 2>conftest.er1
26311 ac_status=$?
26312 grep -v '^ *+' conftest.er1 >conftest.err
26313 rm -f conftest.er1
26314 cat conftest.err >&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } && {
26317 test -z "$ac_c_werror_flag" ||
26318 test ! -s conftest.err
26319 } && test -s conftest$ac_exeext &&
26320 $as_test_x conftest$ac_exeext; then
26546cat >conftest.$ac_ext <<_ACEOF
26547/* confdefs.h. */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h. */
26552
26553/* Override any GCC internal prototype to avoid an error.
26554 Use char because int might match the return type of a GCC
26555 builtin and then its argument prototype would still apply. */
26556#ifdef __cplusplus
26557extern "C"
26558#endif
26559char gss_init_sec_context ();
26560int
26561main ()
26562{
26563return gss_init_sec_context ();
26564 ;
26565 return 0;
26566}
26567_ACEOF
26568rm -f conftest.$ac_objext conftest$ac_exeext
26569if { (ac_try="$ac_link"
26570case "(($ac_try" in
26571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572 *) ac_try_echo=$ac_try;;
26573esac
26574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575 (eval "$ac_link") 2>conftest.er1
26576 ac_status=$?
26577 grep -v '^ *+' conftest.er1 >conftest.err
26578 rm -f conftest.er1
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } && {
26582 test -z "$ac_c_werror_flag" ||
26583 test ! -s conftest.err
26584 } && test -s conftest$ac_exeext &&
26585 $as_test_x conftest$ac_exeext; then
26321 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26586 ac_cv_lib_gssapi_gss_init_sec_context=yes
26322else
26323 echo "$as_me: failed program was:" >&5
26324sed 's/^/| /' conftest.$ac_ext >&5
26325
26587else
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
26326 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26591 ac_cv_lib_gssapi_gss_init_sec_context=no
26327fi
26328
26329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26330 conftest$ac_exeext conftest.$ac_ext
26331LIBS=$ac_check_lib_save_LIBS
26332fi
26592fi
26593
26594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26595 conftest$ac_exeext conftest.$ac_ext
26596LIBS=$ac_check_lib_save_LIBS
26597fi
26333{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26334echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26335if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
26599echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
26600if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
26336 cat >>confdefs.h <<\_ACEOF
26337#define GSSAPI 1
26338_ACEOF
26339
26601 cat >>confdefs.h <<\_ACEOF
26602#define GSSAPI 1
26603_ACEOF
26604
26340 K5LIBS="-lgssapi_krb5 $K5LIBS"
26605 K5LIBS="-lgssapi $K5LIBS"
26341else
26342 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
26343echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
26344fi
26345
26346
26347fi
26348
26349
26350 if test "${ac_cv_header_gssapi_h+set}" = set; then
26351 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
26352echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26353if test "${ac_cv_header_gssapi_h+set}" = set; then
26354 echo $ECHO_N "(cached) $ECHO_C" >&6
26355fi
26356{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26357echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26358else
26359 # Is the header compilable?
26360{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
26361echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
26362cat >conftest.$ac_ext <<_ACEOF
26363/* confdefs.h. */
26364_ACEOF
26365cat confdefs.h >>conftest.$ac_ext
26366cat >>conftest.$ac_ext <<_ACEOF
26367/* end confdefs.h. */
26368$ac_includes_default
26369#include <gssapi.h>
26370_ACEOF
26371rm -f conftest.$ac_objext
26372if { (ac_try="$ac_compile"
26373case "(($ac_try" in
26374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375 *) ac_try_echo=$ac_try;;
26376esac
26377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378 (eval "$ac_compile") 2>conftest.er1
26379 ac_status=$?
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } && {
26385 test -z "$ac_c_werror_flag" ||
26386 test ! -s conftest.err
26387 } && test -s conftest.$ac_objext; then
26388 ac_header_compiler=yes
26389else
26390 echo "$as_me: failed program was:" >&5
26391sed 's/^/| /' conftest.$ac_ext >&5
26392
26393 ac_header_compiler=no
26394fi
26395
26396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26398echo "${ECHO_T}$ac_header_compiler" >&6; }
26399
26400# Is the header present?
26401{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
26402echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
26403cat >conftest.$ac_ext <<_ACEOF
26404/* confdefs.h. */
26405_ACEOF
26406cat confdefs.h >>conftest.$ac_ext
26407cat >>conftest.$ac_ext <<_ACEOF
26408/* end confdefs.h. */
26409#include <gssapi.h>
26410_ACEOF
26411if { (ac_try="$ac_cpp conftest.$ac_ext"
26412case "(($ac_try" in
26413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414 *) ac_try_echo=$ac_try;;
26415esac
26416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26418 ac_status=$?
26419 grep -v '^ *+' conftest.er1 >conftest.err
26420 rm -f conftest.er1
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } >/dev/null && {
26424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26425 test ! -s conftest.err
26426 }; then
26427 ac_header_preproc=yes
26428else
26429 echo "$as_me: failed program was:" >&5
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
26432 ac_header_preproc=no
26433fi
26434
26435rm -f conftest.err conftest.$ac_ext
26436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26437echo "${ECHO_T}$ac_header_preproc" >&6; }
26438
26439# So? What about this header?
26440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26441 yes:no: )
26442 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
26443echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26444 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
26445echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
26446 ac_header_preproc=yes
26447 ;;
26448 no:yes:* )
26449 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
26450echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
26451 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
26452echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
26453 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
26454echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
26455 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
26456echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
26457 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
26458echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
26459 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
26460echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
26461 ( cat <<\_ASBOX
26462## ------------------------------------------- ##
26463## Report this to openssh-unix-dev@mindrot.org ##
26464## ------------------------------------------- ##
26465_ASBOX
26466 ) | sed "s/^/$as_me: WARNING: /" >&2
26467 ;;
26468esac
26469{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
26470echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26471if test "${ac_cv_header_gssapi_h+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26473else
26474 ac_cv_header_gssapi_h=$ac_header_preproc
26475fi
26476{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26477echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26478
26479fi
26480if test $ac_cv_header_gssapi_h = yes; then
26481 :
26482else
26483 unset ac_cv_header_gssapi_h
26484 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26485
26486for ac_header in gssapi.h
26487do
26488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
26494fi
26495ac_res=`eval echo '${'$as_ac_Header'}'`
26496 { echo "$as_me:$LINENO: result: $ac_res" >&5
26497echo "${ECHO_T}$ac_res" >&6; }
26498else
26499 # Is the header compilable?
26500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26502cat >conftest.$ac_ext <<_ACEOF
26503/* confdefs.h. */
26504_ACEOF
26505cat confdefs.h >>conftest.$ac_ext
26506cat >>conftest.$ac_ext <<_ACEOF
26507/* end confdefs.h. */
26508$ac_includes_default
26509#include <$ac_header>
26510_ACEOF
26511rm -f conftest.$ac_objext
26512if { (ac_try="$ac_compile"
26513case "(($ac_try" in
26514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515 *) ac_try_echo=$ac_try;;
26516esac
26517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518 (eval "$ac_compile") 2>conftest.er1
26519 ac_status=$?
26520 grep -v '^ *+' conftest.er1 >conftest.err
26521 rm -f conftest.er1
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } && {
26525 test -z "$ac_c_werror_flag" ||
26526 test ! -s conftest.err
26527 } && test -s conftest.$ac_objext; then
26528 ac_header_compiler=yes
26529else
26530 echo "$as_me: failed program was:" >&5
26531sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 ac_header_compiler=no
26534fi
26535
26536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26537{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26538echo "${ECHO_T}$ac_header_compiler" >&6; }
26539
26540# Is the header present?
26541{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26543cat >conftest.$ac_ext <<_ACEOF
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
26549#include <$ac_header>
26550_ACEOF
26551if { (ac_try="$ac_cpp conftest.$ac_ext"
26552case "(($ac_try" in
26553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554 *) ac_try_echo=$ac_try;;
26555esac
26556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26558 ac_status=$?
26559 grep -v '^ *+' conftest.er1 >conftest.err
26560 rm -f conftest.er1
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } >/dev/null && {
26564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26565 test ! -s conftest.err
26566 }; then
26567 ac_header_preproc=yes
26568else
26569 echo "$as_me: failed program was:" >&5
26570sed 's/^/| /' conftest.$ac_ext >&5
26571
26572 ac_header_preproc=no
26573fi
26574
26575rm -f conftest.err conftest.$ac_ext
26576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26577echo "${ECHO_T}$ac_header_preproc" >&6; }
26578
26579# So? What about this header?
26580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26581 yes:no: )
26582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26586 ac_header_preproc=yes
26587 ;;
26588 no:yes:* )
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26601 ( cat <<\_ASBOX
26602## ------------------------------------------- ##
26603## Report this to openssh-unix-dev@mindrot.org ##
26604## ------------------------------------------- ##
26605_ASBOX
26606 ) | sed "s/^/$as_me: WARNING: /" >&2
26607 ;;
26608esac
26609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26612 echo $ECHO_N "(cached) $ECHO_C" >&6
26613else
26614 eval "$as_ac_Header=\$ac_header_preproc"
26615fi
26616ac_res=`eval echo '${'$as_ac_Header'}'`
26617 { echo "$as_me:$LINENO: result: $ac_res" >&5
26618echo "${ECHO_T}$ac_res" >&6; }
26619
26620fi
26621if test `eval echo '${'$as_ac_Header'}'` = yes; then
26622 cat >>confdefs.h <<_ACEOF
26623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26624_ACEOF
26625
26626else
26627 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
26628echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
26629
26630fi
26631
26632done
26633
26634
26635
26636fi
26637
26638
26639
26640 oldCPP="$CPPFLAGS"
26641 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26642 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26643 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26644echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26645if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26647fi
26648{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26649echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26650else
26651 # Is the header compilable?
26652{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
26653echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
26654cat >conftest.$ac_ext <<_ACEOF
26655/* confdefs.h. */
26656_ACEOF
26657cat confdefs.h >>conftest.$ac_ext
26658cat >>conftest.$ac_ext <<_ACEOF
26659/* end confdefs.h. */
26660$ac_includes_default
26661#include <gssapi_krb5.h>
26662_ACEOF
26663rm -f conftest.$ac_objext
26664if { (ac_try="$ac_compile"
26665case "(($ac_try" in
26666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667 *) ac_try_echo=$ac_try;;
26668esac
26669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670 (eval "$ac_compile") 2>conftest.er1
26671 ac_status=$?
26672 grep -v '^ *+' conftest.er1 >conftest.err
26673 rm -f conftest.er1
26674 cat conftest.err >&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } && {
26677 test -z "$ac_c_werror_flag" ||
26678 test ! -s conftest.err
26679 } && test -s conftest.$ac_objext; then
26680 ac_header_compiler=yes
26681else
26682 echo "$as_me: failed program was:" >&5
26683sed 's/^/| /' conftest.$ac_ext >&5
26684
26685 ac_header_compiler=no
26686fi
26687
26688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26689{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26690echo "${ECHO_T}$ac_header_compiler" >&6; }
26691
26692# Is the header present?
26693{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
26694echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
26695cat >conftest.$ac_ext <<_ACEOF
26696/* confdefs.h. */
26697_ACEOF
26698cat confdefs.h >>conftest.$ac_ext
26699cat >>conftest.$ac_ext <<_ACEOF
26700/* end confdefs.h. */
26701#include <gssapi_krb5.h>
26702_ACEOF
26703if { (ac_try="$ac_cpp conftest.$ac_ext"
26704case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26707esac
26708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26710 ac_status=$?
26711 grep -v '^ *+' conftest.er1 >conftest.err
26712 rm -f conftest.er1
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } >/dev/null && {
26716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26717 test ! -s conftest.err
26718 }; then
26719 ac_header_preproc=yes
26720else
26721 echo "$as_me: failed program was:" >&5
26722sed 's/^/| /' conftest.$ac_ext >&5
26723
26724 ac_header_preproc=no
26725fi
26726
26727rm -f conftest.err conftest.$ac_ext
26728{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26729echo "${ECHO_T}$ac_header_preproc" >&6; }
26730
26731# So? What about this header?
26732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26733 yes:no: )
26734 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
26735echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26736 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
26737echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
26738 ac_header_preproc=yes
26739 ;;
26740 no:yes:* )
26741 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
26742echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
26744echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
26745 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
26746echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
26747 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
26748echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
26749 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
26750echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
26751 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
26752echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
26753 ( cat <<\_ASBOX
26754## ------------------------------------------- ##
26755## Report this to openssh-unix-dev@mindrot.org ##
26756## ------------------------------------------- ##
26757_ASBOX
26758 ) | sed "s/^/$as_me: WARNING: /" >&2
26759 ;;
26760esac
26761{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26762echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26763if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26765else
26766 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
26767fi
26768{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26769echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26770
26771fi
26772if test $ac_cv_header_gssapi_krb5_h = yes; then
26773 :
26774else
26775 CPPFLAGS="$oldCPP"
26776fi
26777
26778
26779
26780 fi
26781 if test ! -z "$need_dash_r" ; then
26782 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
26783 fi
26784 if test ! -z "$blibpath" ; then
26785 blibpath="$blibpath:${KRB5ROOT}/lib"
26786 fi
26787
26788
26789
26790for ac_header in gssapi.h gssapi/gssapi.h
26791do
26792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26798fi
26799ac_res=`eval echo '${'$as_ac_Header'}'`
26800 { echo "$as_me:$LINENO: result: $ac_res" >&5
26801echo "${ECHO_T}$ac_res" >&6; }
26802else
26803 # Is the header compilable?
26804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26806cat >conftest.$ac_ext <<_ACEOF
26807/* confdefs.h. */
26808_ACEOF
26809cat confdefs.h >>conftest.$ac_ext
26810cat >>conftest.$ac_ext <<_ACEOF
26811/* end confdefs.h. */
26812$ac_includes_default
26813#include <$ac_header>
26814_ACEOF
26815rm -f conftest.$ac_objext
26816if { (ac_try="$ac_compile"
26817case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26820esac
26821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_compile") 2>conftest.er1
26823 ac_status=$?
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } && {
26829 test -z "$ac_c_werror_flag" ||
26830 test ! -s conftest.err
26831 } && test -s conftest.$ac_objext; then
26832 ac_header_compiler=yes
26833else
26834 echo "$as_me: failed program was:" >&5
26835sed 's/^/| /' conftest.$ac_ext >&5
26836
26837 ac_header_compiler=no
26838fi
26839
26840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26842echo "${ECHO_T}$ac_header_compiler" >&6; }
26843
26844# Is the header present?
26845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26847cat >conftest.$ac_ext <<_ACEOF
26848/* confdefs.h. */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h. */
26853#include <$ac_header>
26854_ACEOF
26855if { (ac_try="$ac_cpp conftest.$ac_ext"
26856case "(($ac_try" in
26857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858 *) ac_try_echo=$ac_try;;
26859esac
26860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26862 ac_status=$?
26863 grep -v '^ *+' conftest.er1 >conftest.err
26864 rm -f conftest.er1
26865 cat conftest.err >&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } >/dev/null && {
26868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26869 test ! -s conftest.err
26870 }; then
26871 ac_header_preproc=yes
26872else
26873 echo "$as_me: failed program was:" >&5
26874sed 's/^/| /' conftest.$ac_ext >&5
26875
26876 ac_header_preproc=no
26877fi
26878
26879rm -f conftest.err conftest.$ac_ext
26880{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26881echo "${ECHO_T}$ac_header_preproc" >&6; }
26882
26883# So? What about this header?
26884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26885 yes:no: )
26886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26890 ac_header_preproc=yes
26891 ;;
26892 no:yes:* )
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26896echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26900echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26905 ( cat <<\_ASBOX
26906## ------------------------------------------- ##
26907## Report this to openssh-unix-dev@mindrot.org ##
26908## ------------------------------------------- ##
26909_ASBOX
26910 ) | sed "s/^/$as_me: WARNING: /" >&2
26911 ;;
26912esac
26913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26917else
26918 eval "$as_ac_Header=\$ac_header_preproc"
26919fi
26920ac_res=`eval echo '${'$as_ac_Header'}'`
26921 { echo "$as_me:$LINENO: result: $ac_res" >&5
26922echo "${ECHO_T}$ac_res" >&6; }
26923
26924fi
26925if test `eval echo '${'$as_ac_Header'}'` = yes; then
26926 cat >>confdefs.h <<_ACEOF
26927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26928_ACEOF
26929
26930fi
26931
26932done
26933
26934
26935
26936for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
26937do
26938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26944fi
26945ac_res=`eval echo '${'$as_ac_Header'}'`
26946 { echo "$as_me:$LINENO: result: $ac_res" >&5
26947echo "${ECHO_T}$ac_res" >&6; }
26948else
26949 # Is the header compilable?
26950{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26952cat >conftest.$ac_ext <<_ACEOF
26953/* confdefs.h. */
26954_ACEOF
26955cat confdefs.h >>conftest.$ac_ext
26956cat >>conftest.$ac_ext <<_ACEOF
26957/* end confdefs.h. */
26958$ac_includes_default
26959#include <$ac_header>
26960_ACEOF
26961rm -f conftest.$ac_objext
26962if { (ac_try="$ac_compile"
26963case "(($ac_try" in
26964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965 *) ac_try_echo=$ac_try;;
26966esac
26967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968 (eval "$ac_compile") 2>conftest.er1
26969 ac_status=$?
26970 grep -v '^ *+' conftest.er1 >conftest.err
26971 rm -f conftest.er1
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } && {
26975 test -z "$ac_c_werror_flag" ||
26976 test ! -s conftest.err
26977 } && test -s conftest.$ac_objext; then
26978 ac_header_compiler=yes
26979else
26980 echo "$as_me: failed program was:" >&5
26981sed 's/^/| /' conftest.$ac_ext >&5
26982
26983 ac_header_compiler=no
26984fi
26985
26986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26987{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26988echo "${ECHO_T}$ac_header_compiler" >&6; }
26989
26990# Is the header present?
26991{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26993cat >conftest.$ac_ext <<_ACEOF
26994/* confdefs.h. */
26995_ACEOF
26996cat confdefs.h >>conftest.$ac_ext
26997cat >>conftest.$ac_ext <<_ACEOF
26998/* end confdefs.h. */
26999#include <$ac_header>
27000_ACEOF
27001if { (ac_try="$ac_cpp conftest.$ac_ext"
27002case "(($ac_try" in
27003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004 *) ac_try_echo=$ac_try;;
27005esac
27006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27008 ac_status=$?
27009 grep -v '^ *+' conftest.er1 >conftest.err
27010 rm -f conftest.er1
27011 cat conftest.err >&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } >/dev/null && {
27014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27015 test ! -s conftest.err
27016 }; then
27017 ac_header_preproc=yes
27018else
27019 echo "$as_me: failed program was:" >&5
27020sed 's/^/| /' conftest.$ac_ext >&5
27021
27022 ac_header_preproc=no
27023fi
27024
27025rm -f conftest.err conftest.$ac_ext
27026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27027echo "${ECHO_T}$ac_header_preproc" >&6; }
27028
27029# So? What about this header?
27030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27031 yes:no: )
27032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27036 ac_header_preproc=yes
27037 ;;
27038 no:yes:* )
27039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27051 ( cat <<\_ASBOX
27052## ------------------------------------------- ##
27053## Report this to openssh-unix-dev@mindrot.org ##
27054## ------------------------------------------- ##
27055_ASBOX
27056 ) | sed "s/^/$as_me: WARNING: /" >&2
27057 ;;
27058esac
27059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27063else
27064 eval "$as_ac_Header=\$ac_header_preproc"
27065fi
27066ac_res=`eval echo '${'$as_ac_Header'}'`
27067 { echo "$as_me:$LINENO: result: $ac_res" >&5
27068echo "${ECHO_T}$ac_res" >&6; }
27069
27070fi
27071if test `eval echo '${'$as_ac_Header'}'` = yes; then
27072 cat >>confdefs.h <<_ACEOF
27073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27074_ACEOF
27075
27076fi
27077
27078done
27079
27080
27081
27082for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
27083do
27084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27090fi
27091ac_res=`eval echo '${'$as_ac_Header'}'`
27092 { echo "$as_me:$LINENO: result: $ac_res" >&5
27093echo "${ECHO_T}$ac_res" >&6; }
27094else
27095 # Is the header compilable?
27096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27098cat >conftest.$ac_ext <<_ACEOF
27099/* confdefs.h. */
27100_ACEOF
27101cat confdefs.h >>conftest.$ac_ext
27102cat >>conftest.$ac_ext <<_ACEOF
27103/* end confdefs.h. */
27104$ac_includes_default
27105#include <$ac_header>
27106_ACEOF
27107rm -f conftest.$ac_objext
27108if { (ac_try="$ac_compile"
27109case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27112esac
27113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_compile") 2>conftest.er1
27115 ac_status=$?
27116 grep -v '^ *+' conftest.er1 >conftest.err
27117 rm -f conftest.er1
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } && {
27121 test -z "$ac_c_werror_flag" ||
27122 test ! -s conftest.err
27123 } && test -s conftest.$ac_objext; then
27124 ac_header_compiler=yes
27125else
27126 echo "$as_me: failed program was:" >&5
27127sed 's/^/| /' conftest.$ac_ext >&5
27128
27129 ac_header_compiler=no
27130fi
27131
27132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27134echo "${ECHO_T}$ac_header_compiler" >&6; }
27135
27136# Is the header present?
27137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27139cat >conftest.$ac_ext <<_ACEOF
27140/* confdefs.h. */
27141_ACEOF
27142cat confdefs.h >>conftest.$ac_ext
27143cat >>conftest.$ac_ext <<_ACEOF
27144/* end confdefs.h. */
27145#include <$ac_header>
27146_ACEOF
27147if { (ac_try="$ac_cpp conftest.$ac_ext"
27148case "(($ac_try" in
27149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150 *) ac_try_echo=$ac_try;;
27151esac
27152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27154 ac_status=$?
27155 grep -v '^ *+' conftest.er1 >conftest.err
27156 rm -f conftest.er1
27157 cat conftest.err >&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } >/dev/null && {
27160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27161 test ! -s conftest.err
27162 }; then
27163 ac_header_preproc=yes
27164else
27165 echo "$as_me: failed program was:" >&5
27166sed 's/^/| /' conftest.$ac_ext >&5
27167
27168 ac_header_preproc=no
27169fi
27170
27171rm -f conftest.err conftest.$ac_ext
27172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27173echo "${ECHO_T}$ac_header_preproc" >&6; }
27174
27175# So? What about this header?
27176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27177 yes:no: )
27178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27182 ac_header_preproc=yes
27183 ;;
27184 no:yes:* )
27185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27197 ( cat <<\_ASBOX
27198## ------------------------------------------- ##
27199## Report this to openssh-unix-dev@mindrot.org ##
27200## ------------------------------------------- ##
27201_ASBOX
27202 ) | sed "s/^/$as_me: WARNING: /" >&2
27203 ;;
27204esac
27205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209else
27210 eval "$as_ac_Header=\$ac_header_preproc"
27211fi
27212ac_res=`eval echo '${'$as_ac_Header'}'`
27213 { echo "$as_me:$LINENO: result: $ac_res" >&5
27214echo "${ECHO_T}$ac_res" >&6; }
27215
27216fi
27217if test `eval echo '${'$as_ac_Header'}'` = yes; then
27218 cat >>confdefs.h <<_ACEOF
27219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27220_ACEOF
27221
27222fi
27223
27224done
27225
27226
27227 LIBS="$LIBS $K5LIBS"
27228 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
27229echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
27230if test "${ac_cv_search_k_hasafs+set}" = set; then
27231 echo $ECHO_N "(cached) $ECHO_C" >&6
27232else
27233 ac_func_search_save_LIBS=$LIBS
27234cat >conftest.$ac_ext <<_ACEOF
27235/* confdefs.h. */
27236_ACEOF
27237cat confdefs.h >>conftest.$ac_ext
27238cat >>conftest.$ac_ext <<_ACEOF
27239/* end confdefs.h. */
27240
27241/* Override any GCC internal prototype to avoid an error.
27242 Use char because int might match the return type of a GCC
27243 builtin and then its argument prototype would still apply. */
27244#ifdef __cplusplus
27245extern "C"
27246#endif
27247char k_hasafs ();
27248int
27249main ()
27250{
27251return k_hasafs ();
27252 ;
27253 return 0;
27254}
27255_ACEOF
27256for ac_lib in '' kafs; do
27257 if test -z "$ac_lib"; then
27258 ac_res="none required"
27259 else
27260 ac_res=-l$ac_lib
27261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27262 fi
27263 rm -f conftest.$ac_objext conftest$ac_exeext
27264if { (ac_try="$ac_link"
27265case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_link") 2>conftest.er1
27271 ac_status=$?
27272 grep -v '^ *+' conftest.er1 >conftest.err
27273 rm -f conftest.er1
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } && {
27277 test -z "$ac_c_werror_flag" ||
27278 test ! -s conftest.err
27279 } && test -s conftest$ac_exeext &&
27280 $as_test_x conftest$ac_exeext; then
27281 ac_cv_search_k_hasafs=$ac_res
27282else
27283 echo "$as_me: failed program was:" >&5
27284sed 's/^/| /' conftest.$ac_ext >&5
27285
27286
27287fi
27288
27289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27290 conftest$ac_exeext
27291 if test "${ac_cv_search_k_hasafs+set}" = set; then
27292 break
27293fi
27294done
27295if test "${ac_cv_search_k_hasafs+set}" = set; then
27296 :
27297else
27298 ac_cv_search_k_hasafs=no
27299fi
27300rm conftest.$ac_ext
27301LIBS=$ac_func_search_save_LIBS
27302fi
27303{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
27304echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
27305ac_res=$ac_cv_search_k_hasafs
27306if test "$ac_res" != no; then
27307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27308
27309cat >>confdefs.h <<\_ACEOF
27310#define USE_AFS 1
27311_ACEOF
27312
27313fi
27314
27315 fi
27316
27317
27318fi
27319
27320
27321# Looking for programs, paths and files
27322
27323PRIVSEP_PATH=/var/empty
27324
27325# Check whether --with-privsep-path was given.
27326if test "${with_privsep_path+set}" = set; then
27327 withval=$with_privsep_path;
27328 if test -n "$withval" && test "x$withval" != "xno" && \
27329 test "x${withval}" != "xyes"; then
27330 PRIVSEP_PATH=$withval
27331 fi
27332
27333
27334fi
27335
27336
27337
27338
27339# Check whether --with-xauth was given.
27340if test "${with_xauth+set}" = set; then
27341 withval=$with_xauth;
27342 if test -n "$withval" && test "x$withval" != "xno" && \
27343 test "x${withval}" != "xyes"; then
27344 xauth_path=$withval
27345 fi
27346
27347else
27348
27349 TestPath="$PATH"
27350 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
27351 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
27352 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
27353 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
27354 # Extract the first word of "xauth", so it can be a program name with args.
27355set dummy xauth; ac_word=$2
27356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27358if test "${ac_cv_path_xauth_path+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27360else
27361 case $xauth_path in
27362 [\\/]* | ?:[\\/]*)
27363 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
27364 ;;
27365 *)
27366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27367for as_dir in $TestPath
27368do
27369 IFS=$as_save_IFS
27370 test -z "$as_dir" && as_dir=.
27371 for ac_exec_ext in '' $ac_executable_extensions; do
27372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27373 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
27374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27375 break 2
27376 fi
27377done
27378done
27379IFS=$as_save_IFS
27380
27381 ;;
27382esac
27383fi
27384xauth_path=$ac_cv_path_xauth_path
27385if test -n "$xauth_path"; then
27386 { echo "$as_me:$LINENO: result: $xauth_path" >&5
27387echo "${ECHO_T}$xauth_path" >&6; }
27388else
27389 { echo "$as_me:$LINENO: result: no" >&5
27390echo "${ECHO_T}no" >&6; }
27391fi
27392
27393
27394 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
27395 xauth_path="/usr/openwin/bin/xauth"
27396 fi
27397
27398
27399fi
27400
27401
27402STRIP_OPT=-s
27403# Check whether --enable-strip was given.
27404if test "${enable_strip+set}" = set; then
27405 enableval=$enable_strip;
27406 if test "x$enableval" = "xno" ; then
27407 STRIP_OPT=
27408 fi
27409
27410
27411fi
27412
27413
27414
27415if test -z "$xauth_path" ; then
27416 XAUTH_PATH="undefined"
27417
27418else
27419
27420cat >>confdefs.h <<_ACEOF
27421#define XAUTH_PATH "$xauth_path"
27422_ACEOF
27423
27424 XAUTH_PATH=$xauth_path
27425
27426fi
27427
27428# Check for mail directory (last resort if we cannot get it from headers)
27429if test ! -z "$MAIL" ; then
27430 maildir=`dirname $MAIL`
27431
27432cat >>confdefs.h <<_ACEOF
27433#define MAIL_DIRECTORY "$maildir"
27434_ACEOF
27435
27436fi
27437
27438if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
27439 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
27440echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
27441 disable_ptmx_check=yes
27442fi
27443if test -z "$no_dev_ptmx" ; then
27444 if test "x$disable_ptmx_check" != "xyes" ; then
27445 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
27446echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
27447if test "${ac_cv_file___dev_ptmx_+set}" = set; then
27448 echo $ECHO_N "(cached) $ECHO_C" >&6
27449else
27450 test "$cross_compiling" = yes &&
27451 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27452echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27453 { (exit 1); exit 1; }; }
27454if test -r ""/dev/ptmx""; then
27455 ac_cv_file___dev_ptmx_=yes
27456else
27457 ac_cv_file___dev_ptmx_=no
27458fi
27459fi
27460{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
27461echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
27462if test $ac_cv_file___dev_ptmx_ = yes; then
27463
27464
27465cat >>confdefs.h <<_ACEOF
27466#define HAVE_DEV_PTMX 1
27467_ACEOF
27468
27469 have_dev_ptmx=1
27470
27471
27472fi
27473
27474 fi
27475fi
27476
27477if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
27478 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
27479echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
27480if test "${ac_cv_file___dev_ptc_+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27482else
27483 test "$cross_compiling" = yes &&
27484 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27485echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27486 { (exit 1); exit 1; }; }
27487if test -r ""/dev/ptc""; then
27488 ac_cv_file___dev_ptc_=yes
27489else
27490 ac_cv_file___dev_ptc_=no
27491fi
27492fi
27493{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
27494echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
27495if test $ac_cv_file___dev_ptc_ = yes; then
27496
27497
27498cat >>confdefs.h <<_ACEOF
27499#define HAVE_DEV_PTS_AND_PTC 1
27500_ACEOF
27501
27502 have_dev_ptc=1
27503
27504
27505fi
27506
27507else
27508 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
27509echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
27510fi
27511
27512# Options from here on. Some of these are preset by platform above
27513
27514# Check whether --with-mantype was given.
27515if test "${with_mantype+set}" = set; then
27516 withval=$with_mantype;
27517 case "$withval" in
27518 man|cat|doc)
27519 MANTYPE=$withval
27520 ;;
27521 *)
27522 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
27523echo "$as_me: error: invalid man type: $withval" >&2;}
27524 { (exit 1); exit 1; }; }
27525 ;;
27526 esac
27527
27528
27529fi
27530
27531if test -z "$MANTYPE"; then
27532 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
27533 for ac_prog in nroff awf
27534do
27535 # Extract the first word of "$ac_prog", so it can be a program name with args.
27536set dummy $ac_prog; ac_word=$2
27537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27539if test "${ac_cv_path_NROFF+set}" = set; then
27540 echo $ECHO_N "(cached) $ECHO_C" >&6
27541else
27542 case $NROFF in
27543 [\\/]* | ?:[\\/]*)
27544 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27545 ;;
27546 *)
27547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27548for as_dir in $TestPath
27549do
27550 IFS=$as_save_IFS
27551 test -z "$as_dir" && as_dir=.
27552 for ac_exec_ext in '' $ac_executable_extensions; do
27553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27554 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27556 break 2
27557 fi
27558done
27559done
27560IFS=$as_save_IFS
27561
27562 ;;
27563esac
27564fi
27565NROFF=$ac_cv_path_NROFF
27566if test -n "$NROFF"; then
27567 { echo "$as_me:$LINENO: result: $NROFF" >&5
27568echo "${ECHO_T}$NROFF" >&6; }
27569else
27570 { echo "$as_me:$LINENO: result: no" >&5
27571echo "${ECHO_T}no" >&6; }
27572fi
27573
27574
27575 test -n "$NROFF" && break
27576done
27577test -n "$NROFF" || NROFF="/bin/false"
27578
27579 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
27580 MANTYPE=doc
27581 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
27582 MANTYPE=man
27583 else
27584 MANTYPE=cat
27585 fi
27586fi
27587
27588if test "$MANTYPE" = "doc"; then
27589 mansubdir=man;
27590else
27591 mansubdir=$MANTYPE;
27592fi
27593
27594
27595# Check whether to enable MD5 passwords
27596MD5_MSG="no"
27597
27598# Check whether --with-md5-passwords was given.
27599if test "${with_md5_passwords+set}" = set; then
27600 withval=$with_md5_passwords;
27601 if test "x$withval" != "xno" ; then
27602
27603cat >>confdefs.h <<\_ACEOF
27604#define HAVE_MD5_PASSWORDS 1
27605_ACEOF
27606
27607 MD5_MSG="yes"
27608 fi
27609
27610
27611fi
27612
27613
27614# Whether to disable shadow password support
27615
27616# Check whether --with-shadow was given.
27617if test "${with_shadow+set}" = set; then
27618 withval=$with_shadow;
27619 if test "x$withval" = "xno" ; then
27620 cat >>confdefs.h <<\_ACEOF
27621#define DISABLE_SHADOW 1
27622_ACEOF
27623
27624 disable_shadow=yes
27625 fi
27626
27627
27628fi
27629
27630
27631if test -z "$disable_shadow" ; then
27632 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
27633echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
27634 cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
27640
27641#include <sys/types.h>
27642#include <shadow.h>
27643 struct spwd sp;
27644
27645int
27646main ()
27647{
27648 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
27649 ;
27650 return 0;
27651}
27652_ACEOF
27653rm -f conftest.$ac_objext
27654if { (ac_try="$ac_compile"
27655case "(($ac_try" in
27656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657 *) ac_try_echo=$ac_try;;
27658esac
27659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27660 (eval "$ac_compile") 2>conftest.er1
27661 ac_status=$?
27662 grep -v '^ *+' conftest.er1 >conftest.err
27663 rm -f conftest.er1
27664 cat conftest.err >&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } && {
27667 test -z "$ac_c_werror_flag" ||
27668 test ! -s conftest.err
27669 } && test -s conftest.$ac_objext; then
27670 sp_expire_available=yes
27671else
27672 echo "$as_me: failed program was:" >&5
27673sed 's/^/| /' conftest.$ac_ext >&5
27674
27675
27676
27677fi
27678
27679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27680
27681 if test "x$sp_expire_available" = "xyes" ; then
27682 { echo "$as_me:$LINENO: result: yes" >&5
27683echo "${ECHO_T}yes" >&6; }
27684
27685cat >>confdefs.h <<\_ACEOF
27686#define HAS_SHADOW_EXPIRE 1
27687_ACEOF
27688
27689 else
27690 { echo "$as_me:$LINENO: result: no" >&5
27691echo "${ECHO_T}no" >&6; }
27692 fi
27693fi
27694
27695# Use ip address instead of hostname in $DISPLAY
27696if test ! -z "$IPADDR_IN_DISPLAY" ; then
27697 DISPLAY_HACK_MSG="yes"
27698
27699cat >>confdefs.h <<\_ACEOF
27700#define IPADDR_IN_DISPLAY 1
27701_ACEOF
27702
27703else
27704 DISPLAY_HACK_MSG="no"
27705
27706# Check whether --with-ipaddr-display was given.
27707if test "${with_ipaddr_display+set}" = set; then
27708 withval=$with_ipaddr_display;
27709 if test "x$withval" != "xno" ; then
27710 cat >>confdefs.h <<\_ACEOF
27711#define IPADDR_IN_DISPLAY 1
27712_ACEOF
27713
27714 DISPLAY_HACK_MSG="yes"
27715 fi
27716
27717
27718fi
27719
27720fi
27721
27722# check for /etc/default/login and use it if present.
27723# Check whether --enable-etc-default-login was given.
27724if test "${enable_etc_default_login+set}" = set; then
27725 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
27726 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
27727echo "$as_me: /etc/default/login handling disabled" >&6;}
27728 etc_default_login=no
27729 else
27730 etc_default_login=yes
27731 fi
27732else
27733 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
27734 then
27735 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
27736echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
27737 etc_default_login=no
27738 else
27739 etc_default_login=yes
27740 fi
27741
27742fi
27743
27744
27745if test "x$etc_default_login" != "xno"; then
27746 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
27747echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
27748if test "${ac_cv_file___etc_default_login_+set}" = set; then
27749 echo $ECHO_N "(cached) $ECHO_C" >&6
27750else
27751 test "$cross_compiling" = yes &&
27752 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27753echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27754 { (exit 1); exit 1; }; }
27755if test -r ""/etc/default/login""; then
27756 ac_cv_file___etc_default_login_=yes
27757else
27758 ac_cv_file___etc_default_login_=no
27759fi
27760fi
27761{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
27762echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
27763if test $ac_cv_file___etc_default_login_ = yes; then
27764 external_path_file=/etc/default/login
27765fi
27766
27767 if test "x$external_path_file" = "x/etc/default/login"; then
27768
27769cat >>confdefs.h <<\_ACEOF
27770#define HAVE_ETC_DEFAULT_LOGIN 1
27771_ACEOF
27772
27773 fi
27774fi
27775
27776if test $ac_cv_func_login_getcapbool = "yes" && \
27777 test $ac_cv_header_login_cap_h = "yes" ; then
27778 external_path_file=/etc/login.conf
27779fi
27780
27781# Whether to mess with the default path
27782SERVER_PATH_MSG="(default)"
27783
27784# Check whether --with-default-path was given.
27785if test "${with_default_path+set}" = set; then
27786 withval=$with_default_path;
27787 if test "x$external_path_file" = "x/etc/login.conf" ; then
27788 { echo "$as_me:$LINENO: WARNING:
27789--with-default-path=PATH has no effect on this system.
27790Edit /etc/login.conf instead." >&5
27791echo "$as_me: WARNING:
27792--with-default-path=PATH has no effect on this system.
27793Edit /etc/login.conf instead." >&2;}
27794 elif test "x$withval" != "xno" ; then
27795 if test ! -z "$external_path_file" ; then
27796 { echo "$as_me:$LINENO: WARNING:
27797--with-default-path=PATH will only be used if PATH is not defined in
27798$external_path_file ." >&5
27799echo "$as_me: WARNING:
27800--with-default-path=PATH will only be used if PATH is not defined in
27801$external_path_file ." >&2;}
27802 fi
27803 user_path="$withval"
27804 SERVER_PATH_MSG="$withval"
27805 fi
27806
27807else
27808 if test "x$external_path_file" = "x/etc/login.conf" ; then
27809 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
27810echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
27811 else
27812 if test ! -z "$external_path_file" ; then
27813 { echo "$as_me:$LINENO: WARNING:
27814If PATH is defined in $external_path_file, ensure the path to scp is included,
27815otherwise scp will not work." >&5
27816echo "$as_me: WARNING:
27817If PATH is defined in $external_path_file, ensure the path to scp is included,
27818otherwise scp will not work." >&2;}
27819 fi
27820 if test "$cross_compiling" = yes; then
27821 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
27822
27823else
27824 cat >conftest.$ac_ext <<_ACEOF
27825/* confdefs.h. */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h. */
27830
27831/* find out what STDPATH is */
27832#include <stdio.h>
27833#ifdef HAVE_PATHS_H
27834# include <paths.h>
27835#endif
27836#ifndef _PATH_STDPATH
27837# ifdef _PATH_USERPATH /* Irix */
27838# define _PATH_STDPATH _PATH_USERPATH
27839# else
27840# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
27841# endif
27842#endif
27843#include <sys/types.h>
27844#include <sys/stat.h>
27845#include <fcntl.h>
27846#define DATA "conftest.stdpath"
27847
27848main()
27849{
27850 FILE *fd;
27851 int rc;
27852
27853 fd = fopen(DATA,"w");
27854 if(fd == NULL)
27855 exit(1);
27856
27857 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
27858 exit(1);
27859
27860 exit(0);
27861}
27862
27863_ACEOF
27864rm -f conftest$ac_exeext
27865if { (ac_try="$ac_link"
27866case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27869esac
27870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_link") 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27875 { (case "(($ac_try" in
27876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877 *) ac_try_echo=$ac_try;;
27878esac
27879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880 (eval "$ac_try") 2>&5
27881 ac_status=$?
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
27884 user_path=`cat conftest.stdpath`
27885else
27886 echo "$as_me: program exited with status $ac_status" >&5
27887echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890( exit $ac_status )
27891 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
27892fi
27893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27894fi
27895
27896
27897# make sure $bindir is in USER_PATH so scp will work
27898 t_bindir=`eval echo ${bindir}`
27899 case $t_bindir in
27900 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
27901 esac
27902 case $t_bindir in
27903 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
27904 esac
27905 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
27906 if test $? -ne 0 ; then
27907 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
27908 if test $? -ne 0 ; then
27909 user_path=$user_path:$t_bindir
27910 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
27911echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
27912 fi
27913 fi
27914 fi
27915
27916fi
27917
27918if test "x$external_path_file" != "x/etc/login.conf" ; then
27919
27920cat >>confdefs.h <<_ACEOF
27921#define USER_PATH "$user_path"
27922_ACEOF
27923
27924
27925fi
27926
27927# Set superuser path separately to user path
27928
27929# Check whether --with-superuser-path was given.
27930if test "${with_superuser_path+set}" = set; then
27931 withval=$with_superuser_path;
27932 if test -n "$withval" && test "x$withval" != "xno" && \
27933 test "x${withval}" != "xyes"; then
27934
27935cat >>confdefs.h <<_ACEOF
27936#define SUPERUSER_PATH "$withval"
27937_ACEOF
27938
27939 superuser_path=$withval
27940 fi
27941
27942
27943fi
27944
27945
27946
27947{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
27948echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
27949IPV4_IN6_HACK_MSG="no"
27950
27951# Check whether --with-4in6 was given.
27952if test "${with_4in6+set}" = set; then
27953 withval=$with_4in6;
27954 if test "x$withval" != "xno" ; then
27955 { echo "$as_me:$LINENO: result: yes" >&5
27956echo "${ECHO_T}yes" >&6; }
27957
27958cat >>confdefs.h <<\_ACEOF
27959#define IPV4_IN_IPV6 1
27960_ACEOF
27961
27962 IPV4_IN6_HACK_MSG="yes"
27963 else
27964 { echo "$as_me:$LINENO: result: no" >&5
27965echo "${ECHO_T}no" >&6; }
27966 fi
27967
27968else
27969
27970 if test "x$inet6_default_4in6" = "xyes"; then
27971 { echo "$as_me:$LINENO: result: yes (default)" >&5
27972echo "${ECHO_T}yes (default)" >&6; }
27973 cat >>confdefs.h <<\_ACEOF
27974#define IPV4_IN_IPV6 1
27975_ACEOF
27976
27977 IPV4_IN6_HACK_MSG="yes"
27978 else
27979 { echo "$as_me:$LINENO: result: no (default)" >&5
27980echo "${ECHO_T}no (default)" >&6; }
27981 fi
27982
27983
27984fi
27985
27986
27987# Whether to enable BSD auth support
27988BSD_AUTH_MSG=no
27989
27990# Check whether --with-bsd-auth was given.
27991if test "${with_bsd_auth+set}" = set; then
27992 withval=$with_bsd_auth;
27993 if test "x$withval" != "xno" ; then
27994
27995cat >>confdefs.h <<\_ACEOF
27996#define BSD_AUTH 1
27997_ACEOF
27998
27999 BSD_AUTH_MSG=yes
28000 fi
28001
28002
28003fi
28004
28005
28006# Where to place sshd.pid
28007piddir=/var/run
28008# make sure the directory exists
28009if test ! -d $piddir ; then
28010 piddir=`eval echo ${sysconfdir}`
28011 case $piddir in
28012 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
28013 esac
28014fi
28015
28016
28017# Check whether --with-pid-dir was given.
28018if test "${with_pid_dir+set}" = set; then
28019 withval=$with_pid_dir;
28020 if test -n "$withval" && test "x$withval" != "xno" && \
28021 test "x${withval}" != "xyes"; then
28022 piddir=$withval
28023 if test ! -d $piddir ; then
28024 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
28025echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
28026 fi
28027 fi
28028
28029
28030fi
28031
28032
28033
28034cat >>confdefs.h <<_ACEOF
28035#define _PATH_SSH_PIDDIR "$piddir"
28036_ACEOF
28037
28038
28039
28040# Check whether --enable-lastlog was given.
28041if test "${enable_lastlog+set}" = set; then
28042 enableval=$enable_lastlog;
28043 if test "x$enableval" = "xno" ; then
28044 cat >>confdefs.h <<\_ACEOF
28045#define DISABLE_LASTLOG 1
28046_ACEOF
28047
28048 fi
28049
28050
28051fi
28052
28053# Check whether --enable-utmp was given.
28054if test "${enable_utmp+set}" = set; then
28055 enableval=$enable_utmp;
28056 if test "x$enableval" = "xno" ; then
28057 cat >>confdefs.h <<\_ACEOF
28058#define DISABLE_UTMP 1
28059_ACEOF
28060
28061 fi
28062
28063
28064fi
28065
28066# Check whether --enable-utmpx was given.
28067if test "${enable_utmpx+set}" = set; then
28068 enableval=$enable_utmpx;
28069 if test "x$enableval" = "xno" ; then
28070
28071cat >>confdefs.h <<\_ACEOF
28072#define DISABLE_UTMPX 1
28073_ACEOF
28074
28075 fi
28076
28077
28078fi
28079
28080# Check whether --enable-wtmp was given.
28081if test "${enable_wtmp+set}" = set; then
28082 enableval=$enable_wtmp;
28083 if test "x$enableval" = "xno" ; then
28084 cat >>confdefs.h <<\_ACEOF
28085#define DISABLE_WTMP 1
28086_ACEOF
28087
28088 fi
28089
28090
28091fi
28092
28093# Check whether --enable-wtmpx was given.
28094if test "${enable_wtmpx+set}" = set; then
28095 enableval=$enable_wtmpx;
28096 if test "x$enableval" = "xno" ; then
28097
28098cat >>confdefs.h <<\_ACEOF
28099#define DISABLE_WTMPX 1
28100_ACEOF
28101
28102 fi
28103
28104
28105fi
28106
28107# Check whether --enable-libutil was given.
28108if test "${enable_libutil+set}" = set; then
28109 enableval=$enable_libutil;
28110 if test "x$enableval" = "xno" ; then
28111 cat >>confdefs.h <<\_ACEOF
28112#define DISABLE_LOGIN 1
28113_ACEOF
28114
28115 fi
28116
28117
28118fi
28119
28120# Check whether --enable-pututline was given.
28121if test "${enable_pututline+set}" = set; then
28122 enableval=$enable_pututline;
28123 if test "x$enableval" = "xno" ; then
28124
28125cat >>confdefs.h <<\_ACEOF
28126#define DISABLE_PUTUTLINE 1
28127_ACEOF
28128
28129 fi
28130
28131
28132fi
28133
28134# Check whether --enable-pututxline was given.
28135if test "${enable_pututxline+set}" = set; then
28136 enableval=$enable_pututxline;
28137 if test "x$enableval" = "xno" ; then
28138
28139cat >>confdefs.h <<\_ACEOF
28140#define DISABLE_PUTUTXLINE 1
28141_ACEOF
28142
28143 fi
28144
28145
28146fi
28147
28148
28149# Check whether --with-lastlog was given.
28150if test "${with_lastlog+set}" = set; then
28151 withval=$with_lastlog;
28152 if test "x$withval" = "xno" ; then
28153 cat >>confdefs.h <<\_ACEOF
28154#define DISABLE_LASTLOG 1
28155_ACEOF
28156
28157 elif test -n "$withval" && test "x${withval}" != "xyes"; then
28158 conf_lastlog_location=$withval
28159 fi
28160
28161
28162fi
28163
28164
28165
28166{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
28167echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
28168cat >conftest.$ac_ext <<_ACEOF
28169/* confdefs.h. */
28170_ACEOF
28171cat confdefs.h >>conftest.$ac_ext
28172cat >>conftest.$ac_ext <<_ACEOF
28173/* end confdefs.h. */
28174
28175#include <sys/types.h>
28176#include <utmp.h>
28177#ifdef HAVE_LASTLOG_H
28178# include <lastlog.h>
28179#endif
28180#ifdef HAVE_PATHS_H
28181# include <paths.h>
28182#endif
28183#ifdef HAVE_LOGIN_H
28184# include <login.h>
28185#endif
28186
28187int
28188main ()
28189{
28190 char *lastlog = LASTLOG_FILE;
28191 ;
28192 return 0;
28193}
28194_ACEOF
28195rm -f conftest.$ac_objext
28196if { (ac_try="$ac_compile"
28197case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_compile") 2>conftest.er1
28203 ac_status=$?
28204 grep -v '^ *+' conftest.er1 >conftest.err
28205 rm -f conftest.er1
28206 cat conftest.err >&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } && {
28209 test -z "$ac_c_werror_flag" ||
28210 test ! -s conftest.err
28211 } && test -s conftest.$ac_objext; then
28212 { echo "$as_me:$LINENO: result: yes" >&5
28213echo "${ECHO_T}yes" >&6; }
28214else
28215 echo "$as_me: failed program was:" >&5
28216sed 's/^/| /' conftest.$ac_ext >&5
28217
28218
28219 { echo "$as_me:$LINENO: result: no" >&5
28220echo "${ECHO_T}no" >&6; }
28221 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
28222echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
28223 cat >conftest.$ac_ext <<_ACEOF
28224/* confdefs.h. */
28225_ACEOF
28226cat confdefs.h >>conftest.$ac_ext
28227cat >>conftest.$ac_ext <<_ACEOF
28228/* end confdefs.h. */
28229
28230#include <sys/types.h>
28231#include <utmp.h>
28232#ifdef HAVE_LASTLOG_H
28233# include <lastlog.h>
28234#endif
28235#ifdef HAVE_PATHS_H
28236# include <paths.h>
28237#endif
28238
28239int
28240main ()
28241{
28242 char *lastlog = _PATH_LASTLOG;
28243 ;
28244 return 0;
28245}
28246_ACEOF
28247rm -f conftest.$ac_objext
28248if { (ac_try="$ac_compile"
28249case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252esac
28253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_compile") 2>conftest.er1
28255 ac_status=$?
28256 grep -v '^ *+' conftest.er1 >conftest.err
28257 rm -f conftest.er1
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } && {
28261 test -z "$ac_c_werror_flag" ||
28262 test ! -s conftest.err
28263 } && test -s conftest.$ac_objext; then
28264 { echo "$as_me:$LINENO: result: yes" >&5
28265echo "${ECHO_T}yes" >&6; }
28266else
28267 echo "$as_me: failed program was:" >&5
28268sed 's/^/| /' conftest.$ac_ext >&5
28269
28270
28271 { echo "$as_me:$LINENO: result: no" >&5
28272echo "${ECHO_T}no" >&6; }
28273 system_lastlog_path=no
28274
28275fi
28276
28277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28278
28279
28280fi
28281
28282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28283
28284if test -z "$conf_lastlog_location"; then
28285 if test x"$system_lastlog_path" = x"no" ; then
28286 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
28287 if (test -d "$f" || test -f "$f") ; then
28288 conf_lastlog_location=$f
28289 fi
28290 done
28291 if test -z "$conf_lastlog_location"; then
28292 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
28293echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
28294 fi
28295 fi
28296fi
28297
28298if test -n "$conf_lastlog_location"; then
28299
28300cat >>confdefs.h <<_ACEOF
28301#define CONF_LASTLOG_FILE "$conf_lastlog_location"
28302_ACEOF
28303
28304fi
28305
28306{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
28307echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
28308cat >conftest.$ac_ext <<_ACEOF
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
28314
28315#include <sys/types.h>
28316#include <utmp.h>
28317#ifdef HAVE_PATHS_H
28318# include <paths.h>
28319#endif
28320
28321int
28322main ()
28323{
28324 char *utmp = UTMP_FILE;
28325 ;
28326 return 0;
28327}
28328_ACEOF
28329rm -f conftest.$ac_objext
28330if { (ac_try="$ac_compile"
28331case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28334esac
28335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336 (eval "$ac_compile") 2>conftest.er1
28337 ac_status=$?
28338 grep -v '^ *+' conftest.er1 >conftest.err
28339 rm -f conftest.er1
28340 cat conftest.err >&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } && {
28343 test -z "$ac_c_werror_flag" ||
28344 test ! -s conftest.err
28345 } && test -s conftest.$ac_objext; then
28346 { echo "$as_me:$LINENO: result: yes" >&5
28347echo "${ECHO_T}yes" >&6; }
28348else
28349 echo "$as_me: failed program was:" >&5
28350sed 's/^/| /' conftest.$ac_ext >&5
28351
28352 { echo "$as_me:$LINENO: result: no" >&5
28353echo "${ECHO_T}no" >&6; }
28354 system_utmp_path=no
28355
28356fi
28357
28358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359if test -z "$conf_utmp_location"; then
28360 if test x"$system_utmp_path" = x"no" ; then
28361 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
28362 if test -f $f ; then
28363 conf_utmp_location=$f
28364 fi
28365 done
28366 if test -z "$conf_utmp_location"; then
28367 cat >>confdefs.h <<\_ACEOF
28368#define DISABLE_UTMP 1
28369_ACEOF
28370
28371 fi
28372 fi
28373fi
28374if test -n "$conf_utmp_location"; then
28375
28376cat >>confdefs.h <<_ACEOF
28377#define CONF_UTMP_FILE "$conf_utmp_location"
28378_ACEOF
28379
28380fi
28381
28382{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
28383echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
28384cat >conftest.$ac_ext <<_ACEOF
28385/* confdefs.h. */
28386_ACEOF
28387cat confdefs.h >>conftest.$ac_ext
28388cat >>conftest.$ac_ext <<_ACEOF
28389/* end confdefs.h. */
28390
28391#include <sys/types.h>
28392#include <utmp.h>
28393#ifdef HAVE_PATHS_H
28394# include <paths.h>
28395#endif
28396
28397int
28398main ()
28399{
28400 char *wtmp = WTMP_FILE;
28401 ;
28402 return 0;
28403}
28404_ACEOF
28405rm -f conftest.$ac_objext
28406if { (ac_try="$ac_compile"
28407case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28410esac
28411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_compile") 2>conftest.er1
28413 ac_status=$?
28414 grep -v '^ *+' conftest.er1 >conftest.err
28415 rm -f conftest.er1
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } && {
28419 test -z "$ac_c_werror_flag" ||
28420 test ! -s conftest.err
28421 } && test -s conftest.$ac_objext; then
28422 { echo "$as_me:$LINENO: result: yes" >&5
28423echo "${ECHO_T}yes" >&6; }
28424else
28425 echo "$as_me: failed program was:" >&5
28426sed 's/^/| /' conftest.$ac_ext >&5
28427
28428 { echo "$as_me:$LINENO: result: no" >&5
28429echo "${ECHO_T}no" >&6; }
28430 system_wtmp_path=no
28431
28432fi
28433
28434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435if test -z "$conf_wtmp_location"; then
28436 if test x"$system_wtmp_path" = x"no" ; then
28437 for f in /usr/adm/wtmp /var/log/wtmp; do
28438 if test -f $f ; then
28439 conf_wtmp_location=$f
28440 fi
28441 done
28442 if test -z "$conf_wtmp_location"; then
28443 cat >>confdefs.h <<\_ACEOF
28444#define DISABLE_WTMP 1
28445_ACEOF
28446
28447 fi
28448 fi
28449fi
28450if test -n "$conf_wtmp_location"; then
28451
28452cat >>confdefs.h <<_ACEOF
28453#define CONF_WTMP_FILE "$conf_wtmp_location"
28454_ACEOF
28455
28456fi
28457
28458
28459{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
28460echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
28461cat >conftest.$ac_ext <<_ACEOF
28462/* confdefs.h. */
28463_ACEOF
28464cat confdefs.h >>conftest.$ac_ext
28465cat >>conftest.$ac_ext <<_ACEOF
28466/* end confdefs.h. */
28467
28468#include <sys/types.h>
28469#include <utmp.h>
28470#ifdef HAVE_UTMPX_H
28471#include <utmpx.h>
28472#endif
28473#ifdef HAVE_PATHS_H
28474# include <paths.h>
28475#endif
28476
28477int
28478main ()
28479{
28480 char *utmpx = UTMPX_FILE;
28481 ;
28482 return 0;
28483}
28484_ACEOF
28485rm -f conftest.$ac_objext
28486if { (ac_try="$ac_compile"
28487case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28490esac
28491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_compile") 2>conftest.er1
28493 ac_status=$?
28494 grep -v '^ *+' conftest.er1 >conftest.err
28495 rm -f conftest.er1
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } && {
28499 test -z "$ac_c_werror_flag" ||
28500 test ! -s conftest.err
28501 } && test -s conftest.$ac_objext; then
28502 { echo "$as_me:$LINENO: result: yes" >&5
28503echo "${ECHO_T}yes" >&6; }
28504else
28505 echo "$as_me: failed program was:" >&5
28506sed 's/^/| /' conftest.$ac_ext >&5
28507
28508 { echo "$as_me:$LINENO: result: no" >&5
28509echo "${ECHO_T}no" >&6; }
28510 system_utmpx_path=no
28511
28512fi
28513
28514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515if test -z "$conf_utmpx_location"; then
28516 if test x"$system_utmpx_path" = x"no" ; then
28517 cat >>confdefs.h <<\_ACEOF
28518#define DISABLE_UTMPX 1
28519_ACEOF
28520
28521 fi
28522else
28523
28524cat >>confdefs.h <<_ACEOF
28525#define CONF_UTMPX_FILE "$conf_utmpx_location"
28526_ACEOF
28527
28528fi
28529
28530{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
28531echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
28532cat >conftest.$ac_ext <<_ACEOF
28533/* confdefs.h. */
28534_ACEOF
28535cat confdefs.h >>conftest.$ac_ext
28536cat >>conftest.$ac_ext <<_ACEOF
28537/* end confdefs.h. */
28538
28539#include <sys/types.h>
28540#include <utmp.h>
28541#ifdef HAVE_UTMPX_H
28542#include <utmpx.h>
28543#endif
28544#ifdef HAVE_PATHS_H
28545# include <paths.h>
28546#endif
28547
28548int
28549main ()
28550{
28551 char *wtmpx = WTMPX_FILE;
28552 ;
28553 return 0;
28554}
28555_ACEOF
28556rm -f conftest.$ac_objext
28557if { (ac_try="$ac_compile"
28558case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28561esac
28562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563 (eval "$ac_compile") 2>conftest.er1
28564 ac_status=$?
28565 grep -v '^ *+' conftest.er1 >conftest.err
28566 rm -f conftest.er1
28567 cat conftest.err >&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } && {
28570 test -z "$ac_c_werror_flag" ||
28571 test ! -s conftest.err
28572 } && test -s conftest.$ac_objext; then
28573 { echo "$as_me:$LINENO: result: yes" >&5
28574echo "${ECHO_T}yes" >&6; }
28575else
28576 echo "$as_me: failed program was:" >&5
28577sed 's/^/| /' conftest.$ac_ext >&5
28578
28579 { echo "$as_me:$LINENO: result: no" >&5
28580echo "${ECHO_T}no" >&6; }
28581 system_wtmpx_path=no
28582
28583fi
28584
28585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28586if test -z "$conf_wtmpx_location"; then
28587 if test x"$system_wtmpx_path" = x"no" ; then
28588 cat >>confdefs.h <<\_ACEOF
28589#define DISABLE_WTMPX 1
28590_ACEOF
28591
28592 fi
28593else
28594
28595cat >>confdefs.h <<_ACEOF
28596#define CONF_WTMPX_FILE "$conf_wtmpx_location"
28597_ACEOF
28598
28599fi
28600
28601
28602if test ! -z "$blibpath" ; then
28603 LDFLAGS="$LDFLAGS $blibflags$blibpath"
28604 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
28605echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
28606fi
28607
28608CFLAGS="$CFLAGS $werror_flags"
28609
26606else
26607 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
26608echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
26609fi
26610
26611
26612fi
26613
26614
26615 if test "${ac_cv_header_gssapi_h+set}" = set; then
26616 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
26617echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26618if test "${ac_cv_header_gssapi_h+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620fi
26621{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26622echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26623else
26624 # Is the header compilable?
26625{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
26626echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
26627cat >conftest.$ac_ext <<_ACEOF
26628/* confdefs.h. */
26629_ACEOF
26630cat confdefs.h >>conftest.$ac_ext
26631cat >>conftest.$ac_ext <<_ACEOF
26632/* end confdefs.h. */
26633$ac_includes_default
26634#include <gssapi.h>
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (ac_try="$ac_compile"
26638case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26641esac
26642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_compile") 2>conftest.er1
26644 ac_status=$?
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } && {
26650 test -z "$ac_c_werror_flag" ||
26651 test ! -s conftest.err
26652 } && test -s conftest.$ac_objext; then
26653 ac_header_compiler=yes
26654else
26655 echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658 ac_header_compiler=no
26659fi
26660
26661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26663echo "${ECHO_T}$ac_header_compiler" >&6; }
26664
26665# Is the header present?
26666{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
26667echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
26668cat >conftest.$ac_ext <<_ACEOF
26669/* confdefs.h. */
26670_ACEOF
26671cat confdefs.h >>conftest.$ac_ext
26672cat >>conftest.$ac_ext <<_ACEOF
26673/* end confdefs.h. */
26674#include <gssapi.h>
26675_ACEOF
26676if { (ac_try="$ac_cpp conftest.$ac_ext"
26677case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26680esac
26681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26683 ac_status=$?
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } >/dev/null && {
26689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26690 test ! -s conftest.err
26691 }; then
26692 ac_header_preproc=yes
26693else
26694 echo "$as_me: failed program was:" >&5
26695sed 's/^/| /' conftest.$ac_ext >&5
26696
26697 ac_header_preproc=no
26698fi
26699
26700rm -f conftest.err conftest.$ac_ext
26701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26702echo "${ECHO_T}$ac_header_preproc" >&6; }
26703
26704# So? What about this header?
26705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26706 yes:no: )
26707 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
26708echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
26710echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
26711 ac_header_preproc=yes
26712 ;;
26713 no:yes:* )
26714 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
26715echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
26717echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
26719echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
26721echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
26723echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
26725echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
26726 ( cat <<\_ASBOX
26727## ------------------------------------------- ##
26728## Report this to openssh-unix-dev@mindrot.org ##
26729## ------------------------------------------- ##
26730_ASBOX
26731 ) | sed "s/^/$as_me: WARNING: /" >&2
26732 ;;
26733esac
26734{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
26735echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26736if test "${ac_cv_header_gssapi_h+set}" = set; then
26737 echo $ECHO_N "(cached) $ECHO_C" >&6
26738else
26739 ac_cv_header_gssapi_h=$ac_header_preproc
26740fi
26741{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26742echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26743
26744fi
26745if test $ac_cv_header_gssapi_h = yes; then
26746 :
26747else
26748 unset ac_cv_header_gssapi_h
26749 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26750
26751for ac_header in gssapi.h
26752do
26753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759fi
26760ac_res=`eval echo '${'$as_ac_Header'}'`
26761 { echo "$as_me:$LINENO: result: $ac_res" >&5
26762echo "${ECHO_T}$ac_res" >&6; }
26763else
26764 # Is the header compilable?
26765{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26767cat >conftest.$ac_ext <<_ACEOF
26768/* confdefs.h. */
26769_ACEOF
26770cat confdefs.h >>conftest.$ac_ext
26771cat >>conftest.$ac_ext <<_ACEOF
26772/* end confdefs.h. */
26773$ac_includes_default
26774#include <$ac_header>
26775_ACEOF
26776rm -f conftest.$ac_objext
26777if { (ac_try="$ac_compile"
26778case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781esac
26782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_compile") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest.$ac_objext; then
26793 ac_header_compiler=yes
26794else
26795 echo "$as_me: failed program was:" >&5
26796sed 's/^/| /' conftest.$ac_ext >&5
26797
26798 ac_header_compiler=no
26799fi
26800
26801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26803echo "${ECHO_T}$ac_header_compiler" >&6; }
26804
26805# Is the header present?
26806{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26808cat >conftest.$ac_ext <<_ACEOF
26809/* confdefs.h. */
26810_ACEOF
26811cat confdefs.h >>conftest.$ac_ext
26812cat >>conftest.$ac_ext <<_ACEOF
26813/* end confdefs.h. */
26814#include <$ac_header>
26815_ACEOF
26816if { (ac_try="$ac_cpp conftest.$ac_ext"
26817case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26820esac
26821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26823 ac_status=$?
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } >/dev/null && {
26829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26830 test ! -s conftest.err
26831 }; then
26832 ac_header_preproc=yes
26833else
26834 echo "$as_me: failed program was:" >&5
26835sed 's/^/| /' conftest.$ac_ext >&5
26836
26837 ac_header_preproc=no
26838fi
26839
26840rm -f conftest.err conftest.$ac_ext
26841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26842echo "${ECHO_T}$ac_header_preproc" >&6; }
26843
26844# So? What about this header?
26845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26846 yes:no: )
26847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26851 ac_header_preproc=yes
26852 ;;
26853 no:yes:* )
26854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26866 ( cat <<\_ASBOX
26867## ------------------------------------------- ##
26868## Report this to openssh-unix-dev@mindrot.org ##
26869## ------------------------------------------- ##
26870_ASBOX
26871 ) | sed "s/^/$as_me: WARNING: /" >&2
26872 ;;
26873esac
26874{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878else
26879 eval "$as_ac_Header=\$ac_header_preproc"
26880fi
26881ac_res=`eval echo '${'$as_ac_Header'}'`
26882 { echo "$as_me:$LINENO: result: $ac_res" >&5
26883echo "${ECHO_T}$ac_res" >&6; }
26884
26885fi
26886if test `eval echo '${'$as_ac_Header'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26889_ACEOF
26890
26891else
26892 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
26893echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
26894
26895fi
26896
26897done
26898
26899
26900
26901fi
26902
26903
26904
26905 oldCPP="$CPPFLAGS"
26906 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26907 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26908 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26909echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26910if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26911 echo $ECHO_N "(cached) $ECHO_C" >&6
26912fi
26913{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26914echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26915else
26916 # Is the header compilable?
26917{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
26918echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
26919cat >conftest.$ac_ext <<_ACEOF
26920/* confdefs.h. */
26921_ACEOF
26922cat confdefs.h >>conftest.$ac_ext
26923cat >>conftest.$ac_ext <<_ACEOF
26924/* end confdefs.h. */
26925$ac_includes_default
26926#include <gssapi_krb5.h>
26927_ACEOF
26928rm -f conftest.$ac_objext
26929if { (ac_try="$ac_compile"
26930case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933esac
26934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_compile") 2>conftest.er1
26936 ac_status=$?
26937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } && {
26942 test -z "$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26944 } && test -s conftest.$ac_objext; then
26945 ac_header_compiler=yes
26946else
26947 echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 ac_header_compiler=no
26951fi
26952
26953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26955echo "${ECHO_T}$ac_header_compiler" >&6; }
26956
26957# Is the header present?
26958{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
26959echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
26960cat >conftest.$ac_ext <<_ACEOF
26961/* confdefs.h. */
26962_ACEOF
26963cat confdefs.h >>conftest.$ac_ext
26964cat >>conftest.$ac_ext <<_ACEOF
26965/* end confdefs.h. */
26966#include <gssapi_krb5.h>
26967_ACEOF
26968if { (ac_try="$ac_cpp conftest.$ac_ext"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } >/dev/null && {
26981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26982 test ! -s conftest.err
26983 }; then
26984 ac_header_preproc=yes
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 ac_header_preproc=no
26990fi
26991
26992rm -f conftest.err conftest.$ac_ext
26993{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994echo "${ECHO_T}$ac_header_preproc" >&6; }
26995
26996# So? What about this header?
26997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998 yes:no: )
26999 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
27000echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
27002echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
27003 ac_header_preproc=yes
27004 ;;
27005 no:yes:* )
27006 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
27007echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
27009echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
27011echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
27013echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
27015echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
27017echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
27018 ( cat <<\_ASBOX
27019## ------------------------------------------- ##
27020## Report this to openssh-unix-dev@mindrot.org ##
27021## ------------------------------------------- ##
27022_ASBOX
27023 ) | sed "s/^/$as_me: WARNING: /" >&2
27024 ;;
27025esac
27026{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27027echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27028if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27030else
27031 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
27032fi
27033{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27034echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27035
27036fi
27037if test $ac_cv_header_gssapi_krb5_h = yes; then
27038 :
27039else
27040 CPPFLAGS="$oldCPP"
27041fi
27042
27043
27044
27045 fi
27046 if test ! -z "$need_dash_r" ; then
27047 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
27048 fi
27049 if test ! -z "$blibpath" ; then
27050 blibpath="$blibpath:${KRB5ROOT}/lib"
27051 fi
27052
27053
27054
27055for ac_header in gssapi.h gssapi/gssapi.h
27056do
27057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27063fi
27064ac_res=`eval echo '${'$as_ac_Header'}'`
27065 { echo "$as_me:$LINENO: result: $ac_res" >&5
27066echo "${ECHO_T}$ac_res" >&6; }
27067else
27068 # Is the header compilable?
27069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27071cat >conftest.$ac_ext <<_ACEOF
27072/* confdefs.h. */
27073_ACEOF
27074cat confdefs.h >>conftest.$ac_ext
27075cat >>conftest.$ac_ext <<_ACEOF
27076/* end confdefs.h. */
27077$ac_includes_default
27078#include <$ac_header>
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_compile") 2>conftest.er1
27088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && {
27094 test -z "$ac_c_werror_flag" ||
27095 test ! -s conftest.err
27096 } && test -s conftest.$ac_objext; then
27097 ac_header_compiler=yes
27098else
27099 echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 ac_header_compiler=no
27103fi
27104
27105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27107echo "${ECHO_T}$ac_header_compiler" >&6; }
27108
27109# Is the header present?
27110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27112cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
27118#include <$ac_header>
27119_ACEOF
27120if { (ac_try="$ac_cpp conftest.$ac_ext"
27121case "(($ac_try" in
27122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123 *) ac_try_echo=$ac_try;;
27124esac
27125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27127 ac_status=$?
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } >/dev/null && {
27133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27134 test ! -s conftest.err
27135 }; then
27136 ac_header_preproc=yes
27137else
27138 echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_header_preproc=no
27142fi
27143
27144rm -f conftest.err conftest.$ac_ext
27145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27146echo "${ECHO_T}$ac_header_preproc" >&6; }
27147
27148# So? What about this header?
27149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150 yes:no: )
27151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27155 ac_header_preproc=yes
27156 ;;
27157 no:yes:* )
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27170 ( cat <<\_ASBOX
27171## ------------------------------------------- ##
27172## Report this to openssh-unix-dev@mindrot.org ##
27173## ------------------------------------------- ##
27174_ASBOX
27175 ) | sed "s/^/$as_me: WARNING: /" >&2
27176 ;;
27177esac
27178{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182else
27183 eval "$as_ac_Header=\$ac_header_preproc"
27184fi
27185ac_res=`eval echo '${'$as_ac_Header'}'`
27186 { echo "$as_me:$LINENO: result: $ac_res" >&5
27187echo "${ECHO_T}$ac_res" >&6; }
27188
27189fi
27190if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27193_ACEOF
27194
27195fi
27196
27197done
27198
27199
27200
27201for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
27202do
27203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209fi
27210ac_res=`eval echo '${'$as_ac_Header'}'`
27211 { echo "$as_me:$LINENO: result: $ac_res" >&5
27212echo "${ECHO_T}$ac_res" >&6; }
27213else
27214 # Is the header compilable?
27215{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27217cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
27223$ac_includes_default
27224#include <$ac_header>
27225_ACEOF
27226rm -f conftest.$ac_objext
27227if { (ac_try="$ac_compile"
27228case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231esac
27232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_compile") 2>conftest.er1
27234 ac_status=$?
27235 grep -v '^ *+' conftest.er1 >conftest.err
27236 rm -f conftest.er1
27237 cat conftest.err >&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } && {
27240 test -z "$ac_c_werror_flag" ||
27241 test ! -s conftest.err
27242 } && test -s conftest.$ac_objext; then
27243 ac_header_compiler=yes
27244else
27245 echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248 ac_header_compiler=no
27249fi
27250
27251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253echo "${ECHO_T}$ac_header_compiler" >&6; }
27254
27255# Is the header present?
27256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27258cat >conftest.$ac_ext <<_ACEOF
27259/* confdefs.h. */
27260_ACEOF
27261cat confdefs.h >>conftest.$ac_ext
27262cat >>conftest.$ac_ext <<_ACEOF
27263/* end confdefs.h. */
27264#include <$ac_header>
27265_ACEOF
27266if { (ac_try="$ac_cpp conftest.$ac_ext"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27273 ac_status=$?
27274 grep -v '^ *+' conftest.er1 >conftest.err
27275 rm -f conftest.er1
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } >/dev/null && {
27279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27280 test ! -s conftest.err
27281 }; then
27282 ac_header_preproc=yes
27283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
27287 ac_header_preproc=no
27288fi
27289
27290rm -f conftest.err conftest.$ac_ext
27291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27292echo "${ECHO_T}$ac_header_preproc" >&6; }
27293
27294# So? What about this header?
27295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27296 yes:no: )
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27301 ac_header_preproc=yes
27302 ;;
27303 no:yes:* )
27304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27316 ( cat <<\_ASBOX
27317## ------------------------------------------- ##
27318## Report this to openssh-unix-dev@mindrot.org ##
27319## ------------------------------------------- ##
27320_ASBOX
27321 ) | sed "s/^/$as_me: WARNING: /" >&2
27322 ;;
27323esac
27324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27328else
27329 eval "$as_ac_Header=\$ac_header_preproc"
27330fi
27331ac_res=`eval echo '${'$as_ac_Header'}'`
27332 { echo "$as_me:$LINENO: result: $ac_res" >&5
27333echo "${ECHO_T}$ac_res" >&6; }
27334
27335fi
27336if test `eval echo '${'$as_ac_Header'}'` = yes; then
27337 cat >>confdefs.h <<_ACEOF
27338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27339_ACEOF
27340
27341fi
27342
27343done
27344
27345
27346
27347for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
27348do
27349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355fi
27356ac_res=`eval echo '${'$as_ac_Header'}'`
27357 { echo "$as_me:$LINENO: result: $ac_res" >&5
27358echo "${ECHO_T}$ac_res" >&6; }
27359else
27360 # Is the header compilable?
27361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27363cat >conftest.$ac_ext <<_ACEOF
27364/* confdefs.h. */
27365_ACEOF
27366cat confdefs.h >>conftest.$ac_ext
27367cat >>conftest.$ac_ext <<_ACEOF
27368/* end confdefs.h. */
27369$ac_includes_default
27370#include <$ac_header>
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (ac_try="$ac_compile"
27374case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest.$ac_objext; then
27389 ac_header_compiler=yes
27390else
27391 echo "$as_me: failed program was:" >&5
27392sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 ac_header_compiler=no
27395fi
27396
27397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27399echo "${ECHO_T}$ac_header_compiler" >&6; }
27400
27401# Is the header present?
27402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27404cat >conftest.$ac_ext <<_ACEOF
27405/* confdefs.h. */
27406_ACEOF
27407cat confdefs.h >>conftest.$ac_ext
27408cat >>conftest.$ac_ext <<_ACEOF
27409/* end confdefs.h. */
27410#include <$ac_header>
27411_ACEOF
27412if { (ac_try="$ac_cpp conftest.$ac_ext"
27413case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27419 ac_status=$?
27420 grep -v '^ *+' conftest.er1 >conftest.err
27421 rm -f conftest.er1
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } >/dev/null && {
27425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27426 test ! -s conftest.err
27427 }; then
27428 ac_header_preproc=yes
27429else
27430 echo "$as_me: failed program was:" >&5
27431sed 's/^/| /' conftest.$ac_ext >&5
27432
27433 ac_header_preproc=no
27434fi
27435
27436rm -f conftest.err conftest.$ac_ext
27437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27438echo "${ECHO_T}$ac_header_preproc" >&6; }
27439
27440# So? What about this header?
27441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27442 yes:no: )
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27447 ac_header_preproc=yes
27448 ;;
27449 no:yes:* )
27450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27462 ( cat <<\_ASBOX
27463## ------------------------------------------- ##
27464## Report this to openssh-unix-dev@mindrot.org ##
27465## ------------------------------------------- ##
27466_ASBOX
27467 ) | sed "s/^/$as_me: WARNING: /" >&2
27468 ;;
27469esac
27470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474else
27475 eval "$as_ac_Header=\$ac_header_preproc"
27476fi
27477ac_res=`eval echo '${'$as_ac_Header'}'`
27478 { echo "$as_me:$LINENO: result: $ac_res" >&5
27479echo "${ECHO_T}$ac_res" >&6; }
27480
27481fi
27482if test `eval echo '${'$as_ac_Header'}'` = yes; then
27483 cat >>confdefs.h <<_ACEOF
27484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27485_ACEOF
27486
27487fi
27488
27489done
27490
27491
27492 LIBS="$LIBS $K5LIBS"
27493 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
27494echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
27495if test "${ac_cv_search_k_hasafs+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497else
27498 ac_func_search_save_LIBS=$LIBS
27499cat >conftest.$ac_ext <<_ACEOF
27500/* confdefs.h. */
27501_ACEOF
27502cat confdefs.h >>conftest.$ac_ext
27503cat >>conftest.$ac_ext <<_ACEOF
27504/* end confdefs.h. */
27505
27506/* Override any GCC internal prototype to avoid an error.
27507 Use char because int might match the return type of a GCC
27508 builtin and then its argument prototype would still apply. */
27509#ifdef __cplusplus
27510extern "C"
27511#endif
27512char k_hasafs ();
27513int
27514main ()
27515{
27516return k_hasafs ();
27517 ;
27518 return 0;
27519}
27520_ACEOF
27521for ac_lib in '' kafs; do
27522 if test -z "$ac_lib"; then
27523 ac_res="none required"
27524 else
27525 ac_res=-l$ac_lib
27526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27527 fi
27528 rm -f conftest.$ac_objext conftest$ac_exeext
27529if { (ac_try="$ac_link"
27530case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27533esac
27534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_link") 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } && {
27542 test -z "$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 } && test -s conftest$ac_exeext &&
27545 $as_test_x conftest$ac_exeext; then
27546 ac_cv_search_k_hasafs=$ac_res
27547else
27548 echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
27551
27552fi
27553
27554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27555 conftest$ac_exeext
27556 if test "${ac_cv_search_k_hasafs+set}" = set; then
27557 break
27558fi
27559done
27560if test "${ac_cv_search_k_hasafs+set}" = set; then
27561 :
27562else
27563 ac_cv_search_k_hasafs=no
27564fi
27565rm conftest.$ac_ext
27566LIBS=$ac_func_search_save_LIBS
27567fi
27568{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
27569echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
27570ac_res=$ac_cv_search_k_hasafs
27571if test "$ac_res" != no; then
27572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27573
27574cat >>confdefs.h <<\_ACEOF
27575#define USE_AFS 1
27576_ACEOF
27577
27578fi
27579
27580 fi
27581
27582
27583fi
27584
27585
27586# Looking for programs, paths and files
27587
27588PRIVSEP_PATH=/var/empty
27589
27590# Check whether --with-privsep-path was given.
27591if test "${with_privsep_path+set}" = set; then
27592 withval=$with_privsep_path;
27593 if test -n "$withval" && test "x$withval" != "xno" && \
27594 test "x${withval}" != "xyes"; then
27595 PRIVSEP_PATH=$withval
27596 fi
27597
27598
27599fi
27600
27601
27602
27603
27604# Check whether --with-xauth was given.
27605if test "${with_xauth+set}" = set; then
27606 withval=$with_xauth;
27607 if test -n "$withval" && test "x$withval" != "xno" && \
27608 test "x${withval}" != "xyes"; then
27609 xauth_path=$withval
27610 fi
27611
27612else
27613
27614 TestPath="$PATH"
27615 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
27616 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
27617 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
27618 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
27619 # Extract the first word of "xauth", so it can be a program name with args.
27620set dummy xauth; ac_word=$2
27621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27623if test "${ac_cv_path_xauth_path+set}" = set; then
27624 echo $ECHO_N "(cached) $ECHO_C" >&6
27625else
27626 case $xauth_path in
27627 [\\/]* | ?:[\\/]*)
27628 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
27629 ;;
27630 *)
27631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27632for as_dir in $TestPath
27633do
27634 IFS=$as_save_IFS
27635 test -z "$as_dir" && as_dir=.
27636 for ac_exec_ext in '' $ac_executable_extensions; do
27637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27638 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
27639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27640 break 2
27641 fi
27642done
27643done
27644IFS=$as_save_IFS
27645
27646 ;;
27647esac
27648fi
27649xauth_path=$ac_cv_path_xauth_path
27650if test -n "$xauth_path"; then
27651 { echo "$as_me:$LINENO: result: $xauth_path" >&5
27652echo "${ECHO_T}$xauth_path" >&6; }
27653else
27654 { echo "$as_me:$LINENO: result: no" >&5
27655echo "${ECHO_T}no" >&6; }
27656fi
27657
27658
27659 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
27660 xauth_path="/usr/openwin/bin/xauth"
27661 fi
27662
27663
27664fi
27665
27666
27667STRIP_OPT=-s
27668# Check whether --enable-strip was given.
27669if test "${enable_strip+set}" = set; then
27670 enableval=$enable_strip;
27671 if test "x$enableval" = "xno" ; then
27672 STRIP_OPT=
27673 fi
27674
27675
27676fi
27677
27678
27679
27680if test -z "$xauth_path" ; then
27681 XAUTH_PATH="undefined"
27682
27683else
27684
27685cat >>confdefs.h <<_ACEOF
27686#define XAUTH_PATH "$xauth_path"
27687_ACEOF
27688
27689 XAUTH_PATH=$xauth_path
27690
27691fi
27692
27693# Check for mail directory (last resort if we cannot get it from headers)
27694if test ! -z "$MAIL" ; then
27695 maildir=`dirname $MAIL`
27696
27697cat >>confdefs.h <<_ACEOF
27698#define MAIL_DIRECTORY "$maildir"
27699_ACEOF
27700
27701fi
27702
27703if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
27704 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
27705echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
27706 disable_ptmx_check=yes
27707fi
27708if test -z "$no_dev_ptmx" ; then
27709 if test "x$disable_ptmx_check" != "xyes" ; then
27710 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
27711echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
27712if test "${ac_cv_file___dev_ptmx_+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 test "$cross_compiling" = yes &&
27716 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27717echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27718 { (exit 1); exit 1; }; }
27719if test -r ""/dev/ptmx""; then
27720 ac_cv_file___dev_ptmx_=yes
27721else
27722 ac_cv_file___dev_ptmx_=no
27723fi
27724fi
27725{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
27726echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
27727if test $ac_cv_file___dev_ptmx_ = yes; then
27728
27729
27730cat >>confdefs.h <<_ACEOF
27731#define HAVE_DEV_PTMX 1
27732_ACEOF
27733
27734 have_dev_ptmx=1
27735
27736
27737fi
27738
27739 fi
27740fi
27741
27742if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
27743 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
27744echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
27745if test "${ac_cv_file___dev_ptc_+set}" = set; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
27747else
27748 test "$cross_compiling" = yes &&
27749 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27750echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27751 { (exit 1); exit 1; }; }
27752if test -r ""/dev/ptc""; then
27753 ac_cv_file___dev_ptc_=yes
27754else
27755 ac_cv_file___dev_ptc_=no
27756fi
27757fi
27758{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
27759echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
27760if test $ac_cv_file___dev_ptc_ = yes; then
27761
27762
27763cat >>confdefs.h <<_ACEOF
27764#define HAVE_DEV_PTS_AND_PTC 1
27765_ACEOF
27766
27767 have_dev_ptc=1
27768
27769
27770fi
27771
27772else
27773 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
27774echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
27775fi
27776
27777# Options from here on. Some of these are preset by platform above
27778
27779# Check whether --with-mantype was given.
27780if test "${with_mantype+set}" = set; then
27781 withval=$with_mantype;
27782 case "$withval" in
27783 man|cat|doc)
27784 MANTYPE=$withval
27785 ;;
27786 *)
27787 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
27788echo "$as_me: error: invalid man type: $withval" >&2;}
27789 { (exit 1); exit 1; }; }
27790 ;;
27791 esac
27792
27793
27794fi
27795
27796if test -z "$MANTYPE"; then
27797 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
27798 for ac_prog in nroff awf
27799do
27800 # Extract the first word of "$ac_prog", so it can be a program name with args.
27801set dummy $ac_prog; ac_word=$2
27802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27804if test "${ac_cv_path_NROFF+set}" = set; then
27805 echo $ECHO_N "(cached) $ECHO_C" >&6
27806else
27807 case $NROFF in
27808 [\\/]* | ?:[\\/]*)
27809 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27810 ;;
27811 *)
27812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27813for as_dir in $TestPath
27814do
27815 IFS=$as_save_IFS
27816 test -z "$as_dir" && as_dir=.
27817 for ac_exec_ext in '' $ac_executable_extensions; do
27818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27819 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27821 break 2
27822 fi
27823done
27824done
27825IFS=$as_save_IFS
27826
27827 ;;
27828esac
27829fi
27830NROFF=$ac_cv_path_NROFF
27831if test -n "$NROFF"; then
27832 { echo "$as_me:$LINENO: result: $NROFF" >&5
27833echo "${ECHO_T}$NROFF" >&6; }
27834else
27835 { echo "$as_me:$LINENO: result: no" >&5
27836echo "${ECHO_T}no" >&6; }
27837fi
27838
27839
27840 test -n "$NROFF" && break
27841done
27842test -n "$NROFF" || NROFF="/bin/false"
27843
27844 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
27845 MANTYPE=doc
27846 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
27847 MANTYPE=man
27848 else
27849 MANTYPE=cat
27850 fi
27851fi
27852
27853if test "$MANTYPE" = "doc"; then
27854 mansubdir=man;
27855else
27856 mansubdir=$MANTYPE;
27857fi
27858
27859
27860# Check whether to enable MD5 passwords
27861MD5_MSG="no"
27862
27863# Check whether --with-md5-passwords was given.
27864if test "${with_md5_passwords+set}" = set; then
27865 withval=$with_md5_passwords;
27866 if test "x$withval" != "xno" ; then
27867
27868cat >>confdefs.h <<\_ACEOF
27869#define HAVE_MD5_PASSWORDS 1
27870_ACEOF
27871
27872 MD5_MSG="yes"
27873 fi
27874
27875
27876fi
27877
27878
27879# Whether to disable shadow password support
27880
27881# Check whether --with-shadow was given.
27882if test "${with_shadow+set}" = set; then
27883 withval=$with_shadow;
27884 if test "x$withval" = "xno" ; then
27885 cat >>confdefs.h <<\_ACEOF
27886#define DISABLE_SHADOW 1
27887_ACEOF
27888
27889 disable_shadow=yes
27890 fi
27891
27892
27893fi
27894
27895
27896if test -z "$disable_shadow" ; then
27897 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
27898echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
27899 cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905
27906#include <sys/types.h>
27907#include <shadow.h>
27908 struct spwd sp;
27909
27910int
27911main ()
27912{
27913 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
27914 ;
27915 return 0;
27916}
27917_ACEOF
27918rm -f conftest.$ac_objext
27919if { (ac_try="$ac_compile"
27920case "(($ac_try" in
27921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922 *) ac_try_echo=$ac_try;;
27923esac
27924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_compile") 2>conftest.er1
27926 ac_status=$?
27927 grep -v '^ *+' conftest.er1 >conftest.err
27928 rm -f conftest.er1
27929 cat conftest.err >&5
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); } && {
27932 test -z "$ac_c_werror_flag" ||
27933 test ! -s conftest.err
27934 } && test -s conftest.$ac_objext; then
27935 sp_expire_available=yes
27936else
27937 echo "$as_me: failed program was:" >&5
27938sed 's/^/| /' conftest.$ac_ext >&5
27939
27940
27941
27942fi
27943
27944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945
27946 if test "x$sp_expire_available" = "xyes" ; then
27947 { echo "$as_me:$LINENO: result: yes" >&5
27948echo "${ECHO_T}yes" >&6; }
27949
27950cat >>confdefs.h <<\_ACEOF
27951#define HAS_SHADOW_EXPIRE 1
27952_ACEOF
27953
27954 else
27955 { echo "$as_me:$LINENO: result: no" >&5
27956echo "${ECHO_T}no" >&6; }
27957 fi
27958fi
27959
27960# Use ip address instead of hostname in $DISPLAY
27961if test ! -z "$IPADDR_IN_DISPLAY" ; then
27962 DISPLAY_HACK_MSG="yes"
27963
27964cat >>confdefs.h <<\_ACEOF
27965#define IPADDR_IN_DISPLAY 1
27966_ACEOF
27967
27968else
27969 DISPLAY_HACK_MSG="no"
27970
27971# Check whether --with-ipaddr-display was given.
27972if test "${with_ipaddr_display+set}" = set; then
27973 withval=$with_ipaddr_display;
27974 if test "x$withval" != "xno" ; then
27975 cat >>confdefs.h <<\_ACEOF
27976#define IPADDR_IN_DISPLAY 1
27977_ACEOF
27978
27979 DISPLAY_HACK_MSG="yes"
27980 fi
27981
27982
27983fi
27984
27985fi
27986
27987# check for /etc/default/login and use it if present.
27988# Check whether --enable-etc-default-login was given.
27989if test "${enable_etc_default_login+set}" = set; then
27990 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
27991 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
27992echo "$as_me: /etc/default/login handling disabled" >&6;}
27993 etc_default_login=no
27994 else
27995 etc_default_login=yes
27996 fi
27997else
27998 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
27999 then
28000 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
28001echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
28002 etc_default_login=no
28003 else
28004 etc_default_login=yes
28005 fi
28006
28007fi
28008
28009
28010if test "x$etc_default_login" != "xno"; then
28011 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
28012echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
28013if test "${ac_cv_file___etc_default_login_+set}" = set; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28015else
28016 test "$cross_compiling" = yes &&
28017 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28018echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28019 { (exit 1); exit 1; }; }
28020if test -r ""/etc/default/login""; then
28021 ac_cv_file___etc_default_login_=yes
28022else
28023 ac_cv_file___etc_default_login_=no
28024fi
28025fi
28026{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
28027echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
28028if test $ac_cv_file___etc_default_login_ = yes; then
28029 external_path_file=/etc/default/login
28030fi
28031
28032 if test "x$external_path_file" = "x/etc/default/login"; then
28033
28034cat >>confdefs.h <<\_ACEOF
28035#define HAVE_ETC_DEFAULT_LOGIN 1
28036_ACEOF
28037
28038 fi
28039fi
28040
28041if test $ac_cv_func_login_getcapbool = "yes" && \
28042 test $ac_cv_header_login_cap_h = "yes" ; then
28043 external_path_file=/etc/login.conf
28044fi
28045
28046# Whether to mess with the default path
28047SERVER_PATH_MSG="(default)"
28048
28049# Check whether --with-default-path was given.
28050if test "${with_default_path+set}" = set; then
28051 withval=$with_default_path;
28052 if test "x$external_path_file" = "x/etc/login.conf" ; then
28053 { echo "$as_me:$LINENO: WARNING:
28054--with-default-path=PATH has no effect on this system.
28055Edit /etc/login.conf instead." >&5
28056echo "$as_me: WARNING:
28057--with-default-path=PATH has no effect on this system.
28058Edit /etc/login.conf instead." >&2;}
28059 elif test "x$withval" != "xno" ; then
28060 if test ! -z "$external_path_file" ; then
28061 { echo "$as_me:$LINENO: WARNING:
28062--with-default-path=PATH will only be used if PATH is not defined in
28063$external_path_file ." >&5
28064echo "$as_me: WARNING:
28065--with-default-path=PATH will only be used if PATH is not defined in
28066$external_path_file ." >&2;}
28067 fi
28068 user_path="$withval"
28069 SERVER_PATH_MSG="$withval"
28070 fi
28071
28072else
28073 if test "x$external_path_file" = "x/etc/login.conf" ; then
28074 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
28075echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
28076 else
28077 if test ! -z "$external_path_file" ; then
28078 { echo "$as_me:$LINENO: WARNING:
28079If PATH is defined in $external_path_file, ensure the path to scp is included,
28080otherwise scp will not work." >&5
28081echo "$as_me: WARNING:
28082If PATH is defined in $external_path_file, ensure the path to scp is included,
28083otherwise scp will not work." >&2;}
28084 fi
28085 if test "$cross_compiling" = yes; then
28086 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28087
28088else
28089 cat >conftest.$ac_ext <<_ACEOF
28090/* confdefs.h. */
28091_ACEOF
28092cat confdefs.h >>conftest.$ac_ext
28093cat >>conftest.$ac_ext <<_ACEOF
28094/* end confdefs.h. */
28095
28096/* find out what STDPATH is */
28097#include <stdio.h>
28098#ifdef HAVE_PATHS_H
28099# include <paths.h>
28100#endif
28101#ifndef _PATH_STDPATH
28102# ifdef _PATH_USERPATH /* Irix */
28103# define _PATH_STDPATH _PATH_USERPATH
28104# else
28105# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
28106# endif
28107#endif
28108#include <sys/types.h>
28109#include <sys/stat.h>
28110#include <fcntl.h>
28111#define DATA "conftest.stdpath"
28112
28113main()
28114{
28115 FILE *fd;
28116 int rc;
28117
28118 fd = fopen(DATA,"w");
28119 if(fd == NULL)
28120 exit(1);
28121
28122 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
28123 exit(1);
28124
28125 exit(0);
28126}
28127
28128_ACEOF
28129rm -f conftest$ac_exeext
28130if { (ac_try="$ac_link"
28131case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28134esac
28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_link") 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28140 { (case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28143esac
28144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_try") 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 user_path=`cat conftest.stdpath`
28150else
28151 echo "$as_me: program exited with status $ac_status" >&5
28152echo "$as_me: failed program was:" >&5
28153sed 's/^/| /' conftest.$ac_ext >&5
28154
28155( exit $ac_status )
28156 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28157fi
28158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28159fi
28160
28161
28162# make sure $bindir is in USER_PATH so scp will work
28163 t_bindir=`eval echo ${bindir}`
28164 case $t_bindir in
28165 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
28166 esac
28167 case $t_bindir in
28168 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
28169 esac
28170 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
28171 if test $? -ne 0 ; then
28172 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
28173 if test $? -ne 0 ; then
28174 user_path=$user_path:$t_bindir
28175 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
28176echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
28177 fi
28178 fi
28179 fi
28180
28181fi
28182
28183if test "x$external_path_file" != "x/etc/login.conf" ; then
28184
28185cat >>confdefs.h <<_ACEOF
28186#define USER_PATH "$user_path"
28187_ACEOF
28188
28189
28190fi
28191
28192# Set superuser path separately to user path
28193
28194# Check whether --with-superuser-path was given.
28195if test "${with_superuser_path+set}" = set; then
28196 withval=$with_superuser_path;
28197 if test -n "$withval" && test "x$withval" != "xno" && \
28198 test "x${withval}" != "xyes"; then
28199
28200cat >>confdefs.h <<_ACEOF
28201#define SUPERUSER_PATH "$withval"
28202_ACEOF
28203
28204 superuser_path=$withval
28205 fi
28206
28207
28208fi
28209
28210
28211
28212{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
28213echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
28214IPV4_IN6_HACK_MSG="no"
28215
28216# Check whether --with-4in6 was given.
28217if test "${with_4in6+set}" = set; then
28218 withval=$with_4in6;
28219 if test "x$withval" != "xno" ; then
28220 { echo "$as_me:$LINENO: result: yes" >&5
28221echo "${ECHO_T}yes" >&6; }
28222
28223cat >>confdefs.h <<\_ACEOF
28224#define IPV4_IN_IPV6 1
28225_ACEOF
28226
28227 IPV4_IN6_HACK_MSG="yes"
28228 else
28229 { echo "$as_me:$LINENO: result: no" >&5
28230echo "${ECHO_T}no" >&6; }
28231 fi
28232
28233else
28234
28235 if test "x$inet6_default_4in6" = "xyes"; then
28236 { echo "$as_me:$LINENO: result: yes (default)" >&5
28237echo "${ECHO_T}yes (default)" >&6; }
28238 cat >>confdefs.h <<\_ACEOF
28239#define IPV4_IN_IPV6 1
28240_ACEOF
28241
28242 IPV4_IN6_HACK_MSG="yes"
28243 else
28244 { echo "$as_me:$LINENO: result: no (default)" >&5
28245echo "${ECHO_T}no (default)" >&6; }
28246 fi
28247
28248
28249fi
28250
28251
28252# Whether to enable BSD auth support
28253BSD_AUTH_MSG=no
28254
28255# Check whether --with-bsd-auth was given.
28256if test "${with_bsd_auth+set}" = set; then
28257 withval=$with_bsd_auth;
28258 if test "x$withval" != "xno" ; then
28259
28260cat >>confdefs.h <<\_ACEOF
28261#define BSD_AUTH 1
28262_ACEOF
28263
28264 BSD_AUTH_MSG=yes
28265 fi
28266
28267
28268fi
28269
28270
28271# Where to place sshd.pid
28272piddir=/var/run
28273# make sure the directory exists
28274if test ! -d $piddir ; then
28275 piddir=`eval echo ${sysconfdir}`
28276 case $piddir in
28277 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
28278 esac
28279fi
28280
28281
28282# Check whether --with-pid-dir was given.
28283if test "${with_pid_dir+set}" = set; then
28284 withval=$with_pid_dir;
28285 if test -n "$withval" && test "x$withval" != "xno" && \
28286 test "x${withval}" != "xyes"; then
28287 piddir=$withval
28288 if test ! -d $piddir ; then
28289 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
28290echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
28291 fi
28292 fi
28293
28294
28295fi
28296
28297
28298
28299cat >>confdefs.h <<_ACEOF
28300#define _PATH_SSH_PIDDIR "$piddir"
28301_ACEOF
28302
28303
28304
28305# Check whether --enable-lastlog was given.
28306if test "${enable_lastlog+set}" = set; then
28307 enableval=$enable_lastlog;
28308 if test "x$enableval" = "xno" ; then
28309 cat >>confdefs.h <<\_ACEOF
28310#define DISABLE_LASTLOG 1
28311_ACEOF
28312
28313 fi
28314
28315
28316fi
28317
28318# Check whether --enable-utmp was given.
28319if test "${enable_utmp+set}" = set; then
28320 enableval=$enable_utmp;
28321 if test "x$enableval" = "xno" ; then
28322 cat >>confdefs.h <<\_ACEOF
28323#define DISABLE_UTMP 1
28324_ACEOF
28325
28326 fi
28327
28328
28329fi
28330
28331# Check whether --enable-utmpx was given.
28332if test "${enable_utmpx+set}" = set; then
28333 enableval=$enable_utmpx;
28334 if test "x$enableval" = "xno" ; then
28335
28336cat >>confdefs.h <<\_ACEOF
28337#define DISABLE_UTMPX 1
28338_ACEOF
28339
28340 fi
28341
28342
28343fi
28344
28345# Check whether --enable-wtmp was given.
28346if test "${enable_wtmp+set}" = set; then
28347 enableval=$enable_wtmp;
28348 if test "x$enableval" = "xno" ; then
28349 cat >>confdefs.h <<\_ACEOF
28350#define DISABLE_WTMP 1
28351_ACEOF
28352
28353 fi
28354
28355
28356fi
28357
28358# Check whether --enable-wtmpx was given.
28359if test "${enable_wtmpx+set}" = set; then
28360 enableval=$enable_wtmpx;
28361 if test "x$enableval" = "xno" ; then
28362
28363cat >>confdefs.h <<\_ACEOF
28364#define DISABLE_WTMPX 1
28365_ACEOF
28366
28367 fi
28368
28369
28370fi
28371
28372# Check whether --enable-libutil was given.
28373if test "${enable_libutil+set}" = set; then
28374 enableval=$enable_libutil;
28375 if test "x$enableval" = "xno" ; then
28376 cat >>confdefs.h <<\_ACEOF
28377#define DISABLE_LOGIN 1
28378_ACEOF
28379
28380 fi
28381
28382
28383fi
28384
28385# Check whether --enable-pututline was given.
28386if test "${enable_pututline+set}" = set; then
28387 enableval=$enable_pututline;
28388 if test "x$enableval" = "xno" ; then
28389
28390cat >>confdefs.h <<\_ACEOF
28391#define DISABLE_PUTUTLINE 1
28392_ACEOF
28393
28394 fi
28395
28396
28397fi
28398
28399# Check whether --enable-pututxline was given.
28400if test "${enable_pututxline+set}" = set; then
28401 enableval=$enable_pututxline;
28402 if test "x$enableval" = "xno" ; then
28403
28404cat >>confdefs.h <<\_ACEOF
28405#define DISABLE_PUTUTXLINE 1
28406_ACEOF
28407
28408 fi
28409
28410
28411fi
28412
28413
28414# Check whether --with-lastlog was given.
28415if test "${with_lastlog+set}" = set; then
28416 withval=$with_lastlog;
28417 if test "x$withval" = "xno" ; then
28418 cat >>confdefs.h <<\_ACEOF
28419#define DISABLE_LASTLOG 1
28420_ACEOF
28421
28422 elif test -n "$withval" && test "x${withval}" != "xyes"; then
28423 conf_lastlog_location=$withval
28424 fi
28425
28426
28427fi
28428
28429
28430
28431{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
28432echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
28433cat >conftest.$ac_ext <<_ACEOF
28434/* confdefs.h. */
28435_ACEOF
28436cat confdefs.h >>conftest.$ac_ext
28437cat >>conftest.$ac_ext <<_ACEOF
28438/* end confdefs.h. */
28439
28440#include <sys/types.h>
28441#include <utmp.h>
28442#ifdef HAVE_LASTLOG_H
28443# include <lastlog.h>
28444#endif
28445#ifdef HAVE_PATHS_H
28446# include <paths.h>
28447#endif
28448#ifdef HAVE_LOGIN_H
28449# include <login.h>
28450#endif
28451
28452int
28453main ()
28454{
28455 char *lastlog = LASTLOG_FILE;
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext
28461if { (ac_try="$ac_compile"
28462case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_compile") 2>conftest.er1
28468 ac_status=$?
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } && {
28474 test -z "$ac_c_werror_flag" ||
28475 test ! -s conftest.err
28476 } && test -s conftest.$ac_objext; then
28477 { echo "$as_me:$LINENO: result: yes" >&5
28478echo "${ECHO_T}yes" >&6; }
28479else
28480 echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483
28484 { echo "$as_me:$LINENO: result: no" >&5
28485echo "${ECHO_T}no" >&6; }
28486 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
28487echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
28488 cat >conftest.$ac_ext <<_ACEOF
28489/* confdefs.h. */
28490_ACEOF
28491cat confdefs.h >>conftest.$ac_ext
28492cat >>conftest.$ac_ext <<_ACEOF
28493/* end confdefs.h. */
28494
28495#include <sys/types.h>
28496#include <utmp.h>
28497#ifdef HAVE_LASTLOG_H
28498# include <lastlog.h>
28499#endif
28500#ifdef HAVE_PATHS_H
28501# include <paths.h>
28502#endif
28503
28504int
28505main ()
28506{
28507 char *lastlog = _PATH_LASTLOG;
28508 ;
28509 return 0;
28510}
28511_ACEOF
28512rm -f conftest.$ac_objext
28513if { (ac_try="$ac_compile"
28514case "(($ac_try" in
28515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516 *) ac_try_echo=$ac_try;;
28517esac
28518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_compile") 2>conftest.er1
28520 ac_status=$?
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } && {
28526 test -z "$ac_c_werror_flag" ||
28527 test ! -s conftest.err
28528 } && test -s conftest.$ac_objext; then
28529 { echo "$as_me:$LINENO: result: yes" >&5
28530echo "${ECHO_T}yes" >&6; }
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535
28536 { echo "$as_me:$LINENO: result: no" >&5
28537echo "${ECHO_T}no" >&6; }
28538 system_lastlog_path=no
28539
28540fi
28541
28542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543
28544
28545fi
28546
28547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28548
28549if test -z "$conf_lastlog_location"; then
28550 if test x"$system_lastlog_path" = x"no" ; then
28551 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
28552 if (test -d "$f" || test -f "$f") ; then
28553 conf_lastlog_location=$f
28554 fi
28555 done
28556 if test -z "$conf_lastlog_location"; then
28557 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
28558echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
28559 fi
28560 fi
28561fi
28562
28563if test -n "$conf_lastlog_location"; then
28564
28565cat >>confdefs.h <<_ACEOF
28566#define CONF_LASTLOG_FILE "$conf_lastlog_location"
28567_ACEOF
28568
28569fi
28570
28571{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
28572echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579
28580#include <sys/types.h>
28581#include <utmp.h>
28582#ifdef HAVE_PATHS_H
28583# include <paths.h>
28584#endif
28585
28586int
28587main ()
28588{
28589 char *utmp = UTMP_FILE;
28590 ;
28591 return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext
28595if { (ac_try="$ac_compile"
28596case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_compile") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_c_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest.$ac_objext; then
28611 { echo "$as_me:$LINENO: result: yes" >&5
28612echo "${ECHO_T}yes" >&6; }
28613else
28614 echo "$as_me: failed program was:" >&5
28615sed 's/^/| /' conftest.$ac_ext >&5
28616
28617 { echo "$as_me:$LINENO: result: no" >&5
28618echo "${ECHO_T}no" >&6; }
28619 system_utmp_path=no
28620
28621fi
28622
28623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624if test -z "$conf_utmp_location"; then
28625 if test x"$system_utmp_path" = x"no" ; then
28626 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
28627 if test -f $f ; then
28628 conf_utmp_location=$f
28629 fi
28630 done
28631 if test -z "$conf_utmp_location"; then
28632 cat >>confdefs.h <<\_ACEOF
28633#define DISABLE_UTMP 1
28634_ACEOF
28635
28636 fi
28637 fi
28638fi
28639if test -n "$conf_utmp_location"; then
28640
28641cat >>confdefs.h <<_ACEOF
28642#define CONF_UTMP_FILE "$conf_utmp_location"
28643_ACEOF
28644
28645fi
28646
28647{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
28648echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
28649cat >conftest.$ac_ext <<_ACEOF
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
28655
28656#include <sys/types.h>
28657#include <utmp.h>
28658#ifdef HAVE_PATHS_H
28659# include <paths.h>
28660#endif
28661
28662int
28663main ()
28664{
28665 char *wtmp = WTMP_FILE;
28666 ;
28667 return 0;
28668}
28669_ACEOF
28670rm -f conftest.$ac_objext
28671if { (ac_try="$ac_compile"
28672case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28675esac
28676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_compile") 2>conftest.er1
28678 ac_status=$?
28679 grep -v '^ *+' conftest.er1 >conftest.err
28680 rm -f conftest.er1
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } && {
28684 test -z "$ac_c_werror_flag" ||
28685 test ! -s conftest.err
28686 } && test -s conftest.$ac_objext; then
28687 { echo "$as_me:$LINENO: result: yes" >&5
28688echo "${ECHO_T}yes" >&6; }
28689else
28690 echo "$as_me: failed program was:" >&5
28691sed 's/^/| /' conftest.$ac_ext >&5
28692
28693 { echo "$as_me:$LINENO: result: no" >&5
28694echo "${ECHO_T}no" >&6; }
28695 system_wtmp_path=no
28696
28697fi
28698
28699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700if test -z "$conf_wtmp_location"; then
28701 if test x"$system_wtmp_path" = x"no" ; then
28702 for f in /usr/adm/wtmp /var/log/wtmp; do
28703 if test -f $f ; then
28704 conf_wtmp_location=$f
28705 fi
28706 done
28707 if test -z "$conf_wtmp_location"; then
28708 cat >>confdefs.h <<\_ACEOF
28709#define DISABLE_WTMP 1
28710_ACEOF
28711
28712 fi
28713 fi
28714fi
28715if test -n "$conf_wtmp_location"; then
28716
28717cat >>confdefs.h <<_ACEOF
28718#define CONF_WTMP_FILE "$conf_wtmp_location"
28719_ACEOF
28720
28721fi
28722
28723
28724{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
28725echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
28726cat >conftest.$ac_ext <<_ACEOF
28727/* confdefs.h. */
28728_ACEOF
28729cat confdefs.h >>conftest.$ac_ext
28730cat >>conftest.$ac_ext <<_ACEOF
28731/* end confdefs.h. */
28732
28733#include <sys/types.h>
28734#include <utmp.h>
28735#ifdef HAVE_UTMPX_H
28736#include <utmpx.h>
28737#endif
28738#ifdef HAVE_PATHS_H
28739# include <paths.h>
28740#endif
28741
28742int
28743main ()
28744{
28745 char *utmpx = UTMPX_FILE;
28746 ;
28747 return 0;
28748}
28749_ACEOF
28750rm -f conftest.$ac_objext
28751if { (ac_try="$ac_compile"
28752case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
28758 ac_status=$?
28759 grep -v '^ *+' conftest.er1 >conftest.err
28760 rm -f conftest.er1
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } && {
28764 test -z "$ac_c_werror_flag" ||
28765 test ! -s conftest.err
28766 } && test -s conftest.$ac_objext; then
28767 { echo "$as_me:$LINENO: result: yes" >&5
28768echo "${ECHO_T}yes" >&6; }
28769else
28770 echo "$as_me: failed program was:" >&5
28771sed 's/^/| /' conftest.$ac_ext >&5
28772
28773 { echo "$as_me:$LINENO: result: no" >&5
28774echo "${ECHO_T}no" >&6; }
28775 system_utmpx_path=no
28776
28777fi
28778
28779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780if test -z "$conf_utmpx_location"; then
28781 if test x"$system_utmpx_path" = x"no" ; then
28782 cat >>confdefs.h <<\_ACEOF
28783#define DISABLE_UTMPX 1
28784_ACEOF
28785
28786 fi
28787else
28788
28789cat >>confdefs.h <<_ACEOF
28790#define CONF_UTMPX_FILE "$conf_utmpx_location"
28791_ACEOF
28792
28793fi
28794
28795{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
28796echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
28797cat >conftest.$ac_ext <<_ACEOF
28798/* confdefs.h. */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h. */
28803
28804#include <sys/types.h>
28805#include <utmp.h>
28806#ifdef HAVE_UTMPX_H
28807#include <utmpx.h>
28808#endif
28809#ifdef HAVE_PATHS_H
28810# include <paths.h>
28811#endif
28812
28813int
28814main ()
28815{
28816 char *wtmpx = WTMPX_FILE;
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext
28822if { (ac_try="$ac_compile"
28823case "(($ac_try" in
28824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825 *) ac_try_echo=$ac_try;;
28826esac
28827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828 (eval "$ac_compile") 2>conftest.er1
28829 ac_status=$?
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } && {
28835 test -z "$ac_c_werror_flag" ||
28836 test ! -s conftest.err
28837 } && test -s conftest.$ac_objext; then
28838 { echo "$as_me:$LINENO: result: yes" >&5
28839echo "${ECHO_T}yes" >&6; }
28840else
28841 echo "$as_me: failed program was:" >&5
28842sed 's/^/| /' conftest.$ac_ext >&5
28843
28844 { echo "$as_me:$LINENO: result: no" >&5
28845echo "${ECHO_T}no" >&6; }
28846 system_wtmpx_path=no
28847
28848fi
28849
28850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28851if test -z "$conf_wtmpx_location"; then
28852 if test x"$system_wtmpx_path" = x"no" ; then
28853 cat >>confdefs.h <<\_ACEOF
28854#define DISABLE_WTMPX 1
28855_ACEOF
28856
28857 fi
28858else
28859
28860cat >>confdefs.h <<_ACEOF
28861#define CONF_WTMPX_FILE "$conf_wtmpx_location"
28862_ACEOF
28863
28864fi
28865
28866
28867if test ! -z "$blibpath" ; then
28868 LDFLAGS="$LDFLAGS $blibflags$blibpath"
28869 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
28870echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
28871fi
28872
28873CFLAGS="$CFLAGS $werror_flags"
28874
28875if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
28876 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
28877 TEST_SSH_IPV6=no
28610
28878
28879else
28880 TEST_SSH_IPV6=yes
28881
28882fi
28883
28884
28611ac_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"
28612
28613cat >confcache <<\_ACEOF
28614# This file is a shell script that caches the results of configure
28615# tests run on this system so they can be shared between configure
28616# scripts and configure runs, see configure's option --config-cache.
28617# It is not useful on other systems. If it contains results you don't
28618# want to keep, you may remove or edit it.
28619#
28620# config.status only pays attention to the cache file if you give it
28621# the --recheck option to rerun configure.
28622#
28623# `ac_cv_env_foo' variables (set or unset) will be overridden when
28624# loading this file, other *unset* `ac_cv_foo' will be assigned the
28625# following values.
28626
28627_ACEOF
28628
28629# The following way of writing the cache mishandles newlines in values,
28630# but we know of no workaround that is simple, portable, and efficient.
28631# So, we kill variables containing newlines.
28632# Ultrix sh set writes to stderr and can't be redirected directly,
28633# and sets the high bit in the cache file unless we assign to the vars.
28634(
28635 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28636 eval ac_val=\$$ac_var
28637 case $ac_val in #(
28638 *${as_nl}*)
28639 case $ac_var in #(
28640 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28641echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28642 esac
28643 case $ac_var in #(
28644 _ | IFS | as_nl) ;; #(
28645 *) $as_unset $ac_var ;;
28646 esac ;;
28647 esac
28648 done
28649
28650 (set) 2>&1 |
28651 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28652 *${as_nl}ac_space=\ *)
28653 # `set' does not quote correctly, so add quotes (double-quote
28654 # substitution turns \\\\ into \\, and sed turns \\ into \).
28655 sed -n \
28656 "s/'/'\\\\''/g;
28657 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28658 ;; #(
28659 *)
28660 # `set' quotes correctly as required by POSIX, so do not add quotes.
28661 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28662 ;;
28663 esac |
28664 sort
28665) |
28666 sed '
28667 /^ac_cv_env_/b end
28668 t clear
28669 :clear
28670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28671 t end
28672 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28673 :end' >>confcache
28674if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28675 if test -w "$cache_file"; then
28676 test "x$cache_file" != "x/dev/null" &&
28677 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28678echo "$as_me: updating cache $cache_file" >&6;}
28679 cat confcache >$cache_file
28680 else
28681 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28682echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28683 fi
28684fi
28685rm -f confcache
28686
28687test "x$prefix" = xNONE && prefix=$ac_default_prefix
28688# Let make expand exec_prefix.
28689test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28690
28691DEFS=-DHAVE_CONFIG_H
28692
28693ac_libobjs=
28694ac_ltlibobjs=
28695for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28696 # 1. Remove the extension, and $U if already installed.
28697 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28698 ac_i=`echo "$ac_i" | sed "$ac_script"`
28699 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28700 # will be set to the directory where LIBOBJS objects are built.
28701 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28702 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28703done
28704LIBOBJS=$ac_libobjs
28705
28706LTLIBOBJS=$ac_ltlibobjs
28707
28708
28709
28710: ${CONFIG_STATUS=./config.status}
28711ac_clean_files_save=$ac_clean_files
28712ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28713{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28714echo "$as_me: creating $CONFIG_STATUS" >&6;}
28715cat >$CONFIG_STATUS <<_ACEOF
28716#! $SHELL
28717# Generated by $as_me.
28718# Run this file to recreate the current configuration.
28719# Compiler output produced by configure, useful for debugging
28720# configure, is in config.log if it exists.
28721
28722debug=false
28723ac_cs_recheck=false
28724ac_cs_silent=false
28725SHELL=\${CONFIG_SHELL-$SHELL}
28726_ACEOF
28727
28728cat >>$CONFIG_STATUS <<\_ACEOF
28729## --------------------- ##
28730## M4sh Initialization. ##
28731## --------------------- ##
28732
28733# Be more Bourne compatible
28734DUALCASE=1; export DUALCASE # for MKS sh
28735if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28736 emulate sh
28737 NULLCMD=:
28738 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28739 # is contrary to our usage. Disable this feature.
28740 alias -g '${1+"$@"}'='"$@"'
28741 setopt NO_GLOB_SUBST
28742else
28743 case `(set -o) 2>/dev/null` in
28744 *posix*) set -o posix ;;
28745esac
28746
28747fi
28748
28749
28750
28751
28752# PATH needs CR
28753# Avoid depending upon Character Ranges.
28754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28757as_cr_digits='0123456789'
28758as_cr_alnum=$as_cr_Letters$as_cr_digits
28759
28760# The user is always right.
28761if test "${PATH_SEPARATOR+set}" != set; then
28762 echo "#! /bin/sh" >conf$$.sh
28763 echo "exit 0" >>conf$$.sh
28764 chmod +x conf$$.sh
28765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28766 PATH_SEPARATOR=';'
28767 else
28768 PATH_SEPARATOR=:
28769 fi
28770 rm -f conf$$.sh
28771fi
28772
28773# Support unset when possible.
28774if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28775 as_unset=unset
28776else
28777 as_unset=false
28778fi
28779
28780
28781# IFS
28782# We need space, tab and new line, in precisely that order. Quoting is
28783# there to prevent editors from complaining about space-tab.
28784# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28785# splitting by setting IFS to empty value.)
28786as_nl='
28787'
28788IFS=" "" $as_nl"
28789
28790# Find who we are. Look in the path if we contain no directory separator.
28791case $0 in
28792 *[\\/]* ) as_myself=$0 ;;
28793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28794for as_dir in $PATH
28795do
28796 IFS=$as_save_IFS
28797 test -z "$as_dir" && as_dir=.
28798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28799done
28800IFS=$as_save_IFS
28801
28802 ;;
28803esac
28804# We did not find ourselves, most probably we were run as `sh COMMAND'
28805# in which case we are not to be found in the path.
28806if test "x$as_myself" = x; then
28807 as_myself=$0
28808fi
28809if test ! -f "$as_myself"; then
28810 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28811 { (exit 1); exit 1; }
28812fi
28813
28814# Work around bugs in pre-3.0 UWIN ksh.
28815for as_var in ENV MAIL MAILPATH
28816do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28817done
28818PS1='$ '
28819PS2='> '
28820PS4='+ '
28821
28822# NLS nuisances.
28823for as_var in \
28824 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28825 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28826 LC_TELEPHONE LC_TIME
28827do
28828 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28829 eval $as_var=C; export $as_var
28830 else
28831 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28832 fi
28833done
28834
28835# Required to use basename.
28836if expr a : '\(a\)' >/dev/null 2>&1 &&
28837 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28838 as_expr=expr
28839else
28840 as_expr=false
28841fi
28842
28843if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28844 as_basename=basename
28845else
28846 as_basename=false
28847fi
28848
28849
28850# Name of the executable.
28851as_me=`$as_basename -- "$0" ||
28852$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28853 X"$0" : 'X\(//\)$' \| \
28854 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28855echo X/"$0" |
28856 sed '/^.*\/\([^/][^/]*\)\/*$/{
28857 s//\1/
28858 q
28859 }
28860 /^X\/\(\/\/\)$/{
28861 s//\1/
28862 q
28863 }
28864 /^X\/\(\/\).*/{
28865 s//\1/
28866 q
28867 }
28868 s/.*/./; q'`
28869
28870# CDPATH.
28871$as_unset CDPATH
28872
28873
28874
28875 as_lineno_1=$LINENO
28876 as_lineno_2=$LINENO
28877 test "x$as_lineno_1" != "x$as_lineno_2" &&
28878 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28879
28880 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28881 # uniformly replaced by the line number. The first 'sed' inserts a
28882 # line-number line after each line using $LINENO; the second 'sed'
28883 # does the real work. The second script uses 'N' to pair each
28884 # line-number line with the line containing $LINENO, and appends
28885 # trailing '-' during substitution so that $LINENO is not a special
28886 # case at line end.
28887 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28888 # scripts with optimization help from Paolo Bonzini. Blame Lee
28889 # E. McMahon (1931-1989) for sed's syntax. :-)
28890 sed -n '
28891 p
28892 /[$]LINENO/=
28893 ' <$as_myself |
28894 sed '
28895 s/[$]LINENO.*/&-/
28896 t lineno
28897 b
28898 :lineno
28899 N
28900 :loop
28901 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28902 t loop
28903 s/-\n.*//
28904 ' >$as_me.lineno &&
28905 chmod +x "$as_me.lineno" ||
28906 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28907 { (exit 1); exit 1; }; }
28908
28909 # Don't try to exec as it changes $[0], causing all sort of problems
28910 # (the dirname of $[0] is not the place where we might find the
28911 # original and so on. Autoconf is especially sensitive to this).
28912 . "./$as_me.lineno"
28913 # Exit status is that of the last command.
28914 exit
28915}
28916
28917
28918if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28919 as_dirname=dirname
28920else
28921 as_dirname=false
28922fi
28923
28924ECHO_C= ECHO_N= ECHO_T=
28925case `echo -n x` in
28926-n*)
28927 case `echo 'x\c'` in
28928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28929 *) ECHO_C='\c';;
28930 esac;;
28931*)
28932 ECHO_N='-n';;
28933esac
28934
28935if expr a : '\(a\)' >/dev/null 2>&1 &&
28936 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28937 as_expr=expr
28938else
28939 as_expr=false
28940fi
28941
28942rm -f conf$$ conf$$.exe conf$$.file
28943if test -d conf$$.dir; then
28944 rm -f conf$$.dir/conf$$.file
28945else
28946 rm -f conf$$.dir
28947 mkdir conf$$.dir
28948fi
28949echo >conf$$.file
28950if ln -s conf$$.file conf$$ 2>/dev/null; then
28951 as_ln_s='ln -s'
28952 # ... but there are two gotchas:
28953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28955 # In both cases, we have to default to `cp -p'.
28956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28957 as_ln_s='cp -p'
28958elif ln conf$$.file conf$$ 2>/dev/null; then
28959 as_ln_s=ln
28960else
28961 as_ln_s='cp -p'
28962fi
28963rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28964rmdir conf$$.dir 2>/dev/null
28965
28966if mkdir -p . 2>/dev/null; then
28967 as_mkdir_p=:
28968else
28969 test -d ./-p && rmdir ./-p
28970 as_mkdir_p=false
28971fi
28972
28973if test -x / >/dev/null 2>&1; then
28974 as_test_x='test -x'
28975else
28976 if ls -dL / >/dev/null 2>&1; then
28977 as_ls_L_option=L
28978 else
28979 as_ls_L_option=
28980 fi
28981 as_test_x='
28982 eval sh -c '\''
28983 if test -d "$1"; then
28984 test -d "$1/.";
28985 else
28986 case $1 in
28987 -*)set "./$1";;
28988 esac;
28989 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28990 ???[sx]*):;;*)false;;esac;fi
28991 '\'' sh
28992 '
28993fi
28994as_executable_p=$as_test_x
28995
28996# Sed expression to map a string onto a valid CPP name.
28997as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28998
28999# Sed expression to map a string onto a valid variable name.
29000as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29001
29002
29003exec 6>&1
29004
29005# Save the log message, to keep $[0] and so on meaningful, and to
29006# report actual input values of CONFIG_FILES etc. instead of their
29007# values after options handling.
29008ac_log="
29009This file was extended by OpenSSH $as_me Portable, which was
29010generated by GNU Autoconf 2.61. Invocation command line was
29011
29012 CONFIG_FILES = $CONFIG_FILES
29013 CONFIG_HEADERS = $CONFIG_HEADERS
29014 CONFIG_LINKS = $CONFIG_LINKS
29015 CONFIG_COMMANDS = $CONFIG_COMMANDS
29016 $ $0 $@
29017
29018on `(hostname || uname -n) 2>/dev/null | sed 1q`
29019"
29020
29021_ACEOF
29022
29023cat >>$CONFIG_STATUS <<_ACEOF
29024# Files that config.status was made for.
29025config_files="$ac_config_files"
29026config_headers="$ac_config_headers"
29027
29028_ACEOF
29029
29030cat >>$CONFIG_STATUS <<\_ACEOF
29031ac_cs_usage="\
29032\`$as_me' instantiates files from templates according to the
29033current configuration.
29034
29035Usage: $0 [OPTIONS] [FILE]...
29036
29037 -h, --help print this help, then exit
29038 -V, --version print version number and configuration settings, then exit
29039 -q, --quiet do not print progress messages
29040 -d, --debug don't remove temporary files
29041 --recheck update $as_me by reconfiguring in the same conditions
29042 --file=FILE[:TEMPLATE]
29043 instantiate the configuration file FILE
29044 --header=FILE[:TEMPLATE]
29045 instantiate the configuration header FILE
29046
29047Configuration files:
29048$config_files
29049
29050Configuration headers:
29051$config_headers
29052
29053Report bugs to <bug-autoconf@gnu.org>."
29054
29055_ACEOF
29056cat >>$CONFIG_STATUS <<_ACEOF
29057ac_cs_version="\\
29058OpenSSH config.status Portable
29059configured by $0, generated by GNU Autoconf 2.61,
29060 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29061
29062Copyright (C) 2006 Free Software Foundation, Inc.
29063This config.status script is free software; the Free Software Foundation
29064gives unlimited permission to copy, distribute and modify it."
29065
29066ac_pwd='$ac_pwd'
29067srcdir='$srcdir'
29068INSTALL='$INSTALL'
29069_ACEOF
29070
29071cat >>$CONFIG_STATUS <<\_ACEOF
29072# If no file are specified by the user, then we need to provide default
29073# value. By we need to know if files were specified by the user.
29074ac_need_defaults=:
29075while test $# != 0
29076do
29077 case $1 in
29078 --*=*)
29079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29081 ac_shift=:
29082 ;;
29083 *)
29084 ac_option=$1
29085 ac_optarg=$2
29086 ac_shift=shift
29087 ;;
29088 esac
29089
29090 case $ac_option in
29091 # Handling of the options.
29092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29093 ac_cs_recheck=: ;;
29094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29095 echo "$ac_cs_version"; exit ;;
29096 --debug | --debu | --deb | --de | --d | -d )
29097 debug=: ;;
29098 --file | --fil | --fi | --f )
29099 $ac_shift
29100 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29101 ac_need_defaults=false;;
29102 --header | --heade | --head | --hea )
29103 $ac_shift
29104 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29105 ac_need_defaults=false;;
29106 --he | --h)
29107 # Conflict between --help and --header
29108 { echo "$as_me: error: ambiguous option: $1
29109Try \`$0 --help' for more information." >&2
29110 { (exit 1); exit 1; }; };;
29111 --help | --hel | -h )
29112 echo "$ac_cs_usage"; exit ;;
29113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29115 ac_cs_silent=: ;;
29116
29117 # This is an error.
29118 -*) { echo "$as_me: error: unrecognized option: $1
29119Try \`$0 --help' for more information." >&2
29120 { (exit 1); exit 1; }; } ;;
29121
29122 *) ac_config_targets="$ac_config_targets $1"
29123 ac_need_defaults=false ;;
29124
29125 esac
29126 shift
29127done
29128
29129ac_configure_extra_args=
29130
29131if $ac_cs_silent; then
29132 exec 6>/dev/null
29133 ac_configure_extra_args="$ac_configure_extra_args --silent"
29134fi
29135
29136_ACEOF
29137cat >>$CONFIG_STATUS <<_ACEOF
29138if \$ac_cs_recheck; then
29139 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29140 CONFIG_SHELL=$SHELL
29141 export CONFIG_SHELL
29142 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29143fi
29144
29145_ACEOF
29146cat >>$CONFIG_STATUS <<\_ACEOF
29147exec 5>>config.log
29148{
29149 echo
29150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29151## Running $as_me. ##
29152_ASBOX
29153 echo "$ac_log"
29154} >&5
29155
29156_ACEOF
29157cat >>$CONFIG_STATUS <<_ACEOF
29158_ACEOF
29159
29160cat >>$CONFIG_STATUS <<\_ACEOF
29161
29162# Handling of arguments.
29163for ac_config_target in $ac_config_targets
29164do
29165 case $ac_config_target in
29166 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29168 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
29169 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
29170 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
29171 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
29172 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
29173 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
29174 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
29175 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
29176
29177 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29178echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29179 { (exit 1); exit 1; }; };;
29180 esac
29181done
29182
29183
29184# If the user did not use the arguments to specify the items to instantiate,
29185# then the envvar interface is used. Set only those that are not.
29186# We use the long form for the default assignment because of an extremely
29187# bizarre bug on SunOS 4.1.3.
29188if $ac_need_defaults; then
29189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29190 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29191fi
29192
29193# Have a temporary directory for convenience. Make it in the build tree
29194# simply because there is no reason against having it here, and in addition,
29195# creating and moving files from /tmp can sometimes cause problems.
29196# Hook for its removal unless debugging.
29197# Note that there is a small window in which the directory will not be cleaned:
29198# after its creation but before its name has been assigned to `$tmp'.
29199$debug ||
29200{
29201 tmp=
29202 trap 'exit_status=$?
29203 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29204' 0
29205 trap '{ (exit 1); exit 1; }' 1 2 13 15
29206}
29207# Create a (secure) tmp directory for tmp files.
29208
29209{
29210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29211 test -n "$tmp" && test -d "$tmp"
29212} ||
29213{
29214 tmp=./conf$$-$RANDOM
29215 (umask 077 && mkdir "$tmp")
29216} ||
29217{
29218 echo "$me: cannot create a temporary directory in ." >&2
29219 { (exit 1); exit 1; }
29220}
29221
29222#
29223# Set up the sed scripts for CONFIG_FILES section.
29224#
29225
29226# No need to generate the scripts if there are no CONFIG_FILES.
29227# This happens for instance when ./config.status config.h
29228if test -n "$CONFIG_FILES"; then
29229
29230_ACEOF
29231
29232
29233
29234ac_delim='%!_!# '
29235for ac_last_try in false false false false false :; do
29236 cat >conf$$subs.sed <<_ACEOF
29237SHELL!$SHELL$ac_delim
29238PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29239PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29240PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29241PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29242PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29243PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29244exec_prefix!$exec_prefix$ac_delim
29245prefix!$prefix$ac_delim
29246program_transform_name!$program_transform_name$ac_delim
29247bindir!$bindir$ac_delim
29248sbindir!$sbindir$ac_delim
29249libexecdir!$libexecdir$ac_delim
29250datarootdir!$datarootdir$ac_delim
29251datadir!$datadir$ac_delim
29252sysconfdir!$sysconfdir$ac_delim
29253sharedstatedir!$sharedstatedir$ac_delim
29254localstatedir!$localstatedir$ac_delim
29255includedir!$includedir$ac_delim
29256oldincludedir!$oldincludedir$ac_delim
29257docdir!$docdir$ac_delim
29258infodir!$infodir$ac_delim
29259htmldir!$htmldir$ac_delim
29260dvidir!$dvidir$ac_delim
29261pdfdir!$pdfdir$ac_delim
29262psdir!$psdir$ac_delim
29263libdir!$libdir$ac_delim
29264localedir!$localedir$ac_delim
29265mandir!$mandir$ac_delim
29266DEFS!$DEFS$ac_delim
29267ECHO_C!$ECHO_C$ac_delim
29268ECHO_N!$ECHO_N$ac_delim
29269ECHO_T!$ECHO_T$ac_delim
29270LIBS!$LIBS$ac_delim
29271build_alias!$build_alias$ac_delim
29272host_alias!$host_alias$ac_delim
29273target_alias!$target_alias$ac_delim
29274CC!$CC$ac_delim
29275CFLAGS!$CFLAGS$ac_delim
29276LDFLAGS!$LDFLAGS$ac_delim
29277CPPFLAGS!$CPPFLAGS$ac_delim
29278ac_ct_CC!$ac_ct_CC$ac_delim
29279EXEEXT!$EXEEXT$ac_delim
29280OBJEXT!$OBJEXT$ac_delim
29281build!$build$ac_delim
29282build_cpu!$build_cpu$ac_delim
29283build_vendor!$build_vendor$ac_delim
29284build_os!$build_os$ac_delim
29285host!$host$ac_delim
29286host_cpu!$host_cpu$ac_delim
29287host_vendor!$host_vendor$ac_delim
29288host_os!$host_os$ac_delim
29289CPP!$CPP$ac_delim
29290GREP!$GREP$ac_delim
29291EGREP!$EGREP$ac_delim
29292AWK!$AWK$ac_delim
29293RANLIB!$RANLIB$ac_delim
29294INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29295INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29296INSTALL_DATA!$INSTALL_DATA$ac_delim
29297AR!$AR$ac_delim
29298CAT!$CAT$ac_delim
29299KILL!$KILL$ac_delim
29300PERL!$PERL$ac_delim
29301SED!$SED$ac_delim
29302ENT!$ENT$ac_delim
29303TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
29304SH!$SH$ac_delim
29305TEST_SHELL!$TEST_SHELL$ac_delim
29306PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
29307PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
29308MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
29309STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
29310LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
29311PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
29312LD!$LD$ac_delim
29313SSHDLIBS!$SSHDLIBS$ac_delim
29314LIBEDIT!$LIBEDIT$ac_delim
29315INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
29316SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
29317PROG_LS!$PROG_LS$ac_delim
29318PROG_NETSTAT!$PROG_NETSTAT$ac_delim
29319PROG_ARP!$PROG_ARP$ac_delim
29320PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
29321PROG_JSTAT!$PROG_JSTAT$ac_delim
29322PROG_PS!$PROG_PS$ac_delim
29323PROG_SAR!$PROG_SAR$ac_delim
29324PROG_W!$PROG_W$ac_delim
29325PROG_WHO!$PROG_WHO$ac_delim
29326PROG_LAST!$PROG_LAST$ac_delim
29327PROG_LASTLOG!$PROG_LASTLOG$ac_delim
29328PROG_DF!$PROG_DF$ac_delim
29329PROG_VMSTAT!$PROG_VMSTAT$ac_delim
29330PROG_UPTIME!$PROG_UPTIME$ac_delim
29331PROG_IPCS!$PROG_IPCS$ac_delim
29332PROG_TAIL!$PROG_TAIL$ac_delim
29333INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
29334_ACEOF
29335
29336 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29337 break
29338 elif $ac_last_try; then
29339 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29340echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29341 { (exit 1); exit 1; }; }
29342 else
29343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29344 fi
29345done
29346
29347ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29348if test -n "$ac_eof"; then
29349 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29350 ac_eof=`expr $ac_eof + 1`
29351fi
29352
29353cat >>$CONFIG_STATUS <<_ACEOF
29354cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29356_ACEOF
29357sed '
29358s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29359s/^/s,@/; s/!/@,|#_!!_#|/
29360:n
29361t n
29362s/'"$ac_delim"'$/,g/; t
29363s/$/\\/; p
29364N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29365' >>$CONFIG_STATUS <conf$$subs.sed
29366rm -f conf$$subs.sed
29367cat >>$CONFIG_STATUS <<_ACEOF
29368CEOF$ac_eof
29369_ACEOF
29370
29371
29372ac_delim='%!_!# '
29373for ac_last_try in false false false false false :; do
29374 cat >conf$$subs.sed <<_ACEOF
29375OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
29376PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
29377xauth_path!$xauth_path$ac_delim
29378STRIP_OPT!$STRIP_OPT$ac_delim
29379XAUTH_PATH!$XAUTH_PATH$ac_delim
29380NROFF!$NROFF$ac_delim
29381MANTYPE!$MANTYPE$ac_delim
29382mansubdir!$mansubdir$ac_delim
29383user_path!$user_path$ac_delim
29384piddir!$piddir$ac_delim
28885ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
28886
28887cat >confcache <<\_ACEOF
28888# This file is a shell script that caches the results of configure
28889# tests run on this system so they can be shared between configure
28890# scripts and configure runs, see configure's option --config-cache.
28891# It is not useful on other systems. If it contains results you don't
28892# want to keep, you may remove or edit it.
28893#
28894# config.status only pays attention to the cache file if you give it
28895# the --recheck option to rerun configure.
28896#
28897# `ac_cv_env_foo' variables (set or unset) will be overridden when
28898# loading this file, other *unset* `ac_cv_foo' will be assigned the
28899# following values.
28900
28901_ACEOF
28902
28903# The following way of writing the cache mishandles newlines in values,
28904# but we know of no workaround that is simple, portable, and efficient.
28905# So, we kill variables containing newlines.
28906# Ultrix sh set writes to stderr and can't be redirected directly,
28907# and sets the high bit in the cache file unless we assign to the vars.
28908(
28909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28910 eval ac_val=\$$ac_var
28911 case $ac_val in #(
28912 *${as_nl}*)
28913 case $ac_var in #(
28914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28915echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28916 esac
28917 case $ac_var in #(
28918 _ | IFS | as_nl) ;; #(
28919 *) $as_unset $ac_var ;;
28920 esac ;;
28921 esac
28922 done
28923
28924 (set) 2>&1 |
28925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28926 *${as_nl}ac_space=\ *)
28927 # `set' does not quote correctly, so add quotes (double-quote
28928 # substitution turns \\\\ into \\, and sed turns \\ into \).
28929 sed -n \
28930 "s/'/'\\\\''/g;
28931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28932 ;; #(
28933 *)
28934 # `set' quotes correctly as required by POSIX, so do not add quotes.
28935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28936 ;;
28937 esac |
28938 sort
28939) |
28940 sed '
28941 /^ac_cv_env_/b end
28942 t clear
28943 :clear
28944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28945 t end
28946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28947 :end' >>confcache
28948if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28949 if test -w "$cache_file"; then
28950 test "x$cache_file" != "x/dev/null" &&
28951 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28952echo "$as_me: updating cache $cache_file" >&6;}
28953 cat confcache >$cache_file
28954 else
28955 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28956echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28957 fi
28958fi
28959rm -f confcache
28960
28961test "x$prefix" = xNONE && prefix=$ac_default_prefix
28962# Let make expand exec_prefix.
28963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28964
28965DEFS=-DHAVE_CONFIG_H
28966
28967ac_libobjs=
28968ac_ltlibobjs=
28969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28970 # 1. Remove the extension, and $U if already installed.
28971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28972 ac_i=`echo "$ac_i" | sed "$ac_script"`
28973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28974 # will be set to the directory where LIBOBJS objects are built.
28975 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28976 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28977done
28978LIBOBJS=$ac_libobjs
28979
28980LTLIBOBJS=$ac_ltlibobjs
28981
28982
28983
28984: ${CONFIG_STATUS=./config.status}
28985ac_clean_files_save=$ac_clean_files
28986ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28987{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28988echo "$as_me: creating $CONFIG_STATUS" >&6;}
28989cat >$CONFIG_STATUS <<_ACEOF
28990#! $SHELL
28991# Generated by $as_me.
28992# Run this file to recreate the current configuration.
28993# Compiler output produced by configure, useful for debugging
28994# configure, is in config.log if it exists.
28995
28996debug=false
28997ac_cs_recheck=false
28998ac_cs_silent=false
28999SHELL=\${CONFIG_SHELL-$SHELL}
29000_ACEOF
29001
29002cat >>$CONFIG_STATUS <<\_ACEOF
29003## --------------------- ##
29004## M4sh Initialization. ##
29005## --------------------- ##
29006
29007# Be more Bourne compatible
29008DUALCASE=1; export DUALCASE # for MKS sh
29009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29010 emulate sh
29011 NULLCMD=:
29012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29013 # is contrary to our usage. Disable this feature.
29014 alias -g '${1+"$@"}'='"$@"'
29015 setopt NO_GLOB_SUBST
29016else
29017 case `(set -o) 2>/dev/null` in
29018 *posix*) set -o posix ;;
29019esac
29020
29021fi
29022
29023
29024
29025
29026# PATH needs CR
29027# Avoid depending upon Character Ranges.
29028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29031as_cr_digits='0123456789'
29032as_cr_alnum=$as_cr_Letters$as_cr_digits
29033
29034# The user is always right.
29035if test "${PATH_SEPARATOR+set}" != set; then
29036 echo "#! /bin/sh" >conf$$.sh
29037 echo "exit 0" >>conf$$.sh
29038 chmod +x conf$$.sh
29039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29040 PATH_SEPARATOR=';'
29041 else
29042 PATH_SEPARATOR=:
29043 fi
29044 rm -f conf$$.sh
29045fi
29046
29047# Support unset when possible.
29048if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29049 as_unset=unset
29050else
29051 as_unset=false
29052fi
29053
29054
29055# IFS
29056# We need space, tab and new line, in precisely that order. Quoting is
29057# there to prevent editors from complaining about space-tab.
29058# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29059# splitting by setting IFS to empty value.)
29060as_nl='
29061'
29062IFS=" "" $as_nl"
29063
29064# Find who we are. Look in the path if we contain no directory separator.
29065case $0 in
29066 *[\\/]* ) as_myself=$0 ;;
29067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29068for as_dir in $PATH
29069do
29070 IFS=$as_save_IFS
29071 test -z "$as_dir" && as_dir=.
29072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29073done
29074IFS=$as_save_IFS
29075
29076 ;;
29077esac
29078# We did not find ourselves, most probably we were run as `sh COMMAND'
29079# in which case we are not to be found in the path.
29080if test "x$as_myself" = x; then
29081 as_myself=$0
29082fi
29083if test ! -f "$as_myself"; then
29084 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29085 { (exit 1); exit 1; }
29086fi
29087
29088# Work around bugs in pre-3.0 UWIN ksh.
29089for as_var in ENV MAIL MAILPATH
29090do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29091done
29092PS1='$ '
29093PS2='> '
29094PS4='+ '
29095
29096# NLS nuisances.
29097for as_var in \
29098 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29099 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29100 LC_TELEPHONE LC_TIME
29101do
29102 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29103 eval $as_var=C; export $as_var
29104 else
29105 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29106 fi
29107done
29108
29109# Required to use basename.
29110if expr a : '\(a\)' >/dev/null 2>&1 &&
29111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29112 as_expr=expr
29113else
29114 as_expr=false
29115fi
29116
29117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29118 as_basename=basename
29119else
29120 as_basename=false
29121fi
29122
29123
29124# Name of the executable.
29125as_me=`$as_basename -- "$0" ||
29126$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29127 X"$0" : 'X\(//\)$' \| \
29128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29129echo X/"$0" |
29130 sed '/^.*\/\([^/][^/]*\)\/*$/{
29131 s//\1/
29132 q
29133 }
29134 /^X\/\(\/\/\)$/{
29135 s//\1/
29136 q
29137 }
29138 /^X\/\(\/\).*/{
29139 s//\1/
29140 q
29141 }
29142 s/.*/./; q'`
29143
29144# CDPATH.
29145$as_unset CDPATH
29146
29147
29148
29149 as_lineno_1=$LINENO
29150 as_lineno_2=$LINENO
29151 test "x$as_lineno_1" != "x$as_lineno_2" &&
29152 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29153
29154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29155 # uniformly replaced by the line number. The first 'sed' inserts a
29156 # line-number line after each line using $LINENO; the second 'sed'
29157 # does the real work. The second script uses 'N' to pair each
29158 # line-number line with the line containing $LINENO, and appends
29159 # trailing '-' during substitution so that $LINENO is not a special
29160 # case at line end.
29161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29162 # scripts with optimization help from Paolo Bonzini. Blame Lee
29163 # E. McMahon (1931-1989) for sed's syntax. :-)
29164 sed -n '
29165 p
29166 /[$]LINENO/=
29167 ' <$as_myself |
29168 sed '
29169 s/[$]LINENO.*/&-/
29170 t lineno
29171 b
29172 :lineno
29173 N
29174 :loop
29175 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29176 t loop
29177 s/-\n.*//
29178 ' >$as_me.lineno &&
29179 chmod +x "$as_me.lineno" ||
29180 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29181 { (exit 1); exit 1; }; }
29182
29183 # Don't try to exec as it changes $[0], causing all sort of problems
29184 # (the dirname of $[0] is not the place where we might find the
29185 # original and so on. Autoconf is especially sensitive to this).
29186 . "./$as_me.lineno"
29187 # Exit status is that of the last command.
29188 exit
29189}
29190
29191
29192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29193 as_dirname=dirname
29194else
29195 as_dirname=false
29196fi
29197
29198ECHO_C= ECHO_N= ECHO_T=
29199case `echo -n x` in
29200-n*)
29201 case `echo 'x\c'` in
29202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29203 *) ECHO_C='\c';;
29204 esac;;
29205*)
29206 ECHO_N='-n';;
29207esac
29208
29209if expr a : '\(a\)' >/dev/null 2>&1 &&
29210 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29211 as_expr=expr
29212else
29213 as_expr=false
29214fi
29215
29216rm -f conf$$ conf$$.exe conf$$.file
29217if test -d conf$$.dir; then
29218 rm -f conf$$.dir/conf$$.file
29219else
29220 rm -f conf$$.dir
29221 mkdir conf$$.dir
29222fi
29223echo >conf$$.file
29224if ln -s conf$$.file conf$$ 2>/dev/null; then
29225 as_ln_s='ln -s'
29226 # ... but there are two gotchas:
29227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29229 # In both cases, we have to default to `cp -p'.
29230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29231 as_ln_s='cp -p'
29232elif ln conf$$.file conf$$ 2>/dev/null; then
29233 as_ln_s=ln
29234else
29235 as_ln_s='cp -p'
29236fi
29237rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29238rmdir conf$$.dir 2>/dev/null
29239
29240if mkdir -p . 2>/dev/null; then
29241 as_mkdir_p=:
29242else
29243 test -d ./-p && rmdir ./-p
29244 as_mkdir_p=false
29245fi
29246
29247if test -x / >/dev/null 2>&1; then
29248 as_test_x='test -x'
29249else
29250 if ls -dL / >/dev/null 2>&1; then
29251 as_ls_L_option=L
29252 else
29253 as_ls_L_option=
29254 fi
29255 as_test_x='
29256 eval sh -c '\''
29257 if test -d "$1"; then
29258 test -d "$1/.";
29259 else
29260 case $1 in
29261 -*)set "./$1";;
29262 esac;
29263 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29264 ???[sx]*):;;*)false;;esac;fi
29265 '\'' sh
29266 '
29267fi
29268as_executable_p=$as_test_x
29269
29270# Sed expression to map a string onto a valid CPP name.
29271as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29272
29273# Sed expression to map a string onto a valid variable name.
29274as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29275
29276
29277exec 6>&1
29278
29279# Save the log message, to keep $[0] and so on meaningful, and to
29280# report actual input values of CONFIG_FILES etc. instead of their
29281# values after options handling.
29282ac_log="
29283This file was extended by OpenSSH $as_me Portable, which was
29284generated by GNU Autoconf 2.61. Invocation command line was
29285
29286 CONFIG_FILES = $CONFIG_FILES
29287 CONFIG_HEADERS = $CONFIG_HEADERS
29288 CONFIG_LINKS = $CONFIG_LINKS
29289 CONFIG_COMMANDS = $CONFIG_COMMANDS
29290 $ $0 $@
29291
29292on `(hostname || uname -n) 2>/dev/null | sed 1q`
29293"
29294
29295_ACEOF
29296
29297cat >>$CONFIG_STATUS <<_ACEOF
29298# Files that config.status was made for.
29299config_files="$ac_config_files"
29300config_headers="$ac_config_headers"
29301
29302_ACEOF
29303
29304cat >>$CONFIG_STATUS <<\_ACEOF
29305ac_cs_usage="\
29306\`$as_me' instantiates files from templates according to the
29307current configuration.
29308
29309Usage: $0 [OPTIONS] [FILE]...
29310
29311 -h, --help print this help, then exit
29312 -V, --version print version number and configuration settings, then exit
29313 -q, --quiet do not print progress messages
29314 -d, --debug don't remove temporary files
29315 --recheck update $as_me by reconfiguring in the same conditions
29316 --file=FILE[:TEMPLATE]
29317 instantiate the configuration file FILE
29318 --header=FILE[:TEMPLATE]
29319 instantiate the configuration header FILE
29320
29321Configuration files:
29322$config_files
29323
29324Configuration headers:
29325$config_headers
29326
29327Report bugs to <bug-autoconf@gnu.org>."
29328
29329_ACEOF
29330cat >>$CONFIG_STATUS <<_ACEOF
29331ac_cs_version="\\
29332OpenSSH config.status Portable
29333configured by $0, generated by GNU Autoconf 2.61,
29334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29335
29336Copyright (C) 2006 Free Software Foundation, Inc.
29337This config.status script is free software; the Free Software Foundation
29338gives unlimited permission to copy, distribute and modify it."
29339
29340ac_pwd='$ac_pwd'
29341srcdir='$srcdir'
29342INSTALL='$INSTALL'
29343_ACEOF
29344
29345cat >>$CONFIG_STATUS <<\_ACEOF
29346# If no file are specified by the user, then we need to provide default
29347# value. By we need to know if files were specified by the user.
29348ac_need_defaults=:
29349while test $# != 0
29350do
29351 case $1 in
29352 --*=*)
29353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29355 ac_shift=:
29356 ;;
29357 *)
29358 ac_option=$1
29359 ac_optarg=$2
29360 ac_shift=shift
29361 ;;
29362 esac
29363
29364 case $ac_option in
29365 # Handling of the options.
29366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29367 ac_cs_recheck=: ;;
29368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29369 echo "$ac_cs_version"; exit ;;
29370 --debug | --debu | --deb | --de | --d | -d )
29371 debug=: ;;
29372 --file | --fil | --fi | --f )
29373 $ac_shift
29374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29375 ac_need_defaults=false;;
29376 --header | --heade | --head | --hea )
29377 $ac_shift
29378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29379 ac_need_defaults=false;;
29380 --he | --h)
29381 # Conflict between --help and --header
29382 { echo "$as_me: error: ambiguous option: $1
29383Try \`$0 --help' for more information." >&2
29384 { (exit 1); exit 1; }; };;
29385 --help | --hel | -h )
29386 echo "$ac_cs_usage"; exit ;;
29387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29389 ac_cs_silent=: ;;
29390
29391 # This is an error.
29392 -*) { echo "$as_me: error: unrecognized option: $1
29393Try \`$0 --help' for more information." >&2
29394 { (exit 1); exit 1; }; } ;;
29395
29396 *) ac_config_targets="$ac_config_targets $1"
29397 ac_need_defaults=false ;;
29398
29399 esac
29400 shift
29401done
29402
29403ac_configure_extra_args=
29404
29405if $ac_cs_silent; then
29406 exec 6>/dev/null
29407 ac_configure_extra_args="$ac_configure_extra_args --silent"
29408fi
29409
29410_ACEOF
29411cat >>$CONFIG_STATUS <<_ACEOF
29412if \$ac_cs_recheck; then
29413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29414 CONFIG_SHELL=$SHELL
29415 export CONFIG_SHELL
29416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29417fi
29418
29419_ACEOF
29420cat >>$CONFIG_STATUS <<\_ACEOF
29421exec 5>>config.log
29422{
29423 echo
29424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29425## Running $as_me. ##
29426_ASBOX
29427 echo "$ac_log"
29428} >&5
29429
29430_ACEOF
29431cat >>$CONFIG_STATUS <<_ACEOF
29432_ACEOF
29433
29434cat >>$CONFIG_STATUS <<\_ACEOF
29435
29436# Handling of arguments.
29437for ac_config_target in $ac_config_targets
29438do
29439 case $ac_config_target in
29440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29442 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
29443 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
29444 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
29445 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
29446 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
29447 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
29448 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
29449 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
29450
29451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29452echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29453 { (exit 1); exit 1; }; };;
29454 esac
29455done
29456
29457
29458# If the user did not use the arguments to specify the items to instantiate,
29459# then the envvar interface is used. Set only those that are not.
29460# We use the long form for the default assignment because of an extremely
29461# bizarre bug on SunOS 4.1.3.
29462if $ac_need_defaults; then
29463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29465fi
29466
29467# Have a temporary directory for convenience. Make it in the build tree
29468# simply because there is no reason against having it here, and in addition,
29469# creating and moving files from /tmp can sometimes cause problems.
29470# Hook for its removal unless debugging.
29471# Note that there is a small window in which the directory will not be cleaned:
29472# after its creation but before its name has been assigned to `$tmp'.
29473$debug ||
29474{
29475 tmp=
29476 trap 'exit_status=$?
29477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29478' 0
29479 trap '{ (exit 1); exit 1; }' 1 2 13 15
29480}
29481# Create a (secure) tmp directory for tmp files.
29482
29483{
29484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29485 test -n "$tmp" && test -d "$tmp"
29486} ||
29487{
29488 tmp=./conf$$-$RANDOM
29489 (umask 077 && mkdir "$tmp")
29490} ||
29491{
29492 echo "$me: cannot create a temporary directory in ." >&2
29493 { (exit 1); exit 1; }
29494}
29495
29496#
29497# Set up the sed scripts for CONFIG_FILES section.
29498#
29499
29500# No need to generate the scripts if there are no CONFIG_FILES.
29501# This happens for instance when ./config.status config.h
29502if test -n "$CONFIG_FILES"; then
29503
29504_ACEOF
29505
29506
29507
29508ac_delim='%!_!# '
29509for ac_last_try in false false false false false :; do
29510 cat >conf$$subs.sed <<_ACEOF
29511SHELL!$SHELL$ac_delim
29512PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29513PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29514PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29515PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29516PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29517PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29518exec_prefix!$exec_prefix$ac_delim
29519prefix!$prefix$ac_delim
29520program_transform_name!$program_transform_name$ac_delim
29521bindir!$bindir$ac_delim
29522sbindir!$sbindir$ac_delim
29523libexecdir!$libexecdir$ac_delim
29524datarootdir!$datarootdir$ac_delim
29525datadir!$datadir$ac_delim
29526sysconfdir!$sysconfdir$ac_delim
29527sharedstatedir!$sharedstatedir$ac_delim
29528localstatedir!$localstatedir$ac_delim
29529includedir!$includedir$ac_delim
29530oldincludedir!$oldincludedir$ac_delim
29531docdir!$docdir$ac_delim
29532infodir!$infodir$ac_delim
29533htmldir!$htmldir$ac_delim
29534dvidir!$dvidir$ac_delim
29535pdfdir!$pdfdir$ac_delim
29536psdir!$psdir$ac_delim
29537libdir!$libdir$ac_delim
29538localedir!$localedir$ac_delim
29539mandir!$mandir$ac_delim
29540DEFS!$DEFS$ac_delim
29541ECHO_C!$ECHO_C$ac_delim
29542ECHO_N!$ECHO_N$ac_delim
29543ECHO_T!$ECHO_T$ac_delim
29544LIBS!$LIBS$ac_delim
29545build_alias!$build_alias$ac_delim
29546host_alias!$host_alias$ac_delim
29547target_alias!$target_alias$ac_delim
29548CC!$CC$ac_delim
29549CFLAGS!$CFLAGS$ac_delim
29550LDFLAGS!$LDFLAGS$ac_delim
29551CPPFLAGS!$CPPFLAGS$ac_delim
29552ac_ct_CC!$ac_ct_CC$ac_delim
29553EXEEXT!$EXEEXT$ac_delim
29554OBJEXT!$OBJEXT$ac_delim
29555build!$build$ac_delim
29556build_cpu!$build_cpu$ac_delim
29557build_vendor!$build_vendor$ac_delim
29558build_os!$build_os$ac_delim
29559host!$host$ac_delim
29560host_cpu!$host_cpu$ac_delim
29561host_vendor!$host_vendor$ac_delim
29562host_os!$host_os$ac_delim
29563CPP!$CPP$ac_delim
29564GREP!$GREP$ac_delim
29565EGREP!$EGREP$ac_delim
29566AWK!$AWK$ac_delim
29567RANLIB!$RANLIB$ac_delim
29568INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29569INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29570INSTALL_DATA!$INSTALL_DATA$ac_delim
29571AR!$AR$ac_delim
29572CAT!$CAT$ac_delim
29573KILL!$KILL$ac_delim
29574PERL!$PERL$ac_delim
29575SED!$SED$ac_delim
29576ENT!$ENT$ac_delim
29577TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
29578SH!$SH$ac_delim
29579TEST_SHELL!$TEST_SHELL$ac_delim
29580PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
29581PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
29582MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
29583STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
29584LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
29585PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
29586LD!$LD$ac_delim
29587SSHDLIBS!$SSHDLIBS$ac_delim
29588LIBEDIT!$LIBEDIT$ac_delim
29589INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
29590SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
29591PROG_LS!$PROG_LS$ac_delim
29592PROG_NETSTAT!$PROG_NETSTAT$ac_delim
29593PROG_ARP!$PROG_ARP$ac_delim
29594PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
29595PROG_JSTAT!$PROG_JSTAT$ac_delim
29596PROG_PS!$PROG_PS$ac_delim
29597PROG_SAR!$PROG_SAR$ac_delim
29598PROG_W!$PROG_W$ac_delim
29599PROG_WHO!$PROG_WHO$ac_delim
29600PROG_LAST!$PROG_LAST$ac_delim
29601PROG_LASTLOG!$PROG_LASTLOG$ac_delim
29602PROG_DF!$PROG_DF$ac_delim
29603PROG_VMSTAT!$PROG_VMSTAT$ac_delim
29604PROG_UPTIME!$PROG_UPTIME$ac_delim
29605PROG_IPCS!$PROG_IPCS$ac_delim
29606PROG_TAIL!$PROG_TAIL$ac_delim
29607INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
29608_ACEOF
29609
29610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29611 break
29612 elif $ac_last_try; then
29613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29614echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29615 { (exit 1); exit 1; }; }
29616 else
29617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29618 fi
29619done
29620
29621ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29622if test -n "$ac_eof"; then
29623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29624 ac_eof=`expr $ac_eof + 1`
29625fi
29626
29627cat >>$CONFIG_STATUS <<_ACEOF
29628cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29630_ACEOF
29631sed '
29632s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29633s/^/s,@/; s/!/@,|#_!!_#|/
29634:n
29635t n
29636s/'"$ac_delim"'$/,g/; t
29637s/$/\\/; p
29638N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29639' >>$CONFIG_STATUS <conf$$subs.sed
29640rm -f conf$$subs.sed
29641cat >>$CONFIG_STATUS <<_ACEOF
29642CEOF$ac_eof
29643_ACEOF
29644
29645
29646ac_delim='%!_!# '
29647for ac_last_try in false false false false false :; do
29648 cat >conf$$subs.sed <<_ACEOF
29649OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
29650PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
29651xauth_path!$xauth_path$ac_delim
29652STRIP_OPT!$STRIP_OPT$ac_delim
29653XAUTH_PATH!$XAUTH_PATH$ac_delim
29654NROFF!$NROFF$ac_delim
29655MANTYPE!$MANTYPE$ac_delim
29656mansubdir!$mansubdir$ac_delim
29657user_path!$user_path$ac_delim
29658piddir!$piddir$ac_delim
29659TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
29385LIBOBJS!$LIBOBJS$ac_delim
29386LTLIBOBJS!$LTLIBOBJS$ac_delim
29387_ACEOF
29388
29660LIBOBJS!$LIBOBJS$ac_delim
29661LTLIBOBJS!$LTLIBOBJS$ac_delim
29662_ACEOF
29663
29389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
29664 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
29390 break
29391 elif $ac_last_try; then
29392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29393echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29394 { (exit 1); exit 1; }; }
29395 else
29396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29397 fi
29398done
29399
29400ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29401if test -n "$ac_eof"; then
29402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29403 ac_eof=`expr $ac_eof + 1`
29404fi
29405
29406cat >>$CONFIG_STATUS <<_ACEOF
29407cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29409_ACEOF
29410sed '
29411s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29412s/^/s,@/; s/!/@,|#_!!_#|/
29413:n
29414t n
29415s/'"$ac_delim"'$/,g/; t
29416s/$/\\/; p
29417N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29418' >>$CONFIG_STATUS <conf$$subs.sed
29419rm -f conf$$subs.sed
29420cat >>$CONFIG_STATUS <<_ACEOF
29421:end
29422s/|#_!!_#|//g
29423CEOF$ac_eof
29424_ACEOF
29425
29426
29427# VPATH may cause trouble with some makes, so we remove $(srcdir),
29428# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29429# trailing colons and then remove the whole line if VPATH becomes empty
29430# (actually we leave an empty line to preserve line numbers).
29431if test "x$srcdir" = x.; then
29432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29433s/:*\$(srcdir):*/:/
29434s/:*\${srcdir}:*/:/
29435s/:*@srcdir@:*/:/
29436s/^\([^=]*=[ ]*\):*/\1/
29437s/:*$//
29438s/^[^=]*=[ ]*$//
29439}'
29440fi
29441
29442cat >>$CONFIG_STATUS <<\_ACEOF
29443fi # test -n "$CONFIG_FILES"
29444
29445
29446for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29447do
29448 case $ac_tag in
29449 :[FHLC]) ac_mode=$ac_tag; continue;;
29450 esac
29451 case $ac_mode$ac_tag in
29452 :[FHL]*:*);;
29453 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29454echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29455 { (exit 1); exit 1; }; };;
29456 :[FH]-) ac_tag=-:-;;
29457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29458 esac
29459 ac_save_IFS=$IFS
29460 IFS=:
29461 set x $ac_tag
29462 IFS=$ac_save_IFS
29463 shift
29464 ac_file=$1
29465 shift
29466
29467 case $ac_mode in
29468 :L) ac_source=$1;;
29469 :[FH])
29470 ac_file_inputs=
29471 for ac_f
29472 do
29473 case $ac_f in
29474 -) ac_f="$tmp/stdin";;
29475 *) # Look for the file first in the build tree, then in the source tree
29476 # (if the path is not absolute). The absolute path cannot be DOS-style,
29477 # because $ac_f cannot contain `:'.
29478 test -f "$ac_f" ||
29479 case $ac_f in
29480 [\\/$]*) false;;
29481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29482 esac ||
29483 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29484echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29485 { (exit 1); exit 1; }; };;
29486 esac
29487 ac_file_inputs="$ac_file_inputs $ac_f"
29488 done
29489
29490 # Let's still pretend it is `configure' which instantiates (i.e., don't
29491 # use $as_me), people would be surprised to read:
29492 # /* config.h. Generated by config.status. */
29493 configure_input="Generated from "`IFS=:
29494 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29495 if test x"$ac_file" != x-; then
29496 configure_input="$ac_file. $configure_input"
29497 { echo "$as_me:$LINENO: creating $ac_file" >&5
29498echo "$as_me: creating $ac_file" >&6;}
29499 fi
29500
29501 case $ac_tag in
29502 *:-:* | *:-) cat >"$tmp/stdin";;
29503 esac
29504 ;;
29505 esac
29506
29507 ac_dir=`$as_dirname -- "$ac_file" ||
29508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29509 X"$ac_file" : 'X\(//\)[^/]' \| \
29510 X"$ac_file" : 'X\(//\)$' \| \
29511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29512echo X"$ac_file" |
29513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29514 s//\1/
29515 q
29516 }
29517 /^X\(\/\/\)[^/].*/{
29518 s//\1/
29519 q
29520 }
29521 /^X\(\/\/\)$/{
29522 s//\1/
29523 q
29524 }
29525 /^X\(\/\).*/{
29526 s//\1/
29527 q
29528 }
29529 s/.*/./; q'`
29530 { as_dir="$ac_dir"
29531 case $as_dir in #(
29532 -*) as_dir=./$as_dir;;
29533 esac
29534 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29535 as_dirs=
29536 while :; do
29537 case $as_dir in #(
29538 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29539 *) as_qdir=$as_dir;;
29540 esac
29541 as_dirs="'$as_qdir' $as_dirs"
29542 as_dir=`$as_dirname -- "$as_dir" ||
29543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29544 X"$as_dir" : 'X\(//\)[^/]' \| \
29545 X"$as_dir" : 'X\(//\)$' \| \
29546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29547echo X"$as_dir" |
29548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29549 s//\1/
29550 q
29551 }
29552 /^X\(\/\/\)[^/].*/{
29553 s//\1/
29554 q
29555 }
29556 /^X\(\/\/\)$/{
29557 s//\1/
29558 q
29559 }
29560 /^X\(\/\).*/{
29561 s//\1/
29562 q
29563 }
29564 s/.*/./; q'`
29565 test -d "$as_dir" && break
29566 done
29567 test -z "$as_dirs" || eval "mkdir $as_dirs"
29568 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29569echo "$as_me: error: cannot create directory $as_dir" >&2;}
29570 { (exit 1); exit 1; }; }; }
29571 ac_builddir=.
29572
29573case "$ac_dir" in
29574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29575*)
29576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29577 # A ".." for each directory in $ac_dir_suffix.
29578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29579 case $ac_top_builddir_sub in
29580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29582 esac ;;
29583esac
29584ac_abs_top_builddir=$ac_pwd
29585ac_abs_builddir=$ac_pwd$ac_dir_suffix
29586# for backward compatibility:
29587ac_top_builddir=$ac_top_build_prefix
29588
29589case $srcdir in
29590 .) # We are building in place.
29591 ac_srcdir=.
29592 ac_top_srcdir=$ac_top_builddir_sub
29593 ac_abs_top_srcdir=$ac_pwd ;;
29594 [\\/]* | ?:[\\/]* ) # Absolute name.
29595 ac_srcdir=$srcdir$ac_dir_suffix;
29596 ac_top_srcdir=$srcdir
29597 ac_abs_top_srcdir=$srcdir ;;
29598 *) # Relative name.
29599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29600 ac_top_srcdir=$ac_top_build_prefix$srcdir
29601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29602esac
29603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29604
29605
29606 case $ac_mode in
29607 :F)
29608 #
29609 # CONFIG_FILE
29610 #
29611
29612 case $INSTALL in
29613 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29614 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29615 esac
29616_ACEOF
29617
29618cat >>$CONFIG_STATUS <<\_ACEOF
29619# If the template does not know about datarootdir, expand it.
29620# FIXME: This hack should be removed a few years after 2.60.
29621ac_datarootdir_hack=; ac_datarootdir_seen=
29622
29623case `sed -n '/datarootdir/ {
29624 p
29625 q
29626}
29627/@datadir@/p
29628/@docdir@/p
29629/@infodir@/p
29630/@localedir@/p
29631/@mandir@/p
29632' $ac_file_inputs` in
29633*datarootdir*) ac_datarootdir_seen=yes;;
29634*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29635 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29636echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29637_ACEOF
29638cat >>$CONFIG_STATUS <<_ACEOF
29639 ac_datarootdir_hack='
29640 s&@datadir@&$datadir&g
29641 s&@docdir@&$docdir&g
29642 s&@infodir@&$infodir&g
29643 s&@localedir@&$localedir&g
29644 s&@mandir@&$mandir&g
29645 s&\\\${datarootdir}&$datarootdir&g' ;;
29646esac
29647_ACEOF
29648
29649# Neutralize VPATH when `$srcdir' = `.'.
29650# Shell code in configure.ac might set extrasub.
29651# FIXME: do we really want to maintain this feature?
29652cat >>$CONFIG_STATUS <<_ACEOF
29653 sed "$ac_vpsub
29654$extrasub
29655_ACEOF
29656cat >>$CONFIG_STATUS <<\_ACEOF
29657:t
29658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29659s&@configure_input@&$configure_input&;t t
29660s&@top_builddir@&$ac_top_builddir_sub&;t t
29661s&@srcdir@&$ac_srcdir&;t t
29662s&@abs_srcdir@&$ac_abs_srcdir&;t t
29663s&@top_srcdir@&$ac_top_srcdir&;t t
29664s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29665s&@builddir@&$ac_builddir&;t t
29666s&@abs_builddir@&$ac_abs_builddir&;t t
29667s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29668s&@INSTALL@&$ac_INSTALL&;t t
29669$ac_datarootdir_hack
29670" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29671
29672test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29673 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29675 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29676which seems to be undefined. Please make sure it is defined." >&5
29677echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29678which seems to be undefined. Please make sure it is defined." >&2;}
29679
29680 rm -f "$tmp/stdin"
29681 case $ac_file in
29682 -) cat "$tmp/out"; rm -f "$tmp/out";;
29683 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29684 esac
29685 ;;
29686 :H)
29687 #
29688 # CONFIG_HEADER
29689 #
29690_ACEOF
29691
29692# Transform confdefs.h into a sed script `conftest.defines', that
29693# substitutes the proper values into config.h.in to produce config.h.
29694rm -f conftest.defines conftest.tail
29695# First, append a space to every undef/define line, to ease matching.
29696echo 's/$/ /' >conftest.defines
29697# Then, protect against being on the right side of a sed subst, or in
29698# an unquoted here document, in config.status. If some macros were
29699# called several times there might be several #defines for the same
29700# symbol, which is useless. But do not sort them, since the last
29701# AC_DEFINE must be honored.
29702ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29703# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29704# NAME is the cpp macro being defined, VALUE is the value it is being given.
29705# PARAMS is the parameter list in the macro definition--in most cases, it's
29706# just an empty string.
29707ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29708ac_dB='\\)[ (].*,\\1define\\2'
29709ac_dC=' '
29710ac_dD=' ,'
29711
29712uniq confdefs.h |
29713 sed -n '
29714 t rset
29715 :rset
29716 s/^[ ]*#[ ]*define[ ][ ]*//
29717 t ok
29718 d
29719 :ok
29720 s/[\\&,]/\\&/g
29721 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29722 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29723 ' >>conftest.defines
29724
29725# Remove the space that was appended to ease matching.
29726# Then replace #undef with comments. This is necessary, for
29727# example, in the case of _POSIX_SOURCE, which is predefined and required
29728# on some systems where configure will not decide to define it.
29729# (The regexp can be short, since the line contains either #define or #undef.)
29730echo 's/ $//
29731s,^[ #]*u.*,/* & */,' >>conftest.defines
29732
29733# Break up conftest.defines:
29734ac_max_sed_lines=50
29735
29736# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29737# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29738# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29739# et cetera.
29740ac_in='$ac_file_inputs'
29741ac_out='"$tmp/out1"'
29742ac_nxt='"$tmp/out2"'
29743
29744while :
29745do
29746 # Write a here document:
29747 cat >>$CONFIG_STATUS <<_ACEOF
29748 # First, check the format of the line:
29749 cat >"\$tmp/defines.sed" <<\\CEOF
29750/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29751/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29752b
29753:def
29754_ACEOF
29755 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29756 echo 'CEOF
29757 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29758 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29759 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29760 grep . conftest.tail >/dev/null || break
29761 rm -f conftest.defines
29762 mv conftest.tail conftest.defines
29763done
29764rm -f conftest.defines conftest.tail
29765
29766echo "ac_result=$ac_in" >>$CONFIG_STATUS
29767cat >>$CONFIG_STATUS <<\_ACEOF
29768 if test x"$ac_file" != x-; then
29769 echo "/* $configure_input */" >"$tmp/config.h"
29770 cat "$ac_result" >>"$tmp/config.h"
29771 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29773echo "$as_me: $ac_file is unchanged" >&6;}
29774 else
29775 rm -f $ac_file
29776 mv "$tmp/config.h" $ac_file
29777 fi
29778 else
29779 echo "/* $configure_input */"
29780 cat "$ac_result"
29781 fi
29782 rm -f "$tmp/out12"
29783 ;;
29784
29785
29786 esac
29787
29788done # for ac_tag
29789
29790
29791{ (exit 0); exit 0; }
29792_ACEOF
29793chmod +x $CONFIG_STATUS
29794ac_clean_files=$ac_clean_files_save
29795
29796
29797# configure is writing to config.log, and then calls config.status.
29798# config.status does its own redirection, appending to config.log.
29799# Unfortunately, on DOS this fails, as config.log is still kept open
29800# by configure, so config.status won't be able to write to it; its
29801# output is simply discarded. So we exec the FD to /dev/null,
29802# effectively closing config.log, so it can be properly (re)opened and
29803# appended to by config.status. When coming back to configure, we
29804# need to make the FD available again.
29805if test "$no_create" != yes; then
29806 ac_cs_success=:
29807 ac_config_status_args=
29808 test "$silent" = yes &&
29809 ac_config_status_args="$ac_config_status_args --quiet"
29810 exec 5>/dev/null
29811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29812 exec 5>>config.log
29813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29814 # would make configure fail if this is the last instruction.
29815 $ac_cs_success || { (exit 1); exit 1; }
29816fi
29817
29818
29819# Print summary of options
29820
29821# Someone please show me a better way :)
29822A=`eval echo ${prefix}` ; A=`eval echo ${A}`
29823B=`eval echo ${bindir}` ; B=`eval echo ${B}`
29824C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
29825D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
29826E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
29827F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
29828G=`eval echo ${piddir}` ; G=`eval echo ${G}`
29829H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
29830I=`eval echo ${user_path}` ; I=`eval echo ${I}`
29831J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
29832
29833echo ""
29834echo "OpenSSH has been configured with the following options:"
29835echo " User binaries: $B"
29836echo " System binaries: $C"
29837echo " Configuration files: $D"
29838echo " Askpass program: $E"
29839echo " Manual pages: $F"
29840echo " PID file: $G"
29841echo " Privilege separation chroot path: $H"
29842if test "x$external_path_file" = "x/etc/login.conf" ; then
29843echo " At runtime, sshd will use the path defined in $external_path_file"
29844echo " Make sure the path to scp is present, otherwise scp will not work"
29845else
29846echo " sshd default user PATH: $I"
29847 if test ! -z "$external_path_file"; then
29848echo " (If PATH is set in $external_path_file it will be used instead. If"
29849echo " used, ensure the path to scp is present, otherwise scp will not work.)"
29850 fi
29851fi
29852if test ! -z "$superuser_path" ; then
29853echo " sshd superuser user PATH: $J"
29854fi
29855echo " Manpage format: $MANTYPE"
29856echo " PAM support: $PAM_MSG"
29857echo " OSF SIA support: $SIA_MSG"
29858echo " KerberosV support: $KRB5_MSG"
29859echo " SELinux support: $SELINUX_MSG"
29860echo " Smartcard support: $SCARD_MSG"
29861echo " S/KEY support: $SKEY_MSG"
29862echo " TCP Wrappers support: $TCPW_MSG"
29863echo " MD5 password support: $MD5_MSG"
29864echo " libedit support: $LIBEDIT_MSG"
29865echo " Solaris process contract support: $SPC_MSG"
29866echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
29867echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
29868echo " BSD Auth support: $BSD_AUTH_MSG"
29869echo " Random number source: $RAND_MSG"
29870if test ! -z "$USE_RAND_HELPER" ; then
29871echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
29872fi
29873
29874echo ""
29875
29876echo " Host: ${host}"
29877echo " Compiler: ${CC}"
29878echo " Compiler flags: ${CFLAGS}"
29879echo "Preprocessor flags: ${CPPFLAGS}"
29880echo " Linker flags: ${LDFLAGS}"
29881echo " Libraries: ${LIBS}"
29882if test ! -z "${SSHDLIBS}"; then
29883echo " +for sshd: ${SSHDLIBS}"
29884fi
29885
29886echo ""
29887
29888if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
29889 echo "SVR4 style packages are supported with \"make package\""
29890 echo ""
29891fi
29892
29893if test "x$PAM_MSG" = "xyes" ; then
29894 echo "PAM is enabled. You may need to install a PAM control file "
29895 echo "for sshd, otherwise password authentication may fail. "
29896 echo "Example PAM control files can be found in the contrib/ "
29897 echo "subdirectory"
29898 echo ""
29899fi
29900
29901if test ! -z "$RAND_HELPER_CMDHASH" ; then
29902 echo "WARNING: you are using the builtin random number collection "
29903 echo "service. Please read WARNING.RNG and request that your OS "
29904 echo "vendor includes kernel-based random number collection in "
29905 echo "future versions of your OS."
29906 echo ""
29907fi
29908
29909if test ! -z "$NO_PEERCHECK" ; then
29910 echo "WARNING: the operating system that you are using does not"
29911 echo "appear to support getpeereid(), getpeerucred() or the"
29912 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
29913 echo "enforce security checks to prevent unauthorised connections to"
29914 echo "ssh-agent. Their absence increases the risk that a malicious"
29915 echo "user can connect to your agent."
29916 echo ""
29917fi
29918
29919if test "$AUDIT_MODULE" = "bsm" ; then
29920 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
29921 echo "See the Solaris section in README.platform for details."
29922fi
29665 break
29666 elif $ac_last_try; then
29667 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29668echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29669 { (exit 1); exit 1; }; }
29670 else
29671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29672 fi
29673done
29674
29675ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29676if test -n "$ac_eof"; then
29677 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29678 ac_eof=`expr $ac_eof + 1`
29679fi
29680
29681cat >>$CONFIG_STATUS <<_ACEOF
29682cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29684_ACEOF
29685sed '
29686s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29687s/^/s,@/; s/!/@,|#_!!_#|/
29688:n
29689t n
29690s/'"$ac_delim"'$/,g/; t
29691s/$/\\/; p
29692N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29693' >>$CONFIG_STATUS <conf$$subs.sed
29694rm -f conf$$subs.sed
29695cat >>$CONFIG_STATUS <<_ACEOF
29696:end
29697s/|#_!!_#|//g
29698CEOF$ac_eof
29699_ACEOF
29700
29701
29702# VPATH may cause trouble with some makes, so we remove $(srcdir),
29703# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29704# trailing colons and then remove the whole line if VPATH becomes empty
29705# (actually we leave an empty line to preserve line numbers).
29706if test "x$srcdir" = x.; then
29707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29708s/:*\$(srcdir):*/:/
29709s/:*\${srcdir}:*/:/
29710s/:*@srcdir@:*/:/
29711s/^\([^=]*=[ ]*\):*/\1/
29712s/:*$//
29713s/^[^=]*=[ ]*$//
29714}'
29715fi
29716
29717cat >>$CONFIG_STATUS <<\_ACEOF
29718fi # test -n "$CONFIG_FILES"
29719
29720
29721for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29722do
29723 case $ac_tag in
29724 :[FHLC]) ac_mode=$ac_tag; continue;;
29725 esac
29726 case $ac_mode$ac_tag in
29727 :[FHL]*:*);;
29728 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29729echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29730 { (exit 1); exit 1; }; };;
29731 :[FH]-) ac_tag=-:-;;
29732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29733 esac
29734 ac_save_IFS=$IFS
29735 IFS=:
29736 set x $ac_tag
29737 IFS=$ac_save_IFS
29738 shift
29739 ac_file=$1
29740 shift
29741
29742 case $ac_mode in
29743 :L) ac_source=$1;;
29744 :[FH])
29745 ac_file_inputs=
29746 for ac_f
29747 do
29748 case $ac_f in
29749 -) ac_f="$tmp/stdin";;
29750 *) # Look for the file first in the build tree, then in the source tree
29751 # (if the path is not absolute). The absolute path cannot be DOS-style,
29752 # because $ac_f cannot contain `:'.
29753 test -f "$ac_f" ||
29754 case $ac_f in
29755 [\\/$]*) false;;
29756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29757 esac ||
29758 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29759echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29760 { (exit 1); exit 1; }; };;
29761 esac
29762 ac_file_inputs="$ac_file_inputs $ac_f"
29763 done
29764
29765 # Let's still pretend it is `configure' which instantiates (i.e., don't
29766 # use $as_me), people would be surprised to read:
29767 # /* config.h. Generated by config.status. */
29768 configure_input="Generated from "`IFS=:
29769 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29770 if test x"$ac_file" != x-; then
29771 configure_input="$ac_file. $configure_input"
29772 { echo "$as_me:$LINENO: creating $ac_file" >&5
29773echo "$as_me: creating $ac_file" >&6;}
29774 fi
29775
29776 case $ac_tag in
29777 *:-:* | *:-) cat >"$tmp/stdin";;
29778 esac
29779 ;;
29780 esac
29781
29782 ac_dir=`$as_dirname -- "$ac_file" ||
29783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29784 X"$ac_file" : 'X\(//\)[^/]' \| \
29785 X"$ac_file" : 'X\(//\)$' \| \
29786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29787echo X"$ac_file" |
29788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29789 s//\1/
29790 q
29791 }
29792 /^X\(\/\/\)[^/].*/{
29793 s//\1/
29794 q
29795 }
29796 /^X\(\/\/\)$/{
29797 s//\1/
29798 q
29799 }
29800 /^X\(\/\).*/{
29801 s//\1/
29802 q
29803 }
29804 s/.*/./; q'`
29805 { as_dir="$ac_dir"
29806 case $as_dir in #(
29807 -*) as_dir=./$as_dir;;
29808 esac
29809 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29810 as_dirs=
29811 while :; do
29812 case $as_dir in #(
29813 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29814 *) as_qdir=$as_dir;;
29815 esac
29816 as_dirs="'$as_qdir' $as_dirs"
29817 as_dir=`$as_dirname -- "$as_dir" ||
29818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29819 X"$as_dir" : 'X\(//\)[^/]' \| \
29820 X"$as_dir" : 'X\(//\)$' \| \
29821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29822echo X"$as_dir" |
29823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29824 s//\1/
29825 q
29826 }
29827 /^X\(\/\/\)[^/].*/{
29828 s//\1/
29829 q
29830 }
29831 /^X\(\/\/\)$/{
29832 s//\1/
29833 q
29834 }
29835 /^X\(\/\).*/{
29836 s//\1/
29837 q
29838 }
29839 s/.*/./; q'`
29840 test -d "$as_dir" && break
29841 done
29842 test -z "$as_dirs" || eval "mkdir $as_dirs"
29843 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29844echo "$as_me: error: cannot create directory $as_dir" >&2;}
29845 { (exit 1); exit 1; }; }; }
29846 ac_builddir=.
29847
29848case "$ac_dir" in
29849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29850*)
29851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29852 # A ".." for each directory in $ac_dir_suffix.
29853 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29854 case $ac_top_builddir_sub in
29855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29857 esac ;;
29858esac
29859ac_abs_top_builddir=$ac_pwd
29860ac_abs_builddir=$ac_pwd$ac_dir_suffix
29861# for backward compatibility:
29862ac_top_builddir=$ac_top_build_prefix
29863
29864case $srcdir in
29865 .) # We are building in place.
29866 ac_srcdir=.
29867 ac_top_srcdir=$ac_top_builddir_sub
29868 ac_abs_top_srcdir=$ac_pwd ;;
29869 [\\/]* | ?:[\\/]* ) # Absolute name.
29870 ac_srcdir=$srcdir$ac_dir_suffix;
29871 ac_top_srcdir=$srcdir
29872 ac_abs_top_srcdir=$srcdir ;;
29873 *) # Relative name.
29874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29875 ac_top_srcdir=$ac_top_build_prefix$srcdir
29876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29877esac
29878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29879
29880
29881 case $ac_mode in
29882 :F)
29883 #
29884 # CONFIG_FILE
29885 #
29886
29887 case $INSTALL in
29888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29889 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29890 esac
29891_ACEOF
29892
29893cat >>$CONFIG_STATUS <<\_ACEOF
29894# If the template does not know about datarootdir, expand it.
29895# FIXME: This hack should be removed a few years after 2.60.
29896ac_datarootdir_hack=; ac_datarootdir_seen=
29897
29898case `sed -n '/datarootdir/ {
29899 p
29900 q
29901}
29902/@datadir@/p
29903/@docdir@/p
29904/@infodir@/p
29905/@localedir@/p
29906/@mandir@/p
29907' $ac_file_inputs` in
29908*datarootdir*) ac_datarootdir_seen=yes;;
29909*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29910 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29911echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29912_ACEOF
29913cat >>$CONFIG_STATUS <<_ACEOF
29914 ac_datarootdir_hack='
29915 s&@datadir@&$datadir&g
29916 s&@docdir@&$docdir&g
29917 s&@infodir@&$infodir&g
29918 s&@localedir@&$localedir&g
29919 s&@mandir@&$mandir&g
29920 s&\\\${datarootdir}&$datarootdir&g' ;;
29921esac
29922_ACEOF
29923
29924# Neutralize VPATH when `$srcdir' = `.'.
29925# Shell code in configure.ac might set extrasub.
29926# FIXME: do we really want to maintain this feature?
29927cat >>$CONFIG_STATUS <<_ACEOF
29928 sed "$ac_vpsub
29929$extrasub
29930_ACEOF
29931cat >>$CONFIG_STATUS <<\_ACEOF
29932:t
29933/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29934s&@configure_input@&$configure_input&;t t
29935s&@top_builddir@&$ac_top_builddir_sub&;t t
29936s&@srcdir@&$ac_srcdir&;t t
29937s&@abs_srcdir@&$ac_abs_srcdir&;t t
29938s&@top_srcdir@&$ac_top_srcdir&;t t
29939s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29940s&@builddir@&$ac_builddir&;t t
29941s&@abs_builddir@&$ac_abs_builddir&;t t
29942s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29943s&@INSTALL@&$ac_INSTALL&;t t
29944$ac_datarootdir_hack
29945" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29946
29947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29948 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29950 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29951which seems to be undefined. Please make sure it is defined." >&5
29952echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29953which seems to be undefined. Please make sure it is defined." >&2;}
29954
29955 rm -f "$tmp/stdin"
29956 case $ac_file in
29957 -) cat "$tmp/out"; rm -f "$tmp/out";;
29958 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29959 esac
29960 ;;
29961 :H)
29962 #
29963 # CONFIG_HEADER
29964 #
29965_ACEOF
29966
29967# Transform confdefs.h into a sed script `conftest.defines', that
29968# substitutes the proper values into config.h.in to produce config.h.
29969rm -f conftest.defines conftest.tail
29970# First, append a space to every undef/define line, to ease matching.
29971echo 's/$/ /' >conftest.defines
29972# Then, protect against being on the right side of a sed subst, or in
29973# an unquoted here document, in config.status. If some macros were
29974# called several times there might be several #defines for the same
29975# symbol, which is useless. But do not sort them, since the last
29976# AC_DEFINE must be honored.
29977ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29978# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29979# NAME is the cpp macro being defined, VALUE is the value it is being given.
29980# PARAMS is the parameter list in the macro definition--in most cases, it's
29981# just an empty string.
29982ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29983ac_dB='\\)[ (].*,\\1define\\2'
29984ac_dC=' '
29985ac_dD=' ,'
29986
29987uniq confdefs.h |
29988 sed -n '
29989 t rset
29990 :rset
29991 s/^[ ]*#[ ]*define[ ][ ]*//
29992 t ok
29993 d
29994 :ok
29995 s/[\\&,]/\\&/g
29996 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29997 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29998 ' >>conftest.defines
29999
30000# Remove the space that was appended to ease matching.
30001# Then replace #undef with comments. This is necessary, for
30002# example, in the case of _POSIX_SOURCE, which is predefined and required
30003# on some systems where configure will not decide to define it.
30004# (The regexp can be short, since the line contains either #define or #undef.)
30005echo 's/ $//
30006s,^[ #]*u.*,/* & */,' >>conftest.defines
30007
30008# Break up conftest.defines:
30009ac_max_sed_lines=50
30010
30011# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30012# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30013# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30014# et cetera.
30015ac_in='$ac_file_inputs'
30016ac_out='"$tmp/out1"'
30017ac_nxt='"$tmp/out2"'
30018
30019while :
30020do
30021 # Write a here document:
30022 cat >>$CONFIG_STATUS <<_ACEOF
30023 # First, check the format of the line:
30024 cat >"\$tmp/defines.sed" <<\\CEOF
30025/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30026/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30027b
30028:def
30029_ACEOF
30030 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30031 echo 'CEOF
30032 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30033 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30034 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30035 grep . conftest.tail >/dev/null || break
30036 rm -f conftest.defines
30037 mv conftest.tail conftest.defines
30038done
30039rm -f conftest.defines conftest.tail
30040
30041echo "ac_result=$ac_in" >>$CONFIG_STATUS
30042cat >>$CONFIG_STATUS <<\_ACEOF
30043 if test x"$ac_file" != x-; then
30044 echo "/* $configure_input */" >"$tmp/config.h"
30045 cat "$ac_result" >>"$tmp/config.h"
30046 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30047 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30048echo "$as_me: $ac_file is unchanged" >&6;}
30049 else
30050 rm -f $ac_file
30051 mv "$tmp/config.h" $ac_file
30052 fi
30053 else
30054 echo "/* $configure_input */"
30055 cat "$ac_result"
30056 fi
30057 rm -f "$tmp/out12"
30058 ;;
30059
30060
30061 esac
30062
30063done # for ac_tag
30064
30065
30066{ (exit 0); exit 0; }
30067_ACEOF
30068chmod +x $CONFIG_STATUS
30069ac_clean_files=$ac_clean_files_save
30070
30071
30072# configure is writing to config.log, and then calls config.status.
30073# config.status does its own redirection, appending to config.log.
30074# Unfortunately, on DOS this fails, as config.log is still kept open
30075# by configure, so config.status won't be able to write to it; its
30076# output is simply discarded. So we exec the FD to /dev/null,
30077# effectively closing config.log, so it can be properly (re)opened and
30078# appended to by config.status. When coming back to configure, we
30079# need to make the FD available again.
30080if test "$no_create" != yes; then
30081 ac_cs_success=:
30082 ac_config_status_args=
30083 test "$silent" = yes &&
30084 ac_config_status_args="$ac_config_status_args --quiet"
30085 exec 5>/dev/null
30086 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30087 exec 5>>config.log
30088 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30089 # would make configure fail if this is the last instruction.
30090 $ac_cs_success || { (exit 1); exit 1; }
30091fi
30092
30093
30094# Print summary of options
30095
30096# Someone please show me a better way :)
30097A=`eval echo ${prefix}` ; A=`eval echo ${A}`
30098B=`eval echo ${bindir}` ; B=`eval echo ${B}`
30099C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
30100D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
30101E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
30102F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
30103G=`eval echo ${piddir}` ; G=`eval echo ${G}`
30104H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
30105I=`eval echo ${user_path}` ; I=`eval echo ${I}`
30106J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
30107
30108echo ""
30109echo "OpenSSH has been configured with the following options:"
30110echo " User binaries: $B"
30111echo " System binaries: $C"
30112echo " Configuration files: $D"
30113echo " Askpass program: $E"
30114echo " Manual pages: $F"
30115echo " PID file: $G"
30116echo " Privilege separation chroot path: $H"
30117if test "x$external_path_file" = "x/etc/login.conf" ; then
30118echo " At runtime, sshd will use the path defined in $external_path_file"
30119echo " Make sure the path to scp is present, otherwise scp will not work"
30120else
30121echo " sshd default user PATH: $I"
30122 if test ! -z "$external_path_file"; then
30123echo " (If PATH is set in $external_path_file it will be used instead. If"
30124echo " used, ensure the path to scp is present, otherwise scp will not work.)"
30125 fi
30126fi
30127if test ! -z "$superuser_path" ; then
30128echo " sshd superuser user PATH: $J"
30129fi
30130echo " Manpage format: $MANTYPE"
30131echo " PAM support: $PAM_MSG"
30132echo " OSF SIA support: $SIA_MSG"
30133echo " KerberosV support: $KRB5_MSG"
30134echo " SELinux support: $SELINUX_MSG"
30135echo " Smartcard support: $SCARD_MSG"
30136echo " S/KEY support: $SKEY_MSG"
30137echo " TCP Wrappers support: $TCPW_MSG"
30138echo " MD5 password support: $MD5_MSG"
30139echo " libedit support: $LIBEDIT_MSG"
30140echo " Solaris process contract support: $SPC_MSG"
30141echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
30142echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
30143echo " BSD Auth support: $BSD_AUTH_MSG"
30144echo " Random number source: $RAND_MSG"
30145if test ! -z "$USE_RAND_HELPER" ; then
30146echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
30147fi
30148
30149echo ""
30150
30151echo " Host: ${host}"
30152echo " Compiler: ${CC}"
30153echo " Compiler flags: ${CFLAGS}"
30154echo "Preprocessor flags: ${CPPFLAGS}"
30155echo " Linker flags: ${LDFLAGS}"
30156echo " Libraries: ${LIBS}"
30157if test ! -z "${SSHDLIBS}"; then
30158echo " +for sshd: ${SSHDLIBS}"
30159fi
30160
30161echo ""
30162
30163if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
30164 echo "SVR4 style packages are supported with \"make package\""
30165 echo ""
30166fi
30167
30168if test "x$PAM_MSG" = "xyes" ; then
30169 echo "PAM is enabled. You may need to install a PAM control file "
30170 echo "for sshd, otherwise password authentication may fail. "
30171 echo "Example PAM control files can be found in the contrib/ "
30172 echo "subdirectory"
30173 echo ""
30174fi
30175
30176if test ! -z "$RAND_HELPER_CMDHASH" ; then
30177 echo "WARNING: you are using the builtin random number collection "
30178 echo "service. Please read WARNING.RNG and request that your OS "
30179 echo "vendor includes kernel-based random number collection in "
30180 echo "future versions of your OS."
30181 echo ""
30182fi
30183
30184if test ! -z "$NO_PEERCHECK" ; then
30185 echo "WARNING: the operating system that you are using does not"
30186 echo "appear to support getpeereid(), getpeerucred() or the"
30187 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
30188 echo "enforce security checks to prevent unauthorised connections to"
30189 echo "ssh-agent. Their absence increases the risk that a malicious"
30190 echo "user can connect to your agent."
30191 echo ""
30192fi
30193
30194if test "$AUDIT_MODULE" = "bsm" ; then
30195 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
30196 echo "See the Solaris section in README.platform for details."
30197fi