summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-05-30 21:44:32 +0000
committerColin Watson <cjwatson@debian.org>2005-05-30 21:44:32 +0000
commita55bd782aa819b7f5ae716de000f19f4f531850e (patch)
tree12638b19bc0ed9c8d48541d460693ab0fbb58e89 /configure
parentfe9489f7e522f780f3fa5c2f28208124d193398c (diff)
parent5d05471f6657646d1d6500c7c43134462c407ee6 (diff)
Import OpenSSH 4.1p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26338
1 files changed, 26338 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..ef3609b70
--- /dev/null
+++ b/configure
@@ -0,0 +1,26338 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OpenSSH Portable.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='OpenSSH'
269PACKAGE_TARNAME='openssh'
270PACKAGE_VERSION='Portable'
271PACKAGE_STRING='OpenSSH Portable'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="ssh.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os AWK CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD EGREP LIBWRAP LIBEDIT LIBPAM INSTALL_SSH_RAND_HELPER SSH_PRIVSEP_USER PROG_LS PROG_NETSTAT PROG_ARP PROG_IFCONFIG PROG_JSTAT PROG_PS PROG_SAR PROG_W PROG_WHO PROG_LAST PROG_LASTLOG PROG_DF PROG_VMSTAT PROG_UPTIME PROG_IPCS PROG_TAIL INSTALL_SSH_PRNG_CMDS OPENSC_CONFIG PRIVSEP_PATH xauth_path STRIP_OPT XAUTH_PATH NROFF MANTYPE mansubdir user_path piddir LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841 case $ac_init_help in
842 short | recursive ) echo "Configuration of OpenSSH Portable:";;
843 esac
844 cat <<\_ACEOF
845
846Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --disable-largefile omit support for large files
850 --disable-strip Disable calling strip(1) on install
851 --disable-etc-default-login Disable using PATH from /etc/default/login no
852 --disable-lastlog disable use of lastlog even if detected no
853 --disable-utmp disable use of utmp even if detected no
854 --disable-utmpx disable use of utmpx even if detected no
855 --disable-wtmp disable use of wtmp even if detected no
856 --disable-wtmpx disable use of wtmpx even if detected no
857 --disable-libutil disable use of libutil (login() etc.) no
858 --disable-pututline disable use of pututline() etc. (uwtmp) no
859 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
860
861Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --without-rpath Disable auto-added -R linker paths
865 --with-osfsia Enable Digital Unix SIA
866 --with-cflags Specify additional flags to pass to compiler
867 --with-cppflags Specify additional flags to pass to preprocessor
868 --with-ldflags Specify additional flags to pass to linker
869 --with-libs Specify additional libraries to link with
870 --with-zlib=PATH Use zlib in PATH
871 --without-zlib-version-check Disable zlib version check
872 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
873 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
874 --with-libedit[=PATH] Enable libedit support for sftp
875 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
876 --with-pam Enable PAM support
877 --with-ssl-dir=PATH Specify path to OpenSSL installation
878 --with-rand-helper Use subprocess to gather strong randomness
879 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
880 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
881 --with-entropy-timeout Specify entropy gathering command timeout (msec)
882 --with-privsep-user=user Specify non-privileged user for privilege separation
883 --with-sectok Enable smartcard support using libsectok
884--with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
885 --with-kerberos5=PATH Enable Kerberos 5 support
886 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
887 --with-xauth=PATH Specify path to xauth program
888 --with-mantype=man|cat|doc Set man page type
889 --with-md5-passwords Enable use of MD5 passwords
890 --without-shadow Disable shadow password support
891 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
892 --with-default-path= Specify default \$PATH environment for server
893 --with-superuser-path= Specify different path for super-user
894 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
895 --with-bsd-auth Enable BSD auth support
896 --with-pid-dir=PATH Specify location of ssh.pid file
897 --with-lastlog=FILE|DIR specify lastlog location common locations
898
899Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CPP C preprocessor
907
908Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations.
910
911_ACEOF
912fi
913
914if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
916 ac_popdir=`pwd`
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
919 ac_builddir=.
920
921if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925else
926 ac_dir_suffix= ac_top_builddir=
927fi
928
929case $srcdir in
930 .) # No --srcdir option. We are building in place.
931 ac_srcdir=.
932 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=.
934 else
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 fi ;;
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
940 *) # Relative path.
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943esac
944
945# Do not use `cd foo && pwd` to compute absolute paths, because
946# the directories may not exist.
947case `pwd` in
948.) ac_abs_builddir="$ac_dir";;
949*)
950 case "$ac_dir" in
951 .) ac_abs_builddir=`pwd`;;
952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_builddir=${ac_top_builddir}.;;
958*)
959 case ${ac_top_builddir}. in
960 .) ac_abs_top_builddir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963 esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_srcdir=$ac_srcdir;;
967*)
968 case $ac_srcdir in
969 .) ac_abs_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972 esac;;
973esac
974case $ac_abs_builddir in
975.) ac_abs_top_srcdir=$ac_top_srcdir;;
976*)
977 case $ac_top_srcdir in
978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 esac;;
982esac
983
984 cd $ac_dir
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
987 echo
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
990 echo
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
994 echo
995 $ac_configure --help
996 else
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 fi
999 cd $ac_popdir
1000 done
1001fi
1002
1003test -n "$ac_init_help" && exit 0
1004if $ac_init_version; then
1005 cat <<\_ACEOF
1006OpenSSH configure Portable
1007generated by GNU Autoconf 2.59
1008
1009Copyright (C) 2003 Free Software Foundation, Inc.
1010This configure script is free software; the Free Software Foundation
1011gives unlimited permission to copy, distribute and modify it.
1012_ACEOF
1013 exit 0
1014fi
1015exec 5>config.log
1016cat >&5 <<_ACEOF
1017This file contains any messages produced by compilers while
1018running configure, to aid debugging if configure makes a mistake.
1019
1020It was created by OpenSSH $as_me Portable, which was
1021generated by GNU Autoconf 2.59. Invocation command line was
1022
1023 $ $0 $@
1024
1025_ACEOF
1026{
1027cat <<_ASUNAME
1028## --------- ##
1029## Platform. ##
1030## --------- ##
1031
1032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1033uname -m = `(uname -m) 2>/dev/null || echo unknown`
1034uname -r = `(uname -r) 2>/dev/null || echo unknown`
1035uname -s = `(uname -s) 2>/dev/null || echo unknown`
1036uname -v = `(uname -v) 2>/dev/null || echo unknown`
1037
1038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1039/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1040
1041/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1042/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1044hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1045/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1046/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1047/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1048
1049_ASUNAME
1050
1051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1052for as_dir in $PATH
1053do
1054 IFS=$as_save_IFS
1055 test -z "$as_dir" && as_dir=.
1056 echo "PATH: $as_dir"
1057done
1058
1059} >&5
1060
1061cat >&5 <<_ACEOF
1062
1063
1064## ----------- ##
1065## Core tests. ##
1066## ----------- ##
1067
1068_ACEOF
1069
1070
1071# Keep a trace of the command line.
1072# Strip out --no-create and --no-recursion so they do not pile up.
1073# Strip out --silent because we don't want to record it for future runs.
1074# Also quote any args containing shell meta-characters.
1075# Make two passes to allow for proper duplicate-argument suppression.
1076ac_configure_args=
1077ac_configure_args0=
1078ac_configure_args1=
1079ac_sep=
1080ac_must_keep_next=false
1081for ac_pass in 1 2
1082do
1083 for ac_arg
1084 do
1085 case $ac_arg in
1086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 continue ;;
1090 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1091 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1092 esac
1093 case $ac_pass in
1094 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1095 2)
1096 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1097 if test $ac_must_keep_next = true; then
1098 ac_must_keep_next=false # Got value, back to normal.
1099 else
1100 case $ac_arg in
1101 *=* | --config-cache | -C | -disable-* | --disable-* \
1102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1104 | -with-* | --with-* | -without-* | --without-* | --x)
1105 case "$ac_configure_args0 " in
1106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1107 esac
1108 ;;
1109 -* ) ac_must_keep_next=true ;;
1110 esac
1111 fi
1112 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1113 # Get rid of the leading space.
1114 ac_sep=" "
1115 ;;
1116 esac
1117 done
1118done
1119$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1120$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1121
1122# When interrupted or exit'd, cleanup temporary files, and complete
1123# config.log. We remove comments because anyway the quotes in there
1124# would cause problems or look ugly.
1125# WARNING: Be sure not to use single quotes in there, as some shells,
1126# such as our DU 5.0 friend, will then `close' the trap.
1127trap 'exit_status=$?
1128 # Save into config.log some information that might help in debugging.
1129 {
1130 echo
1131
1132 cat <<\_ASBOX
1133## ---------------- ##
1134## Cache variables. ##
1135## ---------------- ##
1136_ASBOX
1137 echo
1138 # The following way of writing the cache mishandles newlines in values,
1139{
1140 (set) 2>&1 |
1141 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1142 *ac_space=\ *)
1143 sed -n \
1144 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1146 ;;
1147 *)
1148 sed -n \
1149 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 ;;
1151 esac;
1152}
1153 echo
1154
1155 cat <<\_ASBOX
1156## ----------------- ##
1157## Output variables. ##
1158## ----------------- ##
1159_ASBOX
1160 echo
1161 for ac_var in $ac_subst_vars
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167
1168 if test -n "$ac_subst_files"; then
1169 cat <<\_ASBOX
1170## ------------- ##
1171## Output files. ##
1172## ------------- ##
1173_ASBOX
1174 echo
1175 for ac_var in $ac_subst_files
1176 do
1177 eval ac_val=$`echo $ac_var`
1178 echo "$ac_var='"'"'$ac_val'"'"'"
1179 done | sort
1180 echo
1181 fi
1182
1183 if test -s confdefs.h; then
1184 cat <<\_ASBOX
1185## ----------- ##
1186## confdefs.h. ##
1187## ----------- ##
1188_ASBOX
1189 echo
1190 sed "/^$/d" confdefs.h | sort
1191 echo
1192 fi
1193 test "$ac_signal" != 0 &&
1194 echo "$as_me: caught signal $ac_signal"
1195 echo "$as_me: exit $exit_status"
1196 } >&5
1197 rm -f core *.core &&
1198 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1199 exit $exit_status
1200 ' 0
1201for ac_signal in 1 2 13 15; do
1202 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1203done
1204ac_signal=0
1205
1206# confdefs.h avoids OS command line length limits that DEFS can exceed.
1207rm -rf conftest* confdefs.h
1208# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1209echo >confdefs.h
1210
1211# Predefined preprocessor variables.
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_NAME "$PACKAGE_NAME"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_VERSION "$PACKAGE_VERSION"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_STRING "$PACKAGE_STRING"
1230_ACEOF
1231
1232
1233cat >>confdefs.h <<_ACEOF
1234#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1235_ACEOF
1236
1237
1238# Let the site file select an alternate cache file if it wants to.
1239# Prefer explicitly selected file to automatically selected ones.
1240if test -z "$CONFIG_SITE"; then
1241 if test "x$prefix" != xNONE; then
1242 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1243 else
1244 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245 fi
1246fi
1247for ac_site_file in $CONFIG_SITE; do
1248 if test -r "$ac_site_file"; then
1249 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1250echo "$as_me: loading site script $ac_site_file" >&6;}
1251 sed 's/^/| /' "$ac_site_file" >&5
1252 . "$ac_site_file"
1253 fi
1254done
1255
1256if test -r "$cache_file"; then
1257 # Some versions of bash will fail to source /dev/null (special
1258 # files actually), so we avoid doing that.
1259 if test -f "$cache_file"; then
1260 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1261echo "$as_me: loading cache $cache_file" >&6;}
1262 case $cache_file in
1263 [\\/]* | ?:[\\/]* ) . $cache_file;;
1264 *) . ./$cache_file;;
1265 esac
1266 fi
1267else
1268 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1269echo "$as_me: creating cache $cache_file" >&6;}
1270 >$cache_file
1271fi
1272
1273# Check that the precious variables saved in the cache have kept the same
1274# value.
1275ac_cache_corrupted=false
1276for ac_var in `(set) 2>&1 |
1277 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1278 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1279 eval ac_new_set=\$ac_env_${ac_var}_set
1280 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1281 eval ac_new_val="\$ac_env_${ac_var}_value"
1282 case $ac_old_set,$ac_new_set in
1283 set,)
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1285echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1287 ,set)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1289echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,);;
1292 *)
1293 if test "x$ac_old_val" != "x$ac_new_val"; then
1294 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1295echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1296 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1297echo "$as_me: former value: $ac_old_val" >&2;}
1298 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1299echo "$as_me: current value: $ac_new_val" >&2;}
1300 ac_cache_corrupted=:
1301 fi;;
1302 esac
1303 # Pass precious variables to config.status.
1304 if test "$ac_new_set" = set; then
1305 case $ac_new_val in
1306 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1307 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1308 *) ac_arg=$ac_var=$ac_new_val ;;
1309 esac
1310 case " $ac_configure_args " in
1311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1312 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1313 esac
1314 fi
1315done
1316if $ac_cache_corrupted; then
1317 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1318echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1319 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1320echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1321 { (exit 1); exit 1; }; }
1322fi
1323
1324ac_ext=c
1325ac_cpp='$CPP $CPPFLAGS'
1326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1328ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358 ac_config_headers="$ac_config_headers config.h"
1359
1360ac_ext=c
1361ac_cpp='$CPP $CPPFLAGS'
1362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365if test -n "$ac_tool_prefix"; then
1366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1367set dummy ${ac_tool_prefix}gcc; ac_word=$2
1368echo "$as_me:$LINENO: checking for $ac_word" >&5
1369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370if test "${ac_cv_prog_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1375else
1376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377for as_dir in $PATH
1378do
1379 IFS=$as_save_IFS
1380 test -z "$as_dir" && as_dir=.
1381 for ac_exec_ext in '' $ac_executable_extensions; do
1382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385 break 2
1386 fi
1387done
1388done
1389
1390fi
1391fi
1392CC=$ac_cv_prog_CC
1393if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395echo "${ECHO_T}$CC" >&6
1396else
1397 echo "$as_me:$LINENO: result: no" >&5
1398echo "${ECHO_T}no" >&6
1399fi
1400
1401fi
1402if test -z "$ac_cv_prog_CC"; then
1403 ac_ct_CC=$CC
1404 # Extract the first word of "gcc", so it can be a program name with args.
1405set dummy gcc; ac_word=$2
1406echo "$as_me:$LINENO: checking for $ac_word" >&5
1407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1413else
1414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415for as_dir in $PATH
1416do
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_ac_ct_CC="gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1424 fi
1425done
1426done
1427
1428fi
1429fi
1430ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431if test -n "$ac_ct_CC"; then
1432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433echo "${ECHO_T}$ac_ct_CC" >&6
1434else
1435 echo "$as_me:$LINENO: result: no" >&5
1436echo "${ECHO_T}no" >&6
1437fi
1438
1439 CC=$ac_ct_CC
1440else
1441 CC="$ac_cv_prog_CC"
1442fi
1443
1444if test -z "$CC"; then
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1447set dummy ${ac_tool_prefix}cc; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}cc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1466 fi
1467done
1468done
1469
1470fi
1471fi
1472CC=$ac_cv_prog_CC
1473if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475echo "${ECHO_T}$CC" >&6
1476else
1477 echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481fi
1482if test -z "$ac_cv_prog_CC"; then
1483 ac_ct_CC=$CC
1484 # Extract the first word of "cc", so it can be a program name with args.
1485set dummy cc; ac_word=$2
1486echo "$as_me:$LINENO: checking for $ac_word" >&5
1487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490else
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493else
1494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1504 fi
1505done
1506done
1507
1508fi
1509fi
1510ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513echo "${ECHO_T}$ac_ct_CC" >&6
1514else
1515 echo "$as_me:$LINENO: result: no" >&5
1516echo "${ECHO_T}no" >&6
1517fi
1518
1519 CC=$ac_ct_CC
1520else
1521 CC="$ac_cv_prog_CC"
1522fi
1523
1524fi
1525if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527set dummy cc; ac_word=$2
1528echo "$as_me:$LINENO: checking for $ac_word" >&5
1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1535else
1536 ac_prog_rejected=no
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1545 ac_prog_rejected=yes
1546 continue
1547 fi
1548 ac_cv_prog_CC="cc"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 break 2
1551 fi
1552done
1553done
1554
1555if test $ac_prog_rejected = yes; then
1556 # We found a bogon in the path, so make sure we never use it.
1557 set dummy $ac_cv_prog_CC
1558 shift
1559 if test $# != 0; then
1560 # We chose a different compiler from the bogus one.
1561 # However, it has the same basename, so the bogon will be chosen
1562 # first if we set CC to just the basename; use the full file name.
1563 shift
1564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1565 fi
1566fi
1567fi
1568fi
1569CC=$ac_cv_prog_CC
1570if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572echo "${ECHO_T}$CC" >&6
1573else
1574 echo "$as_me:$LINENO: result: no" >&5
1575echo "${ECHO_T}no" >&6
1576fi
1577
1578fi
1579if test -z "$CC"; then
1580 if test -n "$ac_tool_prefix"; then
1581 for ac_prog in cl
1582 do
1583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1603 fi
1604done
1605done
1606
1607fi
1608fi
1609CC=$ac_cv_prog_CC
1610if test -n "$CC"; then
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612echo "${ECHO_T}$CC" >&6
1613else
1614 echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618 test -n "$CC" && break
1619 done
1620fi
1621if test -z "$CC"; then
1622 ac_ct_CC=$CC
1623 for ac_prog in cl
1624do
1625 # Extract the first word of "$ac_prog", so it can be a program name with args.
1626set dummy $ac_prog; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 if test -n "$ac_ct_CC"; then
1633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1634else
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_CC="$ac_prog"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646done
1647done
1648
1649fi
1650fi
1651ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652if test -n "$ac_ct_CC"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654echo "${ECHO_T}$ac_ct_CC" >&6
1655else
1656 echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
1658fi
1659
1660 test -n "$ac_ct_CC" && break
1661done
1662
1663 CC=$ac_ct_CC
1664fi
1665
1666fi
1667
1668
1669test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1670See \`config.log' for more details." >&5
1671echo "$as_me: error: no acceptable C compiler found in \$PATH
1672See \`config.log' for more details." >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675# Provide some information about the compiler.
1676echo "$as_me:$LINENO:" \
1677 "checking for C compiler version" >&5
1678ac_compiler=`set X $ac_compile; echo $2`
1679{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1680 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 ac_status=$?
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1684{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1685 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 ac_status=$?
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1690 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694
1695cat >conftest.$ac_ext <<_ACEOF
1696/* confdefs.h. */
1697_ACEOF
1698cat confdefs.h >>conftest.$ac_ext
1699cat >>conftest.$ac_ext <<_ACEOF
1700/* end confdefs.h. */
1701
1702int
1703main ()
1704{
1705
1706 ;
1707 return 0;
1708}
1709_ACEOF
1710ac_clean_files_save=$ac_clean_files
1711ac_clean_files="$ac_clean_files a.out a.exe b.out"
1712# Try to create an executable without -o first, disregard a.out.
1713# It will help us diagnose broken compilers, and finding out an intuition
1714# of exeext.
1715echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1716echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1717ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1718if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1719 (eval $ac_link_default) 2>&5
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }; then
1723 # Find the output, starting from the most likely. This scheme is
1724# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1725# resort.
1726
1727# Be careful to initialize this variable, since it used to be cached.
1728# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1729ac_cv_exeext=
1730# b.out is created by i960 compilers.
1731for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1732do
1733 test -f "$ac_file" || continue
1734 case $ac_file in
1735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1736 ;;
1737 conftest.$ac_ext )
1738 # This is the source file.
1739 ;;
1740 [ab].out )
1741 # We found the default executable, but exeext='' is most
1742 # certainly right.
1743 break;;
1744 *.* )
1745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1746 # FIXME: I believe we export ac_cv_exeext for Libtool,
1747 # but it would be cool to find out if it's true. Does anybody
1748 # maintain Libtool? --akim.
1749 export ac_cv_exeext
1750 break;;
1751 * )
1752 break;;
1753 esac
1754done
1755else
1756 echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1760See \`config.log' for more details." >&5
1761echo "$as_me: error: C compiler cannot create executables
1762See \`config.log' for more details." >&2;}
1763 { (exit 77); exit 77; }; }
1764fi
1765
1766ac_exeext=$ac_cv_exeext
1767echo "$as_me:$LINENO: result: $ac_file" >&5
1768echo "${ECHO_T}$ac_file" >&6
1769
1770# Check the compiler produces executables we can run. If not, either
1771# the compiler is broken, or we cross compile.
1772echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1773echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1774# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1775# If not cross compiling, check that we can run a simple program.
1776if test "$cross_compiling" != yes; then
1777 if { ac_try='./$ac_file'
1778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1779 (eval $ac_try) 2>&5
1780 ac_status=$?
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1783 cross_compiling=no
1784 else
1785 if test "$cross_compiling" = maybe; then
1786 cross_compiling=yes
1787 else
1788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1789If you meant to cross compile, use \`--host'.
1790See \`config.log' for more details." >&5
1791echo "$as_me: error: cannot run C compiled programs.
1792If you meant to cross compile, use \`--host'.
1793See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1795 fi
1796 fi
1797fi
1798echo "$as_me:$LINENO: result: yes" >&5
1799echo "${ECHO_T}yes" >&6
1800
1801rm -f a.out a.exe conftest$ac_cv_exeext b.out
1802ac_clean_files=$ac_clean_files_save
1803# Check the compiler produces executables we can run. If not, either
1804# the compiler is broken, or we cross compile.
1805echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1806echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1807echo "$as_me:$LINENO: result: $cross_compiling" >&5
1808echo "${ECHO_T}$cross_compiling" >&6
1809
1810echo "$as_me:$LINENO: checking for suffix of executables" >&5
1811echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1813 (eval $ac_link) 2>&5
1814 ac_status=$?
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }; then
1817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1818# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1819# work properly (i.e., refer to `conftest.exe'), while it won't with
1820# `rm'.
1821for ac_file in conftest.exe conftest conftest.*; do
1822 test -f "$ac_file" || continue
1823 case $ac_file in
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1826 export ac_cv_exeext
1827 break;;
1828 * ) break;;
1829 esac
1830done
1831else
1832 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1835See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1837fi
1838
1839rm -f conftest$ac_cv_exeext
1840echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1841echo "${ECHO_T}$ac_cv_exeext" >&6
1842
1843rm -f conftest.$ac_ext
1844EXEEXT=$ac_cv_exeext
1845ac_exeext=$EXEEXT
1846echo "$as_me:$LINENO: checking for suffix of object files" >&5
1847echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1848if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850else
1851 cat >conftest.$ac_ext <<_ACEOF
1852/* confdefs.h. */
1853_ACEOF
1854cat confdefs.h >>conftest.$ac_ext
1855cat >>conftest.$ac_ext <<_ACEOF
1856/* end confdefs.h. */
1857
1858int
1859main ()
1860{
1861
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866rm -f conftest.o conftest.obj
1867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1869 ac_status=$?
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1873 case $ac_file in
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876 break;;
1877 esac
1878done
1879else
1880 echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1884See \`config.log' for more details." >&5
1885echo "$as_me: error: cannot compute suffix of object files: cannot compile
1886See \`config.log' for more details." >&2;}
1887 { (exit 1); exit 1; }; }
1888fi
1889
1890rm -f conftest.$ac_cv_objext conftest.$ac_ext
1891fi
1892echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1893echo "${ECHO_T}$ac_cv_objext" >&6
1894OBJEXT=$ac_cv_objext
1895ac_objext=$OBJEXT
1896echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1897echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 cat >conftest.$ac_ext <<_ACEOF
1902/* confdefs.h. */
1903_ACEOF
1904cat confdefs.h >>conftest.$ac_ext
1905cat >>conftest.$ac_ext <<_ACEOF
1906/* end confdefs.h. */
1907
1908int
1909main ()
1910{
1911#ifndef __GNUC__
1912 choke me
1913#endif
1914
1915 ;
1916 return 0;
1917}
1918_ACEOF
1919rm -f conftest.$ac_objext
1920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1921 (eval $ac_compile) 2>conftest.er1
1922 ac_status=$?
1923 grep -v '^ *+' conftest.er1 >conftest.err
1924 rm -f conftest.er1
1925 cat conftest.err >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -z "$ac_c_werror_flag"
1929 || test ! -s conftest.err'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1941 ac_compiler_gnu=yes
1942else
1943 echo "$as_me: failed program was:" >&5
1944sed 's/^/| /' conftest.$ac_ext >&5
1945
1946ac_compiler_gnu=no
1947fi
1948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1949ac_cv_c_compiler_gnu=$ac_compiler_gnu
1950
1951fi
1952echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1953echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1954GCC=`test $ac_compiler_gnu = yes && echo yes`
1955ac_test_CFLAGS=${CFLAGS+set}
1956ac_save_CFLAGS=$CFLAGS
1957CFLAGS="-g"
1958echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1959echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1960if test "${ac_cv_prog_cc_g+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 cat >conftest.$ac_ext <<_ACEOF
1964/* confdefs.h. */
1965_ACEOF
1966cat confdefs.h >>conftest.$ac_ext
1967cat >>conftest.$ac_ext <<_ACEOF
1968/* end confdefs.h. */
1969
1970int
1971main ()
1972{
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978rm -f conftest.$ac_objext
1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>conftest.er1
1981 ac_status=$?
1982 grep -v '^ *+' conftest.er1 >conftest.err
1983 rm -f conftest.er1
1984 cat conftest.err >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -z "$ac_c_werror_flag"
1988 || test ! -s conftest.err'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990 (eval $ac_try) 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; } &&
1994 { ac_try='test -s conftest.$ac_objext'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2000 ac_cv_prog_cc_g=yes
2001else
2002 echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005ac_cv_prog_cc_g=no
2006fi
2007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2011if test "$ac_test_CFLAGS" = set; then
2012 CFLAGS=$ac_save_CFLAGS
2013elif test $ac_cv_prog_cc_g = yes; then
2014 if test "$GCC" = yes; then
2015 CFLAGS="-g -O2"
2016 else
2017 CFLAGS="-g"
2018 fi
2019else
2020 if test "$GCC" = yes; then
2021 CFLAGS="-O2"
2022 else
2023 CFLAGS=
2024 fi
2025fi
2026echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2027echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_stdc+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 ac_cv_prog_cc_stdc=no
2032ac_save_CC=$CC
2033cat >conftest.$ac_ext <<_ACEOF
2034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
2039#include <stdarg.h>
2040#include <stdio.h>
2041#include <sys/types.h>
2042#include <sys/stat.h>
2043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2044struct buf { int x; };
2045FILE * (*rcsopen) (struct buf *, struct stat *, int);
2046static char *e (p, i)
2047 char **p;
2048 int i;
2049{
2050 return p[i];
2051}
2052static char *f (char * (*g) (char **, int), char **p, ...)
2053{
2054 char *s;
2055 va_list v;
2056 va_start (v,p);
2057 s = g (p, va_arg (v,int));
2058 va_end (v);
2059 return s;
2060}
2061
2062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2063 function prototypes and stuff, but not '\xHH' hex character constants.
2064 These don't provoke an error unfortunately, instead are silently treated
2065 as 'x'. The following induces an error, until -std1 is added to get
2066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2067 array size at least. It's necessary to write '\x00'==0 to get something
2068 that's true only with -std1. */
2069int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2070
2071int test (int i, double x);
2072struct s1 {int (*f) (int a);};
2073struct s2 {int (*f) (double a);};
2074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2075int argc;
2076char **argv;
2077int
2078main ()
2079{
2080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2081 ;
2082 return 0;
2083}
2084_ACEOF
2085# Don't try gcc -ansi; that turns off useful extensions and
2086# breaks some systems' header files.
2087# AIX -qlanglvl=ansi
2088# Ultrix and OSF/1 -std1
2089# HP-UX 10.20 and later -Ae
2090# HP-UX older versions -Aa -D_HPUX_SOURCE
2091# SVR4 -Xc -D__EXTENSIONS__
2092for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2093do
2094 CC="$ac_save_CC $ac_arg"
2095 rm -f conftest.$ac_objext
2096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>conftest.er1
2098 ac_status=$?
2099 grep -v '^ *+' conftest.er1 >conftest.err
2100 rm -f conftest.er1
2101 cat conftest.err >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -z "$ac_c_werror_flag"
2105 || test ! -s conftest.err'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; } &&
2111 { ac_try='test -s conftest.$ac_objext'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2117 ac_cv_prog_cc_stdc=$ac_arg
2118break
2119else
2120 echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123fi
2124rm -f conftest.err conftest.$ac_objext
2125done
2126rm -f conftest.$ac_ext conftest.$ac_objext
2127CC=$ac_save_CC
2128
2129fi
2130
2131case "x$ac_cv_prog_cc_stdc" in
2132 x|xno)
2133 echo "$as_me:$LINENO: result: none needed" >&5
2134echo "${ECHO_T}none needed" >&6 ;;
2135 *)
2136 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2137echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2138 CC="$CC $ac_cv_prog_cc_stdc" ;;
2139esac
2140
2141# Some people use a C++ compiler to compile C. Since we use `exit',
2142# in C++ we need to declare it. In case someone uses the same compiler
2143# for both compiling C and C++ we need to have the C++ compiler decide
2144# the declaration of exit, since it's the most demanding environment.
2145cat >conftest.$ac_ext <<_ACEOF
2146#ifndef __cplusplus
2147 choke me
2148#endif
2149_ACEOF
2150rm -f conftest.$ac_objext
2151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2153 ac_status=$?
2154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 for ac_declaration in \
2173 '' \
2174 'extern "C" void std::exit (int) throw (); using std::exit;' \
2175 'extern "C" void std::exit (int); using std::exit;' \
2176 'extern "C" void exit (int) throw ();' \
2177 'extern "C" void exit (int);' \
2178 'void exit (int);'
2179do
2180 cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h. */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h. */
2186$ac_declaration
2187#include <stdlib.h>
2188int
2189main ()
2190{
2191exit (42);
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196rm -f conftest.$ac_objext
2197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 :
2219else
2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223continue
2224fi
2225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h. */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h. */
2232$ac_declaration
2233int
2234main ()
2235{
2236exit (42);
2237 ;
2238 return 0;
2239}
2240_ACEOF
2241rm -f conftest.$ac_objext
2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2244 ac_status=$?
2245 grep -v '^ *+' conftest.er1 >conftest.err
2246 rm -f conftest.er1
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 break
2264else
2265 echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268fi
2269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270done
2271rm -f conftest*
2272if test -n "$ac_declaration"; then
2273 echo '#ifdef __cplusplus' >>confdefs.h
2274 echo $ac_declaration >>confdefs.h
2275 echo '#endif' >>confdefs.h
2276fi
2277
2278else
2279 echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290ac_aux_dir=
2291for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2292 if test -f $ac_dir/install-sh; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/install-sh -c"
2295 break
2296 elif test -f $ac_dir/install.sh; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/install.sh -c"
2299 break
2300 elif test -f $ac_dir/shtool; then
2301 ac_aux_dir=$ac_dir
2302 ac_install_sh="$ac_aux_dir/shtool install -c"
2303 break
2304 fi
2305done
2306if test -z "$ac_aux_dir"; then
2307 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2308echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2309 { (exit 1); exit 1; }; }
2310fi
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2313ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2314
2315# Make sure we can run config.sub.
2316$ac_config_sub sun4 >/dev/null 2>&1 ||
2317 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2318echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2319 { (exit 1); exit 1; }; }
2320
2321echo "$as_me:$LINENO: checking build system type" >&5
2322echo $ECHO_N "checking build system type... $ECHO_C" >&6
2323if test "${ac_cv_build+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 ac_cv_build_alias=$build_alias
2327test -z "$ac_cv_build_alias" &&
2328 ac_cv_build_alias=`$ac_config_guess`
2329test -z "$ac_cv_build_alias" &&
2330 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2331echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2332 { (exit 1); exit 1; }; }
2333ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2335echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2336 { (exit 1); exit 1; }; }
2337
2338fi
2339echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2340echo "${ECHO_T}$ac_cv_build" >&6
2341build=$ac_cv_build
2342build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2343build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2344build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2345
2346
2347echo "$as_me:$LINENO: checking host system type" >&5
2348echo $ECHO_N "checking host system type... $ECHO_C" >&6
2349if test "${ac_cv_host+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 ac_cv_host_alias=$host_alias
2353test -z "$ac_cv_host_alias" &&
2354 ac_cv_host_alias=$ac_cv_build_alias
2355ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2356 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2357echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2358 { (exit 1); exit 1; }; }
2359
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362echo "${ECHO_T}$ac_cv_host" >&6
2363host=$ac_cv_host
2364host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2365host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2366host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2367
2368
2369
2370echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2371echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2372if test "${ac_cv_c_bigendian+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375 # See if sys/param.h defines the BYTE_ORDER macro.
2376cat >conftest.$ac_ext <<_ACEOF
2377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
2382#include <sys/types.h>
2383#include <sys/param.h>
2384
2385int
2386main ()
2387{
2388#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2389 bogus endian macros
2390#endif
2391
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 # It does; now see whether it defined to BIG_ENDIAN or not.
2419cat >conftest.$ac_ext <<_ACEOF
2420/* confdefs.h. */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h. */
2425#include <sys/types.h>
2426#include <sys/param.h>
2427
2428int
2429main ()
2430{
2431#if BYTE_ORDER != BIG_ENDIAN
2432 not big endian
2433#endif
2434
2435 ;
2436 return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2442 ac_status=$?
2443 grep -v '^ *+' conftest.er1 >conftest.err
2444 rm -f conftest.er1
2445 cat conftest.err >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -z "$ac_c_werror_flag"
2449 || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_c_bigendian=yes
2462else
2463 echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466ac_cv_c_bigendian=no
2467fi
2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473# It does not; compile a test program.
2474if test "$cross_compiling" = yes; then
2475 # try to guess the endianness by grepping values into an object file
2476 ac_cv_c_bigendian=unknown
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
2483short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2484short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2485void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2486short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2487short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2488void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2489int
2490main ()
2491{
2492 _ascii (); _ebcdic ();
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2520 ac_cv_c_bigendian=yes
2521fi
2522if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2523 if test "$ac_cv_c_bigendian" = unknown; then
2524 ac_cv_c_bigendian=no
2525 else
2526 # finding both strings is unlikely to happen, but who knows?
2527 ac_cv_c_bigendian=unknown
2528 fi
2529fi
2530else
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */
2543int
2544main ()
2545{
2546 /* Are we little or big endian? From Harbison&Steele. */
2547 union
2548 {
2549 long l;
2550 char c[sizeof (long)];
2551 } u;
2552 u.l = 1;
2553 exit (u.c[sizeof (long) - 1] == 1);
2554}
2555_ACEOF
2556rm -f conftest$ac_exeext
2557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558 (eval $ac_link) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_c_bigendian=no
2568else
2569 echo "$as_me: program exited with status $ac_status" >&5
2570echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573( exit $ac_status )
2574ac_cv_c_bigendian=yes
2575fi
2576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2577fi
2578fi
2579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2580fi
2581echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2582echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2583case $ac_cv_c_bigendian in
2584 yes)
2585
2586cat >>confdefs.h <<\_ACEOF
2587#define WORDS_BIGENDIAN 1
2588_ACEOF
2589 ;;
2590 no)
2591 ;;
2592 *)
2593 { { echo "$as_me:$LINENO: error: unknown endianness
2594presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2595echo "$as_me: error: unknown endianness
2596presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2597 { (exit 1); exit 1; }; } ;;
2598esac
2599
2600
2601# Checks for programs.
2602for ac_prog in gawk mawk nawk awk
2603do
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605set dummy $ac_prog; ac_word=$2
2606echo "$as_me:$LINENO: checking for $ac_word" >&5
2607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608if test "${ac_cv_prog_AWK+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611 if test -n "$AWK"; then
2612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_AWK="$ac_prog"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625done
2626done
2627
2628fi
2629fi
2630AWK=$ac_cv_prog_AWK
2631if test -n "$AWK"; then
2632 echo "$as_me:$LINENO: result: $AWK" >&5
2633echo "${ECHO_T}$AWK" >&6
2634else
2635 echo "$as_me:$LINENO: result: no" >&5
2636echo "${ECHO_T}no" >&6
2637fi
2638
2639 test -n "$AWK" && break
2640done
2641
2642ac_ext=c
2643ac_cpp='$CPP $CPPFLAGS'
2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2648echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2649# On Suns, sometimes $CPP names a directory.
2650if test -n "$CPP" && test -d "$CPP"; then
2651 CPP=
2652fi
2653if test -z "$CPP"; then
2654 if test "${ac_cv_prog_CPP+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657 # Double quotes because CPP needs to be expanded
2658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2659 do
2660 ac_preproc_ok=false
2661for ac_c_preproc_warn_flag in '' yes
2662do
2663 # Use a header file that comes with gcc, so configuring glibc
2664 # with a fresh cross-compiler works.
2665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2666 # <limits.h> exists even on freestanding compilers.
2667 # On the NeXT, cc -E runs the code through the compiler's parser,
2668 # not just through cpp. "Syntax error" is here to catch this case.
2669 cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
2675#ifdef __STDC__
2676# include <limits.h>
2677#else
2678# include <assert.h>
2679#endif
2680 Syntax error
2681_ACEOF
2682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } >/dev/null; then
2690 if test -s conftest.err; then
2691 ac_cpp_err=$ac_c_preproc_warn_flag
2692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2693 else
2694 ac_cpp_err=
2695 fi
2696else
2697 ac_cpp_err=yes
2698fi
2699if test -z "$ac_cpp_err"; then
2700 :
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 # Broken: fails on valid input.
2706continue
2707fi
2708rm -f conftest.err conftest.$ac_ext
2709
2710 # OK, works on sane cases. Now check whether non-existent headers
2711 # can be detected and how.
2712 cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
2718#include <ac_nonexistent.h>
2719_ACEOF
2720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } >/dev/null; then
2728 if test -s conftest.err; then
2729 ac_cpp_err=$ac_c_preproc_warn_flag
2730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2731 else
2732 ac_cpp_err=
2733 fi
2734else
2735 ac_cpp_err=yes
2736fi
2737if test -z "$ac_cpp_err"; then
2738 # Broken: success on invalid input.
2739continue
2740else
2741 echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 # Passes both tests.
2745ac_preproc_ok=:
2746break
2747fi
2748rm -f conftest.err conftest.$ac_ext
2749
2750done
2751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2752rm -f conftest.err conftest.$ac_ext
2753if $ac_preproc_ok; then
2754 break
2755fi
2756
2757 done
2758 ac_cv_prog_CPP=$CPP
2759
2760fi
2761 CPP=$ac_cv_prog_CPP
2762else
2763 ac_cv_prog_CPP=$CPP
2764fi
2765echo "$as_me:$LINENO: result: $CPP" >&5
2766echo "${ECHO_T}$CPP" >&6
2767ac_preproc_ok=false
2768for ac_c_preproc_warn_flag in '' yes
2769do
2770 # Use a header file that comes with gcc, so configuring glibc
2771 # with a fresh cross-compiler works.
2772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 # <limits.h> exists even on freestanding compilers.
2774 # On the NeXT, cc -E runs the code through the compiler's parser,
2775 # not just through cpp. "Syntax error" is here to catch this case.
2776 cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h. */
2782#ifdef __STDC__
2783# include <limits.h>
2784#else
2785# include <assert.h>
2786#endif
2787 Syntax error
2788_ACEOF
2789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2800 else
2801 ac_cpp_err=
2802 fi
2803else
2804 ac_cpp_err=yes
2805fi
2806if test -z "$ac_cpp_err"; then
2807 :
2808else
2809 echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 # Broken: fails on valid input.
2813continue
2814fi
2815rm -f conftest.err conftest.$ac_ext
2816
2817 # OK, works on sane cases. Now check whether non-existent headers
2818 # can be detected and how.
2819 cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h. */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h. */
2825#include <ac_nonexistent.h>
2826_ACEOF
2827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null; then
2835 if test -s conftest.err; then
2836 ac_cpp_err=$ac_c_preproc_warn_flag
2837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2838 else
2839 ac_cpp_err=
2840 fi
2841else
2842 ac_cpp_err=yes
2843fi
2844if test -z "$ac_cpp_err"; then
2845 # Broken: success on invalid input.
2846continue
2847else
2848 echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 # Passes both tests.
2852ac_preproc_ok=:
2853break
2854fi
2855rm -f conftest.err conftest.$ac_ext
2856
2857done
2858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2859rm -f conftest.err conftest.$ac_ext
2860if $ac_preproc_ok; then
2861 :
2862else
2863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2864See \`config.log' for more details." >&5
2865echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2866See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }
2868fi
2869
2870ac_ext=c
2871ac_cpp='$CPP $CPPFLAGS'
2872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875
2876if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2878set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2879echo "$as_me:$LINENO: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881if test "${ac_cv_prog_RANLIB+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 if test -n "$RANLIB"; then
2885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898done
2899done
2900
2901fi
2902fi
2903RANLIB=$ac_cv_prog_RANLIB
2904if test -n "$RANLIB"; then
2905 echo "$as_me:$LINENO: result: $RANLIB" >&5
2906echo "${ECHO_T}$RANLIB" >&6
2907else
2908 echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6
2910fi
2911
2912fi
2913if test -z "$ac_cv_prog_RANLIB"; then
2914 ac_ct_RANLIB=$RANLIB
2915 # Extract the first word of "ranlib", so it can be a program name with args.
2916set dummy ranlib; ac_word=$2
2917echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 if test -n "$ac_ct_RANLIB"; then
2923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_RANLIB="ranlib"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936done
2937done
2938
2939 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2940fi
2941fi
2942ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2943if test -n "$ac_ct_RANLIB"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2945echo "${ECHO_T}$ac_ct_RANLIB" >&6
2946else
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949fi
2950
2951 RANLIB=$ac_ct_RANLIB
2952else
2953 RANLIB="$ac_cv_prog_RANLIB"
2954fi
2955
2956# Find a good install program. We prefer a C program (faster),
2957# so one script is as good as another. But avoid the broken or
2958# incompatible versions:
2959# SysV /etc/install, /usr/sbin/install
2960# SunOS /usr/etc/install
2961# IRIX /sbin/install
2962# AIX /bin/install
2963# AmigaOS /C/install, which installs bootblocks on floppy discs
2964# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967# OS/2's system install, which has a completely different semantic
2968# ./install, which can be erroneously created by make from ./install.sh.
2969echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971if test -z "$INSTALL"; then
2972if test "${ac_cv_path_install+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 # Account for people who put trailing slashes in PATH elements.
2981case $as_dir/ in
2982 ./ | .// | /cC/* | \
2983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2985 /usr/ucb/* ) ;;
2986 *)
2987 # OSF1 and SCO ODT 3.0 have their own names for install.
2988 # Don't use installbsd from OSF since it installs stuff as root
2989 # by default.
2990 for ac_prog in ginstall scoinst install; do
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993 if test $ac_prog = install &&
2994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995 # AIX install. It has an incompatible calling convention.
2996 :
2997 elif test $ac_prog = install &&
2998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999 # program-specific install script used by HP pwplus--don't use.
3000 :
3001 else
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 break 3
3004 fi
3005 fi
3006 done
3007 done
3008 ;;
3009esac
3010done
3011
3012
3013fi
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3016 else
3017 # As a last resort, use the slow shell script. We don't cache a
3018 # path for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the path is relative.
3021 INSTALL=$ac_install_sh
3022 fi
3023fi
3024echo "$as_me:$LINENO: result: $INSTALL" >&5
3025echo "${ECHO_T}$INSTALL" >&6
3026
3027# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028# It thinks the first close brace ends the variable substitution.
3029test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030
3031test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032
3033test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034
3035# Extract the first word of "ar", so it can be a program name with args.
3036set dummy ar; ac_word=$2
3037echo "$as_me:$LINENO: checking for $ac_word" >&5
3038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039if test "${ac_cv_path_AR+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
3042 case $AR in
3043 [\\/]* | ?:[\\/]*)
3044 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3045 ;;
3046 *)
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058done
3059done
3060
3061 ;;
3062esac
3063fi
3064AR=$ac_cv_path_AR
3065
3066if test -n "$AR"; then
3067 echo "$as_me:$LINENO: result: $AR" >&5
3068echo "${ECHO_T}$AR" >&6
3069else
3070 echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
3072fi
3073
3074# Extract the first word of "cat", so it can be a program name with args.
3075set dummy cat; ac_word=$2
3076echo "$as_me:$LINENO: checking for $ac_word" >&5
3077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078if test "${ac_cv_path_CAT+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 case $CAT in
3082 [\\/]* | ?:[\\/]*)
3083 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3084 ;;
3085 *)
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097done
3098done
3099
3100 ;;
3101esac
3102fi
3103CAT=$ac_cv_path_CAT
3104
3105if test -n "$CAT"; then
3106 echo "$as_me:$LINENO: result: $CAT" >&5
3107echo "${ECHO_T}$CAT" >&6
3108else
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111fi
3112
3113# Extract the first word of "kill", so it can be a program name with args.
3114set dummy kill; ac_word=$2
3115echo "$as_me:$LINENO: checking for $ac_word" >&5
3116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117if test "${ac_cv_path_KILL+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120 case $KILL in
3121 [\\/]* | ?:[\\/]*)
3122 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
3123 ;;
3124 *)
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136done
3137done
3138
3139 ;;
3140esac
3141fi
3142KILL=$ac_cv_path_KILL
3143
3144if test -n "$KILL"; then
3145 echo "$as_me:$LINENO: result: $KILL" >&5
3146echo "${ECHO_T}$KILL" >&6
3147else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
3151
3152for ac_prog in perl5 perl
3153do
3154 # Extract the first word of "$ac_prog", so it can be a program name with args.
3155set dummy $ac_prog; ac_word=$2
3156echo "$as_me:$LINENO: checking for $ac_word" >&5
3157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158if test "${ac_cv_path_PERL+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161 case $PERL in
3162 [\\/]* | ?:[\\/]*)
3163 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3164 ;;
3165 *)
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177done
3178done
3179
3180 ;;
3181esac
3182fi
3183PERL=$ac_cv_path_PERL
3184
3185if test -n "$PERL"; then
3186 echo "$as_me:$LINENO: result: $PERL" >&5
3187echo "${ECHO_T}$PERL" >&6
3188else
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
3191fi
3192
3193 test -n "$PERL" && break
3194done
3195
3196# Extract the first word of "sed", so it can be a program name with args.
3197set dummy sed; ac_word=$2
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_path_SED+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 case $SED in
3204 [\\/]* | ?:[\\/]*)
3205 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3206 ;;
3207 *)
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219done
3220done
3221
3222 ;;
3223esac
3224fi
3225SED=$ac_cv_path_SED
3226
3227if test -n "$SED"; then
3228 echo "$as_me:$LINENO: result: $SED" >&5
3229echo "${ECHO_T}$SED" >&6
3230else
3231 echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6
3233fi
3234
3235
3236# Extract the first word of "ent", so it can be a program name with args.
3237set dummy ent; ac_word=$2
3238echo "$as_me:$LINENO: checking for $ac_word" >&5
3239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240if test "${ac_cv_path_ENT+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243 case $ENT in
3244 [\\/]* | ?:[\\/]*)
3245 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
3246 ;;
3247 *)
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3258 fi
3259done
3260done
3261
3262 ;;
3263esac
3264fi
3265ENT=$ac_cv_path_ENT
3266
3267if test -n "$ENT"; then
3268 echo "$as_me:$LINENO: result: $ENT" >&5
3269echo "${ECHO_T}$ENT" >&6
3270else
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273fi
3274
3275
3276# Extract the first word of "bash", so it can be a program name with args.
3277set dummy bash; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283 case $TEST_MINUS_S_SH in
3284 [\\/]* | ?:[\\/]*)
3285 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3286 ;;
3287 *)
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299done
3300done
3301
3302 ;;
3303esac
3304fi
3305TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3306
3307if test -n "$TEST_MINUS_S_SH"; then
3308 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3309echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3310else
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313fi
3314
3315# Extract the first word of "ksh", so it can be a program name with args.
3316set dummy ksh; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 case $TEST_MINUS_S_SH in
3323 [\\/]* | ?:[\\/]*)
3324 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3325 ;;
3326 *)
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338done
3339done
3340
3341 ;;
3342esac
3343fi
3344TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3345
3346if test -n "$TEST_MINUS_S_SH"; then
3347 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3348echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3349else
3350 echo "$as_me:$LINENO: result: no" >&5
3351echo "${ECHO_T}no" >&6
3352fi
3353
3354# Extract the first word of "sh", so it can be a program name with args.
3355set dummy sh; ac_word=$2
3356echo "$as_me:$LINENO: checking for $ac_word" >&5
3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 case $TEST_MINUS_S_SH in
3362 [\\/]* | ?:[\\/]*)
3363 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3364 ;;
3365 *)
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
3380 ;;
3381esac
3382fi
3383TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3384
3385if test -n "$TEST_MINUS_S_SH"; then
3386 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3387echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3388else
3389 echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391fi
3392
3393# Extract the first word of "sh", so it can be a program name with args.
3394set dummy sh; ac_word=$2
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_path_SH+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 case $SH in
3401 [\\/]* | ?:[\\/]*)
3402 ac_cv_path_SH="$SH" # Let the user override the test with a path.
3403 ;;
3404 *)
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416done
3417done
3418
3419 ;;
3420esac
3421fi
3422SH=$ac_cv_path_SH
3423
3424if test -n "$SH"; then
3425 echo "$as_me:$LINENO: result: $SH" >&5
3426echo "${ECHO_T}$SH" >&6
3427else
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
3430fi
3431
3432TEST_SHELL=sh
3433
3434
3435# Extract the first word of "groupadd", so it can be a program name with args.
3436set dummy groupadd; ac_word=$2
3437echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 case $PATH_GROUPADD_PROG in
3443 [\\/]* | ?:[\\/]*)
3444 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
3445 ;;
3446 *)
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459done
3460
3461 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
3462 ;;
3463esac
3464fi
3465PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
3466
3467if test -n "$PATH_GROUPADD_PROG"; then
3468 echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
3469echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6
3470else
3471 echo "$as_me:$LINENO: result: no" >&5
3472echo "${ECHO_T}no" >&6
3473fi
3474
3475# Extract the first word of "useradd", so it can be a program name with args.
3476set dummy useradd; ac_word=$2
3477echo "$as_me:$LINENO: checking for $ac_word" >&5
3478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482 case $PATH_USERADD_PROG in
3483 [\\/]* | ?:[\\/]*)
3484 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
3485 ;;
3486 *)
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3489do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498done
3499done
3500
3501 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
3502 ;;
3503esac
3504fi
3505PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
3506
3507if test -n "$PATH_USERADD_PROG"; then
3508 echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
3509echo "${ECHO_T}$PATH_USERADD_PROG" >&6
3510else
3511 echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
3513fi
3514
3515# Extract the first word of "pkgmk", so it can be a program name with args.
3516set dummy pkgmk; ac_word=$2
3517echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3523 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
3524else
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536done
3537done
3538
3539 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
3540fi
3541fi
3542MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
3543if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3544 echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
3545echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6
3546else
3547 echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
3549fi
3550
3551
3552# System features
3553# Check whether --enable-largefile or --disable-largefile was given.
3554if test "${enable_largefile+set}" = set; then
3555 enableval="$enable_largefile"
3556
3557fi;
3558if test "$enable_largefile" != no; then
3559
3560 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3561echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3562if test "${ac_cv_sys_largefile_CC+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565 ac_cv_sys_largefile_CC=no
3566 if test "$GCC" != yes; then
3567 ac_save_CC=$CC
3568 while :; do
3569 # IRIX 6.2 and later do not support large files by default,
3570 # so use the C compiler's -n32 option if that helps.
3571 cat >conftest.$ac_ext <<_ACEOF
3572/* confdefs.h. */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h. */
3577#include <sys/types.h>
3578 /* Check that off_t can represent 2**63 - 1 correctly.
3579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3580 since some C++ compilers masquerading as C compilers
3581 incorrectly reject 9223372036854775807. */
3582#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3584 && LARGE_OFF_T % 2147483647 == 1)
3585 ? 1 : -1];
3586int
3587main ()
3588{
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594 rm -f conftest.$ac_objext
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 break
3617else
3618 echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621fi
3622rm -f conftest.err conftest.$ac_objext
3623 CC="$CC -n32"
3624 rm -f conftest.$ac_objext
3625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_sys_largefile_CC=' -n32'; break
3647else
3648 echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651fi
3652rm -f conftest.err conftest.$ac_objext
3653 break
3654 done
3655 CC=$ac_save_CC
3656 rm -f conftest.$ac_ext
3657 fi
3658fi
3659echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3660echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3661 if test "$ac_cv_sys_largefile_CC" != no; then
3662 CC=$CC$ac_cv_sys_largefile_CC
3663 fi
3664
3665 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3666echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3667if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 while :; do
3671 ac_cv_sys_file_offset_bits=no
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678#include <sys/types.h>
3679 /* Check that off_t can represent 2**63 - 1 correctly.
3680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3681 since some C++ compilers masquerading as C compilers
3682 incorrectly reject 9223372036854775807. */
3683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3685 && LARGE_OFF_T % 2147483647 == 1)
3686 ? 1 : -1];
3687int
3688main ()
3689{
3690
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724 cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h. */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h. */
3730#define _FILE_OFFSET_BITS 64
3731#include <sys/types.h>
3732 /* Check that off_t can represent 2**63 - 1 correctly.
3733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3734 since some C++ compilers masquerading as C compilers
3735 incorrectly reject 9223372036854775807. */
3736#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3738 && LARGE_OFF_T % 2147483647 == 1)
3739 ? 1 : -1];
3740int
3741main ()
3742{
3743
3744 ;
3745 return 0;
3746}
3747_ACEOF
3748rm -f conftest.$ac_objext
3749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750 (eval $ac_compile) 2>conftest.er1
3751 ac_status=$?
3752 grep -v '^ *+' conftest.er1 >conftest.err
3753 rm -f conftest.er1
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try='test -z "$ac_c_werror_flag"
3758 || test ! -s conftest.err'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; } &&
3764 { ac_try='test -s conftest.$ac_objext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3770 ac_cv_sys_file_offset_bits=64; break
3771else
3772 echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775fi
3776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777 break
3778done
3779fi
3780echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3781echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3782if test "$ac_cv_sys_file_offset_bits" != no; then
3783
3784cat >>confdefs.h <<_ACEOF
3785#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3786_ACEOF
3787
3788fi
3789rm -f conftest*
3790 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3791echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3792if test "${ac_cv_sys_large_files+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 while :; do
3796 ac_cv_sys_large_files=no
3797 cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3803#include <sys/types.h>
3804 /* Check that off_t can represent 2**63 - 1 correctly.
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3806 since some C++ compilers masquerading as C compilers
3807 incorrectly reject 9223372036854775807. */
3808#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3810 && LARGE_OFF_T % 2147483647 == 1)
3811 ? 1 : -1];
3812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 break
3843else
3844 echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847fi
3848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849 cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
3855#define _LARGE_FILES 1
3856#include <sys/types.h>
3857 /* Check that off_t can represent 2**63 - 1 correctly.
3858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3859 since some C++ compilers masquerading as C compilers
3860 incorrectly reject 9223372036854775807. */
3861#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3863 && LARGE_OFF_T % 2147483647 == 1)
3864 ? 1 : -1];
3865int
3866main ()
3867{
3868
3869 ;
3870 return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext
3874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try='test -z "$ac_c_werror_flag"
3883 || test ! -s conftest.err'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 (eval $ac_try) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 ac_cv_sys_large_files=1; break
3896else
3897 echo "$as_me: failed program was:" >&5
3898sed 's/^/| /' conftest.$ac_ext >&5
3899
3900fi
3901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3902 break
3903done
3904fi
3905echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3906echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3907if test "$ac_cv_sys_large_files" != no; then
3908
3909cat >>confdefs.h <<_ACEOF
3910#define _LARGE_FILES $ac_cv_sys_large_files
3911_ACEOF
3912
3913fi
3914rm -f conftest*
3915fi
3916
3917
3918if test -z "$AR" ; then
3919 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3920echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3921 { (exit 1); exit 1; }; }
3922fi
3923
3924# Use LOGIN_PROGRAM from environment if possible
3925if test ! -z "$LOGIN_PROGRAM" ; then
3926 cat >>confdefs.h <<_ACEOF
3927#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3928_ACEOF
3929
3930else
3931 # Search for login
3932 # Extract the first word of "login", so it can be a program name with args.
3933set dummy login; ac_word=$2
3934echo "$as_me:$LINENO: checking for $ac_word" >&5
3935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3936if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 case $LOGIN_PROGRAM_FALLBACK in
3940 [\\/]* | ?:[\\/]*)
3941 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3942 ;;
3943 *)
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956done
3957
3958 ;;
3959esac
3960fi
3961LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3962
3963if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3964 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3965echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3966else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969fi
3970
3971 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3972 cat >>confdefs.h <<_ACEOF
3973#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3974_ACEOF
3975
3976 fi
3977fi
3978
3979# Extract the first word of "passwd", so it can be a program name with args.
3980set dummy passwd; ac_word=$2
3981echo "$as_me:$LINENO: checking for $ac_word" >&5
3982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986 case $PATH_PASSWD_PROG in
3987 [\\/]* | ?:[\\/]*)
3988 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
3989 ;;
3990 *)
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002done
4003done
4004
4005 ;;
4006esac
4007fi
4008PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
4009
4010if test -n "$PATH_PASSWD_PROG"; then
4011 echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
4012echo "${ECHO_T}$PATH_PASSWD_PROG" >&6
4013else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016fi
4017
4018if test ! -z "$PATH_PASSWD_PROG" ; then
4019 cat >>confdefs.h <<_ACEOF
4020#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
4021_ACEOF
4022
4023fi
4024
4025if test -z "$LD" ; then
4026 LD=$CC
4027fi
4028
4029
4030echo "$as_me:$LINENO: checking for inline" >&5
4031echo $ECHO_N "checking for inline... $ECHO_C" >&6
4032if test "${ac_cv_c_inline+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 ac_cv_c_inline=no
4036for ac_kw in inline __inline__ __inline; do
4037 cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043#ifndef __cplusplus
4044typedef int foo_t;
4045static $ac_kw foo_t static_foo () {return 0; }
4046$ac_kw foo_t foo () {return 0; }
4047#endif
4048
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4052 (eval $ac_compile) 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag"
4060 || test ! -s conftest.err'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 ac_cv_c_inline=$ac_kw; break
4073else
4074 echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077fi
4078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4079done
4080
4081fi
4082echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4083echo "${ECHO_T}$ac_cv_c_inline" >&6
4084
4085
4086case $ac_cv_c_inline in
4087 inline | yes) ;;
4088 *)
4089 case $ac_cv_c_inline in
4090 no) ac_val=;;
4091 *) ac_val=$ac_cv_c_inline;;
4092 esac
4093 cat >>confdefs.h <<_ACEOF
4094#ifndef __cplusplus
4095#define inline $ac_val
4096#endif
4097_ACEOF
4098 ;;
4099esac
4100
4101if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
4102 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
4103fi
4104
4105
4106# Check whether --with-rpath or --without-rpath was given.
4107if test "${with_rpath+set}" = set; then
4108 withval="$with_rpath"
4109
4110 if test "x$withval" = "xno" ; then
4111 need_dash_r=""
4112 fi
4113 if test "x$withval" = "xyes" ; then
4114 need_dash_r=1
4115 fi
4116
4117
4118fi;
4119
4120# Check for some target-specific stuff
4121case "$host" in
4122*-*-aix*)
4123 echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
4124echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
4125 if (test -z "$blibpath"); then
4126 blibpath="/usr/lib:/lib"
4127 fi
4128 saved_LDFLAGS="$LDFLAGS"
4129 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
4130 if (test -z "$blibflags"); then
4131 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
4132 cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
4138
4139int
4140main ()
4141{
4142
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext conftest$ac_exeext
4148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 blibflags=$tryflags
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174fi
4175rm -f conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4177 fi
4178 done
4179 if (test -z "$blibflags"); then
4180 echo "$as_me:$LINENO: result: not found" >&5
4181echo "${ECHO_T}not found" >&6
4182 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
4183echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
4184 { (exit 1); exit 1; }; }
4185 else
4186 echo "$as_me:$LINENO: result: $blibflags" >&5
4187echo "${ECHO_T}$blibflags" >&6
4188 fi
4189 LDFLAGS="$saved_LDFLAGS"
4190 echo "$as_me:$LINENO: checking for authenticate" >&5
4191echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
4192if test "${ac_cv_func_authenticate+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
4202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4203#define authenticate innocuous_authenticate
4204
4205/* System header to define __stub macros and hopefully few prototypes,
4206 which can conflict with char authenticate (); below.
4207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4208 <limits.h> exists even on freestanding compilers. */
4209
4210#ifdef __STDC__
4211# include <limits.h>
4212#else
4213# include <assert.h>
4214#endif
4215
4216#undef authenticate
4217
4218/* Override any gcc2 internal prototype to avoid an error. */
4219#ifdef __cplusplus
4220extern "C"
4221{
4222#endif
4223/* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4225char authenticate ();
4226/* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229#if defined (__stub_authenticate) || defined (__stub___authenticate)
4230choke me
4231#else
4232char (*f) () = authenticate;
4233#endif
4234#ifdef __cplusplus
4235}
4236#endif
4237
4238int
4239main ()
4240{
4241return f != authenticate;
4242 ;
4243 return 0;
4244}
4245_ACEOF
4246rm -f conftest.$ac_objext conftest$ac_exeext
4247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248 (eval $ac_link) 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -z "$ac_c_werror_flag"
4256 || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest$ac_exeext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_func_authenticate=yes
4269else
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273ac_cv_func_authenticate=no
4274fi
4275rm -f conftest.err conftest.$ac_objext \
4276 conftest$ac_exeext conftest.$ac_ext
4277fi
4278echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
4279echo "${ECHO_T}$ac_cv_func_authenticate" >&6
4280if test $ac_cv_func_authenticate = yes; then
4281 cat >>confdefs.h <<\_ACEOF
4282#define WITH_AIXAUTHENTICATE 1
4283_ACEOF
4284
4285else
4286 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
4287echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
4288if test "${ac_cv_lib_s_authenticate+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291 ac_check_lib_save_LIBS=$LIBS
4292LIBS="-ls $LIBS"
4293cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
4299
4300/* Override any gcc2 internal prototype to avoid an error. */
4301#ifdef __cplusplus
4302extern "C"
4303#endif
4304/* We use char because int might match the return type of a gcc2
4305 builtin and then its argument prototype would still apply. */
4306char authenticate ();
4307int
4308main ()
4309{
4310authenticate ();
4311 ;
4312 return 0;
4313}
4314_ACEOF
4315rm -f conftest.$ac_objext conftest$ac_exeext
4316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest$ac_exeext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_lib_s_authenticate=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342ac_cv_lib_s_authenticate=no
4343fi
4344rm -f conftest.err conftest.$ac_objext \
4345 conftest$ac_exeext conftest.$ac_ext
4346LIBS=$ac_check_lib_save_LIBS
4347fi
4348echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
4349echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
4350if test $ac_cv_lib_s_authenticate = yes; then
4351 cat >>confdefs.h <<\_ACEOF
4352#define WITH_AIXAUTHENTICATE 1
4353_ACEOF
4354
4355 LIBS="$LIBS -ls"
4356
4357fi
4358
4359
4360fi
4361
4362 echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
4363echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6
4364if test "${ac_cv_have_decl_authenticate+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <usersec.h>
4374
4375int
4376main ()
4377{
4378#ifndef authenticate
4379 char *p = (char *) authenticate;
4380#endif
4381
4382 ;
4383 return 0;
4384}
4385_ACEOF
4386rm -f conftest.$ac_objext
4387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_have_decl_authenticate=yes
4409else
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413ac_cv_have_decl_authenticate=no
4414fi
4415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416fi
4417echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
4418echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6
4419if test $ac_cv_have_decl_authenticate = yes; then
4420
4421cat >>confdefs.h <<_ACEOF
4422#define HAVE_DECL_AUTHENTICATE 1
4423_ACEOF
4424
4425
4426else
4427 cat >>confdefs.h <<_ACEOF
4428#define HAVE_DECL_AUTHENTICATE 0
4429_ACEOF
4430
4431
4432fi
4433echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
4434echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6
4435if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
4444#include <usersec.h>
4445
4446int
4447main ()
4448{
4449#ifndef loginrestrictions
4450 char *p = (char *) loginrestrictions;
4451#endif
4452
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext
4458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_have_decl_loginrestrictions=yes
4480else
4481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484ac_cv_have_decl_loginrestrictions=no
4485fi
4486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487fi
4488echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
4489echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6
4490if test $ac_cv_have_decl_loginrestrictions = yes; then
4491
4492cat >>confdefs.h <<_ACEOF
4493#define HAVE_DECL_LOGINRESTRICTIONS 1
4494_ACEOF
4495
4496
4497else
4498 cat >>confdefs.h <<_ACEOF
4499#define HAVE_DECL_LOGINRESTRICTIONS 0
4500_ACEOF
4501
4502
4503fi
4504echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
4505echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6
4506if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509 cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515#include <usersec.h>
4516
4517int
4518main ()
4519{
4520#ifndef loginsuccess
4521 char *p = (char *) loginsuccess;
4522#endif
4523
4524 ;
4525 return 0;
4526}
4527_ACEOF
4528rm -f conftest.$ac_objext
4529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_have_decl_loginsuccess=yes
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555ac_cv_have_decl_loginsuccess=no
4556fi
4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558fi
4559echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
4560echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6
4561if test $ac_cv_have_decl_loginsuccess = yes; then
4562
4563cat >>confdefs.h <<_ACEOF
4564#define HAVE_DECL_LOGINSUCCESS 1
4565_ACEOF
4566
4567
4568else
4569 cat >>confdefs.h <<_ACEOF
4570#define HAVE_DECL_LOGINSUCCESS 0
4571_ACEOF
4572
4573
4574fi
4575echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
4576echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6
4577if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h. */
4586#include <usersec.h>
4587
4588int
4589main ()
4590{
4591#ifndef passwdexpired
4592 char *p = (char *) passwdexpired;
4593#endif
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext
4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_cv_have_decl_passwdexpired=yes
4622else
4623 echo "$as_me: failed program was:" >&5
4624sed 's/^/| /' conftest.$ac_ext >&5
4625
4626ac_cv_have_decl_passwdexpired=no
4627fi
4628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629fi
4630echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
4631echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6
4632if test $ac_cv_have_decl_passwdexpired = yes; then
4633
4634cat >>confdefs.h <<_ACEOF
4635#define HAVE_DECL_PASSWDEXPIRED 1
4636_ACEOF
4637
4638
4639else
4640 cat >>confdefs.h <<_ACEOF
4641#define HAVE_DECL_PASSWDEXPIRED 0
4642_ACEOF
4643
4644
4645fi
4646echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
4647echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6
4648if test "${ac_cv_have_decl_setauthdb+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
4657#include <usersec.h>
4658
4659int
4660main ()
4661{
4662#ifndef setauthdb
4663 char *p = (char *) setauthdb;
4664#endif
4665
4666 ;
4667 return 0;
4668}
4669_ACEOF
4670rm -f conftest.$ac_objext
4671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag"
4680 || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_have_decl_setauthdb=yes
4693else
4694 echo "$as_me: failed program was:" >&5
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697ac_cv_have_decl_setauthdb=no
4698fi
4699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
4702echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6
4703if test $ac_cv_have_decl_setauthdb = yes; then
4704
4705cat >>confdefs.h <<_ACEOF
4706#define HAVE_DECL_SETAUTHDB 1
4707_ACEOF
4708
4709
4710else
4711 cat >>confdefs.h <<_ACEOF
4712#define HAVE_DECL_SETAUTHDB 0
4713_ACEOF
4714
4715
4716fi
4717
4718
4719 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
4720echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
4721if test "${ac_cv_have_decl_loginfailed+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724 cat >conftest.$ac_ext <<_ACEOF
4725/* confdefs.h. */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
4729/* end confdefs.h. */
4730#include <usersec.h>
4731
4732
4733int
4734main ()
4735{
4736#ifndef loginfailed
4737 char *p = (char *) loginfailed;
4738#endif
4739
4740 ;
4741 return 0;
4742}
4743_ACEOF
4744rm -f conftest.$ac_objext
4745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag"
4754 || test ! -s conftest.err'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_have_decl_loginfailed=yes
4767else
4768 echo "$as_me: failed program was:" >&5
4769sed 's/^/| /' conftest.$ac_ext >&5
4770
4771ac_cv_have_decl_loginfailed=no
4772fi
4773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774fi
4775echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
4776echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
4777if test $ac_cv_have_decl_loginfailed = yes; then
4778
4779cat >>confdefs.h <<_ACEOF
4780#define HAVE_DECL_LOGINFAILED 1
4781_ACEOF
4782
4783echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
4784echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
4785 cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h. */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h. */
4791#include <usersec.h>
4792int
4793main ()
4794{
4795(void)loginfailed("user","host","tty",0);
4796 ;
4797 return 0;
4798}
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824 cat >>confdefs.h <<\_ACEOF
4825#define AIX_LOGINFAILED_4ARG 1
4826_ACEOF
4827
4828else
4829 echo "$as_me: failed program was:" >&5
4830sed 's/^/| /' conftest.$ac_ext >&5
4831
4832echo "$as_me:$LINENO: result: no" >&5
4833echo "${ECHO_T}no" >&6
4834
4835fi
4836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837else
4838 cat >>confdefs.h <<_ACEOF
4839#define HAVE_DECL_LOGINFAILED 0
4840_ACEOF
4841
4842
4843fi
4844
4845
4846
4847for ac_func in setauthdb
4848do
4849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4850echo "$as_me:$LINENO: checking for $ac_func" >&5
4851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4852if eval "test \"\${$as_ac_var+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4863#define $ac_func innocuous_$ac_func
4864
4865/* System header to define __stub macros and hopefully few prototypes,
4866 which can conflict with char $ac_func (); below.
4867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 <limits.h> exists even on freestanding compilers. */
4869
4870#ifdef __STDC__
4871# include <limits.h>
4872#else
4873# include <assert.h>
4874#endif
4875
4876#undef $ac_func
4877
4878/* Override any gcc2 internal prototype to avoid an error. */
4879#ifdef __cplusplus
4880extern "C"
4881{
4882#endif
4883/* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */
4885char $ac_func ();
4886/* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890choke me
4891#else
4892char (*f) () = $ac_func;
4893#endif
4894#ifdef __cplusplus
4895}
4896#endif
4897
4898int
4899main ()
4900{
4901return f != $ac_func;
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906rm -f conftest.$ac_objext conftest$ac_exeext
4907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest$ac_exeext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 eval "$as_ac_var=yes"
4929else
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933eval "$as_ac_var=no"
4934fi
4935rm -f conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937fi
4938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4939echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4940if test `eval echo '${'$as_ac_var'}'` = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4943_ACEOF
4944
4945fi
4946done
4947
4948 check_for_aix_broken_getaddrinfo=1
4949 cat >>confdefs.h <<\_ACEOF
4950#define BROKEN_REALPATH 1
4951_ACEOF
4952
4953 cat >>confdefs.h <<\_ACEOF
4954#define SETEUID_BREAKS_SETUID 1
4955_ACEOF
4956
4957 cat >>confdefs.h <<\_ACEOF
4958#define BROKEN_SETREUID 1
4959_ACEOF
4960
4961 cat >>confdefs.h <<\_ACEOF
4962#define BROKEN_SETREGID 1
4963_ACEOF
4964
4965 cat >>confdefs.h <<\_ACEOF
4966#define DISABLE_LASTLOG 1
4967_ACEOF
4968
4969 cat >>confdefs.h <<\_ACEOF
4970#define LOGIN_NEEDS_UTMPX 1
4971_ACEOF
4972
4973 cat >>confdefs.h <<\_ACEOF
4974#define SPT_TYPE SPT_REUSEARGV
4975_ACEOF
4976
4977 ;;
4978*-*-cygwin*)
4979 check_for_libcrypt_later=1
4980 LIBS="$LIBS /usr/lib/textmode.o"
4981 cat >>confdefs.h <<\_ACEOF
4982#define HAVE_CYGWIN 1
4983_ACEOF
4984
4985 cat >>confdefs.h <<\_ACEOF
4986#define USE_PIPES 1
4987_ACEOF
4988
4989 cat >>confdefs.h <<\_ACEOF
4990#define DISABLE_SHADOW 1
4991_ACEOF
4992
4993 cat >>confdefs.h <<\_ACEOF
4994#define IP_TOS_IS_BROKEN 1
4995_ACEOF
4996
4997 cat >>confdefs.h <<\_ACEOF
4998#define NO_X11_UNIX_SOCKETS 1
4999_ACEOF
5000
5001 cat >>confdefs.h <<\_ACEOF
5002#define NO_IPPORT_RESERVED_CONCEPT 1
5003_ACEOF
5004
5005 cat >>confdefs.h <<\_ACEOF
5006#define DISABLE_FD_PASSING 1
5007_ACEOF
5008
5009 ;;
5010*-*-dgux*)
5011 cat >>confdefs.h <<\_ACEOF
5012#define IP_TOS_IS_BROKEN 1
5013_ACEOF
5014
5015 cat >>confdefs.h <<\_ACEOF
5016#define SETEUID_BREAKS_SETUID 1
5017_ACEOF
5018
5019 cat >>confdefs.h <<\_ACEOF
5020#define BROKEN_SETREUID 1
5021_ACEOF
5022
5023 cat >>confdefs.h <<\_ACEOF
5024#define BROKEN_SETREGID 1
5025_ACEOF
5026
5027 ;;
5028*-*-darwin*)
5029 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
5030echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
5031 if test "$cross_compiling" = yes; then
5032 echo "$as_me:$LINENO: result: assume it is working" >&5
5033echo "${ECHO_T}assume it is working" >&6
5034else
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#include <mach-o/dyld.h>
5042main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
5043 exit(0);
5044 else
5045 exit(1);
5046}
5047_ACEOF
5048rm -f conftest$ac_exeext
5049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050 (eval $ac_link) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 (eval $ac_try) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5059 echo "$as_me:$LINENO: result: working" >&5
5060echo "${ECHO_T}working" >&6
5061else
5062 echo "$as_me: program exited with status $ac_status" >&5
5063echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066( exit $ac_status )
5067echo "$as_me:$LINENO: result: buggy" >&5
5068echo "${ECHO_T}buggy" >&6
5069 cat >>confdefs.h <<\_ACEOF
5070#define BROKEN_GETADDRINFO 1
5071_ACEOF
5072
5073fi
5074rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5075fi
5076 cat >>confdefs.h <<\_ACEOF
5077#define SETEUID_BREAKS_SETUID 1
5078_ACEOF
5079
5080 cat >>confdefs.h <<\_ACEOF
5081#define BROKEN_SETREUID 1
5082_ACEOF
5083
5084 cat >>confdefs.h <<\_ACEOF
5085#define BROKEN_SETREGID 1
5086_ACEOF
5087
5088 cat >>confdefs.h <<_ACEOF
5089#define BIND_8_COMPAT 1
5090_ACEOF
5091
5092 ;;
5093*-*-hpux10.26)
5094 if test -z "$GCC"; then
5095 CFLAGS="$CFLAGS -Ae"
5096 fi
5097 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5098 IPADDR_IN_DISPLAY=yes
5099 cat >>confdefs.h <<\_ACEOF
5100#define HAVE_SECUREWARE 1
5101_ACEOF
5102
5103 cat >>confdefs.h <<\_ACEOF
5104#define USE_PIPES 1
5105_ACEOF
5106
5107 cat >>confdefs.h <<\_ACEOF
5108#define LOGIN_NO_ENDOPT 1
5109_ACEOF
5110
5111 cat >>confdefs.h <<\_ACEOF
5112#define LOGIN_NEEDS_UTMPX 1
5113_ACEOF
5114
5115 cat >>confdefs.h <<\_ACEOF
5116#define LOCKED_PASSWD_STRING "*"
5117_ACEOF
5118
5119 cat >>confdefs.h <<\_ACEOF
5120#define SPT_TYPE SPT_PSTAT
5121_ACEOF
5122
5123 LIBS="$LIBS -lsec -lsecpw"
5124
5125echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5126echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5127if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130 ac_check_lib_save_LIBS=$LIBS
5131LIBS="-lxnet $LIBS"
5132cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h. */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h. */
5138
5139/* Override any gcc2 internal prototype to avoid an error. */
5140#ifdef __cplusplus
5141extern "C"
5142#endif
5143/* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */
5145char t_error ();
5146int
5147main ()
5148{
5149t_error ();
5150 ;
5151 return 0;
5152}
5153_ACEOF
5154rm -f conftest.$ac_objext conftest$ac_exeext
5155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try='test -s conftest$ac_exeext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_lib_xnet_t_error=yes
5177else
5178 echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181ac_cv_lib_xnet_t_error=no
5182fi
5183rm -f conftest.err conftest.$ac_objext \
5184 conftest$ac_exeext conftest.$ac_ext
5185LIBS=$ac_check_lib_save_LIBS
5186fi
5187echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5188echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5189if test $ac_cv_lib_xnet_t_error = yes; then
5190 cat >>confdefs.h <<_ACEOF
5191#define HAVE_LIBXNET 1
5192_ACEOF
5193
5194 LIBS="-lxnet $LIBS"
5195
5196else
5197 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5198echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5199 { (exit 1); exit 1; }; }
5200fi
5201
5202 disable_ptmx_check=yes
5203 ;;
5204*-*-hpux10*)
5205 if test -z "$GCC"; then
5206 CFLAGS="$CFLAGS -Ae"
5207 fi
5208 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5209 IPADDR_IN_DISPLAY=yes
5210 cat >>confdefs.h <<\_ACEOF
5211#define USE_PIPES 1
5212_ACEOF
5213
5214 cat >>confdefs.h <<\_ACEOF
5215#define LOGIN_NO_ENDOPT 1
5216_ACEOF
5217
5218 cat >>confdefs.h <<\_ACEOF
5219#define LOGIN_NEEDS_UTMPX 1
5220_ACEOF
5221
5222 cat >>confdefs.h <<\_ACEOF
5223#define LOCKED_PASSWD_STRING "*"
5224_ACEOF
5225
5226 cat >>confdefs.h <<\_ACEOF
5227#define SPT_TYPE SPT_PSTAT
5228_ACEOF
5229
5230 LIBS="$LIBS -lsec"
5231
5232echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5233echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5234if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 ac_check_lib_save_LIBS=$LIBS
5238LIBS="-lxnet $LIBS"
5239cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
5245
5246/* Override any gcc2 internal prototype to avoid an error. */
5247#ifdef __cplusplus
5248extern "C"
5249#endif
5250/* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252char t_error ();
5253int
5254main ()
5255{
5256t_error ();
5257 ;
5258 return 0;
5259}
5260_ACEOF
5261rm -f conftest.$ac_objext conftest$ac_exeext
5262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_lib_xnet_t_error=yes
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288ac_cv_lib_xnet_t_error=no
5289fi
5290rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292LIBS=$ac_check_lib_save_LIBS
5293fi
5294echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5295echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5296if test $ac_cv_lib_xnet_t_error = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298#define HAVE_LIBXNET 1
5299_ACEOF
5300
5301 LIBS="-lxnet $LIBS"
5302
5303else
5304 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5305echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5306 { (exit 1); exit 1; }; }
5307fi
5308
5309 ;;
5310*-*-hpux11*)
5311 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5312 IPADDR_IN_DISPLAY=yes
5313 cat >>confdefs.h <<\_ACEOF
5314#define PAM_SUN_CODEBASE 1
5315_ACEOF
5316
5317 cat >>confdefs.h <<\_ACEOF
5318#define USE_PIPES 1
5319_ACEOF
5320
5321 cat >>confdefs.h <<\_ACEOF
5322#define LOGIN_NO_ENDOPT 1
5323_ACEOF
5324
5325 cat >>confdefs.h <<\_ACEOF
5326#define LOGIN_NEEDS_UTMPX 1
5327_ACEOF
5328
5329 cat >>confdefs.h <<\_ACEOF
5330#define DISABLE_UTMP 1
5331_ACEOF
5332
5333 cat >>confdefs.h <<\_ACEOF
5334#define LOCKED_PASSWD_STRING "*"
5335_ACEOF
5336
5337 cat >>confdefs.h <<\_ACEOF
5338#define SPT_TYPE SPT_PSTAT
5339_ACEOF
5340
5341
5342cat >>confdefs.h <<\_ACEOF
5343#define USE_BTMP 1
5344_ACEOF
5345
5346 check_for_hpux_broken_getaddrinfo=1
5347 check_for_conflicting_getspnam=1
5348 LIBS="$LIBS -lsec"
5349
5350echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5351echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5352if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 ac_check_lib_save_LIBS=$LIBS
5356LIBS="-lxnet $LIBS"
5357cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h. */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
5362/* end confdefs.h. */
5363
5364/* Override any gcc2 internal prototype to avoid an error. */
5365#ifdef __cplusplus
5366extern "C"
5367#endif
5368/* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5370char t_error ();
5371int
5372main ()
5373{
5374t_error ();
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext conftest$ac_exeext
5380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5381 (eval $ac_link) 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest$ac_exeext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_lib_xnet_t_error=yes
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406ac_cv_lib_xnet_t_error=no
5407fi
5408rm -f conftest.err conftest.$ac_objext \
5409 conftest$ac_exeext conftest.$ac_ext
5410LIBS=$ac_check_lib_save_LIBS
5411fi
5412echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5413echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5414if test $ac_cv_lib_xnet_t_error = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416#define HAVE_LIBXNET 1
5417_ACEOF
5418
5419 LIBS="-lxnet $LIBS"
5420
5421else
5422 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5423echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5424 { (exit 1); exit 1; }; }
5425fi
5426
5427 ;;
5428*-*-irix5*)
5429 PATH="$PATH:/usr/etc"
5430 cat >>confdefs.h <<\_ACEOF
5431#define BROKEN_INET_NTOA 1
5432_ACEOF
5433
5434 cat >>confdefs.h <<\_ACEOF
5435#define SETEUID_BREAKS_SETUID 1
5436_ACEOF
5437
5438 cat >>confdefs.h <<\_ACEOF
5439#define BROKEN_SETREUID 1
5440_ACEOF
5441
5442 cat >>confdefs.h <<\_ACEOF
5443#define BROKEN_SETREGID 1
5444_ACEOF
5445
5446 cat >>confdefs.h <<\_ACEOF
5447#define WITH_ABBREV_NO_TTY 1
5448_ACEOF
5449
5450 cat >>confdefs.h <<\_ACEOF
5451#define LOCKED_PASSWD_STRING "*LK*"
5452_ACEOF
5453
5454 ;;
5455*-*-irix6*)
5456 PATH="$PATH:/usr/etc"
5457 cat >>confdefs.h <<\_ACEOF
5458#define WITH_IRIX_ARRAY 1
5459_ACEOF
5460
5461 cat >>confdefs.h <<\_ACEOF
5462#define WITH_IRIX_PROJECT 1
5463_ACEOF
5464
5465 cat >>confdefs.h <<\_ACEOF
5466#define WITH_IRIX_AUDIT 1
5467_ACEOF
5468
5469 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
5470echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
5471if test "${ac_cv_func_jlimit_startjob+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474 cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h. */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
5479/* end confdefs.h. */
5480/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
5481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5482#define jlimit_startjob innocuous_jlimit_startjob
5483
5484/* System header to define __stub macros and hopefully few prototypes,
5485 which can conflict with char jlimit_startjob (); below.
5486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5487 <limits.h> exists even on freestanding compilers. */
5488
5489#ifdef __STDC__
5490# include <limits.h>
5491#else
5492# include <assert.h>
5493#endif
5494
5495#undef jlimit_startjob
5496
5497/* Override any gcc2 internal prototype to avoid an error. */
5498#ifdef __cplusplus
5499extern "C"
5500{
5501#endif
5502/* We use char because int might match the return type of a gcc2
5503 builtin and then its argument prototype would still apply. */
5504char jlimit_startjob ();
5505/* The GNU C library defines this for functions which it implements
5506 to always fail with ENOSYS. Some functions are actually named
5507 something starting with __ and the normal name is an alias. */
5508#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
5509choke me
5510#else
5511char (*f) () = jlimit_startjob;
5512#endif
5513#ifdef __cplusplus
5514}
5515#endif
5516
5517int
5518main ()
5519{
5520return f != jlimit_startjob;
5521 ;
5522 return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext conftest$ac_exeext
5526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 (eval $ac_try) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_func_jlimit_startjob=yes
5548else
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552ac_cv_func_jlimit_startjob=no
5553fi
5554rm -f conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556fi
5557echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
5558echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
5559if test $ac_cv_func_jlimit_startjob = yes; then
5560 cat >>confdefs.h <<\_ACEOF
5561#define WITH_IRIX_JOBS 1
5562_ACEOF
5563
5564fi
5565
5566 cat >>confdefs.h <<\_ACEOF
5567#define BROKEN_INET_NTOA 1
5568_ACEOF
5569
5570 cat >>confdefs.h <<\_ACEOF
5571#define SETEUID_BREAKS_SETUID 1
5572_ACEOF
5573
5574 cat >>confdefs.h <<\_ACEOF
5575#define BROKEN_SETREUID 1
5576_ACEOF
5577
5578 cat >>confdefs.h <<\_ACEOF
5579#define BROKEN_SETREGID 1
5580_ACEOF
5581
5582 cat >>confdefs.h <<\_ACEOF
5583#define BROKEN_UPDWTMPX 1
5584_ACEOF
5585
5586 cat >>confdefs.h <<\_ACEOF
5587#define WITH_ABBREV_NO_TTY 1
5588_ACEOF
5589
5590 cat >>confdefs.h <<\_ACEOF
5591#define LOCKED_PASSWD_STRING "*LK*"
5592_ACEOF
5593
5594 ;;
5595*-*-linux*)
5596 no_dev_ptmx=1
5597 check_for_libcrypt_later=1
5598 check_for_openpty_ctty_bug=1
5599 cat >>confdefs.h <<\_ACEOF
5600#define DONT_TRY_OTHER_AF 1
5601_ACEOF
5602
5603 cat >>confdefs.h <<\_ACEOF
5604#define PAM_TTY_KLUDGE 1
5605_ACEOF
5606
5607 cat >>confdefs.h <<\_ACEOF
5608#define LOCKED_PASSWD_PREFIX "!"
5609_ACEOF
5610
5611 cat >>confdefs.h <<\_ACEOF
5612#define SPT_TYPE SPT_REUSEARGV
5613_ACEOF
5614
5615 cat >>confdefs.h <<\_ACEOF
5616#define LINK_OPNOTSUPP_ERRNO EPERM
5617_ACEOF
5618
5619
5620cat >>confdefs.h <<\_ACEOF
5621#define _PATH_BTMP "/var/log/btmp"
5622_ACEOF
5623
5624
5625cat >>confdefs.h <<\_ACEOF
5626#define USE_BTMP 1
5627_ACEOF
5628
5629 inet6_default_4in6=yes
5630 case `uname -r` in
5631 1.*|2.0.*)
5632 cat >>confdefs.h <<\_ACEOF
5633#define BROKEN_CMSG_TYPE 1
5634_ACEOF
5635
5636 ;;
5637 esac
5638 ;;
5639mips-sony-bsd|mips-sony-newsos4)
5640 cat >>confdefs.h <<\_ACEOF
5641#define HAVE_NEWS4 1
5642_ACEOF
5643
5644 SONY=1
5645 ;;
5646*-*-netbsd*)
5647 check_for_libcrypt_before=1
5648 if test "x$withval" != "xno" ; then
5649 need_dash_r=1
5650 fi
5651 ;;
5652*-*-freebsd*)
5653 check_for_libcrypt_later=1
5654 ;;
5655*-*-bsdi*)
5656 cat >>confdefs.h <<\_ACEOF
5657#define SETEUID_BREAKS_SETUID 1
5658_ACEOF
5659
5660 cat >>confdefs.h <<\_ACEOF
5661#define BROKEN_SETREUID 1
5662_ACEOF
5663
5664 cat >>confdefs.h <<\_ACEOF
5665#define BROKEN_SETREGID 1
5666_ACEOF
5667
5668 ;;
5669*-next-*)
5670 conf_lastlog_location="/usr/adm/lastlog"
5671 conf_utmp_location=/etc/utmp
5672 conf_wtmp_location=/usr/adm/wtmp
5673 MAIL=/usr/spool/mail
5674 cat >>confdefs.h <<\_ACEOF
5675#define HAVE_NEXT 1
5676_ACEOF
5677
5678 cat >>confdefs.h <<\_ACEOF
5679#define BROKEN_REALPATH 1
5680_ACEOF
5681
5682 cat >>confdefs.h <<\_ACEOF
5683#define USE_PIPES 1
5684_ACEOF
5685
5686 cat >>confdefs.h <<\_ACEOF
5687#define BROKEN_SAVED_UIDS 1
5688_ACEOF
5689
5690 ;;
5691*-*-solaris*)
5692 if test "x$withval" != "xno" ; then
5693 need_dash_r=1
5694 fi
5695 cat >>confdefs.h <<\_ACEOF
5696#define PAM_SUN_CODEBASE 1
5697_ACEOF
5698
5699 cat >>confdefs.h <<\_ACEOF
5700#define LOGIN_NEEDS_UTMPX 1
5701_ACEOF
5702
5703 cat >>confdefs.h <<\_ACEOF
5704#define LOGIN_NEEDS_TERM 1
5705_ACEOF
5706
5707 cat >>confdefs.h <<\_ACEOF
5708#define PAM_TTY_KLUDGE 1
5709_ACEOF
5710
5711 cat >>confdefs.h <<\_ACEOF
5712#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
5713_ACEOF
5714
5715 cat >>confdefs.h <<\_ACEOF
5716#define LOCKED_PASSWD_STRING "*LK*"
5717_ACEOF
5718
5719 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
5720 cat >>confdefs.h <<\_ACEOF
5721#define SSHD_ACQUIRES_CTTY 1
5722_ACEOF
5723
5724 external_path_file=/etc/default/login
5725 # hardwire lastlog location (can't detect it on some versions)
5726 conf_lastlog_location="/var/adm/lastlog"
5727 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
5728echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
5729 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
5730 if test "$sol2ver" -ge 8; then
5731 echo "$as_me:$LINENO: result: yes" >&5
5732echo "${ECHO_T}yes" >&6
5733 cat >>confdefs.h <<\_ACEOF
5734#define DISABLE_UTMP 1
5735_ACEOF
5736
5737 cat >>confdefs.h <<\_ACEOF
5738#define DISABLE_WTMP 1
5739_ACEOF
5740
5741 else
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744 fi
5745 ;;
5746*-*-sunos4*)
5747 CPPFLAGS="$CPPFLAGS -DSUNOS4"
5748
5749for ac_func in getpwanam
5750do
5751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5752echo "$as_me:$LINENO: checking for $ac_func" >&5
5753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5754if eval "test \"\${$as_ac_var+set}\" = set"; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5765#define $ac_func innocuous_$ac_func
5766
5767/* System header to define __stub macros and hopefully few prototypes,
5768 which can conflict with char $ac_func (); below.
5769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5770 <limits.h> exists even on freestanding compilers. */
5771
5772#ifdef __STDC__
5773# include <limits.h>
5774#else
5775# include <assert.h>
5776#endif
5777
5778#undef $ac_func
5779
5780/* Override any gcc2 internal prototype to avoid an error. */
5781#ifdef __cplusplus
5782extern "C"
5783{
5784#endif
5785/* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787char $ac_func ();
5788/* The GNU C library defines this for functions which it implements
5789 to always fail with ENOSYS. Some functions are actually named
5790 something starting with __ and the normal name is an alias. */
5791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5792choke me
5793#else
5794char (*f) () = $ac_func;
5795#endif
5796#ifdef __cplusplus
5797}
5798#endif
5799
5800int
5801main ()
5802{
5803return f != $ac_func;
5804 ;
5805 return 0;
5806}
5807_ACEOF
5808rm -f conftest.$ac_objext conftest$ac_exeext
5809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5810 (eval $ac_link) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 eval "$as_ac_var=yes"
5831else
5832 echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835eval "$as_ac_var=no"
5836fi
5837rm -f conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5839fi
5840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5842if test `eval echo '${'$as_ac_var'}'` = yes; then
5843 cat >>confdefs.h <<_ACEOF
5844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5845_ACEOF
5846
5847fi
5848done
5849
5850 cat >>confdefs.h <<\_ACEOF
5851#define PAM_SUN_CODEBASE 1
5852_ACEOF
5853
5854 conf_utmp_location=/etc/utmp
5855 conf_wtmp_location=/var/adm/wtmp
5856 conf_lastlog_location=/var/adm/lastlog
5857 cat >>confdefs.h <<\_ACEOF
5858#define USE_PIPES 1
5859_ACEOF
5860
5861 ;;
5862*-ncr-sysv*)
5863 LIBS="$LIBS -lc89"
5864 cat >>confdefs.h <<\_ACEOF
5865#define USE_PIPES 1
5866_ACEOF
5867
5868 cat >>confdefs.h <<\_ACEOF
5869#define SSHD_ACQUIRES_CTTY 1
5870_ACEOF
5871
5872 cat >>confdefs.h <<\_ACEOF
5873#define SETEUID_BREAKS_SETUID 1
5874_ACEOF
5875
5876 cat >>confdefs.h <<\_ACEOF
5877#define BROKEN_SETREUID 1
5878_ACEOF
5879
5880 cat >>confdefs.h <<\_ACEOF
5881#define BROKEN_SETREGID 1
5882_ACEOF
5883
5884 ;;
5885*-sni-sysv*)
5886 # /usr/ucblib MUST NOT be searched on ReliantUNIX
5887
5888echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
5889echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5890if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893 ac_check_lib_save_LIBS=$LIBS
5894LIBS="-ldl $LIBS"
5895cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901
5902/* Override any gcc2 internal prototype to avoid an error. */
5903#ifdef __cplusplus
5904extern "C"
5905#endif
5906/* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5908char dlsym ();
5909int
5910main ()
5911{
5912dlsym ();
5913 ;
5914 return 0;
5915}
5916_ACEOF
5917rm -f conftest.$ac_objext conftest$ac_exeext
5918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_lib_dl_dlsym=yes
5940else
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944ac_cv_lib_dl_dlsym=no
5945fi
5946rm -f conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5948LIBS=$ac_check_lib_save_LIBS
5949fi
5950echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
5951echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5952if test $ac_cv_lib_dl_dlsym = yes; then
5953 cat >>confdefs.h <<_ACEOF
5954#define HAVE_LIBDL 1
5955_ACEOF
5956
5957 LIBS="-ldl $LIBS"
5958
5959fi
5960
5961 # -lresolv needs to be at then end of LIBS or DNS lookups break
5962 echo "$as_me:$LINENO: checking for resolv in -lres_query" >&5
5963echo $ECHO_N "checking for resolv in -lres_query... $ECHO_C" >&6
5964if test "${ac_cv_lib_res_query_resolv+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967 ac_check_lib_save_LIBS=$LIBS
5968LIBS="-lres_query $LIBS"
5969cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h. */
5975
5976/* Override any gcc2 internal prototype to avoid an error. */
5977#ifdef __cplusplus
5978extern "C"
5979#endif
5980/* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */
5982char resolv ();
5983int
5984main ()
5985{
5986resolv ();
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext conftest$ac_exeext
5992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993 (eval $ac_link) 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try='test -z "$ac_c_werror_flag"
6001 || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_cv_lib_res_query_resolv=yes
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018ac_cv_lib_res_query_resolv=no
6019fi
6020rm -f conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6022LIBS=$ac_check_lib_save_LIBS
6023fi
6024echo "$as_me:$LINENO: result: $ac_cv_lib_res_query_resolv" >&5
6025echo "${ECHO_T}$ac_cv_lib_res_query_resolv" >&6
6026if test $ac_cv_lib_res_query_resolv = yes; then
6027 LIBS="$LIBS -lresolv"
6028fi
6029
6030 IPADDR_IN_DISPLAY=yes
6031 cat >>confdefs.h <<\_ACEOF
6032#define USE_PIPES 1
6033_ACEOF
6034
6035 cat >>confdefs.h <<\_ACEOF
6036#define IP_TOS_IS_BROKEN 1
6037_ACEOF
6038
6039 cat >>confdefs.h <<\_ACEOF
6040#define SETEUID_BREAKS_SETUID 1
6041_ACEOF
6042
6043 cat >>confdefs.h <<\_ACEOF
6044#define BROKEN_SETREUID 1
6045_ACEOF
6046
6047 cat >>confdefs.h <<\_ACEOF
6048#define BROKEN_SETREGID 1
6049_ACEOF
6050
6051 cat >>confdefs.h <<\_ACEOF
6052#define SSHD_ACQUIRES_CTTY 1
6053_ACEOF
6054
6055 external_path_file=/etc/default/login
6056 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
6057 # Attention: always take care to bind libsocket and libnsl before libc,
6058 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
6059 ;;
6060# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
6061*-*-sysv4.2*)
6062 cat >>confdefs.h <<\_ACEOF
6063#define USE_PIPES 1
6064_ACEOF
6065
6066 cat >>confdefs.h <<\_ACEOF
6067#define SETEUID_BREAKS_SETUID 1
6068_ACEOF
6069
6070 cat >>confdefs.h <<\_ACEOF
6071#define BROKEN_SETREUID 1
6072_ACEOF
6073
6074 cat >>confdefs.h <<\_ACEOF
6075#define BROKEN_SETREGID 1
6076_ACEOF
6077
6078
6079cat >>confdefs.h <<\_ACEOF
6080#define PASSWD_NEEDS_USERNAME 1
6081_ACEOF
6082
6083 ;;
6084# UnixWare 7.x, OpenUNIX 8
6085*-*-sysv5*)
6086 cat >>confdefs.h <<\_ACEOF
6087#define USE_PIPES 1
6088_ACEOF
6089
6090 cat >>confdefs.h <<\_ACEOF
6091#define SETEUID_BREAKS_SETUID 1
6092_ACEOF
6093
6094 cat >>confdefs.h <<\_ACEOF
6095#define BROKEN_SETREUID 1
6096_ACEOF
6097
6098 cat >>confdefs.h <<\_ACEOF
6099#define BROKEN_SETREGID 1
6100_ACEOF
6101
6102
6103cat >>confdefs.h <<\_ACEOF
6104#define PASSWD_NEEDS_USERNAME 1
6105_ACEOF
6106
6107 ;;
6108*-*-sysv*)
6109 ;;
6110# SCO UNIX and OEM versions of SCO UNIX
6111*-*-sco3.2v4*)
6112 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
6113echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
6114 { (exit 1); exit 1; }; }
6115 ;;
6116# SCO OpenServer 5.x
6117*-*-sco3.2v5*)
6118 if test -z "$GCC"; then
6119 CFLAGS="$CFLAGS -belf"
6120 fi
6121 LIBS="$LIBS -lprot -lx -ltinfo -lm"
6122 no_dev_ptmx=1
6123 cat >>confdefs.h <<\_ACEOF
6124#define USE_PIPES 1
6125_ACEOF
6126
6127 cat >>confdefs.h <<\_ACEOF
6128#define HAVE_SECUREWARE 1
6129_ACEOF
6130
6131 cat >>confdefs.h <<\_ACEOF
6132#define DISABLE_SHADOW 1
6133_ACEOF
6134
6135 cat >>confdefs.h <<\_ACEOF
6136#define DISABLE_FD_PASSING 1
6137_ACEOF
6138
6139 cat >>confdefs.h <<\_ACEOF
6140#define SETEUID_BREAKS_SETUID 1
6141_ACEOF
6142
6143 cat >>confdefs.h <<\_ACEOF
6144#define BROKEN_SETREUID 1
6145_ACEOF
6146
6147 cat >>confdefs.h <<\_ACEOF
6148#define BROKEN_SETREGID 1
6149_ACEOF
6150
6151 cat >>confdefs.h <<\_ACEOF
6152#define WITH_ABBREV_NO_TTY 1
6153_ACEOF
6154
6155 cat >>confdefs.h <<\_ACEOF
6156#define BROKEN_UPDWTMPX 1
6157_ACEOF
6158
6159
6160cat >>confdefs.h <<\_ACEOF
6161#define PASSWD_NEEDS_USERNAME 1
6162_ACEOF
6163
6164
6165
6166for ac_func in getluid setluid
6167do
6168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6169echo "$as_me:$LINENO: checking for $ac_func" >&5
6170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6171if eval "test \"\${$as_ac_var+set}\" = set"; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 cat >conftest.$ac_ext <<_ACEOF
6175/* confdefs.h. */
6176_ACEOF
6177cat confdefs.h >>conftest.$ac_ext
6178cat >>conftest.$ac_ext <<_ACEOF
6179/* end confdefs.h. */
6180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6182#define $ac_func innocuous_$ac_func
6183
6184/* System header to define __stub macros and hopefully few prototypes,
6185 which can conflict with char $ac_func (); below.
6186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 <limits.h> exists even on freestanding compilers. */
6188
6189#ifdef __STDC__
6190# include <limits.h>
6191#else
6192# include <assert.h>
6193#endif
6194
6195#undef $ac_func
6196
6197/* Override any gcc2 internal prototype to avoid an error. */
6198#ifdef __cplusplus
6199extern "C"
6200{
6201#endif
6202/* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6204char $ac_func ();
6205/* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6209choke me
6210#else
6211char (*f) () = $ac_func;
6212#endif
6213#ifdef __cplusplus
6214}
6215#endif
6216
6217int
6218main ()
6219{
6220return f != $ac_func;
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext conftest$ac_exeext
6226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227 (eval $ac_link) 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag"
6235 || test ! -s conftest.err'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; } &&
6241 { ac_try='test -s conftest$ac_exeext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 eval "$as_ac_var=yes"
6248else
6249 echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252eval "$as_ac_var=no"
6253fi
6254rm -f conftest.err conftest.$ac_objext \
6255 conftest$ac_exeext conftest.$ac_ext
6256fi
6257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6259if test `eval echo '${'$as_ac_var'}'` = yes; then
6260 cat >>confdefs.h <<_ACEOF
6261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6262_ACEOF
6263
6264fi
6265done
6266
6267 MANTYPE=man
6268 TEST_SHELL=ksh
6269 ;;
6270*-*-unicosmk*)
6271 cat >>confdefs.h <<\_ACEOF
6272#define NO_SSH_LASTLOG 1
6273_ACEOF
6274
6275 cat >>confdefs.h <<\_ACEOF
6276#define SETEUID_BREAKS_SETUID 1
6277_ACEOF
6278
6279 cat >>confdefs.h <<\_ACEOF
6280#define BROKEN_SETREUID 1
6281_ACEOF
6282
6283 cat >>confdefs.h <<\_ACEOF
6284#define BROKEN_SETREGID 1
6285_ACEOF
6286
6287 cat >>confdefs.h <<\_ACEOF
6288#define USE_PIPES 1
6289_ACEOF
6290
6291 cat >>confdefs.h <<\_ACEOF
6292#define DISABLE_FD_PASSING 1
6293_ACEOF
6294
6295 LDFLAGS="$LDFLAGS"
6296 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6297 MANTYPE=cat
6298 ;;
6299*-*-unicosmp*)
6300 cat >>confdefs.h <<\_ACEOF
6301#define SETEUID_BREAKS_SETUID 1
6302_ACEOF
6303
6304 cat >>confdefs.h <<\_ACEOF
6305#define BROKEN_SETREUID 1
6306_ACEOF
6307
6308 cat >>confdefs.h <<\_ACEOF
6309#define BROKEN_SETREGID 1
6310_ACEOF
6311
6312 cat >>confdefs.h <<\_ACEOF
6313#define WITH_ABBREV_NO_TTY 1
6314_ACEOF
6315
6316 cat >>confdefs.h <<\_ACEOF
6317#define USE_PIPES 1
6318_ACEOF
6319
6320 cat >>confdefs.h <<\_ACEOF
6321#define DISABLE_FD_PASSING 1
6322_ACEOF
6323
6324 LDFLAGS="$LDFLAGS"
6325 LIBS="$LIBS -lgen -lacid -ldb"
6326 MANTYPE=cat
6327 ;;
6328*-*-unicos*)
6329 cat >>confdefs.h <<\_ACEOF
6330#define SETEUID_BREAKS_SETUID 1
6331_ACEOF
6332
6333 cat >>confdefs.h <<\_ACEOF
6334#define BROKEN_SETREUID 1
6335_ACEOF
6336
6337 cat >>confdefs.h <<\_ACEOF
6338#define BROKEN_SETREGID 1
6339_ACEOF
6340
6341 cat >>confdefs.h <<\_ACEOF
6342#define USE_PIPES 1
6343_ACEOF
6344
6345 cat >>confdefs.h <<\_ACEOF
6346#define DISABLE_FD_PASSING 1
6347_ACEOF
6348
6349 cat >>confdefs.h <<\_ACEOF
6350#define NO_SSH_LASTLOG 1
6351_ACEOF
6352
6353 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
6354 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6355 MANTYPE=cat
6356 ;;
6357*-dec-osf*)
6358 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
6359echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
6360 no_osfsia=""
6361
6362# Check whether --with-osfsia or --without-osfsia was given.
6363if test "${with_osfsia+set}" = set; then
6364 withval="$with_osfsia"
6365
6366 if test "x$withval" = "xno" ; then
6367 echo "$as_me:$LINENO: result: disabled" >&5
6368echo "${ECHO_T}disabled" >&6
6369 no_osfsia=1
6370 fi
6371
6372fi;
6373 if test -z "$no_osfsia" ; then
6374 if test -f /etc/sia/matrix.conf; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377 cat >>confdefs.h <<\_ACEOF
6378#define HAVE_OSF_SIA 1
6379_ACEOF
6380
6381 cat >>confdefs.h <<\_ACEOF
6382#define DISABLE_LOGIN 1
6383_ACEOF
6384
6385 cat >>confdefs.h <<\_ACEOF
6386#define DISABLE_FD_PASSING 1
6387_ACEOF
6388
6389 LIBS="$LIBS -lsecurity -ldb -lm -laud"
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393 cat >>confdefs.h <<\_ACEOF
6394#define LOCKED_PASSWD_SUBSTR "Nologin"
6395_ACEOF
6396
6397 fi
6398 fi
6399 cat >>confdefs.h <<\_ACEOF
6400#define BROKEN_GETADDRINFO 1
6401_ACEOF
6402
6403 cat >>confdefs.h <<\_ACEOF
6404#define SETEUID_BREAKS_SETUID 1
6405_ACEOF
6406
6407 cat >>confdefs.h <<\_ACEOF
6408#define BROKEN_SETREUID 1
6409_ACEOF
6410
6411 cat >>confdefs.h <<\_ACEOF
6412#define BROKEN_SETREGID 1
6413_ACEOF
6414
6415 ;;
6416
6417*-*-nto-qnx)
6418 cat >>confdefs.h <<\_ACEOF
6419#define USE_PIPES 1
6420_ACEOF
6421
6422 cat >>confdefs.h <<\_ACEOF
6423#define NO_X11_UNIX_SOCKETS 1
6424_ACEOF
6425
6426 cat >>confdefs.h <<\_ACEOF
6427#define MISSING_NFDBITS 1
6428_ACEOF
6429
6430 cat >>confdefs.h <<\_ACEOF
6431#define MISSING_HOWMANY 1
6432_ACEOF
6433
6434 cat >>confdefs.h <<\_ACEOF
6435#define MISSING_FD_MASK 1
6436_ACEOF
6437
6438 ;;
6439esac
6440
6441# Allow user to specify flags
6442
6443# Check whether --with-cflags or --without-cflags was given.
6444if test "${with_cflags+set}" = set; then
6445 withval="$with_cflags"
6446
6447 if test -n "$withval" && test "x$withval" != "xno" && \
6448 test "x${withval}" != "xyes"; then
6449 CFLAGS="$CFLAGS $withval"
6450 fi
6451
6452
6453fi;
6454
6455# Check whether --with-cppflags or --without-cppflags was given.
6456if test "${with_cppflags+set}" = set; then
6457 withval="$with_cppflags"
6458
6459 if test -n "$withval" && test "x$withval" != "xno" && \
6460 test "x${withval}" != "xyes"; then
6461 CPPFLAGS="$CPPFLAGS $withval"
6462 fi
6463
6464
6465fi;
6466
6467# Check whether --with-ldflags or --without-ldflags was given.
6468if test "${with_ldflags+set}" = set; then
6469 withval="$with_ldflags"
6470
6471 if test -n "$withval" && test "x$withval" != "xno" && \
6472 test "x${withval}" != "xyes"; then
6473 LDFLAGS="$LDFLAGS $withval"
6474 fi
6475
6476
6477fi;
6478
6479# Check whether --with-libs or --without-libs was given.
6480if test "${with_libs+set}" = set; then
6481 withval="$with_libs"
6482
6483 if test -n "$withval" && test "x$withval" != "xno" && \
6484 test "x${withval}" != "xyes"; then
6485 LIBS="$LIBS $withval"
6486 fi
6487
6488
6489fi;
6490
6491echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
6492echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
6493if test "$cross_compiling" = yes; then
6494 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
6495echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
6496
6497else
6498 cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
6504
6505#include <stdio.h>
6506int main(){exit(0);}
6507
6508_ACEOF
6509rm -f conftest$ac_exeext
6510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
6522else
6523 echo "$as_me: program exited with status $ac_status" >&5
6524echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527( exit $ac_status )
6528
6529 echo "$as_me:$LINENO: result: no" >&5
6530echo "${ECHO_T}no" >&6
6531 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
6532echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
6533 { (exit 1); exit 1; }; }
6534
6535fi
6536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6537fi
6538
6539# Checks for header files.
6540
6541echo "$as_me:$LINENO: checking for egrep" >&5
6542echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6543if test "${ac_cv_prog_egrep+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6547 then ac_cv_prog_egrep='grep -E'
6548 else ac_cv_prog_egrep='egrep'
6549 fi
6550fi
6551echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6552echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6553 EGREP=$ac_cv_prog_egrep
6554
6555
6556echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6557echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6558if test "${ac_cv_header_stdc+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 <stdlib.h>
6568#include <stdarg.h>
6569#include <string.h>
6570#include <float.h>
6571
6572int
6573main ()
6574{
6575
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_header_stdc=yes
6603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607ac_cv_header_stdc=no
6608fi
6609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6610
6611if test $ac_cv_header_stdc = yes; then
6612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6613 cat >conftest.$ac_ext <<_ACEOF
6614/* confdefs.h. */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
6618/* end confdefs.h. */
6619#include <string.h>
6620
6621_ACEOF
6622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6623 $EGREP "memchr" >/dev/null 2>&1; then
6624 :
6625else
6626 ac_cv_header_stdc=no
6627fi
6628rm -f conftest*
6629
6630fi
6631
6632if test $ac_cv_header_stdc = yes; then
6633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6634 cat >conftest.$ac_ext <<_ACEOF
6635/* confdefs.h. */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h. */
6640#include <stdlib.h>
6641
6642_ACEOF
6643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 $EGREP "free" >/dev/null 2>&1; then
6645 :
6646else
6647 ac_cv_header_stdc=no
6648fi
6649rm -f conftest*
6650
6651fi
6652
6653if test $ac_cv_header_stdc = yes; then
6654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6655 if test "$cross_compiling" = yes; then
6656 :
6657else
6658 cat >conftest.$ac_ext <<_ACEOF
6659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h. */
6664#include <ctype.h>
6665#if ((' ' & 0x0FF) == 0x020)
6666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6668#else
6669# define ISLOWER(c) \
6670 (('a' <= (c) && (c) <= 'i') \
6671 || ('j' <= (c) && (c) <= 'r') \
6672 || ('s' <= (c) && (c) <= 'z'))
6673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6674#endif
6675
6676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6677int
6678main ()
6679{
6680 int i;
6681 for (i = 0; i < 256; i++)
6682 if (XOR (islower (i), ISLOWER (i))
6683 || toupper (i) != TOUPPER (i))
6684 exit(2);
6685 exit (0);
6686}
6687_ACEOF
6688rm -f conftest$ac_exeext
6689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 :
6700else
6701 echo "$as_me: program exited with status $ac_status" >&5
6702echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705( exit $ac_status )
6706ac_cv_header_stdc=no
6707fi
6708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6709fi
6710fi
6711fi
6712echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6713echo "${ECHO_T}$ac_cv_header_stdc" >&6
6714if test $ac_cv_header_stdc = yes; then
6715
6716cat >>confdefs.h <<\_ACEOF
6717#define STDC_HEADERS 1
6718_ACEOF
6719
6720fi
6721
6722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6733 inttypes.h stdint.h unistd.h
6734do
6735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736echo "$as_me:$LINENO: checking for $ac_header" >&5
6737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6738if eval "test \"\${$as_ac_Header+set}\" = set"; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h. */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h. */
6747$ac_includes_default
6748
6749#include <$ac_header>
6750_ACEOF
6751rm -f conftest.$ac_objext
6752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753 (eval $ac_compile) 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest.$ac_objext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 eval "$as_ac_Header=yes"
6774else
6775 echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778eval "$as_ac_Header=no"
6779fi
6780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6781fi
6782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6784if test `eval echo '${'$as_ac_Header'}'` = yes; then
6785 cat >>confdefs.h <<_ACEOF
6786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787_ACEOF
6788
6789fi
6790
6791done
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849for ac_header in bstring.h crypt.h dirent.h endian.h features.h \
6850 floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \
6851 login_cap.h maillock.h ndir.h netdb.h netgroup.h \
6852 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \
6853 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
6854 strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \
6855 sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \
6856 sys/pstat.h sys/select.h sys/stat.h sys/stream.h \
6857 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \
6858 time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h
6859do
6860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6861if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862 echo "$as_me:$LINENO: checking for $ac_header" >&5
6863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866fi
6867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6869else
6870 # Is the header compilable?
6871echo "$as_me:$LINENO: checking $ac_header usability" >&5
6872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6873cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
6879$ac_includes_default
6880#include <$ac_header>
6881_ACEOF
6882rm -f conftest.$ac_objext
6883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884 (eval $ac_compile) 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag"
6892 || test ! -s conftest.err'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; } &&
6898 { ac_try='test -s conftest.$ac_objext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_header_compiler=yes
6905else
6906 echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909ac_header_compiler=no
6910fi
6911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6913echo "${ECHO_T}$ac_header_compiler" >&6
6914
6915# Is the header present?
6916echo "$as_me:$LINENO: checking $ac_header presence" >&5
6917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6918cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h. */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h. */
6924#include <$ac_header>
6925_ACEOF
6926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } >/dev/null; then
6934 if test -s conftest.err; then
6935 ac_cpp_err=$ac_c_preproc_warn_flag
6936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6937 else
6938 ac_cpp_err=
6939 fi
6940else
6941 ac_cpp_err=yes
6942fi
6943if test -z "$ac_cpp_err"; then
6944 ac_header_preproc=yes
6945else
6946 echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
6949 ac_header_preproc=no
6950fi
6951rm -f conftest.err conftest.$ac_ext
6952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6953echo "${ECHO_T}$ac_header_preproc" >&6
6954
6955# So? What about this header?
6956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6957 yes:no: )
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6962 ac_header_preproc=yes
6963 ;;
6964 no:yes:* )
6965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6977 (
6978 cat <<\_ASBOX
6979## ---------------------------------- ##
6980## Report this to the OpenSSH lists. ##
6981## ---------------------------------- ##
6982_ASBOX
6983 ) |
6984 sed "s/^/$as_me: WARNING: /" >&2
6985 ;;
6986esac
6987echo "$as_me:$LINENO: checking for $ac_header" >&5
6988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6989if eval "test \"\${$as_ac_Header+set}\" = set"; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992 eval "$as_ac_Header=\$ac_header_preproc"
6993fi
6994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6996
6997fi
6998if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001_ACEOF
7002
7003fi
7004
7005done
7006
7007
7008# sys/ptms.h requires sys/stream.h to be included first on Solaris
7009
7010for ac_header in sys/ptms.h
7011do
7012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7013echo "$as_me:$LINENO: checking for $ac_header" >&5
7014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 cat >conftest.$ac_ext <<_ACEOF
7019/* confdefs.h. */
7020_ACEOF
7021cat confdefs.h >>conftest.$ac_ext
7022cat >>conftest.$ac_ext <<_ACEOF
7023/* end confdefs.h. */
7024
7025#ifdef HAVE_SYS_STREAM_H
7026# include <sys/stream.h>
7027#endif
7028
7029
7030#include <$ac_header>
7031_ACEOF
7032rm -f conftest.$ac_objext
7033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag"
7042 || test ! -s conftest.err'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; } &&
7048 { ac_try='test -s conftest.$ac_objext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 eval "$as_ac_Header=yes"
7055else
7056 echo "$as_me: failed program was:" >&5
7057sed 's/^/| /' conftest.$ac_ext >&5
7058
7059eval "$as_ac_Header=no"
7060fi
7061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062fi
7063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7065if test `eval echo '${'$as_ac_Header'}'` = yes; then
7066 cat >>confdefs.h <<_ACEOF
7067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068_ACEOF
7069
7070fi
7071
7072done
7073
7074
7075# Checks for libraries.
7076echo "$as_me:$LINENO: checking for yp_match" >&5
7077echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
7078if test "${ac_cv_func_yp_match+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h. */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h. */
7087/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
7088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7089#define yp_match innocuous_yp_match
7090
7091/* System header to define __stub macros and hopefully few prototypes,
7092 which can conflict with char yp_match (); below.
7093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094 <limits.h> exists even on freestanding compilers. */
7095
7096#ifdef __STDC__
7097# include <limits.h>
7098#else
7099# include <assert.h>
7100#endif
7101
7102#undef yp_match
7103
7104/* Override any gcc2 internal prototype to avoid an error. */
7105#ifdef __cplusplus
7106extern "C"
7107{
7108#endif
7109/* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7111char yp_match ();
7112/* The GNU C library defines this for functions which it implements
7113 to always fail with ENOSYS. Some functions are actually named
7114 something starting with __ and the normal name is an alias. */
7115#if defined (__stub_yp_match) || defined (__stub___yp_match)
7116choke me
7117#else
7118char (*f) () = yp_match;
7119#endif
7120#ifdef __cplusplus
7121}
7122#endif
7123
7124int
7125main ()
7126{
7127return f != yp_match;
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext conftest$ac_exeext
7133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7134 (eval $ac_link) 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try='test -z "$ac_c_werror_flag"
7142 || test ! -s conftest.err'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; } &&
7148 { ac_try='test -s conftest$ac_exeext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_cv_func_yp_match=yes
7155else
7156 echo "$as_me: failed program was:" >&5
7157sed 's/^/| /' conftest.$ac_ext >&5
7158
7159ac_cv_func_yp_match=no
7160fi
7161rm -f conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7163fi
7164echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
7165echo "${ECHO_T}$ac_cv_func_yp_match" >&6
7166if test $ac_cv_func_yp_match = yes; then
7167 :
7168else
7169
7170echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
7171echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
7172if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175 ac_check_lib_save_LIBS=$LIBS
7176LIBS="-lnsl $LIBS"
7177cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183
7184/* Override any gcc2 internal prototype to avoid an error. */
7185#ifdef __cplusplus
7186extern "C"
7187#endif
7188/* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190char yp_match ();
7191int
7192main ()
7193{
7194yp_match ();
7195 ;
7196 return 0;
7197}
7198_ACEOF
7199rm -f conftest.$ac_objext conftest$ac_exeext
7200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201 (eval $ac_link) 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -z "$ac_c_werror_flag"
7209 || test ! -s conftest.err'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; } &&
7215 { ac_try='test -s conftest$ac_exeext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 (eval $ac_try) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 ac_cv_lib_nsl_yp_match=yes
7222else
7223 echo "$as_me: failed program was:" >&5
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
7226ac_cv_lib_nsl_yp_match=no
7227fi
7228rm -f conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext conftest.$ac_ext
7230LIBS=$ac_check_lib_save_LIBS
7231fi
7232echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
7233echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
7234if test $ac_cv_lib_nsl_yp_match = yes; then
7235 cat >>confdefs.h <<_ACEOF
7236#define HAVE_LIBNSL 1
7237_ACEOF
7238
7239 LIBS="-lnsl $LIBS"
7240
7241fi
7242
7243fi
7244
7245echo "$as_me:$LINENO: checking for setsockopt" >&5
7246echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
7247if test "${ac_cv_func_setsockopt+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250 cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h. */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h. */
7256/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
7257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7258#define setsockopt innocuous_setsockopt
7259
7260/* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char setsockopt (); below.
7262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 <limits.h> exists even on freestanding compilers. */
7264
7265#ifdef __STDC__
7266# include <limits.h>
7267#else
7268# include <assert.h>
7269#endif
7270
7271#undef setsockopt
7272
7273/* Override any gcc2 internal prototype to avoid an error. */
7274#ifdef __cplusplus
7275extern "C"
7276{
7277#endif
7278/* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280char setsockopt ();
7281/* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7284#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
7285choke me
7286#else
7287char (*f) () = setsockopt;
7288#endif
7289#ifdef __cplusplus
7290}
7291#endif
7292
7293int
7294main ()
7295{
7296return f != setsockopt;
7297 ;
7298 return 0;
7299}
7300_ACEOF
7301rm -f conftest.$ac_objext conftest$ac_exeext
7302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try='test -s conftest$ac_exeext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_cv_func_setsockopt=yes
7324else
7325 echo "$as_me: failed program was:" >&5
7326sed 's/^/| /' conftest.$ac_ext >&5
7327
7328ac_cv_func_setsockopt=no
7329fi
7330rm -f conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7332fi
7333echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
7334echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
7335if test $ac_cv_func_setsockopt = yes; then
7336 :
7337else
7338
7339echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
7340echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
7341if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344 ac_check_lib_save_LIBS=$LIBS
7345LIBS="-lsocket $LIBS"
7346cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h. */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h. */
7352
7353/* Override any gcc2 internal prototype to avoid an error. */
7354#ifdef __cplusplus
7355extern "C"
7356#endif
7357/* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359char setsockopt ();
7360int
7361main ()
7362{
7363setsockopt ();
7364 ;
7365 return 0;
7366}
7367_ACEOF
7368rm -f conftest.$ac_objext conftest$ac_exeext
7369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7370 (eval $ac_link) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag"
7378 || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_cv_lib_socket_setsockopt=yes
7391else
7392 echo "$as_me: failed program was:" >&5
7393sed 's/^/| /' conftest.$ac_ext >&5
7394
7395ac_cv_lib_socket_setsockopt=no
7396fi
7397rm -f conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7399LIBS=$ac_check_lib_save_LIBS
7400fi
7401echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
7402echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
7403if test $ac_cv_lib_socket_setsockopt = yes; then
7404 cat >>confdefs.h <<_ACEOF
7405#define HAVE_LIBSOCKET 1
7406_ACEOF
7407
7408 LIBS="-lsocket $LIBS"
7409
7410fi
7411
7412fi
7413
7414
7415
7416for ac_func in dirname
7417do
7418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7419echo "$as_me:$LINENO: checking for $ac_func" >&5
7420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7421if eval "test \"\${$as_ac_var+set}\" = set"; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h. */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h. */
7430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7432#define $ac_func innocuous_$ac_func
7433
7434/* System header to define __stub macros and hopefully few prototypes,
7435 which can conflict with char $ac_func (); below.
7436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7437 <limits.h> exists even on freestanding compilers. */
7438
7439#ifdef __STDC__
7440# include <limits.h>
7441#else
7442# include <assert.h>
7443#endif
7444
7445#undef $ac_func
7446
7447/* Override any gcc2 internal prototype to avoid an error. */
7448#ifdef __cplusplus
7449extern "C"
7450{
7451#endif
7452/* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7454char $ac_func ();
7455/* The GNU C library defines this for functions which it implements
7456 to always fail with ENOSYS. Some functions are actually named
7457 something starting with __ and the normal name is an alias. */
7458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7459choke me
7460#else
7461char (*f) () = $ac_func;
7462#endif
7463#ifdef __cplusplus
7464}
7465#endif
7466
7467int
7468main ()
7469{
7470return f != $ac_func;
7471 ;
7472 return 0;
7473}
7474_ACEOF
7475rm -f conftest.$ac_objext conftest$ac_exeext
7476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -z "$ac_c_werror_flag"
7485 || test ! -s conftest.err'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 (eval $ac_try) 2>&5
7488 ac_status=$?
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; } &&
7491 { ac_try='test -s conftest$ac_exeext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 eval "$as_ac_var=yes"
7498else
7499 echo "$as_me: failed program was:" >&5
7500sed 's/^/| /' conftest.$ac_ext >&5
7501
7502eval "$as_ac_var=no"
7503fi
7504rm -f conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7506fi
7507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7509if test `eval echo '${'$as_ac_var'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF
7511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7512_ACEOF
7513
7514for ac_header in libgen.h
7515do
7516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7517if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518 echo "$as_me:$LINENO: checking for $ac_header" >&5
7519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7520if eval "test \"\${$as_ac_Header+set}\" = set"; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522fi
7523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7525else
7526 # Is the header compilable?
7527echo "$as_me:$LINENO: checking $ac_header usability" >&5
7528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7529cat >conftest.$ac_ext <<_ACEOF
7530/* confdefs.h. */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h. */
7535$ac_includes_default
7536#include <$ac_header>
7537_ACEOF
7538rm -f conftest.$ac_objext
7539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_header_compiler=yes
7561else
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565ac_header_compiler=no
7566fi
7567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7568echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7569echo "${ECHO_T}$ac_header_compiler" >&6
7570
7571# Is the header present?
7572echo "$as_me:$LINENO: checking $ac_header presence" >&5
7573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7574cat >conftest.$ac_ext <<_ACEOF
7575/* confdefs.h. */
7576_ACEOF
7577cat confdefs.h >>conftest.$ac_ext
7578cat >>conftest.$ac_ext <<_ACEOF
7579/* end confdefs.h. */
7580#include <$ac_header>
7581_ACEOF
7582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } >/dev/null; then
7590 if test -s conftest.err; then
7591 ac_cpp_err=$ac_c_preproc_warn_flag
7592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7593 else
7594 ac_cpp_err=
7595 fi
7596else
7597 ac_cpp_err=yes
7598fi
7599if test -z "$ac_cpp_err"; then
7600 ac_header_preproc=yes
7601else
7602 echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_header_preproc=no
7606fi
7607rm -f conftest.err conftest.$ac_ext
7608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7609echo "${ECHO_T}$ac_header_preproc" >&6
7610
7611# So? What about this header?
7612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7613 yes:no: )
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7618 ac_header_preproc=yes
7619 ;;
7620 no:yes:* )
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7633 (
7634 cat <<\_ASBOX
7635## ---------------------------------- ##
7636## Report this to the OpenSSH lists. ##
7637## ---------------------------------- ##
7638_ASBOX
7639 ) |
7640 sed "s/^/$as_me: WARNING: /" >&2
7641 ;;
7642esac
7643echo "$as_me:$LINENO: checking for $ac_header" >&5
7644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7645if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647else
7648 eval "$as_ac_Header=\$ac_header_preproc"
7649fi
7650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7652
7653fi
7654if test `eval echo '${'$as_ac_Header'}'` = yes; then
7655 cat >>confdefs.h <<_ACEOF
7656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7657_ACEOF
7658
7659fi
7660
7661done
7662
7663else
7664
7665 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7666echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7667if test "${ac_cv_lib_gen_dirname+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 ac_check_lib_save_LIBS=$LIBS
7671LIBS="-lgen $LIBS"
7672cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h. */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h. */
7678
7679/* Override any gcc2 internal prototype to avoid an error. */
7680#ifdef __cplusplus
7681extern "C"
7682#endif
7683/* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7685char dirname ();
7686int
7687main ()
7688{
7689dirname ();
7690 ;
7691 return 0;
7692}
7693_ACEOF
7694rm -f conftest.$ac_objext conftest$ac_exeext
7695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -z "$ac_c_werror_flag"
7704 || test ! -s conftest.err'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; } &&
7710 { ac_try='test -s conftest$ac_exeext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_lib_gen_dirname=yes
7717else
7718 echo "$as_me: failed program was:" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5
7720
7721ac_cv_lib_gen_dirname=no
7722fi
7723rm -f conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7725LIBS=$ac_check_lib_save_LIBS
7726fi
7727echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7728echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7729if test $ac_cv_lib_gen_dirname = yes; then
7730
7731 echo "$as_me:$LINENO: checking for broken dirname" >&5
7732echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7733if test "${ac_cv_have_broken_dirname+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736
7737 save_LIBS="$LIBS"
7738 LIBS="$LIBS -lgen"
7739 if test "$cross_compiling" = yes; then
7740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7741See \`config.log' for more details." >&5
7742echo "$as_me: error: cannot run test program while cross compiling
7743See \`config.log' for more details." >&2;}
7744 { (exit 1); exit 1; }; }
7745else
7746 cat >conftest.$ac_ext <<_ACEOF
7747/* confdefs.h. */
7748_ACEOF
7749cat confdefs.h >>conftest.$ac_ext
7750cat >>conftest.$ac_ext <<_ACEOF
7751/* end confdefs.h. */
7752
7753#include <libgen.h>
7754#include <string.h>
7755
7756int main(int argc, char **argv) {
7757 char *s, buf[32];
7758
7759 strncpy(buf,"/etc", 32);
7760 s = dirname(buf);
7761 if (!s || strncmp(s, "/", 32) != 0) {
7762 exit(1);
7763 } else {
7764 exit(0);
7765 }
7766}
7767
7768_ACEOF
7769rm -f conftest$ac_exeext
7770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771 (eval $ac_link) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_have_broken_dirname="no"
7781else
7782 echo "$as_me: program exited with status $ac_status" >&5
7783echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786( exit $ac_status )
7787 ac_cv_have_broken_dirname="yes"
7788
7789fi
7790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7791fi
7792 LIBS="$save_LIBS"
7793
7794fi
7795echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7796echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7797 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7798 LIBS="$LIBS -lgen"
7799 cat >>confdefs.h <<\_ACEOF
7800#define HAVE_DIRNAME 1
7801_ACEOF
7802
7803
7804for ac_header in libgen.h
7805do
7806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808 echo "$as_me:$LINENO: checking for $ac_header" >&5
7809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7810if eval "test \"\${$as_ac_Header+set}\" = set"; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812fi
7813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7815else
7816 # Is the header compilable?
7817echo "$as_me:$LINENO: checking $ac_header usability" >&5
7818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7819cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h. */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h. */
7825$ac_includes_default
7826#include <$ac_header>
7827_ACEOF
7828rm -f conftest.$ac_objext
7829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_header_compiler=yes
7851else
7852 echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855ac_header_compiler=no
7856fi
7857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859echo "${ECHO_T}$ac_header_compiler" >&6
7860
7861# Is the header present?
7862echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7864cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
7870#include <$ac_header>
7871_ACEOF
7872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } >/dev/null; then
7880 if test -s conftest.err; then
7881 ac_cpp_err=$ac_c_preproc_warn_flag
7882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7883 else
7884 ac_cpp_err=
7885 fi
7886else
7887 ac_cpp_err=yes
7888fi
7889if test -z "$ac_cpp_err"; then
7890 ac_header_preproc=yes
7891else
7892 echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ac_header_preproc=no
7896fi
7897rm -f conftest.err conftest.$ac_ext
7898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7899echo "${ECHO_T}$ac_header_preproc" >&6
7900
7901# So? What about this header?
7902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7903 yes:no: )
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7908 ac_header_preproc=yes
7909 ;;
7910 no:yes:* )
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7923 (
7924 cat <<\_ASBOX
7925## ---------------------------------- ##
7926## Report this to the OpenSSH lists. ##
7927## ---------------------------------- ##
7928_ASBOX
7929 ) |
7930 sed "s/^/$as_me: WARNING: /" >&2
7931 ;;
7932esac
7933echo "$as_me:$LINENO: checking for $ac_header" >&5
7934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7935if eval "test \"\${$as_ac_Header+set}\" = set"; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 eval "$as_ac_Header=\$ac_header_preproc"
7939fi
7940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7942
7943fi
7944if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945 cat >>confdefs.h <<_ACEOF
7946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947_ACEOF
7948
7949fi
7950
7951done
7952
7953 fi
7954
7955fi
7956
7957
7958fi
7959done
7960
7961
7962echo "$as_me:$LINENO: checking for getspnam" >&5
7963echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
7964if test "${ac_cv_func_getspnam+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967 cat >conftest.$ac_ext <<_ACEOF
7968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
7973/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
7974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7975#define getspnam innocuous_getspnam
7976
7977/* System header to define __stub macros and hopefully few prototypes,
7978 which can conflict with char getspnam (); below.
7979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7980 <limits.h> exists even on freestanding compilers. */
7981
7982#ifdef __STDC__
7983# include <limits.h>
7984#else
7985# include <assert.h>
7986#endif
7987
7988#undef getspnam
7989
7990/* Override any gcc2 internal prototype to avoid an error. */
7991#ifdef __cplusplus
7992extern "C"
7993{
7994#endif
7995/* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
7997char getspnam ();
7998/* The GNU C library defines this for functions which it implements
7999 to always fail with ENOSYS. Some functions are actually named
8000 something starting with __ and the normal name is an alias. */
8001#if defined (__stub_getspnam) || defined (__stub___getspnam)
8002choke me
8003#else
8004char (*f) () = getspnam;
8005#endif
8006#ifdef __cplusplus
8007}
8008#endif
8009
8010int
8011main ()
8012{
8013return f != getspnam;
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018rm -f conftest.$ac_objext conftest$ac_exeext
8019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020 (eval $ac_link) 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag"
8028 || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_func_getspnam=yes
8041else
8042 echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
8045ac_cv_func_getspnam=no
8046fi
8047rm -f conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
8049fi
8050echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
8051echo "${ECHO_T}$ac_cv_func_getspnam" >&6
8052if test $ac_cv_func_getspnam = yes; then
8053 :
8054else
8055 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
8056echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
8057if test "${ac_cv_lib_gen_getspnam+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060 ac_check_lib_save_LIBS=$LIBS
8061LIBS="-lgen $LIBS"
8062cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
8068
8069/* Override any gcc2 internal prototype to avoid an error. */
8070#ifdef __cplusplus
8071extern "C"
8072#endif
8073/* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075char getspnam ();
8076int
8077main ()
8078{
8079getspnam ();
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext conftest$ac_exeext
8085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086 (eval $ac_link) 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); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest$ac_exeext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_cv_lib_gen_getspnam=yes
8107else
8108 echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111ac_cv_lib_gen_getspnam=no
8112fi
8113rm -f conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115LIBS=$ac_check_lib_save_LIBS
8116fi
8117echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
8118echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
8119if test $ac_cv_lib_gen_getspnam = yes; then
8120 LIBS="$LIBS -lgen"
8121fi
8122
8123fi
8124
8125echo "$as_me:$LINENO: checking for library containing basename" >&5
8126echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
8127if test "${ac_cv_search_basename+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130 ac_func_search_save_LIBS=$LIBS
8131ac_cv_search_basename=no
8132cat >conftest.$ac_ext <<_ACEOF
8133/* confdefs.h. */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h. */
8138
8139/* Override any gcc2 internal prototype to avoid an error. */
8140#ifdef __cplusplus
8141extern "C"
8142#endif
8143/* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145char basename ();
8146int
8147main ()
8148{
8149basename ();
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
8155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156 (eval $ac_link) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -z "$ac_c_werror_flag"
8164 || test ! -s conftest.err'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; } &&
8170 { ac_try='test -s conftest$ac_exeext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 ac_cv_search_basename="none required"
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181fi
8182rm -f conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184if test "$ac_cv_search_basename" = no; then
8185 for ac_lib in gen; do
8186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8187 cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
8193
8194/* Override any gcc2 internal prototype to avoid an error. */
8195#ifdef __cplusplus
8196extern "C"
8197#endif
8198/* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200char basename ();
8201int
8202main ()
8203{
8204basename ();
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_search_basename="-l$ac_lib"
8232break
8233else
8234 echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
8236
8237fi
8238rm -f conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 done
8241fi
8242LIBS=$ac_func_search_save_LIBS
8243fi
8244echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
8245echo "${ECHO_T}$ac_cv_search_basename" >&6
8246if test "$ac_cv_search_basename" != no; then
8247 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
8248 cat >>confdefs.h <<\_ACEOF
8249#define HAVE_BASENAME 1
8250_ACEOF
8251
8252fi
8253
8254
8255
8256# Check whether --with-zlib or --without-zlib was given.
8257if test "${with_zlib+set}" = set; then
8258 withval="$with_zlib"
8259 if test "x$withval" = "xno" ; then
8260 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
8261echo "$as_me: error: *** zlib is required ***" >&2;}
8262 { (exit 1); exit 1; }; }
8263 elif test "x$withval" != "xyes"; then
8264 if test -d "$withval/lib"; then
8265 if test -n "${need_dash_r}"; then
8266 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8267 else
8268 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8269 fi
8270 else
8271 if test -n "${need_dash_r}"; then
8272 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8273 else
8274 LDFLAGS="-L${withval} ${LDFLAGS}"
8275 fi
8276 fi
8277 if test -d "$withval/include"; then
8278 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8279 else
8280 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8281 fi
8282 fi
8283
8284fi;
8285
8286
8287echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8288echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8289if test "${ac_cv_lib_z_deflate+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 ac_check_lib_save_LIBS=$LIBS
8293LIBS="-lz $LIBS"
8294cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h. */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h. */
8300
8301/* Override any gcc2 internal prototype to avoid an error. */
8302#ifdef __cplusplus
8303extern "C"
8304#endif
8305/* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8307char deflate ();
8308int
8309main ()
8310{
8311deflate ();
8312 ;
8313 return 0;
8314}
8315_ACEOF
8316rm -f conftest.$ac_objext conftest$ac_exeext
8317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_lib_z_deflate=yes
8339else
8340 echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
8343ac_cv_lib_z_deflate=no
8344fi
8345rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8347LIBS=$ac_check_lib_save_LIBS
8348fi
8349echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8350echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8351if test $ac_cv_lib_z_deflate = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353#define HAVE_LIBZ 1
8354_ACEOF
8355
8356 LIBS="-lz $LIBS"
8357
8358else
8359
8360 saved_CPPFLAGS="$CPPFLAGS"
8361 saved_LDFLAGS="$LDFLAGS"
8362 save_LIBS="$LIBS"
8363 if test -n "${need_dash_r}"; then
8364 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8365 else
8366 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8367 fi
8368 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8369 LIBS="$LIBS -lz"
8370 cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
8376
8377/* Override any gcc2 internal prototype to avoid an error. */
8378#ifdef __cplusplus
8379extern "C"
8380#endif
8381/* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8383char deflate ();
8384int
8385main ()
8386{
8387deflate ();
8388 ;
8389 return 0;
8390}
8391_ACEOF
8392rm -f conftest.$ac_objext conftest$ac_exeext
8393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag"
8402 || test ! -s conftest.err'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 cat >>confdefs.h <<\_ACEOF
8415#define HAVE_LIBZ 1
8416_ACEOF
8417
8418else
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422
8423 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
8424echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
8425 { (exit 1); exit 1; }; }
8426
8427
8428fi
8429rm -f conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431
8432
8433fi
8434
8435if test "${ac_cv_header_zlib_h+set}" = set; then
8436 echo "$as_me:$LINENO: checking for zlib.h" >&5
8437echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8438if test "${ac_cv_header_zlib_h+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440fi
8441echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8442echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8443else
8444 # Is the header compilable?
8445echo "$as_me:$LINENO: checking zlib.h usability" >&5
8446echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8447cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453$ac_includes_default
8454#include <zlib.h>
8455_ACEOF
8456rm -f conftest.$ac_objext
8457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458 (eval $ac_compile) 2>conftest.er1
8459 ac_status=$?
8460 grep -v '^ *+' conftest.er1 >conftest.err
8461 rm -f conftest.er1
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -z "$ac_c_werror_flag"
8466 || test ! -s conftest.err'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_header_compiler=yes
8479else
8480 echo "$as_me: failed program was:" >&5
8481sed 's/^/| /' conftest.$ac_ext >&5
8482
8483ac_header_compiler=no
8484fi
8485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8487echo "${ECHO_T}$ac_header_compiler" >&6
8488
8489# Is the header present?
8490echo "$as_me:$LINENO: checking zlib.h presence" >&5
8491echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8492cat >conftest.$ac_ext <<_ACEOF
8493/* confdefs.h. */
8494_ACEOF
8495cat confdefs.h >>conftest.$ac_ext
8496cat >>conftest.$ac_ext <<_ACEOF
8497/* end confdefs.h. */
8498#include <zlib.h>
8499_ACEOF
8500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } >/dev/null; then
8508 if test -s conftest.err; then
8509 ac_cpp_err=$ac_c_preproc_warn_flag
8510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8511 else
8512 ac_cpp_err=
8513 fi
8514else
8515 ac_cpp_err=yes
8516fi
8517if test -z "$ac_cpp_err"; then
8518 ac_header_preproc=yes
8519else
8520 echo "$as_me: failed program was:" >&5
8521sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_header_preproc=no
8524fi
8525rm -f conftest.err conftest.$ac_ext
8526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527echo "${ECHO_T}$ac_header_preproc" >&6
8528
8529# So? What about this header?
8530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8531 yes:no: )
8532 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8533echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8535echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8536 ac_header_preproc=yes
8537 ;;
8538 no:yes:* )
8539 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8540echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8542echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8544echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8546echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8548echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8550echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8551 (
8552 cat <<\_ASBOX
8553## ---------------------------------- ##
8554## Report this to the OpenSSH lists. ##
8555## ---------------------------------- ##
8556_ASBOX
8557 ) |
8558 sed "s/^/$as_me: WARNING: /" >&2
8559 ;;
8560esac
8561echo "$as_me:$LINENO: checking for zlib.h" >&5
8562echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8563if test "${ac_cv_header_zlib_h+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566 ac_cv_header_zlib_h=$ac_header_preproc
8567fi
8568echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8569echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8570
8571fi
8572if test $ac_cv_header_zlib_h = yes; then
8573 :
8574else
8575 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
8576echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
8577 { (exit 1); exit 1; }; }
8578fi
8579
8580
8581
8582
8583# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
8584if test "${with_zlib_version_check+set}" = set; then
8585 withval="$with_zlib_version_check"
8586 if test "x$withval" = "xno" ; then
8587 zlib_check_nonfatal=1
8588 fi
8589
8590
8591fi;
8592
8593echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
8594echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6
8595if test "$cross_compiling" = yes; then
8596 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
8597echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8598
8599else
8600 cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606
8607#include <stdio.h>
8608#include <zlib.h>
8609int main()
8610{
8611 int a=0, b=0, c=0, d=0, n, v;
8612 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8613 if (n != 3 && n != 4)
8614 exit(1);
8615 v = a*1000000 + b*10000 + c*100 + d;
8616 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8617
8618 /* 1.1.4 is OK */
8619 if (a == 1 && b == 1 && c >= 4)
8620 exit(0);
8621
8622 /* 1.2.1.2 and up are OK */
8623 if (v >= 1020102)
8624 exit(0);
8625
8626 exit(2);
8627}
8628
8629_ACEOF
8630rm -f conftest$ac_exeext
8631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6
8643else
8644 echo "$as_me: program exited with status $ac_status" >&5
8645echo "$as_me: failed program was:" >&5
8646sed 's/^/| /' conftest.$ac_ext >&5
8647
8648( exit $ac_status )
8649 echo "$as_me:$LINENO: result: yes" >&5
8650echo "${ECHO_T}yes" >&6
8651 if test -z "$zlib_check_nonfatal" ; then
8652 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
8653Your reported zlib version has known security problems. It's possible your
8654vendor has fixed these problems without changing the version number. If you
8655are sure this is the case, you can disable the check by running
8656\"./configure --without-zlib-version-check\".
8657If you are in doubt, upgrade zlib to version 1.2.1.2 or greater.
8658See http://www.gzip.org/zlib/ for details." >&5
8659echo "$as_me: error: *** zlib too old - check config.log ***
8660Your reported zlib version has known security problems. It's possible your
8661vendor has fixed these problems without changing the version number. If you
8662are sure this is the case, you can disable the check by running
8663\"./configure --without-zlib-version-check\".
8664If you are in doubt, upgrade zlib to version 1.2.1.2 or greater.
8665See http://www.gzip.org/zlib/ for details." >&2;}
8666 { (exit 1); exit 1; }; }
8667 else
8668 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
8669echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8670 fi
8671
8672fi
8673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8674fi
8675
8676echo "$as_me:$LINENO: checking for strcasecmp" >&5
8677echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
8678if test "${ac_cv_func_strcasecmp+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680else
8681 cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h. */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h. */
8687/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
8688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8689#define strcasecmp innocuous_strcasecmp
8690
8691/* System header to define __stub macros and hopefully few prototypes,
8692 which can conflict with char strcasecmp (); below.
8693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8694 <limits.h> exists even on freestanding compilers. */
8695
8696#ifdef __STDC__
8697# include <limits.h>
8698#else
8699# include <assert.h>
8700#endif
8701
8702#undef strcasecmp
8703
8704/* Override any gcc2 internal prototype to avoid an error. */
8705#ifdef __cplusplus
8706extern "C"
8707{
8708#endif
8709/* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8711char strcasecmp ();
8712/* The GNU C library defines this for functions which it implements
8713 to always fail with ENOSYS. Some functions are actually named
8714 something starting with __ and the normal name is an alias. */
8715#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
8716choke me
8717#else
8718char (*f) () = strcasecmp;
8719#endif
8720#ifdef __cplusplus
8721}
8722#endif
8723
8724int
8725main ()
8726{
8727return f != strcasecmp;
8728 ;
8729 return 0;
8730}
8731_ACEOF
8732rm -f conftest.$ac_objext conftest$ac_exeext
8733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_cv_func_strcasecmp=yes
8755else
8756 echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759ac_cv_func_strcasecmp=no
8760fi
8761rm -f conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763fi
8764echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
8765echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
8766if test $ac_cv_func_strcasecmp = yes; then
8767 :
8768else
8769 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
8770echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
8771if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774 ac_check_lib_save_LIBS=$LIBS
8775LIBS="-lresolv $LIBS"
8776cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782
8783/* Override any gcc2 internal prototype to avoid an error. */
8784#ifdef __cplusplus
8785extern "C"
8786#endif
8787/* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8789char strcasecmp ();
8790int
8791main ()
8792{
8793strcasecmp ();
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext conftest$ac_exeext
8799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8800 (eval $ac_link) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_lib_resolv_strcasecmp=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825ac_cv_lib_resolv_strcasecmp=no
8826fi
8827rm -f conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829LIBS=$ac_check_lib_save_LIBS
8830fi
8831echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
8832echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
8833if test $ac_cv_lib_resolv_strcasecmp = yes; then
8834 LIBS="$LIBS -lresolv"
8835fi
8836
8837
8838fi
8839
8840echo "$as_me:$LINENO: checking for utimes" >&5
8841echo $ECHO_N "checking for utimes... $ECHO_C" >&6
8842if test "${ac_cv_func_utimes+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845 cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851/* Define utimes to an innocuous variant, in case <limits.h> declares utimes.
8852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8853#define utimes innocuous_utimes
8854
8855/* System header to define __stub macros and hopefully few prototypes,
8856 which can conflict with char utimes (); below.
8857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8858 <limits.h> exists even on freestanding compilers. */
8859
8860#ifdef __STDC__
8861# include <limits.h>
8862#else
8863# include <assert.h>
8864#endif
8865
8866#undef utimes
8867
8868/* Override any gcc2 internal prototype to avoid an error. */
8869#ifdef __cplusplus
8870extern "C"
8871{
8872#endif
8873/* We use char because int might match the return type of a gcc2
8874 builtin and then its argument prototype would still apply. */
8875char utimes ();
8876/* The GNU C library defines this for functions which it implements
8877 to always fail with ENOSYS. Some functions are actually named
8878 something starting with __ and the normal name is an alias. */
8879#if defined (__stub_utimes) || defined (__stub___utimes)
8880choke me
8881#else
8882char (*f) () = utimes;
8883#endif
8884#ifdef __cplusplus
8885}
8886#endif
8887
8888int
8889main ()
8890{
8891return f != utimes;
8892 ;
8893 return 0;
8894}
8895_ACEOF
8896rm -f conftest.$ac_objext conftest$ac_exeext
8897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898 (eval $ac_link) 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag"
8906 || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_func_utimes=yes
8919else
8920 echo "$as_me: failed program was:" >&5
8921sed 's/^/| /' conftest.$ac_ext >&5
8922
8923ac_cv_func_utimes=no
8924fi
8925rm -f conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927fi
8928echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
8929echo "${ECHO_T}$ac_cv_func_utimes" >&6
8930if test $ac_cv_func_utimes = yes; then
8931 :
8932else
8933 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
8934echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
8935if test "${ac_cv_lib_c89_utimes+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937else
8938 ac_check_lib_save_LIBS=$LIBS
8939LIBS="-lc89 $LIBS"
8940cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h. */
8946
8947/* Override any gcc2 internal prototype to avoid an error. */
8948#ifdef __cplusplus
8949extern "C"
8950#endif
8951/* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8953char utimes ();
8954int
8955main ()
8956{
8957utimes ();
8958 ;
8959 return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -z "$ac_c_werror_flag"
8972 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_lib_c89_utimes=yes
8985else
8986 echo "$as_me: failed program was:" >&5
8987sed 's/^/| /' conftest.$ac_ext >&5
8988
8989ac_cv_lib_c89_utimes=no
8990fi
8991rm -f conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
8993LIBS=$ac_check_lib_save_LIBS
8994fi
8995echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
8996echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
8997if test $ac_cv_lib_c89_utimes = yes; then
8998 cat >>confdefs.h <<\_ACEOF
8999#define HAVE_UTIMES 1
9000_ACEOF
9001
9002 LIBS="$LIBS -lc89"
9003fi
9004
9005
9006fi
9007
9008
9009
9010for ac_header in libutil.h
9011do
9012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018fi
9019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9021else
9022 # Is the header compilable?
9023echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9025cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h. */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h. */
9031$ac_includes_default
9032#include <$ac_header>
9033_ACEOF
9034rm -f conftest.$ac_objext
9035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -z "$ac_c_werror_flag"
9044 || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_header_compiler=yes
9057else
9058 echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
9060
9061ac_header_compiler=no
9062fi
9063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9065echo "${ECHO_T}$ac_header_compiler" >&6
9066
9067# Is the header present?
9068echo "$as_me:$LINENO: checking $ac_header presence" >&5
9069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9070cat >conftest.$ac_ext <<_ACEOF
9071/* confdefs.h. */
9072_ACEOF
9073cat confdefs.h >>conftest.$ac_ext
9074cat >>conftest.$ac_ext <<_ACEOF
9075/* end confdefs.h. */
9076#include <$ac_header>
9077_ACEOF
9078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } >/dev/null; then
9086 if test -s conftest.err; then
9087 ac_cpp_err=$ac_c_preproc_warn_flag
9088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9089 else
9090 ac_cpp_err=
9091 fi
9092else
9093 ac_cpp_err=yes
9094fi
9095if test -z "$ac_cpp_err"; then
9096 ac_header_preproc=yes
9097else
9098 echo "$as_me: failed program was:" >&5
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 ac_header_preproc=no
9102fi
9103rm -f conftest.err conftest.$ac_ext
9104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9105echo "${ECHO_T}$ac_header_preproc" >&6
9106
9107# So? What about this header?
9108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9109 yes:no: )
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9111echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9113echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9114 ac_header_preproc=yes
9115 ;;
9116 no:yes:* )
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9122echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9124echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9128echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9129 (
9130 cat <<\_ASBOX
9131## ---------------------------------- ##
9132## Report this to the OpenSSH lists. ##
9133## ---------------------------------- ##
9134_ASBOX
9135 ) |
9136 sed "s/^/$as_me: WARNING: /" >&2
9137 ;;
9138esac
9139echo "$as_me:$LINENO: checking for $ac_header" >&5
9140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9141if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144 eval "$as_ac_Header=\$ac_header_preproc"
9145fi
9146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148
9149fi
9150if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153_ACEOF
9154
9155fi
9156
9157done
9158
9159echo "$as_me:$LINENO: checking for library containing login" >&5
9160echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
9161if test "${ac_cv_search_login+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163else
9164 ac_func_search_save_LIBS=$LIBS
9165ac_cv_search_login=no
9166cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172
9173/* Override any gcc2 internal prototype to avoid an error. */
9174#ifdef __cplusplus
9175extern "C"
9176#endif
9177/* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */
9179char login ();
9180int
9181main ()
9182{
9183login ();
9184 ;
9185 return 0;
9186}
9187_ACEOF
9188rm -f conftest.$ac_objext conftest$ac_exeext
9189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_search_login="none required"
9211else
9212 echo "$as_me: failed program was:" >&5
9213sed 's/^/| /' conftest.$ac_ext >&5
9214
9215fi
9216rm -f conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218if test "$ac_cv_search_login" = no; then
9219 for ac_lib in util bsd; do
9220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9221 cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
9227
9228/* Override any gcc2 internal prototype to avoid an error. */
9229#ifdef __cplusplus
9230extern "C"
9231#endif
9232/* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */
9234char login ();
9235int
9236main ()
9237{
9238login ();
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext conftest$ac_exeext
9244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest$ac_exeext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_cv_search_login="-l$ac_lib"
9266break
9267else
9268 echo "$as_me: failed program was:" >&5
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
9271fi
9272rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 done
9275fi
9276LIBS=$ac_func_search_save_LIBS
9277fi
9278echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
9279echo "${ECHO_T}$ac_cv_search_login" >&6
9280if test "$ac_cv_search_login" != no; then
9281 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
9282 cat >>confdefs.h <<\_ACEOF
9283#define HAVE_LOGIN 1
9284_ACEOF
9285
9286fi
9287
9288
9289
9290
9291for ac_func in logout updwtmp logwtmp
9292do
9293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294echo "$as_me:$LINENO: checking for $ac_func" >&5
9295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9296if eval "test \"\${$as_ac_var+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299 cat >conftest.$ac_ext <<_ACEOF
9300/* confdefs.h. */
9301_ACEOF
9302cat confdefs.h >>conftest.$ac_ext
9303cat >>conftest.$ac_ext <<_ACEOF
9304/* end confdefs.h. */
9305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9307#define $ac_func innocuous_$ac_func
9308
9309/* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char $ac_func (); below.
9311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312 <limits.h> exists even on freestanding compilers. */
9313
9314#ifdef __STDC__
9315# include <limits.h>
9316#else
9317# include <assert.h>
9318#endif
9319
9320#undef $ac_func
9321
9322/* Override any gcc2 internal prototype to avoid an error. */
9323#ifdef __cplusplus
9324extern "C"
9325{
9326#endif
9327/* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329char $ac_func ();
9330/* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9334choke me
9335#else
9336char (*f) () = $ac_func;
9337#endif
9338#ifdef __cplusplus
9339}
9340#endif
9341
9342int
9343main ()
9344{
9345return f != $ac_func;
9346 ;
9347 return 0;
9348}
9349_ACEOF
9350rm -f conftest.$ac_objext conftest$ac_exeext
9351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 eval "$as_ac_var=yes"
9373else
9374 echo "$as_me: failed program was:" >&5
9375sed 's/^/| /' conftest.$ac_ext >&5
9376
9377eval "$as_ac_var=no"
9378fi
9379rm -f conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381fi
9382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9384if test `eval echo '${'$as_ac_var'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9387_ACEOF
9388
9389fi
9390done
9391
9392
9393
9394for ac_func in strftime
9395do
9396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9397echo "$as_me:$LINENO: checking for $ac_func" >&5
9398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9399if eval "test \"\${$as_ac_var+set}\" = set"; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 cat >conftest.$ac_ext <<_ACEOF
9403/* confdefs.h. */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h. */
9408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9410#define $ac_func innocuous_$ac_func
9411
9412/* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char $ac_func (); below.
9414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415 <limits.h> exists even on freestanding compilers. */
9416
9417#ifdef __STDC__
9418# include <limits.h>
9419#else
9420# include <assert.h>
9421#endif
9422
9423#undef $ac_func
9424
9425/* Override any gcc2 internal prototype to avoid an error. */
9426#ifdef __cplusplus
9427extern "C"
9428{
9429#endif
9430/* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9432char $ac_func ();
9433/* The GNU C library defines this for functions which it implements
9434 to always fail with ENOSYS. Some functions are actually named
9435 something starting with __ and the normal name is an alias. */
9436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9437choke me
9438#else
9439char (*f) () = $ac_func;
9440#endif
9441#ifdef __cplusplus
9442}
9443#endif
9444
9445int
9446main ()
9447{
9448return f != $ac_func;
9449 ;
9450 return 0;
9451}
9452_ACEOF
9453rm -f conftest.$ac_objext conftest$ac_exeext
9454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 (eval $ac_try) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 eval "$as_ac_var=yes"
9476else
9477 echo "$as_me: failed program was:" >&5
9478sed 's/^/| /' conftest.$ac_ext >&5
9479
9480eval "$as_ac_var=no"
9481fi
9482rm -f conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484fi
9485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9486echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9487if test `eval echo '${'$as_ac_var'}'` = yes; then
9488 cat >>confdefs.h <<_ACEOF
9489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9490_ACEOF
9491
9492else
9493 # strftime is in -lintl on SCO UNIX.
9494echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9495echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9496if test "${ac_cv_lib_intl_strftime+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499 ac_check_lib_save_LIBS=$LIBS
9500LIBS="-lintl $LIBS"
9501cat >conftest.$ac_ext <<_ACEOF
9502/* confdefs.h. */
9503_ACEOF
9504cat confdefs.h >>conftest.$ac_ext
9505cat >>conftest.$ac_ext <<_ACEOF
9506/* end confdefs.h. */
9507
9508/* Override any gcc2 internal prototype to avoid an error. */
9509#ifdef __cplusplus
9510extern "C"
9511#endif
9512/* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9514char strftime ();
9515int
9516main ()
9517{
9518strftime ();
9519 ;
9520 return 0;
9521}
9522_ACEOF
9523rm -f conftest.$ac_objext conftest$ac_exeext
9524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_lib_intl_strftime=yes
9546else
9547 echo "$as_me: failed program was:" >&5
9548sed 's/^/| /' conftest.$ac_ext >&5
9549
9550ac_cv_lib_intl_strftime=no
9551fi
9552rm -f conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
9554LIBS=$ac_check_lib_save_LIBS
9555fi
9556echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9557echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9558if test $ac_cv_lib_intl_strftime = yes; then
9559 cat >>confdefs.h <<\_ACEOF
9560#define HAVE_STRFTIME 1
9561_ACEOF
9562
9563LIBS="-lintl $LIBS"
9564fi
9565
9566fi
9567done
9568
9569
9570# Check for ALTDIRFUNC glob() extension
9571echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
9572echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
9573cat >conftest.$ac_ext <<_ACEOF
9574/* confdefs.h. */
9575_ACEOF
9576cat confdefs.h >>conftest.$ac_ext
9577cat >>conftest.$ac_ext <<_ACEOF
9578/* end confdefs.h. */
9579
9580 #include <glob.h>
9581 #ifdef GLOB_ALTDIRFUNC
9582 FOUNDIT
9583 #endif
9584
9585_ACEOF
9586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9587 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9588
9589 cat >>confdefs.h <<\_ACEOF
9590#define GLOB_HAS_ALTDIRFUNC 1
9591_ACEOF
9592
9593 echo "$as_me:$LINENO: result: yes" >&5
9594echo "${ECHO_T}yes" >&6
9595
9596else
9597
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
9600
9601
9602fi
9603rm -f conftest*
9604
9605
9606# Check for g.gl_matchc glob() extension
9607echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
9608echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
9609cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615
9616 #include <glob.h>
9617 int main(void){glob_t g; g.gl_matchc = 1;}
9618
9619_ACEOF
9620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9621 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9622
9623 cat >>confdefs.h <<\_ACEOF
9624#define GLOB_HAS_GL_MATCHC 1
9625_ACEOF
9626
9627 echo "$as_me:$LINENO: result: yes" >&5
9628echo "${ECHO_T}yes" >&6
9629
9630else
9631
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634
9635
9636fi
9637rm -f conftest*
9638
9639
9640echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
9641echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
9642if test "$cross_compiling" = yes; then
9643
9644 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9645echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9646 cat >>confdefs.h <<\_ACEOF
9647#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9648_ACEOF
9649
9650
9651
9652else
9653 cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659
9660#include <sys/types.h>
9661#include <dirent.h>
9662int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
9663
9664_ACEOF
9665rm -f conftest$ac_exeext
9666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 echo "$as_me:$LINENO: result: yes" >&5
9677echo "${ECHO_T}yes" >&6
9678else
9679 echo "$as_me: program exited with status $ac_status" >&5
9680echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683( exit $ac_status )
9684
9685 echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6
9687 cat >>confdefs.h <<\_ACEOF
9688#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9689_ACEOF
9690
9691
9692fi
9693rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9694fi
9695
9696echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
9697echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6
9698if test -d "/proc/$$/fd" ; then
9699 cat >>confdefs.h <<\_ACEOF
9700#define HAVE_PROC_PID 1
9701_ACEOF
9702
9703 echo "$as_me:$LINENO: result: yes" >&5
9704echo "${ECHO_T}yes" >&6
9705else
9706 echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
9708fi
9709
9710# Check whether user wants S/Key support
9711SKEY_MSG="no"
9712
9713# Check whether --with-skey or --without-skey was given.
9714if test "${with_skey+set}" = set; then
9715 withval="$with_skey"
9716
9717 if test "x$withval" != "xno" ; then
9718
9719 if test "x$withval" != "xyes" ; then
9720 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9721 LDFLAGS="$LDFLAGS -L${withval}/lib"
9722 fi
9723
9724 cat >>confdefs.h <<\_ACEOF
9725#define SKEY 1
9726_ACEOF
9727
9728 LIBS="-lskey $LIBS"
9729 SKEY_MSG="yes"
9730
9731 echo "$as_me:$LINENO: checking for s/key support" >&5
9732echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
9733 if test "$cross_compiling" = yes; then
9734 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9735See \`config.log' for more details." >&5
9736echo "$as_me: error: cannot run test program while cross compiling
9737See \`config.log' for more details." >&2;}
9738 { (exit 1); exit 1; }; }
9739else
9740 cat >conftest.$ac_ext <<_ACEOF
9741/* confdefs.h. */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h. */
9746
9747#include <stdio.h>
9748#include <skey.h>
9749int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
9750
9751_ACEOF
9752rm -f conftest$ac_exeext
9753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 echo "$as_me:$LINENO: result: yes" >&5
9764echo "${ECHO_T}yes" >&6
9765else
9766 echo "$as_me: program exited with status $ac_status" >&5
9767echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770( exit $ac_status )
9771
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
9775echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
9776 { (exit 1); exit 1; }; }
9777
9778fi
9779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9780fi
9781 echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
9782echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
9789#include <stdio.h>
9790 #include <skey.h>
9791int
9792main ()
9793{
9794(void)skeychallenge(NULL,"name","",0);
9795 ;
9796 return 0;
9797}
9798_ACEOF
9799rm -f conftest.$ac_objext
9800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801 (eval $ac_compile) 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag"
9809 || test ! -s conftest.err'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest.$ac_objext'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 echo "$as_me:$LINENO: result: yes" >&5
9822echo "${ECHO_T}yes" >&6
9823 cat >>confdefs.h <<\_ACEOF
9824#define SKEYCHALLENGE_4ARG 1
9825_ACEOF
9826
9827else
9828 echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831echo "$as_me:$LINENO: result: no" >&5
9832echo "${ECHO_T}no" >&6
9833
9834fi
9835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836 fi
9837
9838
9839fi;
9840
9841# Check whether user wants TCP wrappers support
9842TCPW_MSG="no"
9843
9844# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9845if test "${with_tcp_wrappers+set}" = set; then
9846 withval="$with_tcp_wrappers"
9847
9848 if test "x$withval" != "xno" ; then
9849 saved_LIBS="$LIBS"
9850 saved_LDFLAGS="$LDFLAGS"
9851 saved_CPPFLAGS="$CPPFLAGS"
9852 if test -n "${withval}" && \
9853 test "x${withval}" != "xyes"; then
9854 if test -d "${withval}/lib"; then
9855 if test -n "${need_dash_r}"; then
9856 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9857 else
9858 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9859 fi
9860 else
9861 if test -n "${need_dash_r}"; then
9862 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9863 else
9864 LDFLAGS="-L${withval} ${LDFLAGS}"
9865 fi
9866 fi
9867 if test -d "${withval}/include"; then
9868 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9869 else
9870 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9871 fi
9872 fi
9873 LIBWRAP="-lwrap"
9874 LIBS="$LIBWRAP $LIBS"
9875 echo "$as_me:$LINENO: checking for libwrap" >&5
9876echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883
9884#include <sys/types.h>
9885#include <sys/socket.h>
9886#include <netinet/in.h>
9887#include <tcpd.h>
9888 int deny_severity = 0, allow_severity = 0;
9889
9890int
9891main ()
9892{
9893hosts_access(0);
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898rm -f conftest.$ac_objext conftest$ac_exeext
9899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920
9921 echo "$as_me:$LINENO: result: yes" >&5
9922echo "${ECHO_T}yes" >&6
9923 cat >>confdefs.h <<\_ACEOF
9924#define LIBWRAP 1
9925_ACEOF
9926
9927
9928 TCPW_MSG="yes"
9929
9930else
9931 echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
9933
9934
9935 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9936echo "$as_me: error: *** libwrap missing" >&2;}
9937 { (exit 1); exit 1; }; }
9938
9939
9940fi
9941rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS="$saved_LIBS"
9944 fi
9945
9946
9947fi;
9948
9949# Check whether user wants libedit support
9950LIBEDIT_MSG="no"
9951
9952# Check whether --with-libedit or --without-libedit was given.
9953if test "${with_libedit+set}" = set; then
9954 withval="$with_libedit"
9955 if test "x$withval" != "xno" ; then
9956 if test "x$withval" != "xyes"; then
9957 CPPFLAGS="$CPPFLAGS -I$withval/include"
9958 LDFLAGS="$LDFLAGS -L$withval/lib"
9959 fi
9960 echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
9961echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6
9962if test "${ac_cv_lib_edit_el_init+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964else
9965 ac_check_lib_save_LIBS=$LIBS
9966LIBS="-ledit -lcurses
9967 $LIBS"
9968cat >conftest.$ac_ext <<_ACEOF
9969/* confdefs.h. */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
9973/* end confdefs.h. */
9974
9975/* Override any gcc2 internal prototype to avoid an error. */
9976#ifdef __cplusplus
9977extern "C"
9978#endif
9979/* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9981char el_init ();
9982int
9983main ()
9984{
9985el_init ();
9986 ;
9987 return 0;
9988}
9989_ACEOF
9990rm -f conftest.$ac_objext conftest$ac_exeext
9991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9992 (eval $ac_link) 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try='test -z "$ac_c_werror_flag"
10000 || test ! -s conftest.err'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_lib_edit_el_init=yes
10013else
10014 echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
10017ac_cv_lib_edit_el_init=no
10018fi
10019rm -f conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021LIBS=$ac_check_lib_save_LIBS
10022fi
10023echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
10024echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6
10025if test $ac_cv_lib_edit_el_init = yes; then
10026
10027cat >>confdefs.h <<\_ACEOF
10028#define USE_LIBEDIT
10029_ACEOF
10030
10031 LIBEDIT="-ledit -lcurses"
10032 LIBEDIT_MSG="yes"
10033
10034
10035else
10036 { { echo "$as_me:$LINENO: error: libedit not found" >&5
10037echo "$as_me: error: libedit not found" >&2;}
10038 { (exit 1); exit 1; }; }
10039fi
10040
10041 fi
10042
10043fi;
10044
10045AUDIT_MODULE=none
10046
10047# Check whether --with-audit or --without-audit was given.
10048if test "${with_audit+set}" = set; then
10049 withval="$with_audit"
10050
10051 echo "$as_me:$LINENO: checking for supported audit module" >&5
10052echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6
10053 case "$withval" in
10054 bsm)
10055 echo "$as_me:$LINENO: result: bsm" >&5
10056echo "${ECHO_T}bsm" >&6
10057 AUDIT_MODULE=bsm
10058
10059for ac_header in bsm/audit.h
10060do
10061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo "$as_me:$LINENO: checking for $ac_header" >&5
10064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10065if eval "test \"\${$as_ac_Header+set}\" = set"; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067fi
10068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070else
10071 # Is the header compilable?
10072echo "$as_me:$LINENO: checking $ac_header usability" >&5
10073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h. */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h. */
10080$ac_includes_default
10081#include <$ac_header>
10082_ACEOF
10083rm -f conftest.$ac_objext
10084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag"
10093 || test ! -s conftest.err'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest.$ac_objext'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10105 ac_header_compiler=yes
10106else
10107 echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110ac_header_compiler=no
10111fi
10112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10114echo "${ECHO_T}$ac_header_compiler" >&6
10115
10116# Is the header present?
10117echo "$as_me:$LINENO: checking $ac_header presence" >&5
10118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10119cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125#include <$ac_header>
10126_ACEOF
10127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } >/dev/null; then
10135 if test -s conftest.err; then
10136 ac_cpp_err=$ac_c_preproc_warn_flag
10137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10138 else
10139 ac_cpp_err=
10140 fi
10141else
10142 ac_cpp_err=yes
10143fi
10144if test -z "$ac_cpp_err"; then
10145 ac_header_preproc=yes
10146else
10147 echo "$as_me: failed program was:" >&5
10148sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 ac_header_preproc=no
10151fi
10152rm -f conftest.err conftest.$ac_ext
10153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10154echo "${ECHO_T}$ac_header_preproc" >&6
10155
10156# So? What about this header?
10157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10158 yes:no: )
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10163 ac_header_preproc=yes
10164 ;;
10165 no:yes:* )
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10178 (
10179 cat <<\_ASBOX
10180## ---------------------------------- ##
10181## Report this to the OpenSSH lists. ##
10182## ---------------------------------- ##
10183_ASBOX
10184 ) |
10185 sed "s/^/$as_me: WARNING: /" >&2
10186 ;;
10187esac
10188echo "$as_me:$LINENO: checking for $ac_header" >&5
10189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10190if eval "test \"\${$as_ac_Header+set}\" = set"; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193 eval "$as_ac_Header=\$ac_header_preproc"
10194fi
10195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197
10198fi
10199if test `eval echo '${'$as_ac_Header'}'` = yes; then
10200 cat >>confdefs.h <<_ACEOF
10201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10202_ACEOF
10203
10204else
10205 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
10206echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
10207 { (exit 1); exit 1; }; }
10208fi
10209
10210done
10211
10212
10213echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
10214echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6
10215if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218 ac_check_lib_save_LIBS=$LIBS
10219LIBS="-lbsm $LIBS"
10220cat >conftest.$ac_ext <<_ACEOF
10221/* confdefs.h. */
10222_ACEOF
10223cat confdefs.h >>conftest.$ac_ext
10224cat >>conftest.$ac_ext <<_ACEOF
10225/* end confdefs.h. */
10226
10227/* Override any gcc2 internal prototype to avoid an error. */
10228#ifdef __cplusplus
10229extern "C"
10230#endif
10231/* We use char because int might match the return type of a gcc2
10232 builtin and then its argument prototype would still apply. */
10233char getaudit ();
10234int
10235main ()
10236{
10237getaudit ();
10238 ;
10239 return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
10243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag"
10252 || test ! -s conftest.err'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s conftest$ac_exeext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_lib_bsm_getaudit=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269ac_cv_lib_bsm_getaudit=no
10270fi
10271rm -f conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273LIBS=$ac_check_lib_save_LIBS
10274fi
10275echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
10276echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6
10277if test $ac_cv_lib_bsm_getaudit = yes; then
10278 cat >>confdefs.h <<_ACEOF
10279#define HAVE_LIBBSM 1
10280_ACEOF
10281
10282 LIBS="-lbsm $LIBS"
10283
10284else
10285 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
10286echo "$as_me: error: BSM enabled and required library not found" >&2;}
10287 { (exit 1); exit 1; }; }
10288fi
10289
10290
10291for ac_func in getaudit
10292do
10293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294echo "$as_me:$LINENO: checking for $ac_func" >&5
10295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10296if eval "test \"\${$as_ac_var+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 cat >conftest.$ac_ext <<_ACEOF
10300/* confdefs.h. */
10301_ACEOF
10302cat confdefs.h >>conftest.$ac_ext
10303cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */
10305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10307#define $ac_func innocuous_$ac_func
10308
10309/* System header to define __stub macros and hopefully few prototypes,
10310 which can conflict with char $ac_func (); below.
10311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10312 <limits.h> exists even on freestanding compilers. */
10313
10314#ifdef __STDC__
10315# include <limits.h>
10316#else
10317# include <assert.h>
10318#endif
10319
10320#undef $ac_func
10321
10322/* Override any gcc2 internal prototype to avoid an error. */
10323#ifdef __cplusplus
10324extern "C"
10325{
10326#endif
10327/* We use char because int might match the return type of a gcc2
10328 builtin and then its argument prototype would still apply. */
10329char $ac_func ();
10330/* The GNU C library defines this for functions which it implements
10331 to always fail with ENOSYS. Some functions are actually named
10332 something starting with __ and the normal name is an alias. */
10333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10334choke me
10335#else
10336char (*f) () = $ac_func;
10337#endif
10338#ifdef __cplusplus
10339}
10340#endif
10341
10342int
10343main ()
10344{
10345return f != $ac_func;
10346 ;
10347 return 0;
10348}
10349_ACEOF
10350rm -f conftest.$ac_objext conftest$ac_exeext
10351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag"
10360 || test ! -s conftest.err'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; } &&
10366 { ac_try='test -s conftest$ac_exeext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 eval "$as_ac_var=yes"
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377eval "$as_ac_var=no"
10378fi
10379rm -f conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381fi
10382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10384if test `eval echo '${'$as_ac_var'}'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10387_ACEOF
10388
10389else
10390 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
10391echo "$as_me: error: BSM enabled and required function not found" >&2;}
10392 { (exit 1); exit 1; }; }
10393fi
10394done
10395
10396 # These are optional
10397
10398for ac_func in getaudit_addr
10399do
10400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10401echo "$as_me:$LINENO: checking for $ac_func" >&5
10402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10403if eval "test \"\${$as_ac_var+set}\" = set"; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10414#define $ac_func innocuous_$ac_func
10415
10416/* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char $ac_func (); below.
10418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10419 <limits.h> exists even on freestanding compilers. */
10420
10421#ifdef __STDC__
10422# include <limits.h>
10423#else
10424# include <assert.h>
10425#endif
10426
10427#undef $ac_func
10428
10429/* Override any gcc2 internal prototype to avoid an error. */
10430#ifdef __cplusplus
10431extern "C"
10432{
10433#endif
10434/* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436char $ac_func ();
10437/* The GNU C library defines this for functions which it implements
10438 to always fail with ENOSYS. Some functions are actually named
10439 something starting with __ and the normal name is an alias. */
10440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10441choke me
10442#else
10443char (*f) () = $ac_func;
10444#endif
10445#ifdef __cplusplus
10446}
10447#endif
10448
10449int
10450main ()
10451{
10452return f != $ac_func;
10453 ;
10454 return 0;
10455}
10456_ACEOF
10457rm -f conftest.$ac_objext conftest$ac_exeext
10458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459 (eval $ac_link) 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -z "$ac_c_werror_flag"
10467 || test ! -s conftest.err'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10479 eval "$as_ac_var=yes"
10480else
10481 echo "$as_me: failed program was:" >&5
10482sed 's/^/| /' conftest.$ac_ext >&5
10483
10484eval "$as_ac_var=no"
10485fi
10486rm -f conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488fi
10489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10491if test `eval echo '${'$as_ac_var'}'` = yes; then
10492 cat >>confdefs.h <<_ACEOF
10493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10494_ACEOF
10495
10496fi
10497done
10498
10499
10500cat >>confdefs.h <<\_ACEOF
10501#define USE_BSM_AUDIT
10502_ACEOF
10503
10504 ;;
10505 debug)
10506 AUDIT_MODULE=debug
10507 echo "$as_me:$LINENO: result: debug" >&5
10508echo "${ECHO_T}debug" >&6
10509
10510cat >>confdefs.h <<\_ACEOF
10511#define SSH_AUDIT_EVENTS
10512_ACEOF
10513
10514 ;;
10515 *)
10516 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
10517echo "$as_me: error: Unknown audit module $withval" >&2;}
10518 { (exit 1); exit 1; }; }
10519 ;;
10520 esac
10521
10522fi;
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602for ac_func in \
10603 arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \
10604 bindresvport_sa clock closefrom dirfd fchdir fchmod fchown \
10605 freeaddrinfo futimes getaddrinfo getcwd getgrouplist getnameinfo \
10606 getopt getpeereid _getpty getrlimit getttyent glob inet_aton \
10607 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
10608 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \
10609 pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \
10610 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
10611 setproctitle setregid setreuid setrlimit \
10612 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
10613 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \
10614 truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \
10615
10616do
10617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10618echo "$as_me:$LINENO: checking for $ac_func" >&5
10619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10620if eval "test \"\${$as_ac_var+set}\" = set"; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h. */
10629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10631#define $ac_func innocuous_$ac_func
10632
10633/* System header to define __stub macros and hopefully few prototypes,
10634 which can conflict with char $ac_func (); below.
10635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10636 <limits.h> exists even on freestanding compilers. */
10637
10638#ifdef __STDC__
10639# include <limits.h>
10640#else
10641# include <assert.h>
10642#endif
10643
10644#undef $ac_func
10645
10646/* Override any gcc2 internal prototype to avoid an error. */
10647#ifdef __cplusplus
10648extern "C"
10649{
10650#endif
10651/* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10653char $ac_func ();
10654/* The GNU C library defines this for functions which it implements
10655 to always fail with ENOSYS. Some functions are actually named
10656 something starting with __ and the normal name is an alias. */
10657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10658choke me
10659#else
10660char (*f) () = $ac_func;
10661#endif
10662#ifdef __cplusplus
10663}
10664#endif
10665
10666int
10667main ()
10668{
10669return f != $ac_func;
10670 ;
10671 return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext conftest$ac_exeext
10675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag"
10684 || test ! -s conftest.err'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 eval "$as_ac_var=yes"
10697else
10698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701eval "$as_ac_var=no"
10702fi
10703rm -f conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705fi
10706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10708if test `eval echo '${'$as_ac_var'}'` = yes; then
10709 cat >>confdefs.h <<_ACEOF
10710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10711_ACEOF
10712
10713fi
10714done
10715
10716
10717# IRIX has a const char return value for gai_strerror()
10718
10719for ac_func in gai_strerror
10720do
10721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10722echo "$as_me:$LINENO: checking for $ac_func" >&5
10723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10724if eval "test \"\${$as_ac_var+set}\" = set"; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726else
10727 cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h. */
10733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10735#define $ac_func innocuous_$ac_func
10736
10737/* System header to define __stub macros and hopefully few prototypes,
10738 which can conflict with char $ac_func (); below.
10739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10740 <limits.h> exists even on freestanding compilers. */
10741
10742#ifdef __STDC__
10743# include <limits.h>
10744#else
10745# include <assert.h>
10746#endif
10747
10748#undef $ac_func
10749
10750/* Override any gcc2 internal prototype to avoid an error. */
10751#ifdef __cplusplus
10752extern "C"
10753{
10754#endif
10755/* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10757char $ac_func ();
10758/* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10762choke me
10763#else
10764char (*f) () = $ac_func;
10765#endif
10766#ifdef __cplusplus
10767}
10768#endif
10769
10770int
10771main ()
10772{
10773return f != $ac_func;
10774 ;
10775 return 0;
10776}
10777_ACEOF
10778rm -f conftest.$ac_objext conftest$ac_exeext
10779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag"
10788 || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 eval "$as_ac_var=yes"
10801else
10802 echo "$as_me: failed program was:" >&5
10803sed 's/^/| /' conftest.$ac_ext >&5
10804
10805eval "$as_ac_var=no"
10806fi
10807rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809fi
10810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10812if test `eval echo '${'$as_ac_var'}'` = yes; then
10813 cat >>confdefs.h <<_ACEOF
10814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10815_ACEOF
10816
10817 cat >>confdefs.h <<\_ACEOF
10818#define HAVE_GAI_STRERROR 1
10819_ACEOF
10820
10821 cat >conftest.$ac_ext <<_ACEOF
10822/* confdefs.h. */
10823_ACEOF
10824cat confdefs.h >>conftest.$ac_ext
10825cat >>conftest.$ac_ext <<_ACEOF
10826/* end confdefs.h. */
10827
10828#include <sys/types.h>
10829#include <sys/socket.h>
10830#include <netdb.h>
10831
10832const char *gai_strerror(int);
10833int
10834main ()
10835{
10836
10837char *str;
10838
10839str = gai_strerror(0);
10840 ;
10841 return 0;
10842}
10843_ACEOF
10844rm -f conftest.$ac_objext
10845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846 (eval $ac_compile) 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest.$ac_objext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866
10867
10868cat >>confdefs.h <<\_ACEOF
10869#define HAVE_CONST_GAI_STRERROR_PROTO 1
10870_ACEOF
10871
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876fi
10877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10878fi
10879done
10880
10881
10882echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
10883echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
10884if test "${ac_cv_search_nanosleep+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886else
10887 ac_func_search_save_LIBS=$LIBS
10888ac_cv_search_nanosleep=no
10889cat >conftest.$ac_ext <<_ACEOF
10890/* confdefs.h. */
10891_ACEOF
10892cat confdefs.h >>conftest.$ac_ext
10893cat >>conftest.$ac_ext <<_ACEOF
10894/* end confdefs.h. */
10895
10896/* Override any gcc2 internal prototype to avoid an error. */
10897#ifdef __cplusplus
10898extern "C"
10899#endif
10900/* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10902char nanosleep ();
10903int
10904main ()
10905{
10906nanosleep ();
10907 ;
10908 return 0;
10909}
10910_ACEOF
10911rm -f conftest.$ac_objext conftest$ac_exeext
10912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_search_nanosleep="none required"
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938fi
10939rm -f conftest.err conftest.$ac_objext \
10940 conftest$ac_exeext conftest.$ac_ext
10941if test "$ac_cv_search_nanosleep" = no; then
10942 for ac_lib in rt posix4; do
10943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10944 cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h. */
10950
10951/* Override any gcc2 internal prototype to avoid an error. */
10952#ifdef __cplusplus
10953extern "C"
10954#endif
10955/* We use char because int might match the return type of a gcc2
10956 builtin and then its argument prototype would still apply. */
10957char nanosleep ();
10958int
10959main ()
10960{
10961nanosleep ();
10962 ;
10963 return 0;
10964}
10965_ACEOF
10966rm -f conftest.$ac_objext conftest$ac_exeext
10967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968 (eval $ac_link) 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag"
10976 || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_search_nanosleep="-l$ac_lib"
10989break
10990else
10991 echo "$as_me: failed program was:" >&5
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
10994fi
10995rm -f conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 done
10998fi
10999LIBS=$ac_func_search_save_LIBS
11000fi
11001echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
11002echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
11003if test "$ac_cv_search_nanosleep" != no; then
11004 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
11005 cat >>confdefs.h <<\_ACEOF
11006#define HAVE_NANOSLEEP 1
11007_ACEOF
11008
11009fi
11010
11011
11012echo "$as_me:$LINENO: checking whether strsep is declared" >&5
11013echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
11014if test "${ac_cv_have_decl_strsep+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016else
11017 cat >conftest.$ac_ext <<_ACEOF
11018/* confdefs.h. */
11019_ACEOF
11020cat confdefs.h >>conftest.$ac_ext
11021cat >>conftest.$ac_ext <<_ACEOF
11022/* end confdefs.h. */
11023$ac_includes_default
11024int
11025main ()
11026{
11027#ifndef strsep
11028 char *p = (char *) strsep;
11029#endif
11030
11031 ;
11032 return 0;
11033}
11034_ACEOF
11035rm -f conftest.$ac_objext
11036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11037 (eval $ac_compile) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag"
11045 || test ! -s conftest.err'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; } &&
11051 { ac_try='test -s conftest.$ac_objext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_have_decl_strsep=yes
11058else
11059 echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
11062ac_cv_have_decl_strsep=no
11063fi
11064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065fi
11066echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
11067echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
11068if test $ac_cv_have_decl_strsep = yes; then
11069
11070for ac_func in strsep
11071do
11072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11073echo "$as_me:$LINENO: checking for $ac_func" >&5
11074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11075if eval "test \"\${$as_ac_var+set}\" = set"; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077else
11078 cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11086#define $ac_func innocuous_$ac_func
11087
11088/* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func (); below.
11090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11091 <limits.h> exists even on freestanding compilers. */
11092
11093#ifdef __STDC__
11094# include <limits.h>
11095#else
11096# include <assert.h>
11097#endif
11098
11099#undef $ac_func
11100
11101/* Override any gcc2 internal prototype to avoid an error. */
11102#ifdef __cplusplus
11103extern "C"
11104{
11105#endif
11106/* We use char because int might match the return type of a gcc2
11107 builtin and then its argument prototype would still apply. */
11108char $ac_func ();
11109/* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11113choke me
11114#else
11115char (*f) () = $ac_func;
11116#endif
11117#ifdef __cplusplus
11118}
11119#endif
11120
11121int
11122main ()
11123{
11124return f != $ac_func;
11125 ;
11126 return 0;
11127}
11128_ACEOF
11129rm -f conftest.$ac_objext conftest$ac_exeext
11130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag"
11139 || test ! -s conftest.err'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest$ac_exeext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 eval "$as_ac_var=yes"
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156eval "$as_ac_var=no"
11157fi
11158rm -f conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160fi
11161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11163if test `eval echo '${'$as_ac_var'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11166_ACEOF
11167
11168fi
11169done
11170
11171fi
11172
11173echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
11174echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
11175if test "${ac_cv_have_decl_getrusage+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177else
11178 cat >conftest.$ac_ext <<_ACEOF
11179/* confdefs.h. */
11180_ACEOF
11181cat confdefs.h >>conftest.$ac_ext
11182cat >>conftest.$ac_ext <<_ACEOF
11183/* end confdefs.h. */
11184$ac_includes_default
11185int
11186main ()
11187{
11188#ifndef getrusage
11189 char *p = (char *) getrusage;
11190#endif
11191
11192 ;
11193 return 0;
11194}
11195_ACEOF
11196rm -f conftest.$ac_objext
11197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198 (eval $ac_compile) 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag"
11206 || test ! -s conftest.err'
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try='test -s conftest.$ac_objext'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
11218 ac_cv_have_decl_getrusage=yes
11219else
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223ac_cv_have_decl_getrusage=no
11224fi
11225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11226fi
11227echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
11228echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
11229if test $ac_cv_have_decl_getrusage = yes; then
11230
11231for ac_func in getrusage
11232do
11233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234echo "$as_me:$LINENO: checking for $ac_func" >&5
11235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11236if eval "test \"\${$as_ac_var+set}\" = set"; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11247#define $ac_func innocuous_$ac_func
11248
11249/* System header to define __stub macros and hopefully few prototypes,
11250 which can conflict with char $ac_func (); below.
11251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252 <limits.h> exists even on freestanding compilers. */
11253
11254#ifdef __STDC__
11255# include <limits.h>
11256#else
11257# include <assert.h>
11258#endif
11259
11260#undef $ac_func
11261
11262/* Override any gcc2 internal prototype to avoid an error. */
11263#ifdef __cplusplus
11264extern "C"
11265{
11266#endif
11267/* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11269char $ac_func ();
11270/* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11274choke me
11275#else
11276char (*f) () = $ac_func;
11277#endif
11278#ifdef __cplusplus
11279}
11280#endif
11281
11282int
11283main ()
11284{
11285return f != $ac_func;
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290rm -f conftest.$ac_objext conftest$ac_exeext
11291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 eval "$as_ac_var=yes"
11313else
11314 echo "$as_me: failed program was:" >&5
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317eval "$as_ac_var=no"
11318fi
11319rm -f conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321fi
11322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11324if test `eval echo '${'$as_ac_var'}'` = yes; then
11325 cat >>confdefs.h <<_ACEOF
11326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11327_ACEOF
11328
11329fi
11330done
11331
11332fi
11333
11334
11335echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
11336echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
11337if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346#include <termios.h>
11347
11348
11349int
11350main ()
11351{
11352#ifndef tcsendbreak
11353 char *p = (char *) tcsendbreak;
11354#endif
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag"
11370 || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_cv_have_decl_tcsendbreak=yes
11383else
11384 echo "$as_me: failed program was:" >&5
11385sed 's/^/| /' conftest.$ac_ext >&5
11386
11387ac_cv_have_decl_tcsendbreak=no
11388fi
11389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390fi
11391echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
11392echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
11393if test $ac_cv_have_decl_tcsendbreak = yes; then
11394 cat >>confdefs.h <<\_ACEOF
11395#define HAVE_TCSENDBREAK 1
11396_ACEOF
11397
11398else
11399
11400for ac_func in tcsendbreak
11401do
11402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11403echo "$as_me:$LINENO: checking for $ac_func" >&5
11404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11405if eval "test \"\${$as_ac_var+set}\" = set"; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408 cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11416#define $ac_func innocuous_$ac_func
11417
11418/* System header to define __stub macros and hopefully few prototypes,
11419 which can conflict with char $ac_func (); below.
11420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11421 <limits.h> exists even on freestanding compilers. */
11422
11423#ifdef __STDC__
11424# include <limits.h>
11425#else
11426# include <assert.h>
11427#endif
11428
11429#undef $ac_func
11430
11431/* Override any gcc2 internal prototype to avoid an error. */
11432#ifdef __cplusplus
11433extern "C"
11434{
11435#endif
11436/* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
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#else
11445char (*f) () = $ac_func;
11446#endif
11447#ifdef __cplusplus
11448}
11449#endif
11450
11451int
11452main ()
11453{
11454return f != $ac_func;
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext conftest$ac_exeext
11460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest$ac_exeext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 eval "$as_ac_var=yes"
11482else
11483 echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
11486eval "$as_ac_var=no"
11487fi
11488rm -f conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490fi
11491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11493if test `eval echo '${'$as_ac_var'}'` = yes; then
11494 cat >>confdefs.h <<_ACEOF
11495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11496_ACEOF
11497
11498fi
11499done
11500
11501fi
11502
11503
11504echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
11505echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6
11506if test "${ac_cv_have_decl_h_errno+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508else
11509 cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515#include <netdb.h>
11516
11517int
11518main ()
11519{
11520#ifndef h_errno
11521 char *p = (char *) h_errno;
11522#endif
11523
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext
11529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag"
11538 || test ! -s conftest.err'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 ac_cv_have_decl_h_errno=yes
11551else
11552 echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
11555ac_cv_have_decl_h_errno=no
11556fi
11557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558fi
11559echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
11560echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6
11561if test $ac_cv_have_decl_h_errno = yes; then
11562
11563cat >>confdefs.h <<_ACEOF
11564#define HAVE_DECL_H_ERRNO 1
11565_ACEOF
11566
11567
11568else
11569 cat >>confdefs.h <<_ACEOF
11570#define HAVE_DECL_H_ERRNO 0
11571_ACEOF
11572
11573
11574fi
11575
11576
11577
11578
11579for ac_func in setresuid
11580do
11581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582echo "$as_me:$LINENO: checking for $ac_func" >&5
11583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11584if eval "test \"\${$as_ac_var+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11595#define $ac_func innocuous_$ac_func
11596
11597/* System header to define __stub macros and hopefully few prototypes,
11598 which can conflict with char $ac_func (); below.
11599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11600 <limits.h> exists even on freestanding compilers. */
11601
11602#ifdef __STDC__
11603# include <limits.h>
11604#else
11605# include <assert.h>
11606#endif
11607
11608#undef $ac_func
11609
11610/* Override any gcc2 internal prototype to avoid an error. */
11611#ifdef __cplusplus
11612extern "C"
11613{
11614#endif
11615/* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11617char $ac_func ();
11618/* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11622choke me
11623#else
11624char (*f) () = $ac_func;
11625#endif
11626#ifdef __cplusplus
11627}
11628#endif
11629
11630int
11631main ()
11632{
11633return f != $ac_func;
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext conftest$ac_exeext
11639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11640 (eval $ac_link) 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag"
11648 || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 eval "$as_ac_var=yes"
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665eval "$as_ac_var=no"
11666fi
11667rm -f conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669fi
11670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11672if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675_ACEOF
11676
11677 echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
11678echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
11679 if test "$cross_compiling" = yes; then
11680 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
11681echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11682
11683else
11684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690
11691#include <stdlib.h>
11692#include <errno.h>
11693int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
11694
11695_ACEOF
11696rm -f conftest$ac_exeext
11697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11698 (eval $ac_link) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 echo "$as_me:$LINENO: result: yes" >&5
11708echo "${ECHO_T}yes" >&6
11709else
11710 echo "$as_me: program exited with status $ac_status" >&5
11711echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
11714( exit $ac_status )
11715cat >>confdefs.h <<\_ACEOF
11716#define BROKEN_SETRESUID 1
11717_ACEOF
11718
11719 echo "$as_me:$LINENO: result: not implemented" >&5
11720echo "${ECHO_T}not implemented" >&6
11721fi
11722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11723fi
11724
11725fi
11726done
11727
11728
11729
11730for ac_func in setresgid
11731do
11732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11733echo "$as_me:$LINENO: checking for $ac_func" >&5
11734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11735if eval "test \"\${$as_ac_var+set}\" = set"; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738 cat >conftest.$ac_ext <<_ACEOF
11739/* confdefs.h. */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h. */
11744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11746#define $ac_func innocuous_$ac_func
11747
11748/* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char $ac_func (); below.
11750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11751 <limits.h> exists even on freestanding compilers. */
11752
11753#ifdef __STDC__
11754# include <limits.h>
11755#else
11756# include <assert.h>
11757#endif
11758
11759#undef $ac_func
11760
11761/* Override any gcc2 internal prototype to avoid an error. */
11762#ifdef __cplusplus
11763extern "C"
11764{
11765#endif
11766/* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11768char $ac_func ();
11769/* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11773choke me
11774#else
11775char (*f) () = $ac_func;
11776#endif
11777#ifdef __cplusplus
11778}
11779#endif
11780
11781int
11782main ()
11783{
11784return f != $ac_func;
11785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext conftest$ac_exeext
11790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791 (eval $ac_link) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest$ac_exeext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "$as_ac_var=yes"
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816eval "$as_ac_var=no"
11817fi
11818rm -f conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820fi
11821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11823if test `eval echo '${'$as_ac_var'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826_ACEOF
11827
11828 echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
11829echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
11830 if test "$cross_compiling" = yes; then
11831 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
11832echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11833
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841
11842#include <stdlib.h>
11843#include <errno.h>
11844int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
11845
11846_ACEOF
11847rm -f conftest$ac_exeext
11848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 echo "$as_me:$LINENO: result: yes" >&5
11859echo "${ECHO_T}yes" >&6
11860else
11861 echo "$as_me: program exited with status $ac_status" >&5
11862echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865( exit $ac_status )
11866cat >>confdefs.h <<\_ACEOF
11867#define BROKEN_SETRESGID 1
11868_ACEOF
11869
11870 echo "$as_me:$LINENO: result: not implemented" >&5
11871echo "${ECHO_T}not implemented" >&6
11872fi
11873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11874fi
11875
11876fi
11877done
11878
11879
11880
11881
11882for ac_func in gettimeofday time
11883do
11884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885echo "$as_me:$LINENO: checking for $ac_func" >&5
11886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11887if eval "test \"\${$as_ac_var+set}\" = set"; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889else
11890 cat >conftest.$ac_ext <<_ACEOF
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
11896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11898#define $ac_func innocuous_$ac_func
11899
11900/* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char $ac_func (); below.
11902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903 <limits.h> exists even on freestanding compilers. */
11904
11905#ifdef __STDC__
11906# include <limits.h>
11907#else
11908# include <assert.h>
11909#endif
11910
11911#undef $ac_func
11912
11913/* Override any gcc2 internal prototype to avoid an error. */
11914#ifdef __cplusplus
11915extern "C"
11916{
11917#endif
11918/* We use char because int might match the return type of a gcc2
11919 builtin and then its argument prototype would still apply. */
11920char $ac_func ();
11921/* The GNU C library defines this for functions which it implements
11922 to always fail with ENOSYS. Some functions are actually named
11923 something starting with __ and the normal name is an alias. */
11924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11925choke me
11926#else
11927char (*f) () = $ac_func;
11928#endif
11929#ifdef __cplusplus
11930}
11931#endif
11932
11933int
11934main ()
11935{
11936return f != $ac_func;
11937 ;
11938 return 0;
11939}
11940_ACEOF
11941rm -f conftest.$ac_objext conftest$ac_exeext
11942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -z "$ac_c_werror_flag"
11951 || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 eval "$as_ac_var=yes"
11964else
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968eval "$as_ac_var=no"
11969fi
11970rm -f conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972fi
11973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11975if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978_ACEOF
11979
11980fi
11981done
11982
11983
11984
11985
11986
11987
11988
11989for ac_func in endutent getutent getutid getutline pututline setutent
11990do
11991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11992echo "$as_me:$LINENO: checking for $ac_func" >&5
11993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11994if eval "test \"\${$as_ac_var+set}\" = set"; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 cat >conftest.$ac_ext <<_ACEOF
11998/* confdefs.h. */
11999_ACEOF
12000cat confdefs.h >>conftest.$ac_ext
12001cat >>conftest.$ac_ext <<_ACEOF
12002/* end confdefs.h. */
12003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12005#define $ac_func innocuous_$ac_func
12006
12007/* System header to define __stub macros and hopefully few prototypes,
12008 which can conflict with char $ac_func (); below.
12009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12010 <limits.h> exists even on freestanding compilers. */
12011
12012#ifdef __STDC__
12013# include <limits.h>
12014#else
12015# include <assert.h>
12016#endif
12017
12018#undef $ac_func
12019
12020/* Override any gcc2 internal prototype to avoid an error. */
12021#ifdef __cplusplus
12022extern "C"
12023{
12024#endif
12025/* We use char because int might match the return type of a gcc2
12026 builtin and then its argument prototype would still apply. */
12027char $ac_func ();
12028/* The GNU C library defines this for functions which it implements
12029 to always fail with ENOSYS. Some functions are actually named
12030 something starting with __ and the normal name is an alias. */
12031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12032choke me
12033#else
12034char (*f) () = $ac_func;
12035#endif
12036#ifdef __cplusplus
12037}
12038#endif
12039
12040int
12041main ()
12042{
12043return f != $ac_func;
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext conftest$ac_exeext
12049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try='test -s conftest$ac_exeext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 eval "$as_ac_var=yes"
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075eval "$as_ac_var=no"
12076fi
12077rm -f conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079fi
12080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12082if test `eval echo '${'$as_ac_var'}'` = yes; then
12083 cat >>confdefs.h <<_ACEOF
12084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12085_ACEOF
12086
12087fi
12088done
12089
12090
12091for ac_func in utmpname
12092do
12093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12094echo "$as_me:$LINENO: checking for $ac_func" >&5
12095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12096if eval "test \"\${$as_ac_var+set}\" = set"; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
12099 cat >conftest.$ac_ext <<_ACEOF
12100/* confdefs.h. */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h. */
12105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12107#define $ac_func innocuous_$ac_func
12108
12109/* System header to define __stub macros and hopefully few prototypes,
12110 which can conflict with char $ac_func (); below.
12111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12112 <limits.h> exists even on freestanding compilers. */
12113
12114#ifdef __STDC__
12115# include <limits.h>
12116#else
12117# include <assert.h>
12118#endif
12119
12120#undef $ac_func
12121
12122/* Override any gcc2 internal prototype to avoid an error. */
12123#ifdef __cplusplus
12124extern "C"
12125{
12126#endif
12127/* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12129char $ac_func ();
12130/* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
12133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12134choke me
12135#else
12136char (*f) () = $ac_func;
12137#endif
12138#ifdef __cplusplus
12139}
12140#endif
12141
12142int
12143main ()
12144{
12145return f != $ac_func;
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext conftest$ac_exeext
12151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 eval "$as_ac_var=yes"
12173else
12174 echo "$as_me: failed program was:" >&5
12175sed 's/^/| /' conftest.$ac_ext >&5
12176
12177eval "$as_ac_var=no"
12178fi
12179rm -f conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181fi
12182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12183echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12184if test `eval echo '${'$as_ac_var'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12187_ACEOF
12188
12189fi
12190done
12191
12192
12193
12194
12195
12196
12197for ac_func in endutxent getutxent getutxid getutxline pututxline
12198do
12199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200echo "$as_me:$LINENO: checking for $ac_func" >&5
12201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12202if eval "test \"\${$as_ac_var+set}\" = set"; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204else
12205 cat >conftest.$ac_ext <<_ACEOF
12206/* confdefs.h. */
12207_ACEOF
12208cat confdefs.h >>conftest.$ac_ext
12209cat >>conftest.$ac_ext <<_ACEOF
12210/* end confdefs.h. */
12211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12213#define $ac_func innocuous_$ac_func
12214
12215/* System header to define __stub macros and hopefully few prototypes,
12216 which can conflict with char $ac_func (); below.
12217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12218 <limits.h> exists even on freestanding compilers. */
12219
12220#ifdef __STDC__
12221# include <limits.h>
12222#else
12223# include <assert.h>
12224#endif
12225
12226#undef $ac_func
12227
12228/* Override any gcc2 internal prototype to avoid an error. */
12229#ifdef __cplusplus
12230extern "C"
12231{
12232#endif
12233/* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12235char $ac_func ();
12236/* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
12239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240choke me
12241#else
12242char (*f) () = $ac_func;
12243#endif
12244#ifdef __cplusplus
12245}
12246#endif
12247
12248int
12249main ()
12250{
12251return f != $ac_func;
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 eval "$as_ac_var=yes"
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283eval "$as_ac_var=no"
12284fi
12285rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287fi
12288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12290if test `eval echo '${'$as_ac_var'}'` = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12293_ACEOF
12294
12295fi
12296done
12297
12298
12299
12300for ac_func in setutxent utmpxname
12301do
12302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12303echo "$as_me:$LINENO: checking for $ac_func" >&5
12304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12305if eval "test \"\${$as_ac_var+set}\" = set"; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307else
12308 cat >conftest.$ac_ext <<_ACEOF
12309/* confdefs.h. */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h. */
12314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12316#define $ac_func innocuous_$ac_func
12317
12318/* System header to define __stub macros and hopefully few prototypes,
12319 which can conflict with char $ac_func (); below.
12320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321 <limits.h> exists even on freestanding compilers. */
12322
12323#ifdef __STDC__
12324# include <limits.h>
12325#else
12326# include <assert.h>
12327#endif
12328
12329#undef $ac_func
12330
12331/* Override any gcc2 internal prototype to avoid an error. */
12332#ifdef __cplusplus
12333extern "C"
12334{
12335#endif
12336/* We use char because int might match the return type of a gcc2
12337 builtin and then its argument prototype would still apply. */
12338char $ac_func ();
12339/* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12343choke me
12344#else
12345char (*f) () = $ac_func;
12346#endif
12347#ifdef __cplusplus
12348}
12349#endif
12350
12351int
12352main ()
12353{
12354return f != $ac_func;
12355 ;
12356 return 0;
12357}
12358_ACEOF
12359rm -f conftest.$ac_objext conftest$ac_exeext
12360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361 (eval $ac_link) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 eval "$as_ac_var=yes"
12382else
12383 echo "$as_me: failed program was:" >&5
12384sed 's/^/| /' conftest.$ac_ext >&5
12385
12386eval "$as_ac_var=no"
12387fi
12388rm -f conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390fi
12391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12393if test `eval echo '${'$as_ac_var'}'` = yes; then
12394 cat >>confdefs.h <<_ACEOF
12395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12396_ACEOF
12397
12398fi
12399done
12400
12401
12402echo "$as_me:$LINENO: checking for daemon" >&5
12403echo $ECHO_N "checking for daemon... $ECHO_C" >&6
12404if test "${ac_cv_func_daemon+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406else
12407 cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
12413/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
12414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12415#define daemon innocuous_daemon
12416
12417/* System header to define __stub macros and hopefully few prototypes,
12418 which can conflict with char daemon (); below.
12419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12420 <limits.h> exists even on freestanding compilers. */
12421
12422#ifdef __STDC__
12423# include <limits.h>
12424#else
12425# include <assert.h>
12426#endif
12427
12428#undef daemon
12429
12430/* Override any gcc2 internal prototype to avoid an error. */
12431#ifdef __cplusplus
12432extern "C"
12433{
12434#endif
12435/* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12437char daemon ();
12438/* The GNU C library defines this for functions which it implements
12439 to always fail with ENOSYS. Some functions are actually named
12440 something starting with __ and the normal name is an alias. */
12441#if defined (__stub_daemon) || defined (__stub___daemon)
12442choke me
12443#else
12444char (*f) () = daemon;
12445#endif
12446#ifdef __cplusplus
12447}
12448#endif
12449
12450int
12451main ()
12452{
12453return f != daemon;
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460 (eval $ac_link) 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -z "$ac_c_werror_flag"
12468 || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_func_daemon=yes
12481else
12482 echo "$as_me: failed program was:" >&5
12483sed 's/^/| /' conftest.$ac_ext >&5
12484
12485ac_cv_func_daemon=no
12486fi
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489fi
12490echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
12491echo "${ECHO_T}$ac_cv_func_daemon" >&6
12492if test $ac_cv_func_daemon = yes; then
12493 cat >>confdefs.h <<\_ACEOF
12494#define HAVE_DAEMON 1
12495_ACEOF
12496
12497else
12498 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
12499echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
12500if test "${ac_cv_lib_bsd_daemon+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502else
12503 ac_check_lib_save_LIBS=$LIBS
12504LIBS="-lbsd $LIBS"
12505cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511
12512/* Override any gcc2 internal prototype to avoid an error. */
12513#ifdef __cplusplus
12514extern "C"
12515#endif
12516/* We use char because int might match the return type of a gcc2
12517 builtin and then its argument prototype would still apply. */
12518char daemon ();
12519int
12520main ()
12521{
12522daemon ();
12523 ;
12524 return 0;
12525}
12526_ACEOF
12527rm -f conftest.$ac_objext conftest$ac_exeext
12528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_lib_bsd_daemon=yes
12550else
12551 echo "$as_me: failed program was:" >&5
12552sed 's/^/| /' conftest.$ac_ext >&5
12553
12554ac_cv_lib_bsd_daemon=no
12555fi
12556rm -f conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558LIBS=$ac_check_lib_save_LIBS
12559fi
12560echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
12561echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
12562if test $ac_cv_lib_bsd_daemon = yes; then
12563 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
12564#define HAVE_DAEMON 1
12565_ACEOF
12566
12567fi
12568
12569
12570fi
12571
12572
12573echo "$as_me:$LINENO: checking for getpagesize" >&5
12574echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
12575if test "${ac_cv_func_getpagesize+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577else
12578 cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h. */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h. */
12584/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586#define getpagesize innocuous_getpagesize
12587
12588/* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char getpagesize (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12592
12593#ifdef __STDC__
12594# include <limits.h>
12595#else
12596# include <assert.h>
12597#endif
12598
12599#undef getpagesize
12600
12601/* Override any gcc2 internal prototype to avoid an error. */
12602#ifdef __cplusplus
12603extern "C"
12604{
12605#endif
12606/* We use char because int might match the return type of a gcc2
12607 builtin and then its argument prototype would still apply. */
12608char getpagesize ();
12609/* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
12613choke me
12614#else
12615char (*f) () = getpagesize;
12616#endif
12617#ifdef __cplusplus
12618}
12619#endif
12620
12621int
12622main ()
12623{
12624return f != getpagesize;
12625 ;
12626 return 0;
12627}
12628_ACEOF
12629rm -f conftest.$ac_objext conftest$ac_exeext
12630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_func_getpagesize=yes
12652else
12653 echo "$as_me: failed program was:" >&5
12654sed 's/^/| /' conftest.$ac_ext >&5
12655
12656ac_cv_func_getpagesize=no
12657fi
12658rm -f conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660fi
12661echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
12662echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
12663if test $ac_cv_func_getpagesize = yes; then
12664 cat >>confdefs.h <<\_ACEOF
12665#define HAVE_GETPAGESIZE 1
12666_ACEOF
12667
12668else
12669 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
12670echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
12671if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673else
12674 ac_check_lib_save_LIBS=$LIBS
12675LIBS="-lucb $LIBS"
12676cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682
12683/* Override any gcc2 internal prototype to avoid an error. */
12684#ifdef __cplusplus
12685extern "C"
12686#endif
12687/* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12689char getpagesize ();
12690int
12691main ()
12692{
12693getpagesize ();
12694 ;
12695 return 0;
12696}
12697_ACEOF
12698rm -f conftest.$ac_objext conftest$ac_exeext
12699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -z "$ac_c_werror_flag"
12708 || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 ac_cv_lib_ucb_getpagesize=yes
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725ac_cv_lib_ucb_getpagesize=no
12726fi
12727rm -f conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
12732echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
12733if test $ac_cv_lib_ucb_getpagesize = yes; then
12734 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
12735#define HAVE_GETPAGESIZE 1
12736_ACEOF
12737
12738fi
12739
12740
12741fi
12742
12743
12744# Check for broken snprintf
12745if test "x$ac_cv_func_snprintf" = "xyes" ; then
12746 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
12747echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
12748 if test "$cross_compiling" = yes; then
12749 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
12750echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12751
12752else
12753 cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759
12760#include <stdio.h>
12761int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
12762
12763_ACEOF
12764rm -f conftest$ac_exeext
12765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766 (eval $ac_link) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 echo "$as_me:$LINENO: result: yes" >&5
12776echo "${ECHO_T}yes" >&6
12777else
12778 echo "$as_me: program exited with status $ac_status" >&5
12779echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782( exit $ac_status )
12783
12784 echo "$as_me:$LINENO: result: no" >&5
12785echo "${ECHO_T}no" >&6
12786 cat >>confdefs.h <<\_ACEOF
12787#define BROKEN_SNPRINTF 1
12788_ACEOF
12789
12790 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
12791echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
12792
12793fi
12794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12795fi
12796fi
12797
12798# Check for missing getpeereid (or equiv) support
12799NO_PEERCHECK=""
12800if test "x$ac_cv_func_getpeereid" != "xyes" ; then
12801 echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
12802echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6
12803 cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809#include <sys/types.h>
12810 #include <sys/socket.h>
12811int
12812main ()
12813{
12814int i = SO_PEERCRED;
12815 ;
12816 return 0;
12817}
12818_ACEOF
12819rm -f conftest.$ac_objext
12820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag"
12829 || test ! -s conftest.err'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 echo "$as_me:$LINENO: result: yes" >&5
12842echo "${ECHO_T}yes" >&6
12843
12844cat >>confdefs.h <<\_ACEOF
12845#define HAVE_SO_PEERCRED
12846_ACEOF
12847
12848
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853echo "$as_me:$LINENO: result: no" >&5
12854echo "${ECHO_T}no" >&6
12855 NO_PEERCHECK=1
12856
12857fi
12858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
12860
12861if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
12862echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
12863echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
12864if test "$cross_compiling" = yes; then
12865
12866 echo "$as_me:$LINENO: result: yes" >&5
12867echo "${ECHO_T}yes" >&6
12868 cat >>confdefs.h <<\_ACEOF
12869#define HAVE_STRICT_MKSTEMP 1
12870_ACEOF
12871
12872
12873
12874else
12875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881
12882#include <stdlib.h>
12883main() { char template[]="conftest.mkstemp-test";
12884if (mkstemp(template) == -1)
12885 exit(1);
12886unlink(template); exit(0);
12887}
12888
12889_ACEOF
12890rm -f conftest$ac_exeext
12891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901
12902 echo "$as_me:$LINENO: result: no" >&5
12903echo "${ECHO_T}no" >&6
12904
12905else
12906 echo "$as_me: program exited with status $ac_status" >&5
12907echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910( exit $ac_status )
12911
12912 echo "$as_me:$LINENO: result: yes" >&5
12913echo "${ECHO_T}yes" >&6
12914 cat >>confdefs.h <<\_ACEOF
12915#define HAVE_STRICT_MKSTEMP 1
12916_ACEOF
12917
12918
12919fi
12920rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12921fi
12922fi
12923
12924if test ! -z "$check_for_openpty_ctty_bug"; then
12925 echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
12926echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
12927 if test "$cross_compiling" = yes; then
12928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12929See \`config.log' for more details." >&5
12930echo "$as_me: error: cannot run test program while cross compiling
12931See \`config.log' for more details." >&2;}
12932 { (exit 1); exit 1; }; }
12933else
12934 cat >conftest.$ac_ext <<_ACEOF
12935/* confdefs.h. */
12936_ACEOF
12937cat confdefs.h >>conftest.$ac_ext
12938cat >>conftest.$ac_ext <<_ACEOF
12939/* end confdefs.h. */
12940
12941#include <stdio.h>
12942#include <sys/fcntl.h>
12943#include <sys/types.h>
12944#include <sys/wait.h>
12945
12946int
12947main()
12948{
12949 pid_t pid;
12950 int fd, ptyfd, ttyfd, status;
12951
12952 pid = fork();
12953 if (pid < 0) { /* failed */
12954 exit(1);
12955 } else if (pid > 0) { /* parent */
12956 waitpid(pid, &status, 0);
12957 if (WIFEXITED(status))
12958 exit(WEXITSTATUS(status));
12959 else
12960 exit(2);
12961 } else { /* child */
12962 close(0); close(1); close(2);
12963 setsid();
12964 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12965 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12966 if (fd >= 0)
12967 exit(3); /* Acquired ctty: broken */
12968 else
12969 exit(0); /* Did not acquire ctty: OK */
12970 }
12971}
12972
12973_ACEOF
12974rm -f conftest$ac_exeext
12975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985
12986 echo "$as_me:$LINENO: result: yes" >&5
12987echo "${ECHO_T}yes" >&6
12988
12989else
12990 echo "$as_me: program exited with status $ac_status" >&5
12991echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994( exit $ac_status )
12995
12996 echo "$as_me:$LINENO: result: no" >&5
12997echo "${ECHO_T}no" >&6
12998 cat >>confdefs.h <<\_ACEOF
12999#define SSHD_ACQUIRES_CTTY 1
13000_ACEOF
13001
13002
13003
13004fi
13005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13006fi
13007fi
13008
13009if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
13010 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
13011 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
13012echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
13013 if test "$cross_compiling" = yes; then
13014 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13015See \`config.log' for more details." >&5
13016echo "$as_me: error: cannot run test program while cross compiling
13017See \`config.log' for more details." >&2;}
13018 { (exit 1); exit 1; }; }
13019else
13020 cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h. */
13026
13027#include <stdio.h>
13028#include <sys/socket.h>
13029#include <netdb.h>
13030#include <errno.h>
13031#include <netinet/in.h>
13032
13033#define TEST_PORT "2222"
13034
13035int
13036main(void)
13037{
13038 int err, sock;
13039 struct addrinfo *gai_ai, *ai, hints;
13040 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
13041
13042 memset(&hints, 0, sizeof(hints));
13043 hints.ai_family = PF_UNSPEC;
13044 hints.ai_socktype = SOCK_STREAM;
13045 hints.ai_flags = AI_PASSIVE;
13046
13047 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
13048 if (err != 0) {
13049 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
13050 exit(1);
13051 }
13052
13053 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
13054 if (ai->ai_family != AF_INET6)
13055 continue;
13056
13057 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
13058 sizeof(ntop), strport, sizeof(strport),
13059 NI_NUMERICHOST|NI_NUMERICSERV);
13060
13061 if (err != 0) {
13062 if (err == EAI_SYSTEM)
13063 perror("getnameinfo EAI_SYSTEM");
13064 else
13065 fprintf(stderr, "getnameinfo failed: %s\n",
13066 gai_strerror(err));
13067 exit(2);
13068 }
13069
13070 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
13071 if (sock < 0)
13072 perror("socket");
13073 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
13074 if (errno == EBADF)
13075 exit(3);
13076 }
13077 }
13078 exit(0);
13079}
13080
13081_ACEOF
13082rm -f conftest$ac_exeext
13083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13084 (eval $ac_link) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093
13094 echo "$as_me:$LINENO: result: yes" >&5
13095echo "${ECHO_T}yes" >&6
13096
13097else
13098 echo "$as_me: program exited with status $ac_status" >&5
13099echo "$as_me: failed program was:" >&5
13100sed 's/^/| /' conftest.$ac_ext >&5
13101
13102( exit $ac_status )
13103
13104 echo "$as_me:$LINENO: result: no" >&5
13105echo "${ECHO_T}no" >&6
13106 cat >>confdefs.h <<\_ACEOF
13107#define BROKEN_GETADDRINFO 1
13108_ACEOF
13109
13110
13111
13112fi
13113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13114fi
13115fi
13116
13117if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
13118 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
13119 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
13120echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
13121 if test "$cross_compiling" = yes; then
13122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13123See \`config.log' for more details." >&5
13124echo "$as_me: error: cannot run test program while cross compiling
13125See \`config.log' for more details." >&2;}
13126 { (exit 1); exit 1; }; }
13127else
13128 cat >conftest.$ac_ext <<_ACEOF
13129/* confdefs.h. */
13130_ACEOF
13131cat confdefs.h >>conftest.$ac_ext
13132cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h. */
13134
13135#include <stdio.h>
13136#include <sys/socket.h>
13137#include <netdb.h>
13138#include <errno.h>
13139#include <netinet/in.h>
13140
13141#define TEST_PORT "2222"
13142
13143int
13144main(void)
13145{
13146 int err, sock;
13147 struct addrinfo *gai_ai, *ai, hints;
13148 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
13149
13150 memset(&hints, 0, sizeof(hints));
13151 hints.ai_family = PF_UNSPEC;
13152 hints.ai_socktype = SOCK_STREAM;
13153 hints.ai_flags = AI_PASSIVE;
13154
13155 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
13156 if (err != 0) {
13157 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
13158 exit(1);
13159 }
13160
13161 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
13162 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
13163 continue;
13164
13165 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
13166 sizeof(ntop), strport, sizeof(strport),
13167 NI_NUMERICHOST|NI_NUMERICSERV);
13168
13169 if (ai->ai_family == AF_INET && err != 0) {
13170 perror("getnameinfo");
13171 exit(2);
13172 }
13173 }
13174 exit(0);
13175}
13176
13177_ACEOF
13178rm -f conftest$ac_exeext
13179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189
13190 echo "$as_me:$LINENO: result: yes" >&5
13191echo "${ECHO_T}yes" >&6
13192
13193cat >>confdefs.h <<\_ACEOF
13194#define AIX_GETNAMEINFO_HACK
13195_ACEOF
13196
13197
13198else
13199 echo "$as_me: program exited with status $ac_status" >&5
13200echo "$as_me: failed program was:" >&5
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
13203( exit $ac_status )
13204
13205 echo "$as_me:$LINENO: result: no" >&5
13206echo "${ECHO_T}no" >&6
13207 cat >>confdefs.h <<\_ACEOF
13208#define BROKEN_GETADDRINFO 1
13209_ACEOF
13210
13211
13212
13213fi
13214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13215fi
13216fi
13217
13218if test "x$check_for_conflicting_getspnam" = "x1"; then
13219 echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
13220echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6
13221 cat >conftest.$ac_ext <<_ACEOF
13222
13223#include <shadow.h>
13224int main(void) {exit(0);}
13225
13226_ACEOF
13227rm -f conftest.$ac_objext
13228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229 (eval $ac_compile) 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest.$ac_objext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249
13250 echo "$as_me:$LINENO: result: no" >&5
13251echo "${ECHO_T}no" >&6
13252
13253else
13254 echo "$as_me: failed program was:" >&5
13255sed 's/^/| /' conftest.$ac_ext >&5
13256
13257
13258 echo "$as_me:$LINENO: result: yes" >&5
13259echo "${ECHO_T}yes" >&6
13260
13261cat >>confdefs.h <<\_ACEOF
13262#define GETSPNAM_CONFLICTING_DEFS 1
13263_ACEOF
13264
13265
13266
13267fi
13268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13269fi
13270
13271echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13272echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13273if test "${ac_cv_func_getpgrp_void+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275else
13276 # Use it with a single arg.
13277cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283$ac_includes_default
13284int
13285main ()
13286{
13287getpgrp (0);
13288 ;
13289 return 0;
13290}
13291_ACEOF
13292rm -f conftest.$ac_objext
13293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294 (eval $ac_compile) 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -z "$ac_c_werror_flag"
13302 || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_func_getpgrp_void=no
13315else
13316 echo "$as_me: failed program was:" >&5
13317sed 's/^/| /' conftest.$ac_ext >&5
13318
13319ac_cv_func_getpgrp_void=yes
13320fi
13321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13322
13323fi
13324echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13325echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13326if test $ac_cv_func_getpgrp_void = yes; then
13327
13328cat >>confdefs.h <<\_ACEOF
13329#define GETPGRP_VOID 1
13330_ACEOF
13331
13332fi
13333
13334
13335# Check for PAM libs
13336PAM_MSG="no"
13337
13338# Check whether --with-pam or --without-pam was given.
13339if test "${with_pam+set}" = set; then
13340 withval="$with_pam"
13341
13342 if test "x$withval" != "xno" ; then
13343 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
13344 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
13345 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
13346echo "$as_me: error: PAM headers not found" >&2;}
13347 { (exit 1); exit 1; }; }
13348 fi
13349
13350
13351echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13352echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13353if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
13356 ac_check_lib_save_LIBS=$LIBS
13357LIBS="-ldl $LIBS"
13358cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364
13365/* Override any gcc2 internal prototype to avoid an error. */
13366#ifdef __cplusplus
13367extern "C"
13368#endif
13369/* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371char dlopen ();
13372int
13373main ()
13374{
13375dlopen ();
13376 ;
13377 return 0;
13378}
13379_ACEOF
13380rm -f conftest.$ac_objext conftest$ac_exeext
13381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_lib_dl_dlopen=yes
13403else
13404 echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407ac_cv_lib_dl_dlopen=no
13408fi
13409rm -f conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411LIBS=$ac_check_lib_save_LIBS
13412fi
13413echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13414echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13415if test $ac_cv_lib_dl_dlopen = yes; then
13416 cat >>confdefs.h <<_ACEOF
13417#define HAVE_LIBDL 1
13418_ACEOF
13419
13420 LIBS="-ldl $LIBS"
13421
13422fi
13423
13424
13425echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
13426echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
13427if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429else
13430 ac_check_lib_save_LIBS=$LIBS
13431LIBS="-lpam $LIBS"
13432cat >conftest.$ac_ext <<_ACEOF
13433/* confdefs.h. */
13434_ACEOF
13435cat confdefs.h >>conftest.$ac_ext
13436cat >>conftest.$ac_ext <<_ACEOF
13437/* end confdefs.h. */
13438
13439/* Override any gcc2 internal prototype to avoid an error. */
13440#ifdef __cplusplus
13441extern "C"
13442#endif
13443/* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13445char pam_set_item ();
13446int
13447main ()
13448{
13449pam_set_item ();
13450 ;
13451 return 0;
13452}
13453_ACEOF
13454rm -f conftest.$ac_objext conftest$ac_exeext
13455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try='test -s conftest$ac_exeext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_cv_lib_pam_pam_set_item=yes
13477else
13478 echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481ac_cv_lib_pam_pam_set_item=no
13482fi
13483rm -f conftest.err conftest.$ac_objext \
13484 conftest$ac_exeext conftest.$ac_ext
13485LIBS=$ac_check_lib_save_LIBS
13486fi
13487echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
13488echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
13489if test $ac_cv_lib_pam_pam_set_item = yes; then
13490 cat >>confdefs.h <<_ACEOF
13491#define HAVE_LIBPAM 1
13492_ACEOF
13493
13494 LIBS="-lpam $LIBS"
13495
13496else
13497 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
13498echo "$as_me: error: *** libpam missing" >&2;}
13499 { (exit 1); exit 1; }; }
13500fi
13501
13502
13503for ac_func in pam_getenvlist
13504do
13505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13506echo "$as_me:$LINENO: checking for $ac_func" >&5
13507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13508if eval "test \"\${$as_ac_var+set}\" = set"; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510else
13511 cat >conftest.$ac_ext <<_ACEOF
13512/* confdefs.h. */
13513_ACEOF
13514cat confdefs.h >>conftest.$ac_ext
13515cat >>conftest.$ac_ext <<_ACEOF
13516/* end confdefs.h. */
13517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13519#define $ac_func innocuous_$ac_func
13520
13521/* System header to define __stub macros and hopefully few prototypes,
13522 which can conflict with char $ac_func (); below.
13523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13524 <limits.h> exists even on freestanding compilers. */
13525
13526#ifdef __STDC__
13527# include <limits.h>
13528#else
13529# include <assert.h>
13530#endif
13531
13532#undef $ac_func
13533
13534/* Override any gcc2 internal prototype to avoid an error. */
13535#ifdef __cplusplus
13536extern "C"
13537{
13538#endif
13539/* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13541char $ac_func ();
13542/* The GNU C library defines this for functions which it implements
13543 to always fail with ENOSYS. Some functions are actually named
13544 something starting with __ and the normal name is an alias. */
13545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13546choke me
13547#else
13548char (*f) () = $ac_func;
13549#endif
13550#ifdef __cplusplus
13551}
13552#endif
13553
13554int
13555main ()
13556{
13557return f != $ac_func;
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562rm -f conftest.$ac_objext conftest$ac_exeext
13563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564 (eval $ac_link) 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 eval "$as_ac_var=yes"
13585else
13586 echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589eval "$as_ac_var=no"
13590fi
13591rm -f conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593fi
13594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13596if test `eval echo '${'$as_ac_var'}'` = yes; then
13597 cat >>confdefs.h <<_ACEOF
13598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13599_ACEOF
13600
13601fi
13602done
13603
13604
13605for ac_func in pam_putenv
13606do
13607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13608echo "$as_me:$LINENO: checking for $ac_func" >&5
13609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13610if eval "test \"\${$as_ac_var+set}\" = set"; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613 cat >conftest.$ac_ext <<_ACEOF
13614/* confdefs.h. */
13615_ACEOF
13616cat confdefs.h >>conftest.$ac_ext
13617cat >>conftest.$ac_ext <<_ACEOF
13618/* end confdefs.h. */
13619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13621#define $ac_func innocuous_$ac_func
13622
13623/* System header to define __stub macros and hopefully few prototypes,
13624 which can conflict with char $ac_func (); below.
13625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 <limits.h> exists even on freestanding compilers. */
13627
13628#ifdef __STDC__
13629# include <limits.h>
13630#else
13631# include <assert.h>
13632#endif
13633
13634#undef $ac_func
13635
13636/* Override any gcc2 internal prototype to avoid an error. */
13637#ifdef __cplusplus
13638extern "C"
13639{
13640#endif
13641/* We use char because int might match the return type of a gcc2
13642 builtin and then its argument prototype would still apply. */
13643char $ac_func ();
13644/* The GNU C library defines this for functions which it implements
13645 to always fail with ENOSYS. Some functions are actually named
13646 something starting with __ and the normal name is an alias. */
13647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13648choke me
13649#else
13650char (*f) () = $ac_func;
13651#endif
13652#ifdef __cplusplus
13653}
13654#endif
13655
13656int
13657main ()
13658{
13659return f != $ac_func;
13660 ;
13661 return 0;
13662}
13663_ACEOF
13664rm -f conftest.$ac_objext conftest$ac_exeext
13665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13667 ac_status=$?
13668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 eval "$as_ac_var=yes"
13687else
13688 echo "$as_me: failed program was:" >&5
13689sed 's/^/| /' conftest.$ac_ext >&5
13690
13691eval "$as_ac_var=no"
13692fi
13693rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695fi
13696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13698if test `eval echo '${'$as_ac_var'}'` = yes; then
13699 cat >>confdefs.h <<_ACEOF
13700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13701_ACEOF
13702
13703fi
13704done
13705
13706
13707 PAM_MSG="yes"
13708
13709 cat >>confdefs.h <<\_ACEOF
13710#define USE_PAM 1
13711_ACEOF
13712
13713 if test $ac_cv_lib_dl_dlopen = yes; then
13714 LIBPAM="-lpam -ldl"
13715 else
13716 LIBPAM="-lpam"
13717 fi
13718
13719 fi
13720
13721
13722fi;
13723
13724# Check for older PAM
13725if test "x$PAM_MSG" = "xyes" ; then
13726 # Check PAM strerror arguments (old PAM)
13727 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
13728echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
13729 cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735
13736#include <stdlib.h>
13737#if defined(HAVE_SECURITY_PAM_APPL_H)
13738#include <security/pam_appl.h>
13739#elif defined (HAVE_PAM_PAM_APPL_H)
13740#include <pam/pam_appl.h>
13741#endif
13742
13743int
13744main ()
13745{
13746(void)pam_strerror((pam_handle_t *)NULL, -1);
13747 ;
13748 return 0;
13749}
13750_ACEOF
13751rm -f conftest.$ac_objext
13752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 echo "$as_me:$LINENO: result: no" >&5
13774echo "${ECHO_T}no" >&6
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779
13780 cat >>confdefs.h <<\_ACEOF
13781#define HAVE_OLD_PAM 1
13782_ACEOF
13783
13784 echo "$as_me:$LINENO: result: yes" >&5
13785echo "${ECHO_T}yes" >&6
13786 PAM_MSG="yes (old library)"
13787
13788
13789fi
13790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791fi
13792
13793# Search for OpenSSL
13794saved_CPPFLAGS="$CPPFLAGS"
13795saved_LDFLAGS="$LDFLAGS"
13796
13797# Check whether --with-ssl-dir or --without-ssl-dir was given.
13798if test "${with_ssl_dir+set}" = set; then
13799 withval="$with_ssl_dir"
13800
13801 if test "x$withval" != "xno" ; then
13802 case "$withval" in
13803 # Relative paths
13804 ./*|../*) withval="`pwd`/$withval"
13805 esac
13806 if test -d "$withval/lib"; then
13807 if test -n "${need_dash_r}"; then
13808 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13809 else
13810 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13811 fi
13812 else
13813 if test -n "${need_dash_r}"; then
13814 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13815 else
13816 LDFLAGS="-L${withval} ${LDFLAGS}"
13817 fi
13818 fi
13819 if test -d "$withval/include"; then
13820 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13821 else
13822 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13823 fi
13824 fi
13825
13826
13827fi;
13828LIBS="-lcrypto $LIBS"
13829cat >conftest.$ac_ext <<_ACEOF
13830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
13835
13836/* Override any gcc2 internal prototype to avoid an error. */
13837#ifdef __cplusplus
13838extern "C"
13839#endif
13840/* We use char because int might match the return type of a gcc2
13841 builtin and then its argument prototype would still apply. */
13842char RAND_add ();
13843int
13844main ()
13845{
13846RAND_add ();
13847 ;
13848 return 0;
13849}
13850_ACEOF
13851rm -f conftest.$ac_objext conftest$ac_exeext
13852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853 (eval $ac_link) 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag"
13861 || test ! -s conftest.err'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest$ac_exeext'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 cat >>confdefs.h <<\_ACEOF
13874#define HAVE_OPENSSL 1
13875_ACEOF
13876
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881
13882 if test -n "${need_dash_r}"; then
13883 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
13884 else
13885 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
13886 fi
13887 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
13888 cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894
13895/* Override any gcc2 internal prototype to avoid an error. */
13896#ifdef __cplusplus
13897extern "C"
13898#endif
13899/* We use char because int might match the return type of a gcc2
13900 builtin and then its argument prototype would still apply. */
13901char RAND_add ();
13902int
13903main ()
13904{
13905RAND_add ();
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext conftest$ac_exeext
13911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912 (eval $ac_link) 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 cat >>confdefs.h <<\_ACEOF
13933#define HAVE_OPENSSL 1
13934_ACEOF
13935
13936else
13937 echo "$as_me: failed program was:" >&5
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940
13941 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
13942echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
13943 { (exit 1); exit 1; }; }
13944
13945
13946fi
13947rm -f conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949
13950
13951fi
13952rm -f conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954
13955# Determine OpenSSL header version
13956echo "$as_me:$LINENO: checking OpenSSL header version" >&5
13957echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
13958if test "$cross_compiling" = yes; then
13959
13960 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
13961echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13962
13963
13964else
13965 cat >conftest.$ac_ext <<_ACEOF
13966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
13971
13972#include <stdio.h>
13973#include <string.h>
13974#include <openssl/opensslv.h>
13975#define DATA "conftest.sslincver"
13976int main(void) {
13977 FILE *fd;
13978 int rc;
13979
13980 fd = fopen(DATA,"w");
13981 if(fd == NULL)
13982 exit(1);
13983
13984 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
13985 exit(1);
13986
13987 exit(0);
13988}
13989
13990_ACEOF
13991rm -f conftest$ac_exeext
13992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13993 (eval $ac_link) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002
14003 ssl_header_ver=`cat conftest.sslincver`
14004 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
14005echo "${ECHO_T}$ssl_header_ver" >&6
14006
14007else
14008 echo "$as_me: program exited with status $ac_status" >&5
14009echo "$as_me: failed program was:" >&5
14010sed 's/^/| /' conftest.$ac_ext >&5
14011
14012( exit $ac_status )
14013
14014 echo "$as_me:$LINENO: result: not found" >&5
14015echo "${ECHO_T}not found" >&6
14016 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
14017echo "$as_me: error: OpenSSL version header not found." >&2;}
14018 { (exit 1); exit 1; }; }
14019
14020fi
14021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14022fi
14023
14024# Determine OpenSSL library version
14025echo "$as_me:$LINENO: checking OpenSSL library version" >&5
14026echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
14027if test "$cross_compiling" = yes; then
14028
14029 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
14030echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14031
14032
14033else
14034 cat >conftest.$ac_ext <<_ACEOF
14035/* confdefs.h. */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h. */
14040
14041#include <stdio.h>
14042#include <string.h>
14043#include <openssl/opensslv.h>
14044#include <openssl/crypto.h>
14045#define DATA "conftest.ssllibver"
14046int main(void) {
14047 FILE *fd;
14048 int rc;
14049
14050 fd = fopen(DATA,"w");
14051 if(fd == NULL)
14052 exit(1);
14053
14054 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
14055 exit(1);
14056
14057 exit(0);
14058}
14059
14060_ACEOF
14061rm -f conftest$ac_exeext
14062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072
14073 ssl_library_ver=`cat conftest.ssllibver`
14074 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
14075echo "${ECHO_T}$ssl_library_ver" >&6
14076
14077else
14078 echo "$as_me: program exited with status $ac_status" >&5
14079echo "$as_me: failed program was:" >&5
14080sed 's/^/| /' conftest.$ac_ext >&5
14081
14082( exit $ac_status )
14083
14084 echo "$as_me:$LINENO: result: not found" >&5
14085echo "${ECHO_T}not found" >&6
14086 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
14087echo "$as_me: error: OpenSSL library not found." >&2;}
14088 { (exit 1); exit 1; }; }
14089
14090fi
14091rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14092fi
14093
14094# Sanity check OpenSSL headers
14095echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
14096echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
14097if test "$cross_compiling" = yes; then
14098
14099 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
14100echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14101
14102
14103else
14104 cat >conftest.$ac_ext <<_ACEOF
14105/* confdefs.h. */
14106_ACEOF
14107cat confdefs.h >>conftest.$ac_ext
14108cat >>conftest.$ac_ext <<_ACEOF
14109/* end confdefs.h. */
14110
14111#include <string.h>
14112#include <openssl/opensslv.h>
14113int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
14114
14115_ACEOF
14116rm -f conftest$ac_exeext
14117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118 (eval $ac_link) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127
14128 echo "$as_me:$LINENO: result: yes" >&5
14129echo "${ECHO_T}yes" >&6
14130
14131else
14132 echo "$as_me: program exited with status $ac_status" >&5
14133echo "$as_me: failed program was:" >&5
14134sed 's/^/| /' conftest.$ac_ext >&5
14135
14136( exit $ac_status )
14137
14138 echo "$as_me:$LINENO: result: no" >&5
14139echo "${ECHO_T}no" >&6
14140 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
14141Check config.log for details.
14142Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
14143echo "$as_me: error: Your OpenSSL headers do not match your library.
14144Check config.log for details.
14145Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
14146 { (exit 1); exit 1; }; }
14147
14148fi
14149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14150fi
14151
14152# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
14153# because the system crypt() is more featureful.
14154if test "x$check_for_libcrypt_before" = "x1"; then
14155
14156echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14157echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14158if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160else
14161 ac_check_lib_save_LIBS=$LIBS
14162LIBS="-lcrypt $LIBS"
14163cat >conftest.$ac_ext <<_ACEOF
14164/* confdefs.h. */
14165_ACEOF
14166cat confdefs.h >>conftest.$ac_ext
14167cat >>conftest.$ac_ext <<_ACEOF
14168/* end confdefs.h. */
14169
14170/* Override any gcc2 internal prototype to avoid an error. */
14171#ifdef __cplusplus
14172extern "C"
14173#endif
14174/* We use char because int might match the return type of a gcc2
14175 builtin and then its argument prototype would still apply. */
14176char crypt ();
14177int
14178main ()
14179{
14180crypt ();
14181 ;
14182 return 0;
14183}
14184_ACEOF
14185rm -f conftest.$ac_objext conftest$ac_exeext
14186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187 (eval $ac_link) 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_c_werror_flag"
14195 || test ! -s conftest.err'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_lib_crypt_crypt=yes
14208else
14209 echo "$as_me: failed program was:" >&5
14210sed 's/^/| /' conftest.$ac_ext >&5
14211
14212ac_cv_lib_crypt_crypt=no
14213fi
14214rm -f conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216LIBS=$ac_check_lib_save_LIBS
14217fi
14218echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14219echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14220if test $ac_cv_lib_crypt_crypt = yes; then
14221 cat >>confdefs.h <<_ACEOF
14222#define HAVE_LIBCRYPT 1
14223_ACEOF
14224
14225 LIBS="-lcrypt $LIBS"
14226
14227fi
14228
14229fi
14230
14231# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
14232# version in OpenSSL.
14233if test "x$check_for_libcrypt_later" = "x1"; then
14234 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14235echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14236if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238else
14239 ac_check_lib_save_LIBS=$LIBS
14240LIBS="-lcrypt $LIBS"
14241cat >conftest.$ac_ext <<_ACEOF
14242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h. */
14247
14248/* Override any gcc2 internal prototype to avoid an error. */
14249#ifdef __cplusplus
14250extern "C"
14251#endif
14252/* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254char crypt ();
14255int
14256main ()
14257{
14258crypt ();
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext conftest$ac_exeext
14264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag"
14273 || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest$ac_exeext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_lib_crypt_crypt=yes
14286else
14287 echo "$as_me: failed program was:" >&5
14288sed 's/^/| /' conftest.$ac_ext >&5
14289
14290ac_cv_lib_crypt_crypt=no
14291fi
14292rm -f conftest.err conftest.$ac_objext \
14293 conftest$ac_exeext conftest.$ac_ext
14294LIBS=$ac_check_lib_save_LIBS
14295fi
14296echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14297echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14298if test $ac_cv_lib_crypt_crypt = yes; then
14299 LIBS="$LIBS -lcrypt"
14300fi
14301
14302fi
14303
14304
14305### Configure cryptographic random number support
14306
14307# Check wheter OpenSSL seeds itself
14308echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
14309echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
14310if test "$cross_compiling" = yes; then
14311
14312 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
14313echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14314 # This is safe, since all recent OpenSSL versions will
14315 # complain at runtime if not seeded correctly.
14316 OPENSSL_SEEDS_ITSELF=yes
14317
14318
14319else
14320 cat >conftest.$ac_ext <<_ACEOF
14321/* confdefs.h. */
14322_ACEOF
14323cat confdefs.h >>conftest.$ac_ext
14324cat >>conftest.$ac_ext <<_ACEOF
14325/* end confdefs.h. */
14326
14327#include <string.h>
14328#include <openssl/rand.h>
14329int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
14330
14331_ACEOF
14332rm -f conftest$ac_exeext
14333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343
14344 OPENSSL_SEEDS_ITSELF=yes
14345 echo "$as_me:$LINENO: result: yes" >&5
14346echo "${ECHO_T}yes" >&6
14347
14348else
14349 echo "$as_me: program exited with status $ac_status" >&5
14350echo "$as_me: failed program was:" >&5
14351sed 's/^/| /' conftest.$ac_ext >&5
14352
14353( exit $ac_status )
14354
14355 echo "$as_me:$LINENO: result: no" >&5
14356echo "${ECHO_T}no" >&6
14357 # Default to use of the rand helper if OpenSSL doesn't
14358 # seed itself
14359 USE_RAND_HELPER=yes
14360
14361fi
14362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14363fi
14364
14365
14366# Do we want to force the use of the rand helper?
14367
14368# Check whether --with-rand-helper or --without-rand-helper was given.
14369if test "${with_rand_helper+set}" = set; then
14370 withval="$with_rand_helper"
14371
14372 if test "x$withval" = "xno" ; then
14373 # Force use of OpenSSL's internal RNG, even if
14374 # the previous test showed it to be unseeded.
14375 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
14376 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
14377echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
14378 OPENSSL_SEEDS_ITSELF=yes
14379 USE_RAND_HELPER=""
14380 fi
14381 else
14382 USE_RAND_HELPER=yes
14383 fi
14384
14385fi;
14386
14387# Which randomness source do we use?
14388if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
14389 # OpenSSL only
14390 cat >>confdefs.h <<\_ACEOF
14391#define OPENSSL_PRNG_ONLY 1
14392_ACEOF
14393
14394 RAND_MSG="OpenSSL internal ONLY"
14395 INSTALL_SSH_RAND_HELPER=""
14396elif test ! -z "$USE_RAND_HELPER" ; then
14397 # install rand helper
14398 RAND_MSG="ssh-rand-helper"
14399 INSTALL_SSH_RAND_HELPER="yes"
14400fi
14401
14402
14403### Configuration of ssh-rand-helper
14404
14405# PRNGD TCP socket
14406
14407# Check whether --with-prngd-port or --without-prngd-port was given.
14408if test "${with_prngd_port+set}" = set; then
14409 withval="$with_prngd_port"
14410
14411 case "$withval" in
14412 no)
14413 withval=""
14414 ;;
14415 [0-9]*)
14416 ;;
14417 *)
14418 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
14419echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
14420 { (exit 1); exit 1; }; }
14421 ;;
14422 esac
14423 if test ! -z "$withval" ; then
14424 PRNGD_PORT="$withval"
14425 cat >>confdefs.h <<_ACEOF
14426#define PRNGD_PORT $PRNGD_PORT
14427_ACEOF
14428
14429 fi
14430
14431
14432fi;
14433
14434# PRNGD Unix domain socket
14435
14436# Check whether --with-prngd-socket or --without-prngd-socket was given.
14437if test "${with_prngd_socket+set}" = set; then
14438 withval="$with_prngd_socket"
14439
14440 case "$withval" in
14441 yes)
14442 withval="/var/run/egd-pool"
14443 ;;
14444 no)
14445 withval=""
14446 ;;
14447 /*)
14448 ;;
14449 *)
14450 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
14451echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
14452 { (exit 1); exit 1; }; }
14453 ;;
14454 esac
14455
14456 if test ! -z "$withval" ; then
14457 if test ! -z "$PRNGD_PORT" ; then
14458 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
14459echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
14460 { (exit 1); exit 1; }; }
14461 fi
14462 if test ! -r "$withval" ; then
14463 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
14464echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
14465 fi
14466 PRNGD_SOCKET="$withval"
14467 cat >>confdefs.h <<_ACEOF
14468#define PRNGD_SOCKET "$PRNGD_SOCKET"
14469_ACEOF
14470
14471 fi
14472
14473else
14474
14475 # Check for existing socket only if we don't have a random device already
14476 if test "$USE_RAND_HELPER" = yes ; then
14477 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
14478echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
14479 # Insert other locations here
14480 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
14481 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
14482 PRNGD_SOCKET="$sock"
14483 cat >>confdefs.h <<_ACEOF
14484#define PRNGD_SOCKET "$PRNGD_SOCKET"
14485_ACEOF
14486
14487 break;
14488 fi
14489 done
14490 if test ! -z "$PRNGD_SOCKET" ; then
14491 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
14492echo "${ECHO_T}$PRNGD_SOCKET" >&6
14493 else
14494 echo "$as_me:$LINENO: result: not found" >&5
14495echo "${ECHO_T}not found" >&6
14496 fi
14497 fi
14498
14499
14500fi;
14501
14502# Change default command timeout for hashing entropy source
14503entropy_timeout=200
14504
14505# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
14506if test "${with_entropy_timeout+set}" = set; then
14507 withval="$with_entropy_timeout"
14508
14509 if test -n "$withval" && test "x$withval" != "xno" && \
14510 test "x${withval}" != "xyes"; then
14511 entropy_timeout=$withval
14512 fi
14513
14514
14515fi;
14516cat >>confdefs.h <<_ACEOF
14517#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
14518_ACEOF
14519
14520
14521SSH_PRIVSEP_USER=sshd
14522
14523# Check whether --with-privsep-user or --without-privsep-user was given.
14524if test "${with_privsep_user+set}" = set; then
14525 withval="$with_privsep_user"
14526
14527 if test -n "$withval" && test "x$withval" != "xno" && \
14528 test "x${withval}" != "xyes"; then
14529 SSH_PRIVSEP_USER=$withval
14530 fi
14531
14532
14533fi;
14534cat >>confdefs.h <<_ACEOF
14535#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
14536_ACEOF
14537
14538
14539
14540# We do this little dance with the search path to insure
14541# that programs that we select for use by installed programs
14542# (which may be run by the super-user) come from trusted
14543# locations before they come from the user's private area.
14544# This should help avoid accidentally configuring some
14545# random version of a program in someone's personal bin.
14546
14547OPATH=$PATH
14548PATH=/bin:/usr/bin
14549test -h /bin 2> /dev/null && PATH=/usr/bin
14550test -d /sbin && PATH=$PATH:/sbin
14551test -d /usr/sbin && PATH=$PATH:/usr/sbin
14552PATH=$PATH:/etc:$OPATH
14553
14554# These programs are used by the command hashing source to gather entropy
14555
14556 # Extract the first word of "ls", so it can be a program name with args.
14557set dummy ls; ac_word=$2
14558echo "$as_me:$LINENO: checking for $ac_word" >&5
14559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14560if test "${ac_cv_path_PROG_LS+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563 case $PROG_LS in
14564 [\\/]* | ?:[\\/]*)
14565 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
14566 ;;
14567 *)
14568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14569for as_dir in $PATH
14570do
14571 IFS=$as_save_IFS
14572 test -z "$as_dir" && as_dir=.
14573 for ac_exec_ext in '' $ac_executable_extensions; do
14574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14575 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
14576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 break 2
14578 fi
14579done
14580done
14581
14582 ;;
14583esac
14584fi
14585PROG_LS=$ac_cv_path_PROG_LS
14586
14587if test -n "$PROG_LS"; then
14588 echo "$as_me:$LINENO: result: $PROG_LS" >&5
14589echo "${ECHO_T}$PROG_LS" >&6
14590else
14591 echo "$as_me:$LINENO: result: no" >&5
14592echo "${ECHO_T}no" >&6
14593fi
14594
14595 if test -z "$PROG_LS" ; then
14596 PROG_LS="undef"
14597 fi
14598
14599
14600
14601 # Extract the first word of "netstat", so it can be a program name with args.
14602set dummy netstat; ac_word=$2
14603echo "$as_me:$LINENO: checking for $ac_word" >&5
14604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14605if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 case $PROG_NETSTAT in
14609 [\\/]* | ?:[\\/]*)
14610 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
14611 ;;
14612 *)
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614for as_dir in $PATH
14615do
14616 IFS=$as_save_IFS
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
14621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 break 2
14623 fi
14624done
14625done
14626
14627 ;;
14628esac
14629fi
14630PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
14631
14632if test -n "$PROG_NETSTAT"; then
14633 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
14634echo "${ECHO_T}$PROG_NETSTAT" >&6
14635else
14636 echo "$as_me:$LINENO: result: no" >&5
14637echo "${ECHO_T}no" >&6
14638fi
14639
14640 if test -z "$PROG_NETSTAT" ; then
14641 PROG_NETSTAT="undef"
14642 fi
14643
14644
14645
14646 # Extract the first word of "arp", so it can be a program name with args.
14647set dummy arp; ac_word=$2
14648echo "$as_me:$LINENO: checking for $ac_word" >&5
14649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14650if test "${ac_cv_path_PROG_ARP+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652else
14653 case $PROG_ARP in
14654 [\\/]* | ?:[\\/]*)
14655 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
14656 ;;
14657 *)
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659for as_dir in $PATH
14660do
14661 IFS=$as_save_IFS
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
14666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14667 break 2
14668 fi
14669done
14670done
14671
14672 ;;
14673esac
14674fi
14675PROG_ARP=$ac_cv_path_PROG_ARP
14676
14677if test -n "$PROG_ARP"; then
14678 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
14679echo "${ECHO_T}$PROG_ARP" >&6
14680else
14681 echo "$as_me:$LINENO: result: no" >&5
14682echo "${ECHO_T}no" >&6
14683fi
14684
14685 if test -z "$PROG_ARP" ; then
14686 PROG_ARP="undef"
14687 fi
14688
14689
14690
14691 # Extract the first word of "ifconfig", so it can be a program name with args.
14692set dummy ifconfig; ac_word=$2
14693echo "$as_me:$LINENO: checking for $ac_word" >&5
14694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14695if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697else
14698 case $PROG_IFCONFIG in
14699 [\\/]* | ?:[\\/]*)
14700 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
14701 ;;
14702 *)
14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14704for as_dir in $PATH
14705do
14706 IFS=$as_save_IFS
14707 test -z "$as_dir" && as_dir=.
14708 for ac_exec_ext in '' $ac_executable_extensions; do
14709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14710 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
14711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14712 break 2
14713 fi
14714done
14715done
14716
14717 ;;
14718esac
14719fi
14720PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
14721
14722if test -n "$PROG_IFCONFIG"; then
14723 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
14724echo "${ECHO_T}$PROG_IFCONFIG" >&6
14725else
14726 echo "$as_me:$LINENO: result: no" >&5
14727echo "${ECHO_T}no" >&6
14728fi
14729
14730 if test -z "$PROG_IFCONFIG" ; then
14731 PROG_IFCONFIG="undef"
14732 fi
14733
14734
14735
14736 # Extract the first word of "jstat", so it can be a program name with args.
14737set dummy jstat; ac_word=$2
14738echo "$as_me:$LINENO: checking for $ac_word" >&5
14739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14740if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742else
14743 case $PROG_JSTAT in
14744 [\\/]* | ?:[\\/]*)
14745 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
14746 ;;
14747 *)
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749for as_dir in $PATH
14750do
14751 IFS=$as_save_IFS
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
14756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14757 break 2
14758 fi
14759done
14760done
14761
14762 ;;
14763esac
14764fi
14765PROG_JSTAT=$ac_cv_path_PROG_JSTAT
14766
14767if test -n "$PROG_JSTAT"; then
14768 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
14769echo "${ECHO_T}$PROG_JSTAT" >&6
14770else
14771 echo "$as_me:$LINENO: result: no" >&5
14772echo "${ECHO_T}no" >&6
14773fi
14774
14775 if test -z "$PROG_JSTAT" ; then
14776 PROG_JSTAT="undef"
14777 fi
14778
14779
14780
14781 # Extract the first word of "ps", so it can be a program name with args.
14782set dummy ps; ac_word=$2
14783echo "$as_me:$LINENO: checking for $ac_word" >&5
14784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14785if test "${ac_cv_path_PROG_PS+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787else
14788 case $PROG_PS in
14789 [\\/]* | ?:[\\/]*)
14790 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
14791 ;;
14792 *)
14793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794for as_dir in $PATH
14795do
14796 IFS=$as_save_IFS
14797 test -z "$as_dir" && as_dir=.
14798 for ac_exec_ext in '' $ac_executable_extensions; do
14799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14800 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
14801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14802 break 2
14803 fi
14804done
14805done
14806
14807 ;;
14808esac
14809fi
14810PROG_PS=$ac_cv_path_PROG_PS
14811
14812if test -n "$PROG_PS"; then
14813 echo "$as_me:$LINENO: result: $PROG_PS" >&5
14814echo "${ECHO_T}$PROG_PS" >&6
14815else
14816 echo "$as_me:$LINENO: result: no" >&5
14817echo "${ECHO_T}no" >&6
14818fi
14819
14820 if test -z "$PROG_PS" ; then
14821 PROG_PS="undef"
14822 fi
14823
14824
14825
14826 # Extract the first word of "sar", so it can be a program name with args.
14827set dummy sar; ac_word=$2
14828echo "$as_me:$LINENO: checking for $ac_word" >&5
14829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14830if test "${ac_cv_path_PROG_SAR+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832else
14833 case $PROG_SAR in
14834 [\\/]* | ?:[\\/]*)
14835 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
14836 ;;
14837 *)
14838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14839for as_dir in $PATH
14840do
14841 IFS=$as_save_IFS
14842 test -z "$as_dir" && as_dir=.
14843 for ac_exec_ext in '' $ac_executable_extensions; do
14844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14845 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
14846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14847 break 2
14848 fi
14849done
14850done
14851
14852 ;;
14853esac
14854fi
14855PROG_SAR=$ac_cv_path_PROG_SAR
14856
14857if test -n "$PROG_SAR"; then
14858 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
14859echo "${ECHO_T}$PROG_SAR" >&6
14860else
14861 echo "$as_me:$LINENO: result: no" >&5
14862echo "${ECHO_T}no" >&6
14863fi
14864
14865 if test -z "$PROG_SAR" ; then
14866 PROG_SAR="undef"
14867 fi
14868
14869
14870
14871 # Extract the first word of "w", so it can be a program name with args.
14872set dummy w; ac_word=$2
14873echo "$as_me:$LINENO: checking for $ac_word" >&5
14874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14875if test "${ac_cv_path_PROG_W+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877else
14878 case $PROG_W in
14879 [\\/]* | ?:[\\/]*)
14880 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
14881 ;;
14882 *)
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884for as_dir in $PATH
14885do
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
14891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14892 break 2
14893 fi
14894done
14895done
14896
14897 ;;
14898esac
14899fi
14900PROG_W=$ac_cv_path_PROG_W
14901
14902if test -n "$PROG_W"; then
14903 echo "$as_me:$LINENO: result: $PROG_W" >&5
14904echo "${ECHO_T}$PROG_W" >&6
14905else
14906 echo "$as_me:$LINENO: result: no" >&5
14907echo "${ECHO_T}no" >&6
14908fi
14909
14910 if test -z "$PROG_W" ; then
14911 PROG_W="undef"
14912 fi
14913
14914
14915
14916 # Extract the first word of "who", so it can be a program name with args.
14917set dummy who; ac_word=$2
14918echo "$as_me:$LINENO: checking for $ac_word" >&5
14919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14920if test "${ac_cv_path_PROG_WHO+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923 case $PROG_WHO in
14924 [\\/]* | ?:[\\/]*)
14925 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
14926 ;;
14927 *)
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929for as_dir in $PATH
14930do
14931 IFS=$as_save_IFS
14932 test -z "$as_dir" && as_dir=.
14933 for ac_exec_ext in '' $ac_executable_extensions; do
14934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
14936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14937 break 2
14938 fi
14939done
14940done
14941
14942 ;;
14943esac
14944fi
14945PROG_WHO=$ac_cv_path_PROG_WHO
14946
14947if test -n "$PROG_WHO"; then
14948 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
14949echo "${ECHO_T}$PROG_WHO" >&6
14950else
14951 echo "$as_me:$LINENO: result: no" >&5
14952echo "${ECHO_T}no" >&6
14953fi
14954
14955 if test -z "$PROG_WHO" ; then
14956 PROG_WHO="undef"
14957 fi
14958
14959
14960
14961 # Extract the first word of "last", so it can be a program name with args.
14962set dummy last; ac_word=$2
14963echo "$as_me:$LINENO: checking for $ac_word" >&5
14964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14965if test "${ac_cv_path_PROG_LAST+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967else
14968 case $PROG_LAST in
14969 [\\/]* | ?:[\\/]*)
14970 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
14971 ;;
14972 *)
14973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974for as_dir in $PATH
14975do
14976 IFS=$as_save_IFS
14977 test -z "$as_dir" && as_dir=.
14978 for ac_exec_ext in '' $ac_executable_extensions; do
14979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14980 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
14981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14982 break 2
14983 fi
14984done
14985done
14986
14987 ;;
14988esac
14989fi
14990PROG_LAST=$ac_cv_path_PROG_LAST
14991
14992if test -n "$PROG_LAST"; then
14993 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
14994echo "${ECHO_T}$PROG_LAST" >&6
14995else
14996 echo "$as_me:$LINENO: result: no" >&5
14997echo "${ECHO_T}no" >&6
14998fi
14999
15000 if test -z "$PROG_LAST" ; then
15001 PROG_LAST="undef"
15002 fi
15003
15004
15005
15006 # Extract the first word of "lastlog", so it can be a program name with args.
15007set dummy lastlog; ac_word=$2
15008echo "$as_me:$LINENO: checking for $ac_word" >&5
15009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15010if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012else
15013 case $PROG_LASTLOG in
15014 [\\/]* | ?:[\\/]*)
15015 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
15016 ;;
15017 *)
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019for as_dir in $PATH
15020do
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
15026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15028 fi
15029done
15030done
15031
15032 ;;
15033esac
15034fi
15035PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
15036
15037if test -n "$PROG_LASTLOG"; then
15038 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
15039echo "${ECHO_T}$PROG_LASTLOG" >&6
15040else
15041 echo "$as_me:$LINENO: result: no" >&5
15042echo "${ECHO_T}no" >&6
15043fi
15044
15045 if test -z "$PROG_LASTLOG" ; then
15046 PROG_LASTLOG="undef"
15047 fi
15048
15049
15050
15051 # Extract the first word of "df", so it can be a program name with args.
15052set dummy df; ac_word=$2
15053echo "$as_me:$LINENO: checking for $ac_word" >&5
15054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15055if test "${ac_cv_path_PROG_DF+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057else
15058 case $PROG_DF in
15059 [\\/]* | ?:[\\/]*)
15060 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
15061 ;;
15062 *)
15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064for as_dir in $PATH
15065do
15066 IFS=$as_save_IFS
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
15071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15072 break 2
15073 fi
15074done
15075done
15076
15077 ;;
15078esac
15079fi
15080PROG_DF=$ac_cv_path_PROG_DF
15081
15082if test -n "$PROG_DF"; then
15083 echo "$as_me:$LINENO: result: $PROG_DF" >&5
15084echo "${ECHO_T}$PROG_DF" >&6
15085else
15086 echo "$as_me:$LINENO: result: no" >&5
15087echo "${ECHO_T}no" >&6
15088fi
15089
15090 if test -z "$PROG_DF" ; then
15091 PROG_DF="undef"
15092 fi
15093
15094
15095
15096 # Extract the first word of "vmstat", so it can be a program name with args.
15097set dummy vmstat; ac_word=$2
15098echo "$as_me:$LINENO: checking for $ac_word" >&5
15099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15100if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102else
15103 case $PROG_VMSTAT in
15104 [\\/]* | ?:[\\/]*)
15105 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
15106 ;;
15107 *)
15108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15109for as_dir in $PATH
15110do
15111 IFS=$as_save_IFS
15112 test -z "$as_dir" && as_dir=.
15113 for ac_exec_ext in '' $ac_executable_extensions; do
15114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15115 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
15116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15117 break 2
15118 fi
15119done
15120done
15121
15122 ;;
15123esac
15124fi
15125PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
15126
15127if test -n "$PROG_VMSTAT"; then
15128 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
15129echo "${ECHO_T}$PROG_VMSTAT" >&6
15130else
15131 echo "$as_me:$LINENO: result: no" >&5
15132echo "${ECHO_T}no" >&6
15133fi
15134
15135 if test -z "$PROG_VMSTAT" ; then
15136 PROG_VMSTAT="undef"
15137 fi
15138
15139
15140
15141 # Extract the first word of "uptime", so it can be a program name with args.
15142set dummy uptime; ac_word=$2
15143echo "$as_me:$LINENO: checking for $ac_word" >&5
15144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15145if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 case $PROG_UPTIME in
15149 [\\/]* | ?:[\\/]*)
15150 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
15151 ;;
15152 *)
15153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15154for as_dir in $PATH
15155do
15156 IFS=$as_save_IFS
15157 test -z "$as_dir" && as_dir=.
15158 for ac_exec_ext in '' $ac_executable_extensions; do
15159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15160 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
15161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15162 break 2
15163 fi
15164done
15165done
15166
15167 ;;
15168esac
15169fi
15170PROG_UPTIME=$ac_cv_path_PROG_UPTIME
15171
15172if test -n "$PROG_UPTIME"; then
15173 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
15174echo "${ECHO_T}$PROG_UPTIME" >&6
15175else
15176 echo "$as_me:$LINENO: result: no" >&5
15177echo "${ECHO_T}no" >&6
15178fi
15179
15180 if test -z "$PROG_UPTIME" ; then
15181 PROG_UPTIME="undef"
15182 fi
15183
15184
15185
15186 # Extract the first word of "ipcs", so it can be a program name with args.
15187set dummy ipcs; ac_word=$2
15188echo "$as_me:$LINENO: checking for $ac_word" >&5
15189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15190if test "${ac_cv_path_PROG_IPCS+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193 case $PROG_IPCS in
15194 [\\/]* | ?:[\\/]*)
15195 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
15196 ;;
15197 *)
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199for as_dir in $PATH
15200do
15201 IFS=$as_save_IFS
15202 test -z "$as_dir" && as_dir=.
15203 for ac_exec_ext in '' $ac_executable_extensions; do
15204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
15206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15207 break 2
15208 fi
15209done
15210done
15211
15212 ;;
15213esac
15214fi
15215PROG_IPCS=$ac_cv_path_PROG_IPCS
15216
15217if test -n "$PROG_IPCS"; then
15218 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
15219echo "${ECHO_T}$PROG_IPCS" >&6
15220else
15221 echo "$as_me:$LINENO: result: no" >&5
15222echo "${ECHO_T}no" >&6
15223fi
15224
15225 if test -z "$PROG_IPCS" ; then
15226 PROG_IPCS="undef"
15227 fi
15228
15229
15230
15231 # Extract the first word of "tail", so it can be a program name with args.
15232set dummy tail; ac_word=$2
15233echo "$as_me:$LINENO: checking for $ac_word" >&5
15234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15235if test "${ac_cv_path_PROG_TAIL+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15237else
15238 case $PROG_TAIL in
15239 [\\/]* | ?:[\\/]*)
15240 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
15241 ;;
15242 *)
15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244for as_dir in $PATH
15245do
15246 IFS=$as_save_IFS
15247 test -z "$as_dir" && as_dir=.
15248 for ac_exec_ext in '' $ac_executable_extensions; do
15249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15250 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
15251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15252 break 2
15253 fi
15254done
15255done
15256
15257 ;;
15258esac
15259fi
15260PROG_TAIL=$ac_cv_path_PROG_TAIL
15261
15262if test -n "$PROG_TAIL"; then
15263 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
15264echo "${ECHO_T}$PROG_TAIL" >&6
15265else
15266 echo "$as_me:$LINENO: result: no" >&5
15267echo "${ECHO_T}no" >&6
15268fi
15269
15270 if test -z "$PROG_TAIL" ; then
15271 PROG_TAIL="undef"
15272 fi
15273
15274
15275# restore PATH
15276PATH=$OPATH
15277
15278# Where does ssh-rand-helper get its randomness from?
15279INSTALL_SSH_PRNG_CMDS=""
15280if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
15281 if test ! -z "$PRNGD_PORT" ; then
15282 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
15283 elif test ! -z "$PRNGD_SOCKET" ; then
15284 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
15285 else
15286 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
15287 RAND_HELPER_CMDHASH=yes
15288 INSTALL_SSH_PRNG_CMDS="yes"
15289 fi
15290fi
15291
15292
15293
15294# Cheap hack to ensure NEWS-OS libraries are arranged right.
15295if test ! -z "$SONY" ; then
15296 LIBS="$LIBS -liberty";
15297fi
15298
15299# Checks for data types
15300echo "$as_me:$LINENO: checking for char" >&5
15301echo $ECHO_N "checking for char... $ECHO_C" >&6
15302if test "${ac_cv_type_char+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304else
15305 cat >conftest.$ac_ext <<_ACEOF
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311$ac_includes_default
15312int
15313main ()
15314{
15315if ((char *) 0)
15316 return 0;
15317if (sizeof (char))
15318 return 0;
15319 ;
15320 return 0;
15321}
15322_ACEOF
15323rm -f conftest.$ac_objext
15324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_type_char=yes
15346else
15347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
15350ac_cv_type_char=no
15351fi
15352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15353fi
15354echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15355echo "${ECHO_T}$ac_cv_type_char" >&6
15356
15357echo "$as_me:$LINENO: checking size of char" >&5
15358echo $ECHO_N "checking size of char... $ECHO_C" >&6
15359if test "${ac_cv_sizeof_char+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361else
15362 if test "$ac_cv_type_char" = yes; then
15363 # The cast to unsigned long works around a bug in the HP C Compiler
15364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15366 # This bug is HP SR number 8606223364.
15367 if test "$cross_compiling" = yes; then
15368 # Depending upon the size, compute the lo and hi bounds.
15369cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376int
15377main ()
15378{
15379static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15380test_array [0] = 0
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -z "$ac_c_werror_flag"
15396 || test ! -s conftest.err'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_lo=0 ac_mid=0
15409 while :; do
15410 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
15416$ac_includes_default
15417int
15418main ()
15419{
15420static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15421test_array [0] = 0
15422
15423 ;
15424 return 0;
15425}
15426_ACEOF
15427rm -f conftest.$ac_objext
15428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15429 (eval $ac_compile) 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -z "$ac_c_werror_flag"
15437 || test ! -s conftest.err'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_hi=$ac_mid; break
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454ac_lo=`expr $ac_mid + 1`
15455 if test $ac_lo -le $ac_mid; then
15456 ac_lo= ac_hi=
15457 break
15458 fi
15459 ac_mid=`expr 2 '*' $ac_mid + 1`
15460fi
15461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15462 done
15463else
15464 echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
15467cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473$ac_includes_default
15474int
15475main ()
15476{
15477static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15478test_array [0] = 0
15479
15480 ;
15481 return 0;
15482}
15483_ACEOF
15484rm -f conftest.$ac_objext
15485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486 (eval $ac_compile) 2>conftest.er1
15487 ac_status=$?
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_hi=-1 ac_mid=-1
15507 while :; do
15508 cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514$ac_includes_default
15515int
15516main ()
15517{
15518static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15519test_array [0] = 0
15520
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest.$ac_objext
15526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_lo=$ac_mid; break
15548else
15549 echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
15552ac_hi=`expr '(' $ac_mid ')' - 1`
15553 if test $ac_mid -le $ac_hi; then
15554 ac_lo= ac_hi=
15555 break
15556 fi
15557 ac_mid=`expr 2 '*' $ac_mid`
15558fi
15559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560 done
15561else
15562 echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
15565ac_lo= ac_hi=
15566fi
15567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15568fi
15569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15570# Binary search between lo and hi bounds.
15571while test "x$ac_lo" != "x$ac_hi"; do
15572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15573 cat >conftest.$ac_ext <<_ACEOF
15574/* confdefs.h. */
15575_ACEOF
15576cat confdefs.h >>conftest.$ac_ext
15577cat >>conftest.$ac_ext <<_ACEOF
15578/* end confdefs.h. */
15579$ac_includes_default
15580int
15581main ()
15582{
15583static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15584test_array [0] = 0
15585
15586 ;
15587 return 0;
15588}
15589_ACEOF
15590rm -f conftest.$ac_objext
15591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag"
15600 || test ! -s conftest.err'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; } &&
15606 { ac_try='test -s conftest.$ac_objext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_hi=$ac_mid
15613else
15614 echo "$as_me: failed program was:" >&5
15615sed 's/^/| /' conftest.$ac_ext >&5
15616
15617ac_lo=`expr '(' $ac_mid ')' + 1`
15618fi
15619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15620done
15621case $ac_lo in
15622?*) ac_cv_sizeof_char=$ac_lo;;
15623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15624See \`config.log' for more details." >&5
15625echo "$as_me: error: cannot compute sizeof (char), 77
15626See \`config.log' for more details." >&2;}
15627 { (exit 1); exit 1; }; } ;;
15628esac
15629else
15630 if test "$cross_compiling" = yes; then
15631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15632See \`config.log' for more details." >&5
15633echo "$as_me: error: cannot run test program while cross compiling
15634See \`config.log' for more details." >&2;}
15635 { (exit 1); exit 1; }; }
15636else
15637 cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
15643$ac_includes_default
15644long longval () { return (long) (sizeof (char)); }
15645unsigned long ulongval () { return (long) (sizeof (char)); }
15646#include <stdio.h>
15647#include <stdlib.h>
15648int
15649main ()
15650{
15651
15652 FILE *f = fopen ("conftest.val", "w");
15653 if (! f)
15654 exit (1);
15655 if (((long) (sizeof (char))) < 0)
15656 {
15657 long i = longval ();
15658 if (i != ((long) (sizeof (char))))
15659 exit (1);
15660 fprintf (f, "%ld\n", i);
15661 }
15662 else
15663 {
15664 unsigned long i = ulongval ();
15665 if (i != ((long) (sizeof (char))))
15666 exit (1);
15667 fprintf (f, "%lu\n", i);
15668 }
15669 exit (ferror (f) || fclose (f) != 0);
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest$ac_exeext
15676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_cv_sizeof_char=`cat conftest.val`
15687else
15688 echo "$as_me: program exited with status $ac_status" >&5
15689echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692( exit $ac_status )
15693{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15694See \`config.log' for more details." >&5
15695echo "$as_me: error: cannot compute sizeof (char), 77
15696See \`config.log' for more details." >&2;}
15697 { (exit 1); exit 1; }; }
15698fi
15699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15700fi
15701fi
15702rm -f conftest.val
15703else
15704 ac_cv_sizeof_char=0
15705fi
15706fi
15707echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15708echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15709cat >>confdefs.h <<_ACEOF
15710#define SIZEOF_CHAR $ac_cv_sizeof_char
15711_ACEOF
15712
15713
15714echo "$as_me:$LINENO: checking for short int" >&5
15715echo $ECHO_N "checking for short int... $ECHO_C" >&6
15716if test "${ac_cv_type_short_int+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718else
15719 cat >conftest.$ac_ext <<_ACEOF
15720/* confdefs.h. */
15721_ACEOF
15722cat confdefs.h >>conftest.$ac_ext
15723cat >>conftest.$ac_ext <<_ACEOF
15724/* end confdefs.h. */
15725$ac_includes_default
15726int
15727main ()
15728{
15729if ((short int *) 0)
15730 return 0;
15731if (sizeof (short int))
15732 return 0;
15733 ;
15734 return 0;
15735}
15736_ACEOF
15737rm -f conftest.$ac_objext
15738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15739 (eval $ac_compile) 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag"
15747 || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_type_short_int=yes
15760else
15761 echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764ac_cv_type_short_int=no
15765fi
15766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15767fi
15768echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15769echo "${ECHO_T}$ac_cv_type_short_int" >&6
15770
15771echo "$as_me:$LINENO: checking size of short int" >&5
15772echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15773if test "${ac_cv_sizeof_short_int+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775else
15776 if test "$ac_cv_type_short_int" = yes; then
15777 # The cast to unsigned long works around a bug in the HP C Compiler
15778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15780 # This bug is HP SR number 8606223364.
15781 if test "$cross_compiling" = yes; then
15782 # Depending upon the size, compute the lo and hi bounds.
15783cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789$ac_includes_default
15790int
15791main ()
15792{
15793static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15794test_array [0] = 0
15795
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext
15801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_lo=0 ac_mid=0
15823 while :; do
15824 cat >conftest.$ac_ext <<_ACEOF
15825/* confdefs.h. */
15826_ACEOF
15827cat confdefs.h >>conftest.$ac_ext
15828cat >>conftest.$ac_ext <<_ACEOF
15829/* end confdefs.h. */
15830$ac_includes_default
15831int
15832main ()
15833{
15834static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15835test_array [0] = 0
15836
15837 ;
15838 return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag"
15851 || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest.$ac_objext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_hi=$ac_mid; break
15864else
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868ac_lo=`expr $ac_mid + 1`
15869 if test $ac_lo -le $ac_mid; then
15870 ac_lo= ac_hi=
15871 break
15872 fi
15873 ac_mid=`expr 2 '*' $ac_mid + 1`
15874fi
15875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 done
15877else
15878 echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
15881cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888int
15889main ()
15890{
15891static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15892test_array [0] = 0
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15900 (eval $ac_compile) 2>conftest.er1
15901 ac_status=$?
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -z "$ac_c_werror_flag"
15908 || test ! -s conftest.err'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=-1 ac_mid=-1
15921 while :; do
15922 cat >conftest.$ac_ext <<_ACEOF
15923/* confdefs.h. */
15924_ACEOF
15925cat confdefs.h >>conftest.$ac_ext
15926cat >>conftest.$ac_ext <<_ACEOF
15927/* end confdefs.h. */
15928$ac_includes_default
15929int
15930main ()
15931{
15932static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15933test_array [0] = 0
15934
15935 ;
15936 return 0;
15937}
15938_ACEOF
15939rm -f conftest.$ac_objext
15940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941 (eval $ac_compile) 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag"
15949 || test ! -s conftest.err'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try='test -s conftest.$ac_objext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_lo=$ac_mid; break
15962else
15963 echo "$as_me: failed program was:" >&5
15964sed 's/^/| /' conftest.$ac_ext >&5
15965
15966ac_hi=`expr '(' $ac_mid ')' - 1`
15967 if test $ac_mid -le $ac_hi; then
15968 ac_lo= ac_hi=
15969 break
15970 fi
15971 ac_mid=`expr 2 '*' $ac_mid`
15972fi
15973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15974 done
15975else
15976 echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979ac_lo= ac_hi=
15980fi
15981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15982fi
15983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15984# Binary search between lo and hi bounds.
15985while test "x$ac_lo" != "x$ac_hi"; do
15986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15987 cat >conftest.$ac_ext <<_ACEOF
15988/* confdefs.h. */
15989_ACEOF
15990cat confdefs.h >>conftest.$ac_ext
15991cat >>conftest.$ac_ext <<_ACEOF
15992/* end confdefs.h. */
15993$ac_includes_default
15994int
15995main ()
15996{
15997static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15998test_array [0] = 0
15999
16000 ;
16001 return 0;
16002}
16003_ACEOF
16004rm -f conftest.$ac_objext
16005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006 (eval $ac_compile) 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_hi=$ac_mid
16027else
16028 echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031ac_lo=`expr '(' $ac_mid ')' + 1`
16032fi
16033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034done
16035case $ac_lo in
16036?*) ac_cv_sizeof_short_int=$ac_lo;;
16037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
16038See \`config.log' for more details." >&5
16039echo "$as_me: error: cannot compute sizeof (short int), 77
16040See \`config.log' for more details." >&2;}
16041 { (exit 1); exit 1; }; } ;;
16042esac
16043else
16044 if test "$cross_compiling" = yes; then
16045 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16046See \`config.log' for more details." >&5
16047echo "$as_me: error: cannot run test program while cross compiling
16048See \`config.log' for more details." >&2;}
16049 { (exit 1); exit 1; }; }
16050else
16051 cat >conftest.$ac_ext <<_ACEOF
16052/* confdefs.h. */
16053_ACEOF
16054cat confdefs.h >>conftest.$ac_ext
16055cat >>conftest.$ac_ext <<_ACEOF
16056/* end confdefs.h. */
16057$ac_includes_default
16058long longval () { return (long) (sizeof (short int)); }
16059unsigned long ulongval () { return (long) (sizeof (short int)); }
16060#include <stdio.h>
16061#include <stdlib.h>
16062int
16063main ()
16064{
16065
16066 FILE *f = fopen ("conftest.val", "w");
16067 if (! f)
16068 exit (1);
16069 if (((long) (sizeof (short int))) < 0)
16070 {
16071 long i = longval ();
16072 if (i != ((long) (sizeof (short int))))
16073 exit (1);
16074 fprintf (f, "%ld\n", i);
16075 }
16076 else
16077 {
16078 unsigned long i = ulongval ();
16079 if (i != ((long) (sizeof (short int))))
16080 exit (1);
16081 fprintf (f, "%lu\n", i);
16082 }
16083 exit (ferror (f) || fclose (f) != 0);
16084
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089rm -f conftest$ac_exeext
16090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_cv_sizeof_short_int=`cat conftest.val`
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{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
16108See \`config.log' for more details." >&5
16109echo "$as_me: error: cannot compute sizeof (short int), 77
16110See \`config.log' for more details." >&2;}
16111 { (exit 1); exit 1; }; }
16112fi
16113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16114fi
16115fi
16116rm -f conftest.val
16117else
16118 ac_cv_sizeof_short_int=0
16119fi
16120fi
16121echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
16122echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
16123cat >>confdefs.h <<_ACEOF
16124#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
16125_ACEOF
16126
16127
16128echo "$as_me:$LINENO: checking for int" >&5
16129echo $ECHO_N "checking for int... $ECHO_C" >&6
16130if test "${ac_cv_type_int+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132else
16133 cat >conftest.$ac_ext <<_ACEOF
16134/* confdefs.h. */
16135_ACEOF
16136cat confdefs.h >>conftest.$ac_ext
16137cat >>conftest.$ac_ext <<_ACEOF
16138/* end confdefs.h. */
16139$ac_includes_default
16140int
16141main ()
16142{
16143if ((int *) 0)
16144 return 0;
16145if (sizeof (int))
16146 return 0;
16147 ;
16148 return 0;
16149}
16150_ACEOF
16151rm -f conftest.$ac_objext
16152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag"
16161 || test ! -s conftest.err'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_cv_type_int=yes
16174else
16175 echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
16178ac_cv_type_int=no
16179fi
16180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16181fi
16182echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16183echo "${ECHO_T}$ac_cv_type_int" >&6
16184
16185echo "$as_me:$LINENO: checking size of int" >&5
16186echo $ECHO_N "checking size of int... $ECHO_C" >&6
16187if test "${ac_cv_sizeof_int+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189else
16190 if test "$ac_cv_type_int" = yes; then
16191 # The cast to unsigned long works around a bug in the HP C Compiler
16192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16194 # This bug is HP SR number 8606223364.
16195 if test "$cross_compiling" = yes; then
16196 # Depending upon the size, compute the lo and hi bounds.
16197cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203$ac_includes_default
16204int
16205main ()
16206{
16207static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16208test_array [0] = 0
16209
16210 ;
16211 return 0;
16212}
16213_ACEOF
16214rm -f conftest.$ac_objext
16215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216 (eval $ac_compile) 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -z "$ac_c_werror_flag"
16224 || test ! -s conftest.err'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest.$ac_objext'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ac_lo=0 ac_mid=0
16237 while :; do
16238 cat >conftest.$ac_ext <<_ACEOF
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244$ac_includes_default
16245int
16246main ()
16247{
16248static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16249test_array [0] = 0
16250
16251 ;
16252 return 0;
16253}
16254_ACEOF
16255rm -f conftest.$ac_objext
16256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16257 (eval $ac_compile) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_hi=$ac_mid; break
16278else
16279 echo "$as_me: failed program was:" >&5
16280sed 's/^/| /' conftest.$ac_ext >&5
16281
16282ac_lo=`expr $ac_mid + 1`
16283 if test $ac_lo -le $ac_mid; then
16284 ac_lo= ac_hi=
16285 break
16286 fi
16287 ac_mid=`expr 2 '*' $ac_mid + 1`
16288fi
16289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16290 done
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314 (eval $ac_compile) 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_hi=-1 ac_mid=-1
16335 while :; do
16336 cat >conftest.$ac_ext <<_ACEOF
16337/* confdefs.h. */
16338_ACEOF
16339cat confdefs.h >>conftest.$ac_ext
16340cat >>conftest.$ac_ext <<_ACEOF
16341/* end confdefs.h. */
16342$ac_includes_default
16343int
16344main ()
16345{
16346static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16347test_array [0] = 0
16348
16349 ;
16350 return 0;
16351}
16352_ACEOF
16353rm -f conftest.$ac_objext
16354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16355 (eval $ac_compile) 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag"
16363 || test ! -s conftest.err'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } &&
16369 { ac_try='test -s conftest.$ac_objext'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 ac_lo=$ac_mid; break
16376else
16377 echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380ac_hi=`expr '(' $ac_mid ')' - 1`
16381 if test $ac_mid -le $ac_hi; then
16382 ac_lo= ac_hi=
16383 break
16384 fi
16385 ac_mid=`expr 2 '*' $ac_mid`
16386fi
16387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16388 done
16389else
16390 echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393ac_lo= ac_hi=
16394fi
16395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16396fi
16397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16398# Binary search between lo and hi bounds.
16399while test "x$ac_lo" != "x$ac_hi"; do
16400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16401 cat >conftest.$ac_ext <<_ACEOF
16402/* confdefs.h. */
16403_ACEOF
16404cat confdefs.h >>conftest.$ac_ext
16405cat >>conftest.$ac_ext <<_ACEOF
16406/* end confdefs.h. */
16407$ac_includes_default
16408int
16409main ()
16410{
16411static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16412test_array [0] = 0
16413
16414 ;
16415 return 0;
16416}
16417_ACEOF
16418rm -f conftest.$ac_objext
16419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16420 (eval $ac_compile) 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -z "$ac_c_werror_flag"
16428 || test ! -s conftest.err'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_hi=$ac_mid
16441else
16442 echo "$as_me: failed program was:" >&5
16443sed 's/^/| /' conftest.$ac_ext >&5
16444
16445ac_lo=`expr '(' $ac_mid ')' + 1`
16446fi
16447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16448done
16449case $ac_lo in
16450?*) ac_cv_sizeof_int=$ac_lo;;
16451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16452See \`config.log' for more details." >&5
16453echo "$as_me: error: cannot compute sizeof (int), 77
16454See \`config.log' for more details." >&2;}
16455 { (exit 1); exit 1; }; } ;;
16456esac
16457else
16458 if test "$cross_compiling" = yes; then
16459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16460See \`config.log' for more details." >&5
16461echo "$as_me: error: cannot run test program while cross compiling
16462See \`config.log' for more details." >&2;}
16463 { (exit 1); exit 1; }; }
16464else
16465 cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471$ac_includes_default
16472long longval () { return (long) (sizeof (int)); }
16473unsigned long ulongval () { return (long) (sizeof (int)); }
16474#include <stdio.h>
16475#include <stdlib.h>
16476int
16477main ()
16478{
16479
16480 FILE *f = fopen ("conftest.val", "w");
16481 if (! f)
16482 exit (1);
16483 if (((long) (sizeof (int))) < 0)
16484 {
16485 long i = longval ();
16486 if (i != ((long) (sizeof (int))))
16487 exit (1);
16488 fprintf (f, "%ld\n", i);
16489 }
16490 else
16491 {
16492 unsigned long i = ulongval ();
16493 if (i != ((long) (sizeof (int))))
16494 exit (1);
16495 fprintf (f, "%lu\n", i);
16496 }
16497 exit (ferror (f) || fclose (f) != 0);
16498
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest$ac_exeext
16504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16505 (eval $ac_link) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_cv_sizeof_int=`cat conftest.val`
16515else
16516 echo "$as_me: program exited with status $ac_status" >&5
16517echo "$as_me: failed program was:" >&5
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
16520( exit $ac_status )
16521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16522See \`config.log' for more details." >&5
16523echo "$as_me: error: cannot compute sizeof (int), 77
16524See \`config.log' for more details." >&2;}
16525 { (exit 1); exit 1; }; }
16526fi
16527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16528fi
16529fi
16530rm -f conftest.val
16531else
16532 ac_cv_sizeof_int=0
16533fi
16534fi
16535echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16536echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16537cat >>confdefs.h <<_ACEOF
16538#define SIZEOF_INT $ac_cv_sizeof_int
16539_ACEOF
16540
16541
16542echo "$as_me:$LINENO: checking for long int" >&5
16543echo $ECHO_N "checking for long int... $ECHO_C" >&6
16544if test "${ac_cv_type_long_int+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547 cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
16553$ac_includes_default
16554int
16555main ()
16556{
16557if ((long int *) 0)
16558 return 0;
16559if (sizeof (long int))
16560 return 0;
16561 ;
16562 return 0;
16563}
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag"
16575 || test ! -s conftest.err'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; } &&
16581 { ac_try='test -s conftest.$ac_objext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 ac_cv_type_long_int=yes
16588else
16589 echo "$as_me: failed program was:" >&5
16590sed 's/^/| /' conftest.$ac_ext >&5
16591
16592ac_cv_type_long_int=no
16593fi
16594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16595fi
16596echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
16597echo "${ECHO_T}$ac_cv_type_long_int" >&6
16598
16599echo "$as_me:$LINENO: checking size of long int" >&5
16600echo $ECHO_N "checking size of long int... $ECHO_C" >&6
16601if test "${ac_cv_sizeof_long_int+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603else
16604 if test "$ac_cv_type_long_int" = yes; then
16605 # The cast to unsigned long works around a bug in the HP C Compiler
16606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16608 # This bug is HP SR number 8606223364.
16609 if test "$cross_compiling" = yes; then
16610 # Depending upon the size, compute the lo and hi bounds.
16611cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617$ac_includes_default
16618int
16619main ()
16620{
16621static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
16622test_array [0] = 0
16623
16624 ;
16625 return 0;
16626}
16627_ACEOF
16628rm -f conftest.$ac_objext
16629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16630 (eval $ac_compile) 2>conftest.er1
16631 ac_status=$?
16632 grep -v '^ *+' conftest.er1 >conftest.err
16633 rm -f conftest.er1
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
16637 { ac_try='test -z "$ac_c_werror_flag"
16638 || test ! -s conftest.err'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest.$ac_objext'
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
16650 ac_lo=0 ac_mid=0
16651 while :; do
16652 cat >conftest.$ac_ext <<_ACEOF
16653/* confdefs.h. */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h. */
16658$ac_includes_default
16659int
16660main ()
16661{
16662static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16663test_array [0] = 0
16664
16665 ;
16666 return 0;
16667}
16668_ACEOF
16669rm -f conftest.$ac_objext
16670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16671 (eval $ac_compile) 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag"
16679 || test ! -s conftest.err'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_hi=$ac_mid; break
16692else
16693 echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696ac_lo=`expr $ac_mid + 1`
16697 if test $ac_lo -le $ac_mid; then
16698 ac_lo= ac_hi=
16699 break
16700 fi
16701 ac_mid=`expr 2 '*' $ac_mid + 1`
16702fi
16703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16704 done
16705else
16706 echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715$ac_includes_default
16716int
16717main ()
16718{
16719static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
16720test_array [0] = 0
16721
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16728 (eval $ac_compile) 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_hi=-1 ac_mid=-1
16749 while :; do
16750 cat >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$ac_includes_default
16757int
16758main ()
16759{
16760static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16761test_array [0] = 0
16762
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext
16768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_lo=$ac_mid; break
16790else
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794ac_hi=`expr '(' $ac_mid ')' - 1`
16795 if test $ac_mid -le $ac_hi; then
16796 ac_lo= ac_hi=
16797 break
16798 fi
16799 ac_mid=`expr 2 '*' $ac_mid`
16800fi
16801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 done
16803else
16804 echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807ac_lo= ac_hi=
16808fi
16809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16810fi
16811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812# Binary search between lo and hi bounds.
16813while test "x$ac_lo" != "x$ac_hi"; do
16814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822int
16823main ()
16824{
16825static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16826test_array [0] = 0
16827
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag"
16842 || test ! -s conftest.err'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest.$ac_objext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_hi=$ac_mid
16855else
16856 echo "$as_me: failed program was:" >&5
16857sed 's/^/| /' conftest.$ac_ext >&5
16858
16859ac_lo=`expr '(' $ac_mid ')' + 1`
16860fi
16861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16862done
16863case $ac_lo in
16864?*) ac_cv_sizeof_long_int=$ac_lo;;
16865'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16866See \`config.log' for more details." >&5
16867echo "$as_me: error: cannot compute sizeof (long int), 77
16868See \`config.log' for more details." >&2;}
16869 { (exit 1); exit 1; }; } ;;
16870esac
16871else
16872 if test "$cross_compiling" = yes; then
16873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16874See \`config.log' for more details." >&5
16875echo "$as_me: error: cannot run test program while cross compiling
16876See \`config.log' for more details." >&2;}
16877 { (exit 1); exit 1; }; }
16878else
16879 cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885$ac_includes_default
16886long longval () { return (long) (sizeof (long int)); }
16887unsigned long ulongval () { return (long) (sizeof (long int)); }
16888#include <stdio.h>
16889#include <stdlib.h>
16890int
16891main ()
16892{
16893
16894 FILE *f = fopen ("conftest.val", "w");
16895 if (! f)
16896 exit (1);
16897 if (((long) (sizeof (long int))) < 0)
16898 {
16899 long i = longval ();
16900 if (i != ((long) (sizeof (long int))))
16901 exit (1);
16902 fprintf (f, "%ld\n", i);
16903 }
16904 else
16905 {
16906 unsigned long i = ulongval ();
16907 if (i != ((long) (sizeof (long int))))
16908 exit (1);
16909 fprintf (f, "%lu\n", i);
16910 }
16911 exit (ferror (f) || fclose (f) != 0);
16912
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest$ac_exeext
16918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919 (eval $ac_link) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_sizeof_long_int=`cat conftest.val`
16929else
16930 echo "$as_me: program exited with status $ac_status" >&5
16931echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934( exit $ac_status )
16935{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16936See \`config.log' for more details." >&5
16937echo "$as_me: error: cannot compute sizeof (long int), 77
16938See \`config.log' for more details." >&2;}
16939 { (exit 1); exit 1; }; }
16940fi
16941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16942fi
16943fi
16944rm -f conftest.val
16945else
16946 ac_cv_sizeof_long_int=0
16947fi
16948fi
16949echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16950echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16951cat >>confdefs.h <<_ACEOF
16952#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16953_ACEOF
16954
16955
16956echo "$as_me:$LINENO: checking for long long int" >&5
16957echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16958if test "${ac_cv_type_long_long_int+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960else
16961 cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967$ac_includes_default
16968int
16969main ()
16970{
16971if ((long long int *) 0)
16972 return 0;
16973if (sizeof (long long int))
16974 return 0;
16975 ;
16976 return 0;
16977}
16978_ACEOF
16979rm -f conftest.$ac_objext
16980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag"
16989 || test ! -s conftest.err'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 ac_cv_type_long_long_int=yes
17002else
17003 echo "$as_me: failed program was:" >&5
17004sed 's/^/| /' conftest.$ac_ext >&5
17005
17006ac_cv_type_long_long_int=no
17007fi
17008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009fi
17010echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17011echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
17012
17013echo "$as_me:$LINENO: checking size of long long int" >&5
17014echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
17015if test "${ac_cv_sizeof_long_long_int+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017else
17018 if test "$ac_cv_type_long_long_int" = yes; then
17019 # The cast to unsigned long works around a bug in the HP C Compiler
17020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17022 # This bug is HP SR number 8606223364.
17023 if test "$cross_compiling" = yes; then
17024 # Depending upon the size, compute the lo and hi bounds.
17025cat >conftest.$ac_ext <<_ACEOF
17026/* confdefs.h. */
17027_ACEOF
17028cat confdefs.h >>conftest.$ac_ext
17029cat >>conftest.$ac_ext <<_ACEOF
17030/* end confdefs.h. */
17031$ac_includes_default
17032int
17033main ()
17034{
17035static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
17036test_array [0] = 0
17037
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext
17043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag"
17052 || test ! -s conftest.err'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest.$ac_objext'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_lo=0 ac_mid=0
17065 while :; do
17066 cat >conftest.$ac_ext <<_ACEOF
17067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
17072$ac_includes_default
17073int
17074main ()
17075{
17076static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
17077test_array [0] = 0
17078
17079 ;
17080 return 0;
17081}
17082_ACEOF
17083rm -f conftest.$ac_objext
17084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17085 (eval $ac_compile) 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag"
17093 || test ! -s conftest.err'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_hi=$ac_mid; break
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110ac_lo=`expr $ac_mid + 1`
17111 if test $ac_lo -le $ac_mid; then
17112 ac_lo= ac_hi=
17113 break
17114 fi
17115 ac_mid=`expr 2 '*' $ac_mid + 1`
17116fi
17117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17118 done
17119else
17120 echo "$as_me: failed program was:" >&5
17121sed 's/^/| /' conftest.$ac_ext >&5
17122
17123cat >conftest.$ac_ext <<_ACEOF
17124/* confdefs.h. */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h. */
17129$ac_includes_default
17130int
17131main ()
17132{
17133static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
17134test_array [0] = 0
17135
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140rm -f conftest.$ac_objext
17141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17142 (eval $ac_compile) 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag"
17150 || test ! -s conftest.err'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; } &&
17156 { ac_try='test -s conftest.$ac_objext'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_hi=-1 ac_mid=-1
17163 while :; do
17164 cat >conftest.$ac_ext <<_ACEOF
17165/* confdefs.h. */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h. */
17170$ac_includes_default
17171int
17172main ()
17173{
17174static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
17175test_array [0] = 0
17176
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183 (eval $ac_compile) 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_lo=$ac_mid; break
17204else
17205 echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208ac_hi=`expr '(' $ac_mid ')' - 1`
17209 if test $ac_mid -le $ac_hi; then
17210 ac_lo= ac_hi=
17211 break
17212 fi
17213 ac_mid=`expr 2 '*' $ac_mid`
17214fi
17215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17216 done
17217else
17218 echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221ac_lo= ac_hi=
17222fi
17223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17224fi
17225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226# Binary search between lo and hi bounds.
17227while test "x$ac_lo" != "x$ac_hi"; do
17228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17229 cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235$ac_includes_default
17236int
17237main ()
17238{
17239static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
17240test_array [0] = 0
17241
17242 ;
17243 return 0;
17244}
17245_ACEOF
17246rm -f conftest.$ac_objext
17247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag"
17256 || test ! -s conftest.err'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_hi=$ac_mid
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273ac_lo=`expr '(' $ac_mid ')' + 1`
17274fi
17275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276done
17277case $ac_lo in
17278?*) ac_cv_sizeof_long_long_int=$ac_lo;;
17279'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
17280See \`config.log' for more details." >&5
17281echo "$as_me: error: cannot compute sizeof (long long int), 77
17282See \`config.log' for more details." >&2;}
17283 { (exit 1); exit 1; }; } ;;
17284esac
17285else
17286 if test "$cross_compiling" = yes; then
17287 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17288See \`config.log' for more details." >&5
17289echo "$as_me: error: cannot run test program while cross compiling
17290See \`config.log' for more details." >&2;}
17291 { (exit 1); exit 1; }; }
17292else
17293 cat >conftest.$ac_ext <<_ACEOF
17294/* confdefs.h. */
17295_ACEOF
17296cat confdefs.h >>conftest.$ac_ext
17297cat >>conftest.$ac_ext <<_ACEOF
17298/* end confdefs.h. */
17299$ac_includes_default
17300long longval () { return (long) (sizeof (long long int)); }
17301unsigned long ulongval () { return (long) (sizeof (long long int)); }
17302#include <stdio.h>
17303#include <stdlib.h>
17304int
17305main ()
17306{
17307
17308 FILE *f = fopen ("conftest.val", "w");
17309 if (! f)
17310 exit (1);
17311 if (((long) (sizeof (long long int))) < 0)
17312 {
17313 long i = longval ();
17314 if (i != ((long) (sizeof (long long int))))
17315 exit (1);
17316 fprintf (f, "%ld\n", i);
17317 }
17318 else
17319 {
17320 unsigned long i = ulongval ();
17321 if (i != ((long) (sizeof (long long int))))
17322 exit (1);
17323 fprintf (f, "%lu\n", i);
17324 }
17325 exit (ferror (f) || fclose (f) != 0);
17326
17327 ;
17328 return 0;
17329}
17330_ACEOF
17331rm -f conftest$ac_exeext
17332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 ac_cv_sizeof_long_long_int=`cat conftest.val`
17343else
17344 echo "$as_me: program exited with status $ac_status" >&5
17345echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348( exit $ac_status )
17349{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
17350See \`config.log' for more details." >&5
17351echo "$as_me: error: cannot compute sizeof (long long int), 77
17352See \`config.log' for more details." >&2;}
17353 { (exit 1); exit 1; }; }
17354fi
17355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17356fi
17357fi
17358rm -f conftest.val
17359else
17360 ac_cv_sizeof_long_long_int=0
17361fi
17362fi
17363echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
17364echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
17365cat >>confdefs.h <<_ACEOF
17366#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
17367_ACEOF
17368
17369
17370
17371# Sanity check long long for some platforms (AIX)
17372if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
17373 ac_cv_sizeof_long_long_int=0
17374fi
17375
17376# More checks for data types
17377echo "$as_me:$LINENO: checking for u_int type" >&5
17378echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17379if test "${ac_cv_have_u_int+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381else
17382
17383 cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389 #include <sys/types.h>
17390int
17391main ()
17392{
17393 u_int a; a = 1;
17394 ;
17395 return 0;
17396}
17397_ACEOF
17398rm -f conftest.$ac_objext
17399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400 (eval $ac_compile) 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag"
17408 || test ! -s conftest.err'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest.$ac_objext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_cv_have_u_int="yes"
17421else
17422 echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ac_cv_have_u_int="no"
17426
17427fi
17428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17429
17430fi
17431echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17432echo "${ECHO_T}$ac_cv_have_u_int" >&6
17433if test "x$ac_cv_have_u_int" = "xyes" ; then
17434 cat >>confdefs.h <<\_ACEOF
17435#define HAVE_U_INT 1
17436_ACEOF
17437
17438 have_u_int=1
17439fi
17440
17441echo "$as_me:$LINENO: checking for intXX_t types" >&5
17442echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17443if test "${ac_cv_have_intxx_t+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453 #include <sys/types.h>
17454int
17455main ()
17456{
17457 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462rm -f conftest.$ac_objext
17463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17464 (eval $ac_compile) 2>conftest.er1
17465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag"
17472 || test ! -s conftest.err'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest.$ac_objext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 ac_cv_have_intxx_t="yes"
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 ac_cv_have_intxx_t="no"
17490
17491fi
17492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17493
17494fi
17495echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17496echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17497if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17498 cat >>confdefs.h <<\_ACEOF
17499#define HAVE_INTXX_T 1
17500_ACEOF
17501
17502 have_intxx_t=1
17503fi
17504
17505if (test -z "$have_intxx_t" && \
17506 test "x$ac_cv_header_stdint_h" = "xyes")
17507then
17508 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
17509echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516 #include <stdint.h>
17517int
17518main ()
17519{
17520 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527 (eval $ac_compile) 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest.$ac_objext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547
17548 cat >>confdefs.h <<\_ACEOF
17549#define HAVE_INTXX_T 1
17550_ACEOF
17551
17552 echo "$as_me:$LINENO: result: yes" >&5
17553echo "${ECHO_T}yes" >&6
17554
17555else
17556 echo "$as_me: failed program was:" >&5
17557sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 echo "$as_me:$LINENO: result: no" >&5
17560echo "${ECHO_T}no" >&6
17561
17562fi
17563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17564fi
17565
17566echo "$as_me:$LINENO: checking for int64_t type" >&5
17567echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17568if test "${ac_cv_have_int64_t+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17570else
17571
17572 cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578
17579#include <sys/types.h>
17580#ifdef HAVE_STDINT_H
17581# include <stdint.h>
17582#endif
17583#include <sys/socket.h>
17584#ifdef HAVE_SYS_BITYPES_H
17585# include <sys/bitypes.h>
17586#endif
17587
17588int
17589main ()
17590{
17591 int64_t a; a = 1;
17592 ;
17593 return 0;
17594}
17595_ACEOF
17596rm -f conftest.$ac_objext
17597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17598 (eval $ac_compile) 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag"
17606 || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest.$ac_objext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_have_int64_t="yes"
17619else
17620 echo "$as_me: failed program was:" >&5
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623 ac_cv_have_int64_t="no"
17624
17625fi
17626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17627
17628fi
17629echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17630echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17631if test "x$ac_cv_have_int64_t" = "xyes" ; then
17632 cat >>confdefs.h <<\_ACEOF
17633#define HAVE_INT64_T 1
17634_ACEOF
17635
17636fi
17637
17638echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17639echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17640if test "${ac_cv_have_u_intxx_t+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642else
17643
17644 cat >conftest.$ac_ext <<_ACEOF
17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
17650 #include <sys/types.h>
17651int
17652main ()
17653{
17654 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17655 ;
17656 return 0;
17657}
17658_ACEOF
17659rm -f conftest.$ac_objext
17660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17661 (eval $ac_compile) 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } &&
17668 { ac_try='test -z "$ac_c_werror_flag"
17669 || test ! -s conftest.err'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_cv_have_u_intxx_t="yes"
17682else
17683 echo "$as_me: failed program was:" >&5
17684sed 's/^/| /' conftest.$ac_ext >&5
17685
17686 ac_cv_have_u_intxx_t="no"
17687
17688fi
17689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17690
17691fi
17692echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17693echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17694if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17695 cat >>confdefs.h <<\_ACEOF
17696#define HAVE_U_INTXX_T 1
17697_ACEOF
17698
17699 have_u_intxx_t=1
17700fi
17701
17702if test -z "$have_u_intxx_t" ; then
17703 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
17704echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h. */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h. */
17711 #include <sys/socket.h>
17712int
17713main ()
17714{
17715 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17716 ;
17717 return 0;
17718}
17719_ACEOF
17720rm -f conftest.$ac_objext
17721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17722 (eval $ac_compile) 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } &&
17729 { ac_try='test -z "$ac_c_werror_flag"
17730 || test ! -s conftest.err'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742
17743 cat >>confdefs.h <<\_ACEOF
17744#define HAVE_U_INTXX_T 1
17745_ACEOF
17746
17747 echo "$as_me:$LINENO: result: yes" >&5
17748echo "${ECHO_T}yes" >&6
17749
17750else
17751 echo "$as_me: failed program was:" >&5
17752sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 echo "$as_me:$LINENO: result: no" >&5
17755echo "${ECHO_T}no" >&6
17756
17757fi
17758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17759fi
17760
17761echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17762echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17763if test "${ac_cv_have_u_int64_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766
17767 cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h. */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
17772/* end confdefs.h. */
17773 #include <sys/types.h>
17774int
17775main ()
17776{
17777 u_int64_t a; a = 1;
17778 ;
17779 return 0;
17780}
17781_ACEOF
17782rm -f conftest.$ac_objext
17783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17784 (eval $ac_compile) 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_c_werror_flag"
17792 || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest.$ac_objext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_have_u_int64_t="yes"
17805else
17806 echo "$as_me: failed program was:" >&5
17807sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_have_u_int64_t="no"
17810
17811fi
17812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17813
17814fi
17815echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17816echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17817if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17818 cat >>confdefs.h <<\_ACEOF
17819#define HAVE_U_INT64_T 1
17820_ACEOF
17821
17822 have_u_int64_t=1
17823fi
17824
17825if test -z "$have_u_int64_t" ; then
17826 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
17827echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
17828 cat >conftest.$ac_ext <<_ACEOF
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834 #include <sys/bitypes.h>
17835int
17836main ()
17837{
17838 u_int64_t a; a = 1
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865
17866 cat >>confdefs.h <<\_ACEOF
17867#define HAVE_U_INT64_T 1
17868_ACEOF
17869
17870 echo "$as_me:$LINENO: result: yes" >&5
17871echo "${ECHO_T}yes" >&6
17872
17873else
17874 echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 echo "$as_me:$LINENO: result: no" >&5
17878echo "${ECHO_T}no" >&6
17879
17880fi
17881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17882fi
17883
17884if test -z "$have_u_intxx_t" ; then
17885 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17886echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17887if test "${ac_cv_have_uintxx_t+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889else
17890
17891 cat >conftest.$ac_ext <<_ACEOF
17892/* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
17896/* end confdefs.h. */
17897
17898#include <sys/types.h>
17899
17900int
17901main ()
17902{
17903 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
17904 ;
17905 return 0;
17906}
17907_ACEOF
17908rm -f conftest.$ac_objext
17909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_have_uintxx_t="yes"
17931else
17932 echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_cv_have_uintxx_t="no"
17936
17937fi
17938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17939
17940fi
17941echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17942echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17943 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17944 cat >>confdefs.h <<\_ACEOF
17945#define HAVE_UINTXX_T 1
17946_ACEOF
17947
17948 fi
17949fi
17950
17951if test -z "$have_uintxx_t" ; then
17952 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
17953echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
17954 cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960 #include <stdint.h>
17961int
17962main ()
17963{
17964 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17971 (eval $ac_compile) 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991
17992 cat >>confdefs.h <<\_ACEOF
17993#define HAVE_UINTXX_T 1
17994_ACEOF
17995
17996 echo "$as_me:$LINENO: result: yes" >&5
17997echo "${ECHO_T}yes" >&6
17998
17999else
18000 echo "$as_me: failed program was:" >&5
18001sed 's/^/| /' conftest.$ac_ext >&5
18002
18003 echo "$as_me:$LINENO: result: no" >&5
18004echo "${ECHO_T}no" >&6
18005
18006fi
18007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18008fi
18009
18010if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
18011 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
18012then
18013 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
18014echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
18015 cat >conftest.$ac_ext <<_ACEOF
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
18021
18022#include <sys/bitypes.h>
18023
18024int
18025main ()
18026{
18027
18028 int8_t a; int16_t b; int32_t c;
18029 u_int8_t e; u_int16_t f; u_int32_t g;
18030 a = b = c = e = f = g = 1;
18031
18032 ;
18033 return 0;
18034}
18035_ACEOF
18036rm -f conftest.$ac_objext
18037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18038 (eval $ac_compile) 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag"
18046 || test ! -s conftest.err'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; } &&
18052 { ac_try='test -s conftest.$ac_objext'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058
18059 cat >>confdefs.h <<\_ACEOF
18060#define HAVE_U_INTXX_T 1
18061_ACEOF
18062
18063 cat >>confdefs.h <<\_ACEOF
18064#define HAVE_INTXX_T 1
18065_ACEOF
18066
18067 echo "$as_me:$LINENO: result: yes" >&5
18068echo "${ECHO_T}yes" >&6
18069
18070else
18071 echo "$as_me: failed program was:" >&5
18072sed 's/^/| /' conftest.$ac_ext >&5
18073
18074echo "$as_me:$LINENO: result: no" >&5
18075echo "${ECHO_T}no" >&6
18076
18077fi
18078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18079fi
18080
18081
18082echo "$as_me:$LINENO: checking for u_char" >&5
18083echo $ECHO_N "checking for u_char... $ECHO_C" >&6
18084if test "${ac_cv_have_u_char+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087
18088 cat >conftest.$ac_ext <<_ACEOF
18089/* confdefs.h. */
18090_ACEOF
18091cat confdefs.h >>conftest.$ac_ext
18092cat >>conftest.$ac_ext <<_ACEOF
18093/* end confdefs.h. */
18094
18095#include <sys/types.h>
18096
18097int
18098main ()
18099{
18100 u_char foo; foo = 125;
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext
18106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107 (eval $ac_compile) 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_have_u_char="yes"
18128else
18129 echo "$as_me: failed program was:" >&5
18130sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_cv_have_u_char="no"
18133
18134fi
18135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18136
18137fi
18138echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
18139echo "${ECHO_T}$ac_cv_have_u_char" >&6
18140if test "x$ac_cv_have_u_char" = "xyes" ; then
18141 cat >>confdefs.h <<\_ACEOF
18142#define HAVE_U_CHAR 1
18143_ACEOF
18144
18145fi
18146
18147
18148 echo "$as_me:$LINENO: checking for socklen_t" >&5
18149echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
18150if test "${ac_cv_type_socklen_t+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153 cat >conftest.$ac_ext <<_ACEOF
18154/* confdefs.h. */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h. */
18159#include <sys/types.h>
18160#include <sys/socket.h>
18161
18162int
18163main ()
18164{
18165if ((socklen_t *) 0)
18166 return 0;
18167if (sizeof (socklen_t))
18168 return 0;
18169 ;
18170 return 0;
18171}
18172_ACEOF
18173rm -f conftest.$ac_objext
18174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_cv_type_socklen_t=yes
18196else
18197 echo "$as_me: failed program was:" >&5
18198sed 's/^/| /' conftest.$ac_ext >&5
18199
18200ac_cv_type_socklen_t=no
18201fi
18202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18203fi
18204echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
18205echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
18206if test $ac_cv_type_socklen_t = yes; then
18207 :
18208else
18209
18210 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
18211echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
18212 if test "${curl_cv_socklen_t_equiv+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215
18216 # Systems have either "struct sockaddr *" or
18217 # "void *" as the second argument to getpeername
18218 curl_cv_socklen_t_equiv=
18219 for arg2 in "struct sockaddr" void; do
18220 for t in int size_t unsigned long "unsigned long"; do
18221 cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h. */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h. */
18227
18228 #include <sys/types.h>
18229 #include <sys/socket.h>
18230
18231 int getpeername (int, $arg2 *, $t *);
18232
18233int
18234main ()
18235{
18236
18237 $t len;
18238 getpeername(0,0,&len);
18239
18240 ;
18241 return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext
18245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246 (eval $ac_compile) 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266
18267 curl_cv_socklen_t_equiv="$t"
18268 break
18269
18270else
18271 echo "$as_me: failed program was:" >&5
18272sed 's/^/| /' conftest.$ac_ext >&5
18273
18274fi
18275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18276 done
18277 done
18278
18279 if test "x$curl_cv_socklen_t_equiv" = x; then
18280 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
18281echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
18282 { (exit 1); exit 1; }; }
18283 fi
18284
18285fi
18286
18287 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
18288echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
18289
18290cat >>confdefs.h <<_ACEOF
18291#define socklen_t $curl_cv_socklen_t_equiv
18292_ACEOF
18293
18294fi
18295
18296
18297
18298echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
18299echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
18300if test "${ac_cv_type_sig_atomic_t+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302else
18303 cat >conftest.$ac_ext <<_ACEOF
18304/* confdefs.h. */
18305_ACEOF
18306cat confdefs.h >>conftest.$ac_ext
18307cat >>conftest.$ac_ext <<_ACEOF
18308/* end confdefs.h. */
18309#include <signal.h>
18310
18311int
18312main ()
18313{
18314if ((sig_atomic_t *) 0)
18315 return 0;
18316if (sizeof (sig_atomic_t))
18317 return 0;
18318 ;
18319 return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext
18323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18324 (eval $ac_compile) 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag"
18332 || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_type_sig_atomic_t=yes
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_cv_type_sig_atomic_t=no
18350fi
18351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18352fi
18353echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
18354echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
18355if test $ac_cv_type_sig_atomic_t = yes; then
18356
18357cat >>confdefs.h <<_ACEOF
18358#define HAVE_SIG_ATOMIC_T 1
18359_ACEOF
18360
18361
18362fi
18363
18364
18365echo "$as_me:$LINENO: checking for in_addr_t" >&5
18366echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
18367if test "${ac_cv_type_in_addr_t+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18369else
18370 cat >conftest.$ac_ext <<_ACEOF
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
18375/* end confdefs.h. */
18376#include <sys/types.h>
18377#include <netinet/in.h>
18378
18379int
18380main ()
18381{
18382if ((in_addr_t *) 0)
18383 return 0;
18384if (sizeof (in_addr_t))
18385 return 0;
18386 ;
18387 return 0;
18388}
18389_ACEOF
18390rm -f conftest.$ac_objext
18391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18392 (eval $ac_compile) 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag"
18400 || test ! -s conftest.err'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; } &&
18406 { ac_try='test -s conftest.$ac_objext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18412 ac_cv_type_in_addr_t=yes
18413else
18414 echo "$as_me: failed program was:" >&5
18415sed 's/^/| /' conftest.$ac_ext >&5
18416
18417ac_cv_type_in_addr_t=no
18418fi
18419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18420fi
18421echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
18422echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
18423if test $ac_cv_type_in_addr_t = yes; then
18424
18425cat >>confdefs.h <<_ACEOF
18426#define HAVE_IN_ADDR_T 1
18427_ACEOF
18428
18429
18430fi
18431
18432
18433echo "$as_me:$LINENO: checking for size_t" >&5
18434echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18435if test "${ac_cv_have_size_t+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18437else
18438
18439 cat >conftest.$ac_ext <<_ACEOF
18440/* confdefs.h. */
18441_ACEOF
18442cat confdefs.h >>conftest.$ac_ext
18443cat >>conftest.$ac_ext <<_ACEOF
18444/* end confdefs.h. */
18445
18446#include <sys/types.h>
18447
18448int
18449main ()
18450{
18451 size_t foo; foo = 1235;
18452 ;
18453 return 0;
18454}
18455_ACEOF
18456rm -f conftest.$ac_objext
18457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag"
18466 || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_have_size_t="yes"
18479else
18480 echo "$as_me: failed program was:" >&5
18481sed 's/^/| /' conftest.$ac_ext >&5
18482
18483 ac_cv_have_size_t="no"
18484
18485fi
18486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18487
18488fi
18489echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
18490echo "${ECHO_T}$ac_cv_have_size_t" >&6
18491if test "x$ac_cv_have_size_t" = "xyes" ; then
18492 cat >>confdefs.h <<\_ACEOF
18493#define HAVE_SIZE_T 1
18494_ACEOF
18495
18496fi
18497
18498echo "$as_me:$LINENO: checking for ssize_t" >&5
18499echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18500if test "${ac_cv_have_ssize_t+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502else
18503
18504 cat >conftest.$ac_ext <<_ACEOF
18505/* confdefs.h. */
18506_ACEOF
18507cat confdefs.h >>conftest.$ac_ext
18508cat >>conftest.$ac_ext <<_ACEOF
18509/* end confdefs.h. */
18510
18511#include <sys/types.h>
18512
18513int
18514main ()
18515{
18516 ssize_t foo; foo = 1235;
18517 ;
18518 return 0;
18519}
18520_ACEOF
18521rm -f conftest.$ac_objext
18522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18523 (eval $ac_compile) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_have_ssize_t="yes"
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_have_ssize_t="no"
18549
18550fi
18551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18552
18553fi
18554echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
18555echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
18556if test "x$ac_cv_have_ssize_t" = "xyes" ; then
18557 cat >>confdefs.h <<\_ACEOF
18558#define HAVE_SSIZE_T 1
18559_ACEOF
18560
18561fi
18562
18563echo "$as_me:$LINENO: checking for clock_t" >&5
18564echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
18565if test "${ac_cv_have_clock_t+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567else
18568
18569 cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h. */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h. */
18575
18576#include <time.h>
18577
18578int
18579main ()
18580{
18581 clock_t foo; foo = 1235;
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext
18587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag"
18596 || test ! -s conftest.err'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_have_clock_t="yes"
18609else
18610 echo "$as_me: failed program was:" >&5
18611sed 's/^/| /' conftest.$ac_ext >&5
18612
18613 ac_cv_have_clock_t="no"
18614
18615fi
18616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617
18618fi
18619echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
18620echo "${ECHO_T}$ac_cv_have_clock_t" >&6
18621if test "x$ac_cv_have_clock_t" = "xyes" ; then
18622 cat >>confdefs.h <<\_ACEOF
18623#define HAVE_CLOCK_T 1
18624_ACEOF
18625
18626fi
18627
18628echo "$as_me:$LINENO: checking for sa_family_t" >&5
18629echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
18630if test "${ac_cv_have_sa_family_t+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18632else
18633
18634 cat >conftest.$ac_ext <<_ACEOF
18635/* confdefs.h. */
18636_ACEOF
18637cat confdefs.h >>conftest.$ac_ext
18638cat >>conftest.$ac_ext <<_ACEOF
18639/* end confdefs.h. */
18640
18641#include <sys/types.h>
18642#include <sys/socket.h>
18643
18644int
18645main ()
18646{
18647 sa_family_t foo; foo = 1235;
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext
18653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654 (eval $ac_compile) 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag"
18662 || test ! -s conftest.err'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_have_sa_family_t="yes"
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
18685
18686#include <sys/types.h>
18687#include <sys/socket.h>
18688#include <netinet/in.h>
18689
18690int
18691main ()
18692{
18693 sa_family_t foo; foo = 1235;
18694 ;
18695 return 0;
18696}
18697_ACEOF
18698rm -f conftest.$ac_objext
18699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18700 (eval $ac_compile) 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag"
18708 || test ! -s conftest.err'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest.$ac_objext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_have_sa_family_t="yes"
18721else
18722 echo "$as_me: failed program was:" >&5
18723sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 ac_cv_have_sa_family_t="no"
18726
18727fi
18728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18729
18730fi
18731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18732
18733fi
18734echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
18735echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
18736if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
18737 cat >>confdefs.h <<\_ACEOF
18738#define HAVE_SA_FAMILY_T 1
18739_ACEOF
18740
18741fi
18742
18743echo "$as_me:$LINENO: checking for pid_t" >&5
18744echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18745if test "${ac_cv_have_pid_t+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748
18749 cat >conftest.$ac_ext <<_ACEOF
18750/* confdefs.h. */
18751_ACEOF
18752cat confdefs.h >>conftest.$ac_ext
18753cat >>conftest.$ac_ext <<_ACEOF
18754/* end confdefs.h. */
18755
18756#include <sys/types.h>
18757
18758int
18759main ()
18760{
18761 pid_t foo; foo = 1235;
18762 ;
18763 return 0;
18764}
18765_ACEOF
18766rm -f conftest.$ac_objext
18767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18768 (eval $ac_compile) 2>conftest.er1
18769 ac_status=$?
18770 grep -v '^ *+' conftest.er1 >conftest.err
18771 rm -f conftest.er1
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag"
18776 || test ! -s conftest.err'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest.$ac_objext'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_have_pid_t="yes"
18789else
18790 echo "$as_me: failed program was:" >&5
18791sed 's/^/| /' conftest.$ac_ext >&5
18792
18793 ac_cv_have_pid_t="no"
18794
18795fi
18796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18797
18798fi
18799echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
18800echo "${ECHO_T}$ac_cv_have_pid_t" >&6
18801if test "x$ac_cv_have_pid_t" = "xyes" ; then
18802 cat >>confdefs.h <<\_ACEOF
18803#define HAVE_PID_T 1
18804_ACEOF
18805
18806fi
18807
18808echo "$as_me:$LINENO: checking for mode_t" >&5
18809echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
18810if test "${ac_cv_have_mode_t+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18812else
18813
18814 cat >conftest.$ac_ext <<_ACEOF
18815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
18820
18821#include <sys/types.h>
18822
18823int
18824main ()
18825{
18826 mode_t foo; foo = 1235;
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest.$ac_objext
18832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_have_mode_t="yes"
18854else
18855 echo "$as_me: failed program was:" >&5
18856sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 ac_cv_have_mode_t="no"
18859
18860fi
18861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18862
18863fi
18864echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
18865echo "${ECHO_T}$ac_cv_have_mode_t" >&6
18866if test "x$ac_cv_have_mode_t" = "xyes" ; then
18867 cat >>confdefs.h <<\_ACEOF
18868#define HAVE_MODE_T 1
18869_ACEOF
18870
18871fi
18872
18873
18874echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
18875echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
18876if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18878else
18879
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886
18887#include <sys/types.h>
18888#include <sys/socket.h>
18889
18890int
18891main ()
18892{
18893 struct sockaddr_storage s;
18894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest.$ac_objext
18899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18900 (eval $ac_compile) 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try='test -z "$ac_c_werror_flag"
18908 || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 ac_cv_have_struct_sockaddr_storage="yes"
18921else
18922 echo "$as_me: failed program was:" >&5
18923sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 ac_cv_have_struct_sockaddr_storage="no"
18926
18927fi
18928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18929
18930fi
18931echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
18932echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
18933if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
18934 cat >>confdefs.h <<\_ACEOF
18935#define HAVE_STRUCT_SOCKADDR_STORAGE 1
18936_ACEOF
18937
18938fi
18939
18940echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
18941echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
18942if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
18945
18946 cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952
18953#include <sys/types.h>
18954#include <netinet/in.h>
18955
18956int
18957main ()
18958{
18959 struct sockaddr_in6 s; s.sin6_family = 0;
18960 ;
18961 return 0;
18962}
18963_ACEOF
18964rm -f conftest.$ac_objext
18965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag"
18974 || test ! -s conftest.err'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_have_struct_sockaddr_in6="yes"
18987else
18988 echo "$as_me: failed program was:" >&5
18989sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ac_cv_have_struct_sockaddr_in6="no"
18992
18993fi
18994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18995
18996fi
18997echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
18998echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
18999if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
19000 cat >>confdefs.h <<\_ACEOF
19001#define HAVE_STRUCT_SOCKADDR_IN6 1
19002_ACEOF
19003
19004fi
19005
19006echo "$as_me:$LINENO: checking for struct in6_addr" >&5
19007echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
19008if test "${ac_cv_have_struct_in6_addr+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011
19012 cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018
19019#include <sys/types.h>
19020#include <netinet/in.h>
19021
19022int
19023main ()
19024{
19025 struct in6_addr s; s.s6_addr[0] = 0;
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext
19031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032 (eval $ac_compile) 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag"
19040 || test ! -s conftest.err'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest.$ac_objext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_have_struct_in6_addr="yes"
19053else
19054 echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 ac_cv_have_struct_in6_addr="no"
19058
19059fi
19060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19061
19062fi
19063echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
19064echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
19065if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
19066 cat >>confdefs.h <<\_ACEOF
19067#define HAVE_STRUCT_IN6_ADDR 1
19068_ACEOF
19069
19070fi
19071
19072echo "$as_me:$LINENO: checking for struct addrinfo" >&5
19073echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
19074if test "${ac_cv_have_struct_addrinfo+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076else
19077
19078 cat >conftest.$ac_ext <<_ACEOF
19079/* confdefs.h. */
19080_ACEOF
19081cat confdefs.h >>conftest.$ac_ext
19082cat >>conftest.$ac_ext <<_ACEOF
19083/* end confdefs.h. */
19084
19085#include <sys/types.h>
19086#include <sys/socket.h>
19087#include <netdb.h>
19088
19089int
19090main ()
19091{
19092 struct addrinfo s; s.ai_flags = AI_PASSIVE;
19093 ;
19094 return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext
19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>conftest.er1
19100 ac_status=$?
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag"
19107 || test ! -s conftest.err'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest.$ac_objext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_have_struct_addrinfo="yes"
19120else
19121 echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_cv_have_struct_addrinfo="no"
19125
19126fi
19127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19128
19129fi
19130echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
19131echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
19132if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
19133 cat >>confdefs.h <<\_ACEOF
19134#define HAVE_STRUCT_ADDRINFO 1
19135_ACEOF
19136
19137fi
19138
19139echo "$as_me:$LINENO: checking for struct timeval" >&5
19140echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
19141if test "${ac_cv_have_struct_timeval+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143else
19144
19145 cat >conftest.$ac_ext <<_ACEOF
19146/* confdefs.h. */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h. */
19151 #include <sys/time.h>
19152int
19153main ()
19154{
19155 struct timeval tv; tv.tv_sec = 1;
19156 ;
19157 return 0;
19158}
19159_ACEOF
19160rm -f conftest.$ac_objext
19161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162 (eval $ac_compile) 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_have_struct_timeval="yes"
19183else
19184 echo "$as_me: failed program was:" >&5
19185sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 ac_cv_have_struct_timeval="no"
19188
19189fi
19190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19191
19192fi
19193echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
19194echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
19195if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
19196 cat >>confdefs.h <<\_ACEOF
19197#define HAVE_STRUCT_TIMEVAL 1
19198_ACEOF
19199
19200 have_struct_timeval=1
19201fi
19202
19203echo "$as_me:$LINENO: checking for struct timespec" >&5
19204echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
19205if test "${ac_cv_type_struct_timespec+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207else
19208 cat >conftest.$ac_ext <<_ACEOF
19209/* confdefs.h. */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h. */
19214$ac_includes_default
19215int
19216main ()
19217{
19218if ((struct timespec *) 0)
19219 return 0;
19220if (sizeof (struct timespec))
19221 return 0;
19222 ;
19223 return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext
19227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -z "$ac_c_werror_flag"
19236 || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_type_struct_timespec=yes
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253ac_cv_type_struct_timespec=no
19254fi
19255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19256fi
19257echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
19258echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
19259if test $ac_cv_type_struct_timespec = yes; then
19260
19261cat >>confdefs.h <<_ACEOF
19262#define HAVE_STRUCT_TIMESPEC 1
19263_ACEOF
19264
19265
19266fi
19267
19268
19269# We need int64_t or else certian parts of the compile will fail.
19270if test "x$ac_cv_have_int64_t" = "xno" && \
19271 test "x$ac_cv_sizeof_long_int" != "x8" && \
19272 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
19273 echo "OpenSSH requires int64_t support. Contact your vendor or install"
19274 echo "an alternative compiler (I.E., GCC) before continuing."
19275 echo ""
19276 exit 1;
19277else
19278 if test "$cross_compiling" = yes; then
19279 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19280echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19281
19282else
19283 cat >conftest.$ac_ext <<_ACEOF
19284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
19289
19290#include <stdio.h>
19291#include <string.h>
19292#ifdef HAVE_SNPRINTF
19293main()
19294{
19295 char buf[50];
19296 char expected_out[50];
19297 int mazsize = 50 ;
19298#if (SIZEOF_LONG_INT == 8)
19299 long int num = 0x7fffffffffffffff;
19300#else
19301 long long num = 0x7fffffffffffffffll;
19302#endif
19303 strcpy(expected_out, "9223372036854775807");
19304 snprintf(buf, mazsize, "%lld", num);
19305 if(strcmp(buf, expected_out) != 0)
19306 exit(1);
19307 exit(0);
19308}
19309#else
19310main() { exit(0); }
19311#endif
19312
19313_ACEOF
19314rm -f conftest$ac_exeext
19315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19316 (eval $ac_link) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 true
19326else
19327 echo "$as_me: program exited with status $ac_status" >&5
19328echo "$as_me: failed program was:" >&5
19329sed 's/^/| /' conftest.$ac_ext >&5
19330
19331( exit $ac_status )
19332 cat >>confdefs.h <<\_ACEOF
19333#define BROKEN_SNPRINTF 1
19334_ACEOF
19335
19336fi
19337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19338fi
19339fi
19340
19341
19342# look for field 'ut_host' in header 'utmp.h'
19343 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19344 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
19345 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
19346echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
19347 if eval "test \"\${$ossh_varname+set}\" = set"; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349else
19350
19351 cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357#include <utmp.h>
19358
19359_ACEOF
19360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19361 $EGREP "ut_host" >/dev/null 2>&1; then
19362 eval "$ossh_varname=yes"
19363else
19364 eval "$ossh_varname=no"
19365fi
19366rm -f conftest*
19367
19368fi
19369
19370 ossh_result=`eval 'echo $'"$ossh_varname"`
19371 if test -n "`echo $ossh_varname`"; then
19372 echo "$as_me:$LINENO: result: $ossh_result" >&5
19373echo "${ECHO_T}$ossh_result" >&6
19374 if test "x$ossh_result" = "xyes"; then
19375 cat >>confdefs.h <<\_ACEOF
19376#define HAVE_HOST_IN_UTMP 1
19377_ACEOF
19378
19379 fi
19380 else
19381 echo "$as_me:$LINENO: result: no" >&5
19382echo "${ECHO_T}no" >&6
19383 fi
19384
19385
19386# look for field 'ut_host' in header 'utmpx.h'
19387 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19388 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
19389 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
19390echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
19391 if eval "test \"\${$ossh_varname+set}\" = set"; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393else
19394
19395 cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
19401#include <utmpx.h>
19402
19403_ACEOF
19404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19405 $EGREP "ut_host" >/dev/null 2>&1; then
19406 eval "$ossh_varname=yes"
19407else
19408 eval "$ossh_varname=no"
19409fi
19410rm -f conftest*
19411
19412fi
19413
19414 ossh_result=`eval 'echo $'"$ossh_varname"`
19415 if test -n "`echo $ossh_varname`"; then
19416 echo "$as_me:$LINENO: result: $ossh_result" >&5
19417echo "${ECHO_T}$ossh_result" >&6
19418 if test "x$ossh_result" = "xyes"; then
19419 cat >>confdefs.h <<\_ACEOF
19420#define HAVE_HOST_IN_UTMPX 1
19421_ACEOF
19422
19423 fi
19424 else
19425 echo "$as_me:$LINENO: result: no" >&5
19426echo "${ECHO_T}no" >&6
19427 fi
19428
19429
19430# look for field 'syslen' in header 'utmpx.h'
19431 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19432 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
19433 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
19434echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
19435 if eval "test \"\${$ossh_varname+set}\" = set"; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19437else
19438
19439 cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445#include <utmpx.h>
19446
19447_ACEOF
19448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19449 $EGREP "syslen" >/dev/null 2>&1; then
19450 eval "$ossh_varname=yes"
19451else
19452 eval "$ossh_varname=no"
19453fi
19454rm -f conftest*
19455
19456fi
19457
19458 ossh_result=`eval 'echo $'"$ossh_varname"`
19459 if test -n "`echo $ossh_varname`"; then
19460 echo "$as_me:$LINENO: result: $ossh_result" >&5
19461echo "${ECHO_T}$ossh_result" >&6
19462 if test "x$ossh_result" = "xyes"; then
19463 cat >>confdefs.h <<\_ACEOF
19464#define HAVE_SYSLEN_IN_UTMPX 1
19465_ACEOF
19466
19467 fi
19468 else
19469 echo "$as_me:$LINENO: result: no" >&5
19470echo "${ECHO_T}no" >&6
19471 fi
19472
19473
19474# look for field 'ut_pid' in header 'utmp.h'
19475 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19476 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
19477 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
19478echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
19479 if eval "test \"\${$ossh_varname+set}\" = set"; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19481else
19482
19483 cat >conftest.$ac_ext <<_ACEOF
19484/* confdefs.h. */
19485_ACEOF
19486cat confdefs.h >>conftest.$ac_ext
19487cat >>conftest.$ac_ext <<_ACEOF
19488/* end confdefs.h. */
19489#include <utmp.h>
19490
19491_ACEOF
19492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19493 $EGREP "ut_pid" >/dev/null 2>&1; then
19494 eval "$ossh_varname=yes"
19495else
19496 eval "$ossh_varname=no"
19497fi
19498rm -f conftest*
19499
19500fi
19501
19502 ossh_result=`eval 'echo $'"$ossh_varname"`
19503 if test -n "`echo $ossh_varname`"; then
19504 echo "$as_me:$LINENO: result: $ossh_result" >&5
19505echo "${ECHO_T}$ossh_result" >&6
19506 if test "x$ossh_result" = "xyes"; then
19507 cat >>confdefs.h <<\_ACEOF
19508#define HAVE_PID_IN_UTMP 1
19509_ACEOF
19510
19511 fi
19512 else
19513 echo "$as_me:$LINENO: result: no" >&5
19514echo "${ECHO_T}no" >&6
19515 fi
19516
19517
19518# look for field 'ut_type' in header 'utmp.h'
19519 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19520 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
19521 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
19522echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
19523 if eval "test \"\${$ossh_varname+set}\" = set"; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525else
19526
19527 cat >conftest.$ac_ext <<_ACEOF
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533#include <utmp.h>
19534
19535_ACEOF
19536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19537 $EGREP "ut_type" >/dev/null 2>&1; then
19538 eval "$ossh_varname=yes"
19539else
19540 eval "$ossh_varname=no"
19541fi
19542rm -f conftest*
19543
19544fi
19545
19546 ossh_result=`eval 'echo $'"$ossh_varname"`
19547 if test -n "`echo $ossh_varname`"; then
19548 echo "$as_me:$LINENO: result: $ossh_result" >&5
19549echo "${ECHO_T}$ossh_result" >&6
19550 if test "x$ossh_result" = "xyes"; then
19551 cat >>confdefs.h <<\_ACEOF
19552#define HAVE_TYPE_IN_UTMP 1
19553_ACEOF
19554
19555 fi
19556 else
19557 echo "$as_me:$LINENO: result: no" >&5
19558echo "${ECHO_T}no" >&6
19559 fi
19560
19561
19562# look for field 'ut_type' in header 'utmpx.h'
19563 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19564 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
19565 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
19566echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
19567 if eval "test \"\${$ossh_varname+set}\" = set"; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569else
19570
19571 cat >conftest.$ac_ext <<_ACEOF
19572/* confdefs.h. */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h. */
19577#include <utmpx.h>
19578
19579_ACEOF
19580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19581 $EGREP "ut_type" >/dev/null 2>&1; then
19582 eval "$ossh_varname=yes"
19583else
19584 eval "$ossh_varname=no"
19585fi
19586rm -f conftest*
19587
19588fi
19589
19590 ossh_result=`eval 'echo $'"$ossh_varname"`
19591 if test -n "`echo $ossh_varname`"; then
19592 echo "$as_me:$LINENO: result: $ossh_result" >&5
19593echo "${ECHO_T}$ossh_result" >&6
19594 if test "x$ossh_result" = "xyes"; then
19595 cat >>confdefs.h <<\_ACEOF
19596#define HAVE_TYPE_IN_UTMPX 1
19597_ACEOF
19598
19599 fi
19600 else
19601 echo "$as_me:$LINENO: result: no" >&5
19602echo "${ECHO_T}no" >&6
19603 fi
19604
19605
19606# look for field 'ut_tv' in header 'utmp.h'
19607 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19608 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
19609 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
19610echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
19611 if eval "test \"\${$ossh_varname+set}\" = set"; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613else
19614
19615 cat >conftest.$ac_ext <<_ACEOF
19616/* confdefs.h. */
19617_ACEOF
19618cat confdefs.h >>conftest.$ac_ext
19619cat >>conftest.$ac_ext <<_ACEOF
19620/* end confdefs.h. */
19621#include <utmp.h>
19622
19623_ACEOF
19624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19625 $EGREP "ut_tv" >/dev/null 2>&1; then
19626 eval "$ossh_varname=yes"
19627else
19628 eval "$ossh_varname=no"
19629fi
19630rm -f conftest*
19631
19632fi
19633
19634 ossh_result=`eval 'echo $'"$ossh_varname"`
19635 if test -n "`echo $ossh_varname`"; then
19636 echo "$as_me:$LINENO: result: $ossh_result" >&5
19637echo "${ECHO_T}$ossh_result" >&6
19638 if test "x$ossh_result" = "xyes"; then
19639 cat >>confdefs.h <<\_ACEOF
19640#define HAVE_TV_IN_UTMP 1
19641_ACEOF
19642
19643 fi
19644 else
19645 echo "$as_me:$LINENO: result: no" >&5
19646echo "${ECHO_T}no" >&6
19647 fi
19648
19649
19650# look for field 'ut_id' in header 'utmp.h'
19651 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19652 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
19653 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
19654echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
19655 if eval "test \"\${$ossh_varname+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
19658
19659 cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
19665#include <utmp.h>
19666
19667_ACEOF
19668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19669 $EGREP "ut_id" >/dev/null 2>&1; then
19670 eval "$ossh_varname=yes"
19671else
19672 eval "$ossh_varname=no"
19673fi
19674rm -f conftest*
19675
19676fi
19677
19678 ossh_result=`eval 'echo $'"$ossh_varname"`
19679 if test -n "`echo $ossh_varname`"; then
19680 echo "$as_me:$LINENO: result: $ossh_result" >&5
19681echo "${ECHO_T}$ossh_result" >&6
19682 if test "x$ossh_result" = "xyes"; then
19683 cat >>confdefs.h <<\_ACEOF
19684#define HAVE_ID_IN_UTMP 1
19685_ACEOF
19686
19687 fi
19688 else
19689 echo "$as_me:$LINENO: result: no" >&5
19690echo "${ECHO_T}no" >&6
19691 fi
19692
19693
19694# look for field 'ut_id' in header 'utmpx.h'
19695 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19696 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
19697 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
19698echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
19699 if eval "test \"\${$ossh_varname+set}\" = set"; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701else
19702
19703 cat >conftest.$ac_ext <<_ACEOF
19704/* confdefs.h. */
19705_ACEOF
19706cat confdefs.h >>conftest.$ac_ext
19707cat >>conftest.$ac_ext <<_ACEOF
19708/* end confdefs.h. */
19709#include <utmpx.h>
19710
19711_ACEOF
19712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19713 $EGREP "ut_id" >/dev/null 2>&1; then
19714 eval "$ossh_varname=yes"
19715else
19716 eval "$ossh_varname=no"
19717fi
19718rm -f conftest*
19719
19720fi
19721
19722 ossh_result=`eval 'echo $'"$ossh_varname"`
19723 if test -n "`echo $ossh_varname`"; then
19724 echo "$as_me:$LINENO: result: $ossh_result" >&5
19725echo "${ECHO_T}$ossh_result" >&6
19726 if test "x$ossh_result" = "xyes"; then
19727 cat >>confdefs.h <<\_ACEOF
19728#define HAVE_ID_IN_UTMPX 1
19729_ACEOF
19730
19731 fi
19732 else
19733 echo "$as_me:$LINENO: result: no" >&5
19734echo "${ECHO_T}no" >&6
19735 fi
19736
19737
19738# look for field 'ut_addr' in header 'utmp.h'
19739 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19740 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
19741 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
19742echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
19743 if eval "test \"\${$ossh_varname+set}\" = set"; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
19746
19747 cat >conftest.$ac_ext <<_ACEOF
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
19752/* end confdefs.h. */
19753#include <utmp.h>
19754
19755_ACEOF
19756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19757 $EGREP "ut_addr" >/dev/null 2>&1; then
19758 eval "$ossh_varname=yes"
19759else
19760 eval "$ossh_varname=no"
19761fi
19762rm -f conftest*
19763
19764fi
19765
19766 ossh_result=`eval 'echo $'"$ossh_varname"`
19767 if test -n "`echo $ossh_varname`"; then
19768 echo "$as_me:$LINENO: result: $ossh_result" >&5
19769echo "${ECHO_T}$ossh_result" >&6
19770 if test "x$ossh_result" = "xyes"; then
19771 cat >>confdefs.h <<\_ACEOF
19772#define HAVE_ADDR_IN_UTMP 1
19773_ACEOF
19774
19775 fi
19776 else
19777 echo "$as_me:$LINENO: result: no" >&5
19778echo "${ECHO_T}no" >&6
19779 fi
19780
19781
19782# look for field 'ut_addr' in header 'utmpx.h'
19783 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19784 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
19785 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
19786echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
19787 if eval "test \"\${$ossh_varname+set}\" = set"; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790
19791 cat >conftest.$ac_ext <<_ACEOF
19792/* confdefs.h. */
19793_ACEOF
19794cat confdefs.h >>conftest.$ac_ext
19795cat >>conftest.$ac_ext <<_ACEOF
19796/* end confdefs.h. */
19797#include <utmpx.h>
19798
19799_ACEOF
19800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19801 $EGREP "ut_addr" >/dev/null 2>&1; then
19802 eval "$ossh_varname=yes"
19803else
19804 eval "$ossh_varname=no"
19805fi
19806rm -f conftest*
19807
19808fi
19809
19810 ossh_result=`eval 'echo $'"$ossh_varname"`
19811 if test -n "`echo $ossh_varname`"; then
19812 echo "$as_me:$LINENO: result: $ossh_result" >&5
19813echo "${ECHO_T}$ossh_result" >&6
19814 if test "x$ossh_result" = "xyes"; then
19815 cat >>confdefs.h <<\_ACEOF
19816#define HAVE_ADDR_IN_UTMPX 1
19817_ACEOF
19818
19819 fi
19820 else
19821 echo "$as_me:$LINENO: result: no" >&5
19822echo "${ECHO_T}no" >&6
19823 fi
19824
19825
19826# look for field 'ut_addr_v6' in header 'utmp.h'
19827 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19828 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
19829 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
19830echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
19831 if eval "test \"\${$ossh_varname+set}\" = set"; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833else
19834
19835 cat >conftest.$ac_ext <<_ACEOF
19836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h. */
19841#include <utmp.h>
19842
19843_ACEOF
19844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19845 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
19846 eval "$ossh_varname=yes"
19847else
19848 eval "$ossh_varname=no"
19849fi
19850rm -f conftest*
19851
19852fi
19853
19854 ossh_result=`eval 'echo $'"$ossh_varname"`
19855 if test -n "`echo $ossh_varname`"; then
19856 echo "$as_me:$LINENO: result: $ossh_result" >&5
19857echo "${ECHO_T}$ossh_result" >&6
19858 if test "x$ossh_result" = "xyes"; then
19859 cat >>confdefs.h <<\_ACEOF
19860#define HAVE_ADDR_V6_IN_UTMP 1
19861_ACEOF
19862
19863 fi
19864 else
19865 echo "$as_me:$LINENO: result: no" >&5
19866echo "${ECHO_T}no" >&6
19867 fi
19868
19869
19870# look for field 'ut_addr_v6' in header 'utmpx.h'
19871 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19872 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
19873 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
19874echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
19875 if eval "test \"\${$ossh_varname+set}\" = set"; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878
19879 cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885#include <utmpx.h>
19886
19887_ACEOF
19888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
19890 eval "$ossh_varname=yes"
19891else
19892 eval "$ossh_varname=no"
19893fi
19894rm -f conftest*
19895
19896fi
19897
19898 ossh_result=`eval 'echo $'"$ossh_varname"`
19899 if test -n "`echo $ossh_varname`"; then
19900 echo "$as_me:$LINENO: result: $ossh_result" >&5
19901echo "${ECHO_T}$ossh_result" >&6
19902 if test "x$ossh_result" = "xyes"; then
19903 cat >>confdefs.h <<\_ACEOF
19904#define HAVE_ADDR_V6_IN_UTMPX 1
19905_ACEOF
19906
19907 fi
19908 else
19909 echo "$as_me:$LINENO: result: no" >&5
19910echo "${ECHO_T}no" >&6
19911 fi
19912
19913
19914# look for field 'ut_exit' in header 'utmp.h'
19915 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19916 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
19917 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
19918echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
19919 if eval "test \"\${$ossh_varname+set}\" = set"; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921else
19922
19923 cat >conftest.$ac_ext <<_ACEOF
19924/* confdefs.h. */
19925_ACEOF
19926cat confdefs.h >>conftest.$ac_ext
19927cat >>conftest.$ac_ext <<_ACEOF
19928/* end confdefs.h. */
19929#include <utmp.h>
19930
19931_ACEOF
19932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19933 $EGREP "ut_exit" >/dev/null 2>&1; then
19934 eval "$ossh_varname=yes"
19935else
19936 eval "$ossh_varname=no"
19937fi
19938rm -f conftest*
19939
19940fi
19941
19942 ossh_result=`eval 'echo $'"$ossh_varname"`
19943 if test -n "`echo $ossh_varname`"; then
19944 echo "$as_me:$LINENO: result: $ossh_result" >&5
19945echo "${ECHO_T}$ossh_result" >&6
19946 if test "x$ossh_result" = "xyes"; then
19947 cat >>confdefs.h <<\_ACEOF
19948#define HAVE_EXIT_IN_UTMP 1
19949_ACEOF
19950
19951 fi
19952 else
19953 echo "$as_me:$LINENO: result: no" >&5
19954echo "${ECHO_T}no" >&6
19955 fi
19956
19957
19958# look for field 'ut_time' in header 'utmp.h'
19959 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19960 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
19961 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
19962echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
19963 if eval "test \"\${$ossh_varname+set}\" = set"; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966
19967 cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973#include <utmp.h>
19974
19975_ACEOF
19976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19977 $EGREP "ut_time" >/dev/null 2>&1; then
19978 eval "$ossh_varname=yes"
19979else
19980 eval "$ossh_varname=no"
19981fi
19982rm -f conftest*
19983
19984fi
19985
19986 ossh_result=`eval 'echo $'"$ossh_varname"`
19987 if test -n "`echo $ossh_varname`"; then
19988 echo "$as_me:$LINENO: result: $ossh_result" >&5
19989echo "${ECHO_T}$ossh_result" >&6
19990 if test "x$ossh_result" = "xyes"; then
19991 cat >>confdefs.h <<\_ACEOF
19992#define HAVE_TIME_IN_UTMP 1
19993_ACEOF
19994
19995 fi
19996 else
19997 echo "$as_me:$LINENO: result: no" >&5
19998echo "${ECHO_T}no" >&6
19999 fi
20000
20001
20002# look for field 'ut_time' in header 'utmpx.h'
20003 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20004 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
20005 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
20006echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
20007 if eval "test \"\${$ossh_varname+set}\" = set"; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009else
20010
20011 cat >conftest.$ac_ext <<_ACEOF
20012/* confdefs.h. */
20013_ACEOF
20014cat confdefs.h >>conftest.$ac_ext
20015cat >>conftest.$ac_ext <<_ACEOF
20016/* end confdefs.h. */
20017#include <utmpx.h>
20018
20019_ACEOF
20020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20021 $EGREP "ut_time" >/dev/null 2>&1; then
20022 eval "$ossh_varname=yes"
20023else
20024 eval "$ossh_varname=no"
20025fi
20026rm -f conftest*
20027
20028fi
20029
20030 ossh_result=`eval 'echo $'"$ossh_varname"`
20031 if test -n "`echo $ossh_varname`"; then
20032 echo "$as_me:$LINENO: result: $ossh_result" >&5
20033echo "${ECHO_T}$ossh_result" >&6
20034 if test "x$ossh_result" = "xyes"; then
20035 cat >>confdefs.h <<\_ACEOF
20036#define HAVE_TIME_IN_UTMPX 1
20037_ACEOF
20038
20039 fi
20040 else
20041 echo "$as_me:$LINENO: result: no" >&5
20042echo "${ECHO_T}no" >&6
20043 fi
20044
20045
20046# look for field 'ut_tv' in header 'utmpx.h'
20047 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20048 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
20049 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
20050echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
20051 if eval "test \"\${$ossh_varname+set}\" = set"; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053else
20054
20055 cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
20060/* end confdefs.h. */
20061#include <utmpx.h>
20062
20063_ACEOF
20064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20065 $EGREP "ut_tv" >/dev/null 2>&1; then
20066 eval "$ossh_varname=yes"
20067else
20068 eval "$ossh_varname=no"
20069fi
20070rm -f conftest*
20071
20072fi
20073
20074 ossh_result=`eval 'echo $'"$ossh_varname"`
20075 if test -n "`echo $ossh_varname`"; then
20076 echo "$as_me:$LINENO: result: $ossh_result" >&5
20077echo "${ECHO_T}$ossh_result" >&6
20078 if test "x$ossh_result" = "xyes"; then
20079 cat >>confdefs.h <<\_ACEOF
20080#define HAVE_TV_IN_UTMPX 1
20081_ACEOF
20082
20083 fi
20084 else
20085 echo "$as_me:$LINENO: result: no" >&5
20086echo "${ECHO_T}no" >&6
20087 fi
20088
20089
20090echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20091echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20092if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095 cat >conftest.$ac_ext <<_ACEOF
20096/* confdefs.h. */
20097_ACEOF
20098cat confdefs.h >>conftest.$ac_ext
20099cat >>conftest.$ac_ext <<_ACEOF
20100/* end confdefs.h. */
20101$ac_includes_default
20102int
20103main ()
20104{
20105static struct stat ac_aggr;
20106if (ac_aggr.st_blksize)
20107return 0;
20108 ;
20109 return 0;
20110}
20111_ACEOF
20112rm -f conftest.$ac_objext
20113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114 (eval $ac_compile) 2>conftest.er1
20115 ac_status=$?
20116 grep -v '^ *+' conftest.er1 >conftest.err
20117 rm -f conftest.er1
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_member_struct_stat_st_blksize=yes
20135else
20136 echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139cat >conftest.$ac_ext <<_ACEOF
20140/* confdefs.h. */
20141_ACEOF
20142cat confdefs.h >>conftest.$ac_ext
20143cat >>conftest.$ac_ext <<_ACEOF
20144/* end confdefs.h. */
20145$ac_includes_default
20146int
20147main ()
20148{
20149static struct stat ac_aggr;
20150if (sizeof ac_aggr.st_blksize)
20151return 0;
20152 ;
20153 return 0;
20154}
20155_ACEOF
20156rm -f conftest.$ac_objext
20157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 ac_cv_member_struct_stat_st_blksize=yes
20179else
20180 echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183ac_cv_member_struct_stat_st_blksize=no
20184fi
20185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20186fi
20187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20188fi
20189echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20190echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20191if test $ac_cv_member_struct_stat_st_blksize = yes; then
20192
20193cat >>confdefs.h <<_ACEOF
20194#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20195_ACEOF
20196
20197
20198fi
20199
20200
20201echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
20202echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
20203if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205else
20206
20207 cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
20213
20214#include <sys/types.h>
20215#include <sys/socket.h>
20216
20217int
20218main ()
20219{
20220 struct sockaddr_storage s; s.ss_family = 1;
20221 ;
20222 return 0;
20223}
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_have_ss_family_in_struct_ss="yes"
20248else
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ac_cv_have_ss_family_in_struct_ss="no"
20253fi
20254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255
20256fi
20257echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
20258echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
20259if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
20260 cat >>confdefs.h <<\_ACEOF
20261#define HAVE_SS_FAMILY_IN_SS 1
20262_ACEOF
20263
20264fi
20265
20266echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
20267echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
20268if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270else
20271
20272 cat >conftest.$ac_ext <<_ACEOF
20273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
20278
20279#include <sys/types.h>
20280#include <sys/socket.h>
20281
20282int
20283main ()
20284{
20285 struct sockaddr_storage s; s.__ss_family = 1;
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_have___ss_family_in_struct_ss="yes"
20313else
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317 ac_cv_have___ss_family_in_struct_ss="no"
20318
20319fi
20320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20321
20322fi
20323echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
20324echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
20325if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
20326 cat >>confdefs.h <<\_ACEOF
20327#define HAVE___SS_FAMILY_IN_SS 1
20328_ACEOF
20329
20330fi
20331
20332echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
20333echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
20334if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336else
20337
20338 cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h. */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h. */
20344
20345#include <pwd.h>
20346
20347int
20348main ()
20349{
20350 struct passwd p; p.pw_class = 0;
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_have_pw_class_in_struct_passwd="yes"
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 ac_cv_have_pw_class_in_struct_passwd="no"
20383
20384fi
20385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386
20387fi
20388echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
20389echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
20390if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
20391 cat >>confdefs.h <<\_ACEOF
20392#define HAVE_PW_CLASS_IN_PASSWD 1
20393_ACEOF
20394
20395fi
20396
20397echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
20398echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
20399if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20401else
20402
20403 cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
20409
20410#include <pwd.h>
20411
20412int
20413main ()
20414{
20415 struct passwd p; p.pw_expire = 0;
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext
20421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_have_pw_expire_in_struct_passwd="yes"
20443else
20444 echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_cv_have_pw_expire_in_struct_passwd="no"
20448
20449fi
20450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451
20452fi
20453echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
20454echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
20455if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
20456 cat >>confdefs.h <<\_ACEOF
20457#define HAVE_PW_EXPIRE_IN_PASSWD 1
20458_ACEOF
20459
20460fi
20461
20462echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
20463echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
20464if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467
20468 cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474
20475#include <pwd.h>
20476
20477int
20478main ()
20479{
20480 struct passwd p; p.pw_change = 0;
20481 ;
20482 return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext
20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_have_pw_change_in_struct_passwd="yes"
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_have_pw_change_in_struct_passwd="no"
20513
20514fi
20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20516
20517fi
20518echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
20519echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
20520if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
20521 cat >>confdefs.h <<\_ACEOF
20522#define HAVE_PW_CHANGE_IN_PASSWD 1
20523_ACEOF
20524
20525fi
20526
20527echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
20528echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
20529if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20531else
20532
20533 cat >conftest.$ac_ext <<_ACEOF
20534
20535#include <sys/types.h>
20536#include <sys/socket.h>
20537#include <sys/uio.h>
20538int main() {
20539#ifdef msg_accrights
20540#error "msg_accrights is a macro"
20541exit(1);
20542#endif
20543struct msghdr m;
20544m.msg_accrights = 0;
20545exit(0);
20546}
20547
20548_ACEOF
20549rm -f conftest.$ac_objext
20550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20551 (eval $ac_compile) 2>conftest.er1
20552 ac_status=$?
20553 grep -v '^ *+' conftest.er1 >conftest.err
20554 rm -f conftest.er1
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -z "$ac_c_werror_flag"
20559 || test ! -s conftest.err'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; } &&
20565 { ac_try='test -s conftest.$ac_objext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_have_accrights_in_msghdr="yes"
20572else
20573 echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 ac_cv_have_accrights_in_msghdr="no"
20577
20578fi
20579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20580
20581fi
20582echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
20583echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
20584if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
20585 cat >>confdefs.h <<\_ACEOF
20586#define HAVE_ACCRIGHTS_IN_MSGHDR 1
20587_ACEOF
20588
20589fi
20590
20591echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
20592echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
20593if test "${ac_cv_have_control_in_msghdr+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595else
20596
20597 cat >conftest.$ac_ext <<_ACEOF
20598
20599#include <sys/types.h>
20600#include <sys/socket.h>
20601#include <sys/uio.h>
20602int main() {
20603#ifdef msg_control
20604#error "msg_control is a macro"
20605exit(1);
20606#endif
20607struct msghdr m;
20608m.msg_control = 0;
20609exit(0);
20610}
20611
20612_ACEOF
20613rm -f conftest.$ac_objext
20614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615 (eval $ac_compile) 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -z "$ac_c_werror_flag"
20623 || test ! -s conftest.err'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_have_control_in_msghdr="yes"
20636else
20637 echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640 ac_cv_have_control_in_msghdr="no"
20641
20642fi
20643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20644
20645fi
20646echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
20647echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
20648if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
20649 cat >>confdefs.h <<\_ACEOF
20650#define HAVE_CONTROL_IN_MSGHDR 1
20651_ACEOF
20652
20653fi
20654
20655echo "$as_me:$LINENO: checking if libc defines __progname" >&5
20656echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
20657if test "${ac_cv_libc_defines___progname+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659else
20660
20661 cat >conftest.$ac_ext <<_ACEOF
20662/* confdefs.h. */
20663_ACEOF
20664cat confdefs.h >>conftest.$ac_ext
20665cat >>conftest.$ac_ext <<_ACEOF
20666/* end confdefs.h. */
20667
20668int
20669main ()
20670{
20671 extern char *__progname; printf("%s", __progname);
20672 ;
20673 return 0;
20674}
20675_ACEOF
20676rm -f conftest.$ac_objext conftest$ac_exeext
20677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_c_werror_flag"
20686 || test ! -s conftest.err'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest$ac_exeext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_cv_libc_defines___progname="yes"
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 ac_cv_libc_defines___progname="no"
20704
20705fi
20706rm -f conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708
20709fi
20710echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
20711echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
20712if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
20713 cat >>confdefs.h <<\_ACEOF
20714#define HAVE___PROGNAME 1
20715_ACEOF
20716
20717fi
20718
20719echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
20720echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
20721if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723else
20724
20725 cat >conftest.$ac_ext <<_ACEOF
20726/* confdefs.h. */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h. */
20731
20732#include <stdio.h>
20733
20734int
20735main ()
20736{
20737 printf("%s", __FUNCTION__);
20738 ;
20739 return 0;
20740}
20741_ACEOF
20742rm -f conftest.$ac_objext conftest$ac_exeext
20743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20744 (eval $ac_link) 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_c_werror_flag"
20752 || test ! -s conftest.err'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20755 ac_status=$?
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; } &&
20758 { ac_try='test -s conftest$ac_exeext'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 ac_cv_cc_implements___FUNCTION__="yes"
20765else
20766 echo "$as_me: failed program was:" >&5
20767sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 ac_cv_cc_implements___FUNCTION__="no"
20770
20771fi
20772rm -f conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20774
20775fi
20776echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
20777echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
20778if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
20779 cat >>confdefs.h <<\_ACEOF
20780#define HAVE___FUNCTION__ 1
20781_ACEOF
20782
20783fi
20784
20785echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
20786echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
20787if test "${ac_cv_cc_implements___func__+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790
20791 cat >conftest.$ac_ext <<_ACEOF
20792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
20796/* end confdefs.h. */
20797
20798#include <stdio.h>
20799
20800int
20801main ()
20802{
20803 printf("%s", __func__);
20804 ;
20805 return 0;
20806}
20807_ACEOF
20808rm -f conftest.$ac_objext conftest$ac_exeext
20809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810 (eval $ac_link) 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_c_werror_flag"
20818 || test ! -s conftest.err'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest$ac_exeext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_cc_implements___func__="yes"
20831else
20832 echo "$as_me: failed program was:" >&5
20833sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 ac_cv_cc_implements___func__="no"
20836
20837fi
20838rm -f conftest.err conftest.$ac_objext \
20839 conftest$ac_exeext conftest.$ac_ext
20840
20841fi
20842echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
20843echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
20844if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
20845 cat >>confdefs.h <<\_ACEOF
20846#define HAVE___func__ 1
20847_ACEOF
20848
20849fi
20850
20851echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
20852echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
20853if test "${ac_cv_have_getopt_optreset+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855else
20856
20857 cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h. */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h. */
20863
20864#include <getopt.h>
20865
20866int
20867main ()
20868{
20869 extern int optreset; optreset = 0;
20870 ;
20871 return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext conftest$ac_exeext
20875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876 (eval $ac_link) 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest$ac_exeext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_have_getopt_optreset="yes"
20897else
20898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ac_cv_have_getopt_optreset="no"
20902
20903fi
20904rm -f conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20906
20907fi
20908echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
20909echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
20910if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
20911 cat >>confdefs.h <<\_ACEOF
20912#define HAVE_GETOPT_OPTRESET 1
20913_ACEOF
20914
20915fi
20916
20917echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
20918echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
20919if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20921else
20922
20923 cat >conftest.$ac_ext <<_ACEOF
20924/* confdefs.h. */
20925_ACEOF
20926cat confdefs.h >>conftest.$ac_ext
20927cat >>conftest.$ac_ext <<_ACEOF
20928/* end confdefs.h. */
20929
20930int
20931main ()
20932{
20933 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
20934 ;
20935 return 0;
20936}
20937_ACEOF
20938rm -f conftest.$ac_objext conftest$ac_exeext
20939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20940 (eval $ac_link) 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag"
20948 || test ! -s conftest.err'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; } &&
20954 { ac_try='test -s conftest$ac_exeext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 ac_cv_libc_defines_sys_errlist="yes"
20961else
20962 echo "$as_me: failed program was:" >&5
20963sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 ac_cv_libc_defines_sys_errlist="no"
20966
20967fi
20968rm -f conftest.err conftest.$ac_objext \
20969 conftest$ac_exeext conftest.$ac_ext
20970
20971fi
20972echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
20973echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
20974if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
20975 cat >>confdefs.h <<\_ACEOF
20976#define HAVE_SYS_ERRLIST 1
20977_ACEOF
20978
20979fi
20980
20981
20982echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
20983echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
20984if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986else
20987
20988 cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
20994
20995int
20996main ()
20997{
20998 extern int sys_nerr; printf("%i", sys_nerr);
20999 ;
21000 return 0;
21001}
21002_ACEOF
21003rm -f conftest.$ac_objext conftest$ac_exeext
21004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>conftest.er1
21006 ac_status=$?
21007 grep -v '^ *+' conftest.er1 >conftest.err
21008 rm -f conftest.er1
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -z "$ac_c_werror_flag"
21013 || test ! -s conftest.err'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest$ac_exeext'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_cv_libc_defines_sys_nerr="yes"
21026else
21027 echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030 ac_cv_libc_defines_sys_nerr="no"
21031
21032fi
21033rm -f conftest.err conftest.$ac_objext \
21034 conftest$ac_exeext conftest.$ac_ext
21035
21036fi
21037echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
21038echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
21039if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
21040 cat >>confdefs.h <<\_ACEOF
21041#define HAVE_SYS_NERR 1
21042_ACEOF
21043
21044fi
21045
21046SCARD_MSG="no"
21047# Check whether user wants sectok support
21048
21049# Check whether --with-sectok or --without-sectok was given.
21050if test "${with_sectok+set}" = set; then
21051 withval="$with_sectok"
21052
21053 if test "x$withval" != "xno" ; then
21054 if test "x$withval" != "xyes" ; then
21055 CPPFLAGS="$CPPFLAGS -I${withval}"
21056 LDFLAGS="$LDFLAGS -L${withval}"
21057 if test ! -z "$need_dash_r" ; then
21058 LDFLAGS="$LDFLAGS -R${withval}"
21059 fi
21060 if test ! -z "$blibpath" ; then
21061 blibpath="$blibpath:${withval}"
21062 fi
21063 fi
21064
21065for ac_header in sectok.h
21066do
21067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21068if eval "test \"\${$as_ac_Header+set}\" = set"; then
21069 echo "$as_me:$LINENO: checking for $ac_header" >&5
21070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21071if eval "test \"\${$as_ac_Header+set}\" = set"; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073fi
21074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21076else
21077 # Is the header compilable?
21078echo "$as_me:$LINENO: checking $ac_header usability" >&5
21079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21080cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h. */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h. */
21086$ac_includes_default
21087#include <$ac_header>
21088_ACEOF
21089rm -f conftest.$ac_objext
21090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>conftest.er1
21092 ac_status=$?
21093 grep -v '^ *+' conftest.er1 >conftest.err
21094 rm -f conftest.er1
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_c_werror_flag"
21099 || test ! -s conftest.err'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21108 ac_status=$?
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 ac_header_compiler=yes
21112else
21113 echo "$as_me: failed program was:" >&5
21114sed 's/^/| /' conftest.$ac_ext >&5
21115
21116ac_header_compiler=no
21117fi
21118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21120echo "${ECHO_T}$ac_header_compiler" >&6
21121
21122# Is the header present?
21123echo "$as_me:$LINENO: checking $ac_header presence" >&5
21124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21125cat >conftest.$ac_ext <<_ACEOF
21126/* confdefs.h. */
21127_ACEOF
21128cat confdefs.h >>conftest.$ac_ext
21129cat >>conftest.$ac_ext <<_ACEOF
21130/* end confdefs.h. */
21131#include <$ac_header>
21132_ACEOF
21133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21134 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
21141 if test -s conftest.err; then
21142 ac_cpp_err=$ac_c_preproc_warn_flag
21143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21144 else
21145 ac_cpp_err=
21146 fi
21147else
21148 ac_cpp_err=yes
21149fi
21150if test -z "$ac_cpp_err"; then
21151 ac_header_preproc=yes
21152else
21153 echo "$as_me: failed program was:" >&5
21154sed 's/^/| /' conftest.$ac_ext >&5
21155
21156 ac_header_preproc=no
21157fi
21158rm -f conftest.err conftest.$ac_ext
21159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160echo "${ECHO_T}$ac_header_preproc" >&6
21161
21162# So? What about this header?
21163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21164 yes:no: )
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21169 ac_header_preproc=yes
21170 ;;
21171 no:yes:* )
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21184 (
21185 cat <<\_ASBOX
21186## ---------------------------------- ##
21187## Report this to the OpenSSH lists. ##
21188## ---------------------------------- ##
21189_ASBOX
21190 ) |
21191 sed "s/^/$as_me: WARNING: /" >&2
21192 ;;
21193esac
21194echo "$as_me:$LINENO: checking for $ac_header" >&5
21195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21196if eval "test \"\${$as_ac_Header+set}\" = set"; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21198else
21199 eval "$as_ac_Header=\$ac_header_preproc"
21200fi
21201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21203
21204fi
21205if test `eval echo '${'$as_ac_Header'}'` = yes; then
21206 cat >>confdefs.h <<_ACEOF
21207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21208_ACEOF
21209
21210fi
21211
21212done
21213
21214 if test "$ac_cv_header_sectok_h" != yes; then
21215 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
21216echo "$as_me: error: Can't find sectok.h" >&2;}
21217 { (exit 1); exit 1; }; }
21218 fi
21219
21220echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
21221echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
21222if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225 ac_check_lib_save_LIBS=$LIBS
21226LIBS="-lsectok $LIBS"
21227cat >conftest.$ac_ext <<_ACEOF
21228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
21233
21234/* Override any gcc2 internal prototype to avoid an error. */
21235#ifdef __cplusplus
21236extern "C"
21237#endif
21238/* We use char because int might match the return type of a gcc2
21239 builtin and then its argument prototype would still apply. */
21240char sectok_open ();
21241int
21242main ()
21243{
21244sectok_open ();
21245 ;
21246 return 0;
21247}
21248_ACEOF
21249rm -f conftest.$ac_objext conftest$ac_exeext
21250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251 (eval $ac_link) 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -z "$ac_c_werror_flag"
21259 || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest$ac_exeext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_lib_sectok_sectok_open=yes
21272else
21273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276ac_cv_lib_sectok_sectok_open=no
21277fi
21278rm -f conftest.err conftest.$ac_objext \
21279 conftest$ac_exeext conftest.$ac_ext
21280LIBS=$ac_check_lib_save_LIBS
21281fi
21282echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
21283echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
21284if test $ac_cv_lib_sectok_sectok_open = yes; then
21285 cat >>confdefs.h <<_ACEOF
21286#define HAVE_LIBSECTOK 1
21287_ACEOF
21288
21289 LIBS="-lsectok $LIBS"
21290
21291fi
21292
21293 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
21294 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
21295echo "$as_me: error: Can't find libsectok" >&2;}
21296 { (exit 1); exit 1; }; }
21297 fi
21298 cat >>confdefs.h <<\_ACEOF
21299#define SMARTCARD 1
21300_ACEOF
21301
21302 cat >>confdefs.h <<\_ACEOF
21303#define USE_SECTOK 1
21304_ACEOF
21305
21306 SCARD_MSG="yes, using sectok"
21307 fi
21308
21309
21310fi;
21311
21312# Check whether user wants OpenSC support
21313OPENSC_CONFIG="no"
21314
21315# Check whether --with-opensc or --without-opensc was given.
21316if test "${with_opensc+set}" = set; then
21317 withval="$with_opensc"
21318
21319 if test "x$withval" != "xno" ; then
21320 if test "x$withval" != "xyes" ; then
21321 OPENSC_CONFIG=$withval/bin/opensc-config
21322 else
21323 # Extract the first word of "opensc-config", so it can be a program name with args.
21324set dummy opensc-config; ac_word=$2
21325echo "$as_me:$LINENO: checking for $ac_word" >&5
21326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21327if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21329else
21330 case $OPENSC_CONFIG in
21331 [\\/]* | ?:[\\/]*)
21332 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
21333 ;;
21334 *)
21335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21336for as_dir in $PATH
21337do
21338 IFS=$as_save_IFS
21339 test -z "$as_dir" && as_dir=.
21340 for ac_exec_ext in '' $ac_executable_extensions; do
21341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21342 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21344 break 2
21345 fi
21346done
21347done
21348
21349 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
21350 ;;
21351esac
21352fi
21353OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
21354
21355if test -n "$OPENSC_CONFIG"; then
21356 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
21357echo "${ECHO_T}$OPENSC_CONFIG" >&6
21358else
21359 echo "$as_me:$LINENO: result: no" >&5
21360echo "${ECHO_T}no" >&6
21361fi
21362
21363 fi
21364 if test "$OPENSC_CONFIG" != "no"; then
21365 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
21366 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
21367 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
21368 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
21369 cat >>confdefs.h <<\_ACEOF
21370#define SMARTCARD 1
21371_ACEOF
21372
21373 cat >>confdefs.h <<\_ACEOF
21374#define USE_OPENSC 1
21375_ACEOF
21376
21377 SCARD_MSG="yes, using OpenSC"
21378 fi
21379 fi
21380
21381
21382fi;
21383
21384# Check libraries needed by DNS fingerprint support
21385echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
21386echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
21387if test "${ac_cv_search_getrrsetbyname+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389else
21390 ac_func_search_save_LIBS=$LIBS
21391ac_cv_search_getrrsetbyname=no
21392cat >conftest.$ac_ext <<_ACEOF
21393/* confdefs.h. */
21394_ACEOF
21395cat confdefs.h >>conftest.$ac_ext
21396cat >>conftest.$ac_ext <<_ACEOF
21397/* end confdefs.h. */
21398
21399/* Override any gcc2 internal prototype to avoid an error. */
21400#ifdef __cplusplus
21401extern "C"
21402#endif
21403/* We use char because int might match the return type of a gcc2
21404 builtin and then its argument prototype would still apply. */
21405char getrrsetbyname ();
21406int
21407main ()
21408{
21409getrrsetbyname ();
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext conftest$ac_exeext
21415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest$ac_exeext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_cv_search_getrrsetbyname="none required"
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441fi
21442rm -f conftest.err conftest.$ac_objext \
21443 conftest$ac_exeext conftest.$ac_ext
21444if test "$ac_cv_search_getrrsetbyname" = no; then
21445 for ac_lib in resolv; do
21446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21447 cat >conftest.$ac_ext <<_ACEOF
21448/* confdefs.h. */
21449_ACEOF
21450cat confdefs.h >>conftest.$ac_ext
21451cat >>conftest.$ac_ext <<_ACEOF
21452/* end confdefs.h. */
21453
21454/* Override any gcc2 internal prototype to avoid an error. */
21455#ifdef __cplusplus
21456extern "C"
21457#endif
21458/* We use char because int might match the return type of a gcc2
21459 builtin and then its argument prototype would still apply. */
21460char getrrsetbyname ();
21461int
21462main ()
21463{
21464getrrsetbyname ();
21465 ;
21466 return 0;
21467}
21468_ACEOF
21469rm -f conftest.$ac_objext conftest$ac_exeext
21470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21471 (eval $ac_link) 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -z "$ac_c_werror_flag"
21479 || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest$ac_exeext'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_search_getrrsetbyname="-l$ac_lib"
21492break
21493else
21494 echo "$as_me: failed program was:" >&5
21495sed 's/^/| /' conftest.$ac_ext >&5
21496
21497fi
21498rm -f conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
21500 done
21501fi
21502LIBS=$ac_func_search_save_LIBS
21503fi
21504echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
21505echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
21506if test "$ac_cv_search_getrrsetbyname" != no; then
21507 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
21508 cat >>confdefs.h <<\_ACEOF
21509#define HAVE_GETRRSETBYNAME 1
21510_ACEOF
21511
21512else
21513
21514 # Needed by our getrrsetbyname()
21515 echo "$as_me:$LINENO: checking for library containing res_query" >&5
21516echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
21517if test "${ac_cv_search_res_query+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520 ac_func_search_save_LIBS=$LIBS
21521ac_cv_search_res_query=no
21522cat >conftest.$ac_ext <<_ACEOF
21523/* confdefs.h. */
21524_ACEOF
21525cat confdefs.h >>conftest.$ac_ext
21526cat >>conftest.$ac_ext <<_ACEOF
21527/* end confdefs.h. */
21528
21529/* Override any gcc2 internal prototype to avoid an error. */
21530#ifdef __cplusplus
21531extern "C"
21532#endif
21533/* We use char because int might match the return type of a gcc2
21534 builtin and then its argument prototype would still apply. */
21535char res_query ();
21536int
21537main ()
21538{
21539res_query ();
21540 ;
21541 return 0;
21542}
21543_ACEOF
21544rm -f conftest.$ac_objext conftest$ac_exeext
21545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21546 (eval $ac_link) 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } &&
21553 { ac_try='test -z "$ac_c_werror_flag"
21554 || test ! -s conftest.err'
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; } &&
21560 { ac_try='test -s conftest$ac_exeext'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_search_res_query="none required"
21567else
21568 echo "$as_me: failed program was:" >&5
21569sed 's/^/| /' conftest.$ac_ext >&5
21570
21571fi
21572rm -f conftest.err conftest.$ac_objext \
21573 conftest$ac_exeext conftest.$ac_ext
21574if test "$ac_cv_search_res_query" = no; then
21575 for ac_lib in resolv; do
21576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21577 cat >conftest.$ac_ext <<_ACEOF
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
21583
21584/* Override any gcc2 internal prototype to avoid an error. */
21585#ifdef __cplusplus
21586extern "C"
21587#endif
21588/* We use char because int might match the return type of a gcc2
21589 builtin and then its argument prototype would still apply. */
21590char res_query ();
21591int
21592main ()
21593{
21594res_query ();
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599rm -f conftest.$ac_objext conftest$ac_exeext
21600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21601 (eval $ac_link) 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -z "$ac_c_werror_flag"
21609 || test ! -s conftest.err'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try='test -s conftest$ac_exeext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_cv_search_res_query="-l$ac_lib"
21622break
21623else
21624 echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
21627fi
21628rm -f conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
21630 done
21631fi
21632LIBS=$ac_func_search_save_LIBS
21633fi
21634echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
21635echo "${ECHO_T}$ac_cv_search_res_query" >&6
21636if test "$ac_cv_search_res_query" != no; then
21637 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
21638
21639fi
21640
21641 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
21642echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
21643if test "${ac_cv_search_dn_expand+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21645else
21646 ac_func_search_save_LIBS=$LIBS
21647ac_cv_search_dn_expand=no
21648cat >conftest.$ac_ext <<_ACEOF
21649/* confdefs.h. */
21650_ACEOF
21651cat confdefs.h >>conftest.$ac_ext
21652cat >>conftest.$ac_ext <<_ACEOF
21653/* end confdefs.h. */
21654
21655/* Override any gcc2 internal prototype to avoid an error. */
21656#ifdef __cplusplus
21657extern "C"
21658#endif
21659/* We use char because int might match the return type of a gcc2
21660 builtin and then its argument prototype would still apply. */
21661char dn_expand ();
21662int
21663main ()
21664{
21665dn_expand ();
21666 ;
21667 return 0;
21668}
21669_ACEOF
21670rm -f conftest.$ac_objext conftest$ac_exeext
21671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21672 (eval $ac_link) 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
21679 { ac_try='test -z "$ac_c_werror_flag"
21680 || test ! -s conftest.err'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; } &&
21686 { ac_try='test -s conftest$ac_exeext'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_search_dn_expand="none required"
21693else
21694 echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
21696
21697fi
21698rm -f conftest.err conftest.$ac_objext \
21699 conftest$ac_exeext conftest.$ac_ext
21700if test "$ac_cv_search_dn_expand" = no; then
21701 for ac_lib in resolv; do
21702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21703 cat >conftest.$ac_ext <<_ACEOF
21704/* confdefs.h. */
21705_ACEOF
21706cat confdefs.h >>conftest.$ac_ext
21707cat >>conftest.$ac_ext <<_ACEOF
21708/* end confdefs.h. */
21709
21710/* Override any gcc2 internal prototype to avoid an error. */
21711#ifdef __cplusplus
21712extern "C"
21713#endif
21714/* We use char because int might match the return type of a gcc2
21715 builtin and then its argument prototype would still apply. */
21716char dn_expand ();
21717int
21718main ()
21719{
21720dn_expand ();
21721 ;
21722 return 0;
21723}
21724_ACEOF
21725rm -f conftest.$ac_objext conftest$ac_exeext
21726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21727 (eval $ac_link) 2>conftest.er1
21728 ac_status=$?
21729 grep -v '^ *+' conftest.er1 >conftest.err
21730 rm -f conftest.er1
21731 cat conftest.err >&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } &&
21734 { ac_try='test -z "$ac_c_werror_flag"
21735 || test ! -s conftest.err'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest$ac_exeext'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_cv_search_dn_expand="-l$ac_lib"
21748break
21749else
21750 echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753fi
21754rm -f conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext conftest.$ac_ext
21756 done
21757fi
21758LIBS=$ac_func_search_save_LIBS
21759fi
21760echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
21761echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
21762if test "$ac_cv_search_dn_expand" != no; then
21763 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
21764
21765fi
21766
21767 echo "$as_me:$LINENO: checking if res_query will link" >&5
21768echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6
21769 cat >conftest.$ac_ext <<_ACEOF
21770/* confdefs.h. */
21771_ACEOF
21772cat confdefs.h >>conftest.$ac_ext
21773cat >>conftest.$ac_ext <<_ACEOF
21774/* end confdefs.h. */
21775
21776/* Override any gcc2 internal prototype to avoid an error. */
21777#ifdef __cplusplus
21778extern "C"
21779#endif
21780/* We use char because int might match the return type of a gcc2
21781 builtin and then its argument prototype would still apply. */
21782char res_query ();
21783int
21784main ()
21785{
21786res_query ();
21787 ;
21788 return 0;
21789}
21790_ACEOF
21791rm -f conftest.$ac_objext conftest$ac_exeext
21792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_c_werror_flag"
21801 || test ! -s conftest.err'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 echo "$as_me:$LINENO: result: yes" >&5
21814echo "${ECHO_T}yes" >&6
21815else
21816 echo "$as_me: failed program was:" >&5
21817sed 's/^/| /' conftest.$ac_ext >&5
21818
21819echo "$as_me:$LINENO: result: no" >&5
21820echo "${ECHO_T}no" >&6
21821 saved_LIBS="$LIBS"
21822 LIBS="$LIBS -lresolv"
21823 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
21824echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
21825 cat >conftest.$ac_ext <<_ACEOF
21826
21827#include <resolv.h>
21828int main()
21829{
21830 res_query (0, 0, 0, 0, 0);
21831 return 0;
21832}
21833
21834_ACEOF
21835rm -f conftest.$ac_objext conftest$ac_exeext
21836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21837 (eval $ac_link) 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
21844 { ac_try='test -z "$ac_c_werror_flag"
21845 || test ! -s conftest.err'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest$ac_exeext'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21857 LIBS="$LIBS -lresolv"
21858 echo "$as_me:$LINENO: result: yes" >&5
21859echo "${ECHO_T}yes" >&6
21860else
21861 echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864LIBS="$saved_LIBS"
21865 echo "$as_me:$LINENO: result: no" >&5
21866echo "${ECHO_T}no" >&6
21867fi
21868rm -f conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
21870
21871fi
21872rm -f conftest.err conftest.$ac_objext \
21873 conftest$ac_exeext conftest.$ac_ext
21874
21875
21876for ac_func in _getshort _getlong
21877do
21878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21879echo "$as_me:$LINENO: checking for $ac_func" >&5
21880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21881if eval "test \"\${$as_ac_var+set}\" = set"; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883else
21884 cat >conftest.$ac_ext <<_ACEOF
21885/* confdefs.h. */
21886_ACEOF
21887cat confdefs.h >>conftest.$ac_ext
21888cat >>conftest.$ac_ext <<_ACEOF
21889/* end confdefs.h. */
21890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21892#define $ac_func innocuous_$ac_func
21893
21894/* System header to define __stub macros and hopefully few prototypes,
21895 which can conflict with char $ac_func (); below.
21896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21897 <limits.h> exists even on freestanding compilers. */
21898
21899#ifdef __STDC__
21900# include <limits.h>
21901#else
21902# include <assert.h>
21903#endif
21904
21905#undef $ac_func
21906
21907/* Override any gcc2 internal prototype to avoid an error. */
21908#ifdef __cplusplus
21909extern "C"
21910{
21911#endif
21912/* We use char because int might match the return type of a gcc2
21913 builtin and then its argument prototype would still apply. */
21914char $ac_func ();
21915/* The GNU C library defines this for functions which it implements
21916 to always fail with ENOSYS. Some functions are actually named
21917 something starting with __ and the normal name is an alias. */
21918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21919choke me
21920#else
21921char (*f) () = $ac_func;
21922#endif
21923#ifdef __cplusplus
21924}
21925#endif
21926
21927int
21928main ()
21929{
21930return f != $ac_func;
21931 ;
21932 return 0;
21933}
21934_ACEOF
21935rm -f conftest.$ac_objext conftest$ac_exeext
21936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21937 (eval $ac_link) 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } &&
21944 { ac_try='test -z "$ac_c_werror_flag"
21945 || test ! -s conftest.err'
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; } &&
21951 { ac_try='test -s conftest$ac_exeext'
21952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953 (eval $ac_try) 2>&5
21954 ac_status=$?
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); }; }; then
21957 eval "$as_ac_var=yes"
21958else
21959 echo "$as_me: failed program was:" >&5
21960sed 's/^/| /' conftest.$ac_ext >&5
21961
21962eval "$as_ac_var=no"
21963fi
21964rm -f conftest.err conftest.$ac_objext \
21965 conftest$ac_exeext conftest.$ac_ext
21966fi
21967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21969if test `eval echo '${'$as_ac_var'}'` = yes; then
21970 cat >>confdefs.h <<_ACEOF
21971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21972_ACEOF
21973
21974fi
21975done
21976
21977 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
21978echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
21979if test "${ac_cv_member_HEADER_ad+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981else
21982 cat >conftest.$ac_ext <<_ACEOF
21983/* confdefs.h. */
21984_ACEOF
21985cat confdefs.h >>conftest.$ac_ext
21986cat >>conftest.$ac_ext <<_ACEOF
21987/* end confdefs.h. */
21988#include <arpa/nameser.h>
21989
21990int
21991main ()
21992{
21993static HEADER ac_aggr;
21994if (ac_aggr.ad)
21995return 0;
21996 ;
21997 return 0;
21998}
21999_ACEOF
22000rm -f conftest.$ac_objext
22001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22002 (eval $ac_compile) 2>conftest.er1
22003 ac_status=$?
22004 grep -v '^ *+' conftest.er1 >conftest.err
22005 rm -f conftest.er1
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } &&
22009 { ac_try='test -z "$ac_c_werror_flag"
22010 || test ! -s conftest.err'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; } &&
22016 { ac_try='test -s conftest.$ac_objext'
22017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
22022 ac_cv_member_HEADER_ad=yes
22023else
22024 echo "$as_me: failed program was:" >&5
22025sed 's/^/| /' conftest.$ac_ext >&5
22026
22027cat >conftest.$ac_ext <<_ACEOF
22028/* confdefs.h. */
22029_ACEOF
22030cat confdefs.h >>conftest.$ac_ext
22031cat >>conftest.$ac_ext <<_ACEOF
22032/* end confdefs.h. */
22033#include <arpa/nameser.h>
22034
22035int
22036main ()
22037{
22038static HEADER ac_aggr;
22039if (sizeof ac_aggr.ad)
22040return 0;
22041 ;
22042 return 0;
22043}
22044_ACEOF
22045rm -f conftest.$ac_objext
22046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22047 (eval $ac_compile) 2>conftest.er1
22048 ac_status=$?
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
22054 { ac_try='test -z "$ac_c_werror_flag"
22055 || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest.$ac_objext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_cv_member_HEADER_ad=yes
22068else
22069 echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072ac_cv_member_HEADER_ad=no
22073fi
22074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22075fi
22076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22077fi
22078echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
22079echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
22080if test $ac_cv_member_HEADER_ad = yes; then
22081 cat >>confdefs.h <<\_ACEOF
22082#define HAVE_HEADER_AD 1
22083_ACEOF
22084
22085fi
22086
22087
22088fi
22089
22090
22091# Check whether user wants Kerberos 5 support
22092KRB5_MSG="no"
22093
22094# Check whether --with-kerberos5 or --without-kerberos5 was given.
22095if test "${with_kerberos5+set}" = set; then
22096 withval="$with_kerberos5"
22097 if test "x$withval" != "xno" ; then
22098 if test "x$withval" = "xyes" ; then
22099 KRB5ROOT="/usr/local"
22100 else
22101 KRB5ROOT=${withval}
22102 fi
22103
22104 cat >>confdefs.h <<\_ACEOF
22105#define KRB5 1
22106_ACEOF
22107
22108 KRB5_MSG="yes"
22109
22110 echo "$as_me:$LINENO: checking for krb5-config" >&5
22111echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
22112 if test -x $KRB5ROOT/bin/krb5-config ; then
22113 KRB5CONF=$KRB5ROOT/bin/krb5-config
22114 echo "$as_me:$LINENO: result: $KRB5CONF" >&5
22115echo "${ECHO_T}$KRB5CONF" >&6
22116
22117 echo "$as_me:$LINENO: checking for gssapi support" >&5
22118echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
22119 if $KRB5CONF | grep gssapi >/dev/null ; then
22120 echo "$as_me:$LINENO: result: yes" >&5
22121echo "${ECHO_T}yes" >&6
22122 cat >>confdefs.h <<\_ACEOF
22123#define GSSAPI 1
22124_ACEOF
22125
22126 k5confopts=gssapi
22127 else
22128 echo "$as_me:$LINENO: result: no" >&5
22129echo "${ECHO_T}no" >&6
22130 k5confopts=""
22131 fi
22132 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
22133 K5LIBS="`$KRB5CONF --libs $k5confopts`"
22134 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
22135 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
22136echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22138/* confdefs.h. */
22139_ACEOF
22140cat confdefs.h >>conftest.$ac_ext
22141cat >>conftest.$ac_ext <<_ACEOF
22142/* end confdefs.h. */
22143 #include <krb5.h>
22144int
22145main ()
22146{
22147 char *tmp = heimdal_version;
22148 ;
22149 return 0;
22150}
22151_ACEOF
22152rm -f conftest.$ac_objext
22153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154 (eval $ac_compile) 2>conftest.er1
22155 ac_status=$?
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try='test -z "$ac_c_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest.$ac_objext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 echo "$as_me:$LINENO: result: yes" >&5
22175echo "${ECHO_T}yes" >&6
22176 cat >>confdefs.h <<\_ACEOF
22177#define HEIMDAL 1
22178_ACEOF
22179
22180else
22181 echo "$as_me: failed program was:" >&5
22182sed 's/^/| /' conftest.$ac_ext >&5
22183
22184echo "$as_me:$LINENO: result: no" >&5
22185echo "${ECHO_T}no" >&6
22186
22187fi
22188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22189 else
22190 echo "$as_me:$LINENO: result: no" >&5
22191echo "${ECHO_T}no" >&6
22192 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
22193 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
22194 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
22195echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
22196 cat >conftest.$ac_ext <<_ACEOF
22197/* confdefs.h. */
22198_ACEOF
22199cat confdefs.h >>conftest.$ac_ext
22200cat >>conftest.$ac_ext <<_ACEOF
22201/* end confdefs.h. */
22202 #include <krb5.h>
22203int
22204main ()
22205{
22206 char *tmp = heimdal_version;
22207 ;
22208 return 0;
22209}
22210_ACEOF
22211rm -f conftest.$ac_objext
22212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>conftest.er1
22214 ac_status=$?
22215 grep -v '^ *+' conftest.er1 >conftest.err
22216 rm -f conftest.er1
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -z "$ac_c_werror_flag"
22221 || test ! -s conftest.err'
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try='test -s conftest.$ac_objext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 echo "$as_me:$LINENO: result: yes" >&5
22234echo "${ECHO_T}yes" >&6
22235 cat >>confdefs.h <<\_ACEOF
22236#define HEIMDAL 1
22237_ACEOF
22238
22239 K5LIBS="-lkrb5 -ldes"
22240 K5LIBS="$K5LIBS -lcom_err -lasn1"
22241 echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
22242echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6
22243if test "${ac_cv_lib_roken_net_write+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22245else
22246 ac_check_lib_save_LIBS=$LIBS
22247LIBS="-lroken $LIBS"
22248cat >conftest.$ac_ext <<_ACEOF
22249/* confdefs.h. */
22250_ACEOF
22251cat confdefs.h >>conftest.$ac_ext
22252cat >>conftest.$ac_ext <<_ACEOF
22253/* end confdefs.h. */
22254
22255/* Override any gcc2 internal prototype to avoid an error. */
22256#ifdef __cplusplus
22257extern "C"
22258#endif
22259/* We use char because int might match the return type of a gcc2
22260 builtin and then its argument prototype would still apply. */
22261char net_write ();
22262int
22263main ()
22264{
22265net_write ();
22266 ;
22267 return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext conftest$ac_exeext
22271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22272 (eval $ac_link) 2>conftest.er1
22273 ac_status=$?
22274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
22279 { ac_try='test -z "$ac_c_werror_flag"
22280 || test ! -s conftest.err'
22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282 (eval $ac_try) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; } &&
22286 { ac_try='test -s conftest$ac_exeext'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 ac_cv_lib_roken_net_write=yes
22293else
22294 echo "$as_me: failed program was:" >&5
22295sed 's/^/| /' conftest.$ac_ext >&5
22296
22297ac_cv_lib_roken_net_write=no
22298fi
22299rm -f conftest.err conftest.$ac_objext \
22300 conftest$ac_exeext conftest.$ac_ext
22301LIBS=$ac_check_lib_save_LIBS
22302fi
22303echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
22304echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6
22305if test $ac_cv_lib_roken_net_write = yes; then
22306 K5LIBS="$K5LIBS -lroken"
22307fi
22308
22309
22310else
22311 echo "$as_me: failed program was:" >&5
22312sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 echo "$as_me:$LINENO: result: no" >&5
22315echo "${ECHO_T}no" >&6
22316 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
22317
22318
22319fi
22320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22321 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
22322echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
22323if test "${ac_cv_search_dn_expand+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325else
22326 ac_func_search_save_LIBS=$LIBS
22327ac_cv_search_dn_expand=no
22328cat >conftest.$ac_ext <<_ACEOF
22329/* confdefs.h. */
22330_ACEOF
22331cat confdefs.h >>conftest.$ac_ext
22332cat >>conftest.$ac_ext <<_ACEOF
22333/* end confdefs.h. */
22334
22335/* Override any gcc2 internal prototype to avoid an error. */
22336#ifdef __cplusplus
22337extern "C"
22338#endif
22339/* We use char because int might match the return type of a gcc2
22340 builtin and then its argument prototype would still apply. */
22341char dn_expand ();
22342int
22343main ()
22344{
22345dn_expand ();
22346 ;
22347 return 0;
22348}
22349_ACEOF
22350rm -f conftest.$ac_objext conftest$ac_exeext
22351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22352 (eval $ac_link) 2>conftest.er1
22353 ac_status=$?
22354 grep -v '^ *+' conftest.er1 >conftest.err
22355 rm -f conftest.er1
22356 cat conftest.err >&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } &&
22359 { ac_try='test -z "$ac_c_werror_flag"
22360 || test ! -s conftest.err'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; } &&
22366 { ac_try='test -s conftest$ac_exeext'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22372 ac_cv_search_dn_expand="none required"
22373else
22374 echo "$as_me: failed program was:" >&5
22375sed 's/^/| /' conftest.$ac_ext >&5
22376
22377fi
22378rm -f conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22380if test "$ac_cv_search_dn_expand" = no; then
22381 for ac_lib in resolv; do
22382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22383 cat >conftest.$ac_ext <<_ACEOF
22384/* confdefs.h. */
22385_ACEOF
22386cat confdefs.h >>conftest.$ac_ext
22387cat >>conftest.$ac_ext <<_ACEOF
22388/* end confdefs.h. */
22389
22390/* Override any gcc2 internal prototype to avoid an error. */
22391#ifdef __cplusplus
22392extern "C"
22393#endif
22394/* We use char because int might match the return type of a gcc2
22395 builtin and then its argument prototype would still apply. */
22396char dn_expand ();
22397int
22398main ()
22399{
22400dn_expand ();
22401 ;
22402 return 0;
22403}
22404_ACEOF
22405rm -f conftest.$ac_objext conftest$ac_exeext
22406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22407 (eval $ac_link) 2>conftest.er1
22408 ac_status=$?
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } &&
22414 { ac_try='test -z "$ac_c_werror_flag"
22415 || test ! -s conftest.err'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22418 ac_status=$?
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; } &&
22421 { ac_try='test -s conftest$ac_exeext'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 ac_cv_search_dn_expand="-l$ac_lib"
22428break
22429else
22430 echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433fi
22434rm -f conftest.err conftest.$ac_objext \
22435 conftest$ac_exeext conftest.$ac_ext
22436 done
22437fi
22438LIBS=$ac_func_search_save_LIBS
22439fi
22440echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
22441echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
22442if test "$ac_cv_search_dn_expand" != no; then
22443 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
22444
22445fi
22446
22447
22448 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
22449echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
22450if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22452else
22453 ac_check_lib_save_LIBS=$LIBS
22454LIBS="-lgssapi $K5LIBS $LIBS"
22455cat >conftest.$ac_ext <<_ACEOF
22456/* confdefs.h. */
22457_ACEOF
22458cat confdefs.h >>conftest.$ac_ext
22459cat >>conftest.$ac_ext <<_ACEOF
22460/* end confdefs.h. */
22461
22462/* Override any gcc2 internal prototype to avoid an error. */
22463#ifdef __cplusplus
22464extern "C"
22465#endif
22466/* We use char because int might match the return type of a gcc2
22467 builtin and then its argument prototype would still apply. */
22468char gss_init_sec_context ();
22469int
22470main ()
22471{
22472gss_init_sec_context ();
22473 ;
22474 return 0;
22475}
22476_ACEOF
22477rm -f conftest.$ac_objext conftest$ac_exeext
22478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22479 (eval $ac_link) 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try='test -s conftest$ac_exeext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 ac_cv_lib_gssapi_gss_init_sec_context=yes
22500else
22501 echo "$as_me: failed program was:" >&5
22502sed 's/^/| /' conftest.$ac_ext >&5
22503
22504ac_cv_lib_gssapi_gss_init_sec_context=no
22505fi
22506rm -f conftest.err conftest.$ac_objext \
22507 conftest$ac_exeext conftest.$ac_ext
22508LIBS=$ac_check_lib_save_LIBS
22509fi
22510echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
22511echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
22512if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
22513 cat >>confdefs.h <<\_ACEOF
22514#define GSSAPI 1
22515_ACEOF
22516
22517 K5LIBS="-lgssapi $K5LIBS"
22518else
22519 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
22520echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
22521if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22523else
22524 ac_check_lib_save_LIBS=$LIBS
22525LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
22526cat >conftest.$ac_ext <<_ACEOF
22527/* confdefs.h. */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h. */
22532
22533/* Override any gcc2 internal prototype to avoid an error. */
22534#ifdef __cplusplus
22535extern "C"
22536#endif
22537/* We use char because int might match the return type of a gcc2
22538 builtin and then its argument prototype would still apply. */
22539char gss_init_sec_context ();
22540int
22541main ()
22542{
22543gss_init_sec_context ();
22544 ;
22545 return 0;
22546}
22547_ACEOF
22548rm -f conftest.$ac_objext conftest$ac_exeext
22549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22550 (eval $ac_link) 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } &&
22557 { ac_try='test -z "$ac_c_werror_flag"
22558 || test ! -s conftest.err'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest$ac_exeext'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
22571else
22572 echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
22575ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
22576fi
22577rm -f conftest.err conftest.$ac_objext \
22578 conftest$ac_exeext conftest.$ac_ext
22579LIBS=$ac_check_lib_save_LIBS
22580fi
22581echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
22582echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
22583if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
22584 cat >>confdefs.h <<\_ACEOF
22585#define GSSAPI 1
22586_ACEOF
22587
22588 K5LIBS="-lgssapi_krb5 $K5LIBS"
22589else
22590 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
22591echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
22592fi
22593
22594
22595fi
22596
22597
22598 if test "${ac_cv_header_gssapi_h+set}" = set; then
22599 echo "$as_me:$LINENO: checking for gssapi.h" >&5
22600echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
22601if test "${ac_cv_header_gssapi_h+set}" = set; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22603fi
22604echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
22605echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
22606else
22607 # Is the header compilable?
22608echo "$as_me:$LINENO: checking gssapi.h usability" >&5
22609echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
22610cat >conftest.$ac_ext <<_ACEOF
22611/* confdefs.h. */
22612_ACEOF
22613cat confdefs.h >>conftest.$ac_ext
22614cat >>conftest.$ac_ext <<_ACEOF
22615/* end confdefs.h. */
22616$ac_includes_default
22617#include <gssapi.h>
22618_ACEOF
22619rm -f conftest.$ac_objext
22620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621 (eval $ac_compile) 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
22628 { ac_try='test -z "$ac_c_werror_flag"
22629 || test ! -s conftest.err'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; } &&
22635 { ac_try='test -s conftest.$ac_objext'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
22641 ac_header_compiler=yes
22642else
22643 echo "$as_me: failed program was:" >&5
22644sed 's/^/| /' conftest.$ac_ext >&5
22645
22646ac_header_compiler=no
22647fi
22648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22650echo "${ECHO_T}$ac_header_compiler" >&6
22651
22652# Is the header present?
22653echo "$as_me:$LINENO: checking gssapi.h presence" >&5
22654echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
22655cat >conftest.$ac_ext <<_ACEOF
22656/* confdefs.h. */
22657_ACEOF
22658cat confdefs.h >>conftest.$ac_ext
22659cat >>conftest.$ac_ext <<_ACEOF
22660/* end confdefs.h. */
22661#include <gssapi.h>
22662_ACEOF
22663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } >/dev/null; then
22671 if test -s conftest.err; then
22672 ac_cpp_err=$ac_c_preproc_warn_flag
22673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22674 else
22675 ac_cpp_err=
22676 fi
22677else
22678 ac_cpp_err=yes
22679fi
22680if test -z "$ac_cpp_err"; then
22681 ac_header_preproc=yes
22682else
22683 echo "$as_me: failed program was:" >&5
22684sed 's/^/| /' conftest.$ac_ext >&5
22685
22686 ac_header_preproc=no
22687fi
22688rm -f conftest.err conftest.$ac_ext
22689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22690echo "${ECHO_T}$ac_header_preproc" >&6
22691
22692# So? What about this header?
22693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22694 yes:no: )
22695 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
22696echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22697 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
22698echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
22699 ac_header_preproc=yes
22700 ;;
22701 no:yes:* )
22702 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
22703echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
22704 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
22705echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
22706 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
22707echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
22708 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
22709echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
22710 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
22711echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
22712 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
22713echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
22714 (
22715 cat <<\_ASBOX
22716## ---------------------------------- ##
22717## Report this to the OpenSSH lists. ##
22718## ---------------------------------- ##
22719_ASBOX
22720 ) |
22721 sed "s/^/$as_me: WARNING: /" >&2
22722 ;;
22723esac
22724echo "$as_me:$LINENO: checking for gssapi.h" >&5
22725echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
22726if test "${ac_cv_header_gssapi_h+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22728else
22729 ac_cv_header_gssapi_h=$ac_header_preproc
22730fi
22731echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
22732echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
22733
22734fi
22735if test $ac_cv_header_gssapi_h = yes; then
22736 :
22737else
22738 unset ac_cv_header_gssapi_h
22739 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
22740
22741for ac_header in gssapi.h
22742do
22743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22744if eval "test \"\${$as_ac_Header+set}\" = set"; then
22745 echo "$as_me:$LINENO: checking for $ac_header" >&5
22746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22747if eval "test \"\${$as_ac_Header+set}\" = set"; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22749fi
22750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22752else
22753 # Is the header compilable?
22754echo "$as_me:$LINENO: checking $ac_header usability" >&5
22755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22756cat >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$ac_includes_default
22763#include <$ac_header>
22764_ACEOF
22765rm -f conftest.$ac_objext
22766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22767 (eval $ac_compile) 2>conftest.er1
22768 ac_status=$?
22769 grep -v '^ *+' conftest.er1 >conftest.err
22770 rm -f conftest.er1
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
22774 { ac_try='test -z "$ac_c_werror_flag"
22775 || test ! -s conftest.err'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest.$ac_objext'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 ac_header_compiler=yes
22788else
22789 echo "$as_me: failed program was:" >&5
22790sed 's/^/| /' conftest.$ac_ext >&5
22791
22792ac_header_compiler=no
22793fi
22794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22796echo "${ECHO_T}$ac_header_compiler" >&6
22797
22798# Is the header present?
22799echo "$as_me:$LINENO: checking $ac_header presence" >&5
22800echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22801cat >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 <$ac_header>
22808_ACEOF
22809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22811 ac_status=$?
22812 grep -v '^ *+' conftest.er1 >conftest.err
22813 rm -f conftest.er1
22814 cat conftest.err >&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } >/dev/null; then
22817 if test -s conftest.err; then
22818 ac_cpp_err=$ac_c_preproc_warn_flag
22819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22820 else
22821 ac_cpp_err=
22822 fi
22823else
22824 ac_cpp_err=yes
22825fi
22826if test -z "$ac_cpp_err"; then
22827 ac_header_preproc=yes
22828else
22829 echo "$as_me: failed program was:" >&5
22830sed 's/^/| /' conftest.$ac_ext >&5
22831
22832 ac_header_preproc=no
22833fi
22834rm -f conftest.err conftest.$ac_ext
22835echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22836echo "${ECHO_T}$ac_header_preproc" >&6
22837
22838# So? What about this header?
22839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22840 yes:no: )
22841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22845 ac_header_preproc=yes
22846 ;;
22847 no:yes:* )
22848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22851echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22855echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22860 (
22861 cat <<\_ASBOX
22862## ---------------------------------- ##
22863## Report this to the OpenSSH lists. ##
22864## ---------------------------------- ##
22865_ASBOX
22866 ) |
22867 sed "s/^/$as_me: WARNING: /" >&2
22868 ;;
22869esac
22870echo "$as_me:$LINENO: checking for $ac_header" >&5
22871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22872if eval "test \"\${$as_ac_Header+set}\" = set"; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22874else
22875 eval "$as_ac_Header=\$ac_header_preproc"
22876fi
22877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22879
22880fi
22881if test `eval echo '${'$as_ac_Header'}'` = yes; then
22882 cat >>confdefs.h <<_ACEOF
22883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22884_ACEOF
22885
22886else
22887 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
22888echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
22889
22890fi
22891
22892done
22893
22894
22895
22896fi
22897
22898
22899
22900 oldCPP="$CPPFLAGS"
22901 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
22902 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
22903 echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
22904echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
22905if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22907fi
22908echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
22909echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
22910else
22911 # Is the header compilable?
22912echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
22913echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6
22914cat >conftest.$ac_ext <<_ACEOF
22915/* confdefs.h. */
22916_ACEOF
22917cat confdefs.h >>conftest.$ac_ext
22918cat >>conftest.$ac_ext <<_ACEOF
22919/* end confdefs.h. */
22920$ac_includes_default
22921#include <gssapi_krb5.h>
22922_ACEOF
22923rm -f conftest.$ac_objext
22924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22925 (eval $ac_compile) 2>conftest.er1
22926 ac_status=$?
22927 grep -v '^ *+' conftest.er1 >conftest.err
22928 rm -f conftest.er1
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } &&
22932 { ac_try='test -z "$ac_c_werror_flag"
22933 || test ! -s conftest.err'
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; } &&
22939 { ac_try='test -s conftest.$ac_objext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_header_compiler=yes
22946else
22947 echo "$as_me: failed program was:" >&5
22948sed 's/^/| /' conftest.$ac_ext >&5
22949
22950ac_header_compiler=no
22951fi
22952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22954echo "${ECHO_T}$ac_header_compiler" >&6
22955
22956# Is the header present?
22957echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
22958echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6
22959cat >conftest.$ac_ext <<_ACEOF
22960/* confdefs.h. */
22961_ACEOF
22962cat confdefs.h >>conftest.$ac_ext
22963cat >>conftest.$ac_ext <<_ACEOF
22964/* end confdefs.h. */
22965#include <gssapi_krb5.h>
22966_ACEOF
22967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } >/dev/null; then
22975 if test -s conftest.err; then
22976 ac_cpp_err=$ac_c_preproc_warn_flag
22977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22978 else
22979 ac_cpp_err=
22980 fi
22981else
22982 ac_cpp_err=yes
22983fi
22984if test -z "$ac_cpp_err"; then
22985 ac_header_preproc=yes
22986else
22987 echo "$as_me: failed program was:" >&5
22988sed 's/^/| /' conftest.$ac_ext >&5
22989
22990 ac_header_preproc=no
22991fi
22992rm -f conftest.err conftest.$ac_ext
22993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22994echo "${ECHO_T}$ac_header_preproc" >&6
22995
22996# So? What about this header?
22997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22998 yes:no: )
22999 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
23000echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
23002echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
23003 ac_header_preproc=yes
23004 ;;
23005 no:yes:* )
23006 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
23007echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
23009echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
23011echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
23012 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
23013echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
23014 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
23015echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
23016 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
23017echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
23018 (
23019 cat <<\_ASBOX
23020## ---------------------------------- ##
23021## Report this to the OpenSSH lists. ##
23022## ---------------------------------- ##
23023_ASBOX
23024 ) |
23025 sed "s/^/$as_me: WARNING: /" >&2
23026 ;;
23027esac
23028echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
23029echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
23030if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23032else
23033 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
23034fi
23035echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
23036echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
23037
23038fi
23039if test $ac_cv_header_gssapi_krb5_h = yes; then
23040 :
23041else
23042 CPPFLAGS="$oldCPP"
23043fi
23044
23045
23046
23047 fi
23048 if test ! -z "$need_dash_r" ; then
23049 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
23050 fi
23051 if test ! -z "$blibpath" ; then
23052 blibpath="$blibpath:${KRB5ROOT}/lib"
23053 fi
23054 fi
23055
23056
23057
23058for ac_header in gssapi.h gssapi/gssapi.h
23059do
23060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23061if eval "test \"\${$as_ac_Header+set}\" = set"; then
23062 echo "$as_me:$LINENO: checking for $ac_header" >&5
23063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23064if eval "test \"\${$as_ac_Header+set}\" = set"; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23066fi
23067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23069else
23070 # Is the header compilable?
23071echo "$as_me:$LINENO: checking $ac_header usability" >&5
23072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23073cat >conftest.$ac_ext <<_ACEOF
23074/* confdefs.h. */
23075_ACEOF
23076cat confdefs.h >>conftest.$ac_ext
23077cat >>conftest.$ac_ext <<_ACEOF
23078/* end confdefs.h. */
23079$ac_includes_default
23080#include <$ac_header>
23081_ACEOF
23082rm -f conftest.$ac_objext
23083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23084 (eval $ac_compile) 2>conftest.er1
23085 ac_status=$?
23086 grep -v '^ *+' conftest.er1 >conftest.err
23087 rm -f conftest.er1
23088 cat conftest.err >&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } &&
23091 { ac_try='test -z "$ac_c_werror_flag"
23092 || test ! -s conftest.err'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } &&
23098 { ac_try='test -s conftest.$ac_objext'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23104 ac_header_compiler=yes
23105else
23106 echo "$as_me: failed program was:" >&5
23107sed 's/^/| /' conftest.$ac_ext >&5
23108
23109ac_header_compiler=no
23110fi
23111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23113echo "${ECHO_T}$ac_header_compiler" >&6
23114
23115# Is the header present?
23116echo "$as_me:$LINENO: checking $ac_header presence" >&5
23117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23118cat >conftest.$ac_ext <<_ACEOF
23119/* confdefs.h. */
23120_ACEOF
23121cat confdefs.h >>conftest.$ac_ext
23122cat >>conftest.$ac_ext <<_ACEOF
23123/* end confdefs.h. */
23124#include <$ac_header>
23125_ACEOF
23126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } >/dev/null; then
23134 if test -s conftest.err; then
23135 ac_cpp_err=$ac_c_preproc_warn_flag
23136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23137 else
23138 ac_cpp_err=
23139 fi
23140else
23141 ac_cpp_err=yes
23142fi
23143if test -z "$ac_cpp_err"; then
23144 ac_header_preproc=yes
23145else
23146 echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
23148
23149 ac_header_preproc=no
23150fi
23151rm -f conftest.err conftest.$ac_ext
23152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23153echo "${ECHO_T}$ac_header_preproc" >&6
23154
23155# So? What about this header?
23156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23157 yes:no: )
23158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23162 ac_header_preproc=yes
23163 ;;
23164 no:yes:* )
23165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23177 (
23178 cat <<\_ASBOX
23179## ---------------------------------- ##
23180## Report this to the OpenSSH lists. ##
23181## ---------------------------------- ##
23182_ASBOX
23183 ) |
23184 sed "s/^/$as_me: WARNING: /" >&2
23185 ;;
23186esac
23187echo "$as_me:$LINENO: checking for $ac_header" >&5
23188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23189if eval "test \"\${$as_ac_Header+set}\" = set"; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191else
23192 eval "$as_ac_Header=\$ac_header_preproc"
23193fi
23194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23196
23197fi
23198if test `eval echo '${'$as_ac_Header'}'` = yes; then
23199 cat >>confdefs.h <<_ACEOF
23200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23201_ACEOF
23202
23203fi
23204
23205done
23206
23207
23208
23209for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
23210do
23211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23212if eval "test \"\${$as_ac_Header+set}\" = set"; then
23213 echo "$as_me:$LINENO: checking for $ac_header" >&5
23214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23215if eval "test \"\${$as_ac_Header+set}\" = set"; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23217fi
23218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23220else
23221 # Is the header compilable?
23222echo "$as_me:$LINENO: checking $ac_header usability" >&5
23223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23224cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h. */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h. */
23230$ac_includes_default
23231#include <$ac_header>
23232_ACEOF
23233rm -f conftest.$ac_objext
23234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235 (eval $ac_compile) 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest.$ac_objext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 ac_header_compiler=yes
23256else
23257 echo "$as_me: failed program was:" >&5
23258sed 's/^/| /' conftest.$ac_ext >&5
23259
23260ac_header_compiler=no
23261fi
23262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23264echo "${ECHO_T}$ac_header_compiler" >&6
23265
23266# Is the header present?
23267echo "$as_me:$LINENO: checking $ac_header presence" >&5
23268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23269cat >conftest.$ac_ext <<_ACEOF
23270/* confdefs.h. */
23271_ACEOF
23272cat confdefs.h >>conftest.$ac_ext
23273cat >>conftest.$ac_ext <<_ACEOF
23274/* end confdefs.h. */
23275#include <$ac_header>
23276_ACEOF
23277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23279 ac_status=$?
23280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } >/dev/null; then
23285 if test -s conftest.err; then
23286 ac_cpp_err=$ac_c_preproc_warn_flag
23287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23288 else
23289 ac_cpp_err=
23290 fi
23291else
23292 ac_cpp_err=yes
23293fi
23294if test -z "$ac_cpp_err"; then
23295 ac_header_preproc=yes
23296else
23297 echo "$as_me: failed program was:" >&5
23298sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 ac_header_preproc=no
23301fi
23302rm -f conftest.err conftest.$ac_ext
23303echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23304echo "${ECHO_T}$ac_header_preproc" >&6
23305
23306# So? What about this header?
23307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23308 yes:no: )
23309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23313 ac_header_preproc=yes
23314 ;;
23315 no:yes:* )
23316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23323echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23328 (
23329 cat <<\_ASBOX
23330## ---------------------------------- ##
23331## Report this to the OpenSSH lists. ##
23332## ---------------------------------- ##
23333_ASBOX
23334 ) |
23335 sed "s/^/$as_me: WARNING: /" >&2
23336 ;;
23337esac
23338echo "$as_me:$LINENO: checking for $ac_header" >&5
23339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23340if eval "test \"\${$as_ac_Header+set}\" = set"; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23342else
23343 eval "$as_ac_Header=\$ac_header_preproc"
23344fi
23345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23347
23348fi
23349if test `eval echo '${'$as_ac_Header'}'` = yes; then
23350 cat >>confdefs.h <<_ACEOF
23351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23352_ACEOF
23353
23354fi
23355
23356done
23357
23358
23359
23360for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
23361do
23362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23363if eval "test \"\${$as_ac_Header+set}\" = set"; then
23364 echo "$as_me:$LINENO: checking for $ac_header" >&5
23365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23366if eval "test \"\${$as_ac_Header+set}\" = set"; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368fi
23369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23371else
23372 # Is the header compilable?
23373echo "$as_me:$LINENO: checking $ac_header usability" >&5
23374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23375cat >conftest.$ac_ext <<_ACEOF
23376/* confdefs.h. */
23377_ACEOF
23378cat confdefs.h >>conftest.$ac_ext
23379cat >>conftest.$ac_ext <<_ACEOF
23380/* end confdefs.h. */
23381$ac_includes_default
23382#include <$ac_header>
23383_ACEOF
23384rm -f conftest.$ac_objext
23385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23386 (eval $ac_compile) 2>conftest.er1
23387 ac_status=$?
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
23393 { ac_try='test -z "$ac_c_werror_flag"
23394 || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest.$ac_objext'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_header_compiler=yes
23407else
23408 echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
23411ac_header_compiler=no
23412fi
23413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415echo "${ECHO_T}$ac_header_compiler" >&6
23416
23417# Is the header present?
23418echo "$as_me:$LINENO: checking $ac_header presence" >&5
23419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23420cat >conftest.$ac_ext <<_ACEOF
23421/* confdefs.h. */
23422_ACEOF
23423cat confdefs.h >>conftest.$ac_ext
23424cat >>conftest.$ac_ext <<_ACEOF
23425/* end confdefs.h. */
23426#include <$ac_header>
23427_ACEOF
23428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23430 ac_status=$?
23431 grep -v '^ *+' conftest.er1 >conftest.err
23432 rm -f conftest.er1
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } >/dev/null; then
23436 if test -s conftest.err; then
23437 ac_cpp_err=$ac_c_preproc_warn_flag
23438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23439 else
23440 ac_cpp_err=
23441 fi
23442else
23443 ac_cpp_err=yes
23444fi
23445if test -z "$ac_cpp_err"; then
23446 ac_header_preproc=yes
23447else
23448 echo "$as_me: failed program was:" >&5
23449sed 's/^/| /' conftest.$ac_ext >&5
23450
23451 ac_header_preproc=no
23452fi
23453rm -f conftest.err conftest.$ac_ext
23454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455echo "${ECHO_T}$ac_header_preproc" >&6
23456
23457# So? What about this header?
23458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23459 yes:no: )
23460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23464 ac_header_preproc=yes
23465 ;;
23466 no:yes:* )
23467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23479 (
23480 cat <<\_ASBOX
23481## ---------------------------------- ##
23482## Report this to the OpenSSH lists. ##
23483## ---------------------------------- ##
23484_ASBOX
23485 ) |
23486 sed "s/^/$as_me: WARNING: /" >&2
23487 ;;
23488esac
23489echo "$as_me:$LINENO: checking for $ac_header" >&5
23490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23491if eval "test \"\${$as_ac_Header+set}\" = set"; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23493else
23494 eval "$as_ac_Header=\$ac_header_preproc"
23495fi
23496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23498
23499fi
23500if test `eval echo '${'$as_ac_Header'}'` = yes; then
23501 cat >>confdefs.h <<_ACEOF
23502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23503_ACEOF
23504
23505fi
23506
23507done
23508
23509
23510 LIBS="$LIBS $K5LIBS"
23511 echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
23512echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
23513if test "${ac_cv_search_k_hasafs+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515else
23516 ac_func_search_save_LIBS=$LIBS
23517ac_cv_search_k_hasafs=no
23518cat >conftest.$ac_ext <<_ACEOF
23519/* confdefs.h. */
23520_ACEOF
23521cat confdefs.h >>conftest.$ac_ext
23522cat >>conftest.$ac_ext <<_ACEOF
23523/* end confdefs.h. */
23524
23525/* Override any gcc2 internal prototype to avoid an error. */
23526#ifdef __cplusplus
23527extern "C"
23528#endif
23529/* We use char because int might match the return type of a gcc2
23530 builtin and then its argument prototype would still apply. */
23531char k_hasafs ();
23532int
23533main ()
23534{
23535k_hasafs ();
23536 ;
23537 return 0;
23538}
23539_ACEOF
23540rm -f conftest.$ac_objext conftest$ac_exeext
23541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23542 (eval $ac_link) 2>conftest.er1
23543 ac_status=$?
23544 grep -v '^ *+' conftest.er1 >conftest.err
23545 rm -f conftest.er1
23546 cat conftest.err >&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } &&
23549 { ac_try='test -z "$ac_c_werror_flag"
23550 || test ! -s conftest.err'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; } &&
23556 { ac_try='test -s conftest$ac_exeext'
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 ac_cv_search_k_hasafs="none required"
23563else
23564 echo "$as_me: failed program was:" >&5
23565sed 's/^/| /' conftest.$ac_ext >&5
23566
23567fi
23568rm -f conftest.err conftest.$ac_objext \
23569 conftest$ac_exeext conftest.$ac_ext
23570if test "$ac_cv_search_k_hasafs" = no; then
23571 for ac_lib in kafs; do
23572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23573 cat >conftest.$ac_ext <<_ACEOF
23574/* confdefs.h. */
23575_ACEOF
23576cat confdefs.h >>conftest.$ac_ext
23577cat >>conftest.$ac_ext <<_ACEOF
23578/* end confdefs.h. */
23579
23580/* Override any gcc2 internal prototype to avoid an error. */
23581#ifdef __cplusplus
23582extern "C"
23583#endif
23584/* We use char because int might match the return type of a gcc2
23585 builtin and then its argument prototype would still apply. */
23586char k_hasafs ();
23587int
23588main ()
23589{
23590k_hasafs ();
23591 ;
23592 return 0;
23593}
23594_ACEOF
23595rm -f conftest.$ac_objext conftest$ac_exeext
23596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23597 (eval $ac_link) 2>conftest.er1
23598 ac_status=$?
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
23604 { ac_try='test -z "$ac_c_werror_flag"
23605 || test ! -s conftest.err'
23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23608 ac_status=$?
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; } &&
23611 { ac_try='test -s conftest$ac_exeext'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617 ac_cv_search_k_hasafs="-l$ac_lib"
23618break
23619else
23620 echo "$as_me: failed program was:" >&5
23621sed 's/^/| /' conftest.$ac_ext >&5
23622
23623fi
23624rm -f conftest.err conftest.$ac_objext \
23625 conftest$ac_exeext conftest.$ac_ext
23626 done
23627fi
23628LIBS=$ac_func_search_save_LIBS
23629fi
23630echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
23631echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
23632if test "$ac_cv_search_k_hasafs" != no; then
23633 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
23634 cat >>confdefs.h <<\_ACEOF
23635#define USE_AFS 1
23636_ACEOF
23637
23638fi
23639
23640 echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5
23641echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6
23642if test "${ac_cv_search_krb5_init_ets+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23644else
23645 ac_func_search_save_LIBS=$LIBS
23646ac_cv_search_krb5_init_ets=no
23647cat >conftest.$ac_ext <<_ACEOF
23648/* confdefs.h. */
23649_ACEOF
23650cat confdefs.h >>conftest.$ac_ext
23651cat >>conftest.$ac_ext <<_ACEOF
23652/* end confdefs.h. */
23653
23654/* Override any gcc2 internal prototype to avoid an error. */
23655#ifdef __cplusplus
23656extern "C"
23657#endif
23658/* We use char because int might match the return type of a gcc2
23659 builtin and then its argument prototype would still apply. */
23660char krb5_init_ets ();
23661int
23662main ()
23663{
23664krb5_init_ets ();
23665 ;
23666 return 0;
23667}
23668_ACEOF
23669rm -f conftest.$ac_objext conftest$ac_exeext
23670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23671 (eval $ac_link) 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } &&
23678 { ac_try='test -z "$ac_c_werror_flag"
23679 || test ! -s conftest.err'
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 ac_cv_search_krb5_init_ets="none required"
23692else
23693 echo "$as_me: failed program was:" >&5
23694sed 's/^/| /' conftest.$ac_ext >&5
23695
23696fi
23697rm -f conftest.err conftest.$ac_objext \
23698 conftest$ac_exeext conftest.$ac_ext
23699if test "$ac_cv_search_krb5_init_ets" = no; then
23700 for ac_lib in $K5LIBS; do
23701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23702 cat >conftest.$ac_ext <<_ACEOF
23703/* confdefs.h. */
23704_ACEOF
23705cat confdefs.h >>conftest.$ac_ext
23706cat >>conftest.$ac_ext <<_ACEOF
23707/* end confdefs.h. */
23708
23709/* Override any gcc2 internal prototype to avoid an error. */
23710#ifdef __cplusplus
23711extern "C"
23712#endif
23713/* We use char because int might match the return type of a gcc2
23714 builtin and then its argument prototype would still apply. */
23715char krb5_init_ets ();
23716int
23717main ()
23718{
23719krb5_init_ets ();
23720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext conftest$ac_exeext
23725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726 (eval $ac_link) 2>conftest.er1
23727 ac_status=$?
23728 grep -v '^ *+' conftest.er1 >conftest.err
23729 rm -f conftest.er1
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } &&
23733 { ac_try='test -z "$ac_c_werror_flag"
23734 || test ! -s conftest.err'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest$ac_exeext'
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 ac_cv_search_krb5_init_ets="-l$ac_lib"
23747break
23748else
23749 echo "$as_me: failed program was:" >&5
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
23752fi
23753rm -f conftest.err conftest.$ac_objext \
23754 conftest$ac_exeext conftest.$ac_ext
23755 done
23756fi
23757LIBS=$ac_func_search_save_LIBS
23758fi
23759echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5
23760echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6
23761if test "$ac_cv_search_krb5_init_ets" != no; then
23762 test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS"
23763 cat >>confdefs.h <<\_ACEOF
23764#define KRB5_INIT_ETS 1
23765_ACEOF
23766
23767fi
23768
23769
23770
23771fi;
23772
23773# Looking for programs, paths and files
23774
23775PRIVSEP_PATH=/var/empty
23776
23777# Check whether --with-privsep-path or --without-privsep-path was given.
23778if test "${with_privsep_path+set}" = set; then
23779 withval="$with_privsep_path"
23780
23781 if test -n "$withval" && test "x$withval" != "xno" && \
23782 test "x${withval}" != "xyes"; then
23783 PRIVSEP_PATH=$withval
23784 fi
23785
23786
23787fi;
23788
23789
23790
23791# Check whether --with-xauth or --without-xauth was given.
23792if test "${with_xauth+set}" = set; then
23793 withval="$with_xauth"
23794
23795 if test -n "$withval" && test "x$withval" != "xno" && \
23796 test "x${withval}" != "xyes"; then
23797 xauth_path=$withval
23798 fi
23799
23800else
23801
23802 TestPath="$PATH"
23803 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
23804 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
23805 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
23806 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
23807 # Extract the first word of "xauth", so it can be a program name with args.
23808set dummy xauth; ac_word=$2
23809echo "$as_me:$LINENO: checking for $ac_word" >&5
23810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23811if test "${ac_cv_path_xauth_path+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813else
23814 case $xauth_path in
23815 [\\/]* | ?:[\\/]*)
23816 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
23817 ;;
23818 *)
23819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23820for as_dir in $TestPath
23821do
23822 IFS=$as_save_IFS
23823 test -z "$as_dir" && as_dir=.
23824 for ac_exec_ext in '' $ac_executable_extensions; do
23825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23826 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
23827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23828 break 2
23829 fi
23830done
23831done
23832
23833 ;;
23834esac
23835fi
23836xauth_path=$ac_cv_path_xauth_path
23837
23838if test -n "$xauth_path"; then
23839 echo "$as_me:$LINENO: result: $xauth_path" >&5
23840echo "${ECHO_T}$xauth_path" >&6
23841else
23842 echo "$as_me:$LINENO: result: no" >&5
23843echo "${ECHO_T}no" >&6
23844fi
23845
23846 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
23847 xauth_path="/usr/openwin/bin/xauth"
23848 fi
23849
23850
23851fi;
23852
23853STRIP_OPT=-s
23854# Check whether --enable-strip or --disable-strip was given.
23855if test "${enable_strip+set}" = set; then
23856 enableval="$enable_strip"
23857
23858 if test "x$enableval" = "xno" ; then
23859 STRIP_OPT=
23860 fi
23861
23862
23863fi;
23864
23865
23866if test -z "$xauth_path" ; then
23867 XAUTH_PATH="undefined"
23868
23869else
23870 cat >>confdefs.h <<_ACEOF
23871#define XAUTH_PATH "$xauth_path"
23872_ACEOF
23873
23874 XAUTH_PATH=$xauth_path
23875
23876fi
23877
23878# Check for mail directory (last resort if we cannot get it from headers)
23879if test ! -z "$MAIL" ; then
23880 maildir=`dirname $MAIL`
23881 cat >>confdefs.h <<_ACEOF
23882#define MAIL_DIRECTORY "$maildir"
23883_ACEOF
23884
23885fi
23886
23887if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
23888 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
23889echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
23890 disable_ptmx_check=yes
23891fi
23892if test -z "$no_dev_ptmx" ; then
23893 if test "x$disable_ptmx_check" != "xyes" ; then
23894 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
23895echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
23896if test "${ac_cv_file___dev_ptmx_+set}" = set; then
23897 echo $ECHO_N "(cached) $ECHO_C" >&6
23898else
23899 test "$cross_compiling" = yes &&
23900 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23901echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23902 { (exit 1); exit 1; }; }
23903if test -r ""/dev/ptmx""; then
23904 ac_cv_file___dev_ptmx_=yes
23905else
23906 ac_cv_file___dev_ptmx_=no
23907fi
23908fi
23909echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
23910echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
23911if test $ac_cv_file___dev_ptmx_ = yes; then
23912
23913 cat >>confdefs.h <<_ACEOF
23914#define HAVE_DEV_PTMX 1
23915_ACEOF
23916
23917 have_dev_ptmx=1
23918
23919
23920fi
23921
23922 fi
23923fi
23924
23925if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
23926 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
23927echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
23928if test "${ac_cv_file___dev_ptc_+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930else
23931 test "$cross_compiling" = yes &&
23932 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23933echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23934 { (exit 1); exit 1; }; }
23935if test -r ""/dev/ptc""; then
23936 ac_cv_file___dev_ptc_=yes
23937else
23938 ac_cv_file___dev_ptc_=no
23939fi
23940fi
23941echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
23942echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
23943if test $ac_cv_file___dev_ptc_ = yes; then
23944
23945 cat >>confdefs.h <<_ACEOF
23946#define HAVE_DEV_PTS_AND_PTC 1
23947_ACEOF
23948
23949 have_dev_ptc=1
23950
23951
23952fi
23953
23954else
23955 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
23956echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
23957fi
23958
23959# Options from here on. Some of these are preset by platform above
23960
23961# Check whether --with-mantype or --without-mantype was given.
23962if test "${with_mantype+set}" = set; then
23963 withval="$with_mantype"
23964
23965 case "$withval" in
23966 man|cat|doc)
23967 MANTYPE=$withval
23968 ;;
23969 *)
23970 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
23971echo "$as_me: error: invalid man type: $withval" >&2;}
23972 { (exit 1); exit 1; }; }
23973 ;;
23974 esac
23975
23976
23977fi;
23978if test -z "$MANTYPE"; then
23979 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
23980 for ac_prog in nroff awf
23981do
23982 # Extract the first word of "$ac_prog", so it can be a program name with args.
23983set dummy $ac_prog; ac_word=$2
23984echo "$as_me:$LINENO: checking for $ac_word" >&5
23985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23986if test "${ac_cv_path_NROFF+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988else
23989 case $NROFF in
23990 [\\/]* | ?:[\\/]*)
23991 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
23992 ;;
23993 *)
23994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23995for as_dir in $TestPath
23996do
23997 IFS=$as_save_IFS
23998 test -z "$as_dir" && as_dir=.
23999 for ac_exec_ext in '' $ac_executable_extensions; do
24000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24001 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
24002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24003 break 2
24004 fi
24005done
24006done
24007
24008 ;;
24009esac
24010fi
24011NROFF=$ac_cv_path_NROFF
24012
24013if test -n "$NROFF"; then
24014 echo "$as_me:$LINENO: result: $NROFF" >&5
24015echo "${ECHO_T}$NROFF" >&6
24016else
24017 echo "$as_me:$LINENO: result: no" >&5
24018echo "${ECHO_T}no" >&6
24019fi
24020
24021 test -n "$NROFF" && break
24022done
24023test -n "$NROFF" || NROFF="/bin/false"
24024
24025 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
24026 MANTYPE=doc
24027 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
24028 MANTYPE=man
24029 else
24030 MANTYPE=cat
24031 fi
24032fi
24033
24034if test "$MANTYPE" = "doc"; then
24035 mansubdir=man;
24036else
24037 mansubdir=$MANTYPE;
24038fi
24039
24040
24041# Check whether to enable MD5 passwords
24042MD5_MSG="no"
24043
24044# Check whether --with-md5-passwords or --without-md5-passwords was given.
24045if test "${with_md5_passwords+set}" = set; then
24046 withval="$with_md5_passwords"
24047
24048 if test "x$withval" != "xno" ; then
24049 cat >>confdefs.h <<\_ACEOF
24050#define HAVE_MD5_PASSWORDS 1
24051_ACEOF
24052
24053 MD5_MSG="yes"
24054 fi
24055
24056
24057fi;
24058
24059# Whether to disable shadow password support
24060
24061# Check whether --with-shadow or --without-shadow was given.
24062if test "${with_shadow+set}" = set; then
24063 withval="$with_shadow"
24064
24065 if test "x$withval" = "xno" ; then
24066 cat >>confdefs.h <<\_ACEOF
24067#define DISABLE_SHADOW 1
24068_ACEOF
24069
24070 disable_shadow=yes
24071 fi
24072
24073
24074fi;
24075
24076if test -z "$disable_shadow" ; then
24077 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
24078echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
24079 cat >conftest.$ac_ext <<_ACEOF
24080/* confdefs.h. */
24081_ACEOF
24082cat confdefs.h >>conftest.$ac_ext
24083cat >>conftest.$ac_ext <<_ACEOF
24084/* end confdefs.h. */
24085
24086#include <sys/types.h>
24087#include <shadow.h>
24088 struct spwd sp;
24089
24090int
24091main ()
24092{
24093 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
24094 ;
24095 return 0;
24096}
24097_ACEOF
24098rm -f conftest.$ac_objext
24099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24100 (eval $ac_compile) 2>conftest.er1
24101 ac_status=$?
24102 grep -v '^ *+' conftest.er1 >conftest.err
24103 rm -f conftest.er1
24104 cat conftest.err >&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } &&
24107 { ac_try='test -z "$ac_c_werror_flag"
24108 || test ! -s conftest.err'
24109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24110 (eval $ac_try) 2>&5
24111 ac_status=$?
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); }; } &&
24114 { ac_try='test -s conftest.$ac_objext'
24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116 (eval $ac_try) 2>&5
24117 ac_status=$?
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; }; then
24120 sp_expire_available=yes
24121else
24122 echo "$as_me: failed program was:" >&5
24123sed 's/^/| /' conftest.$ac_ext >&5
24124
24125
24126
24127fi
24128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24129
24130 if test "x$sp_expire_available" = "xyes" ; then
24131 echo "$as_me:$LINENO: result: yes" >&5
24132echo "${ECHO_T}yes" >&6
24133 cat >>confdefs.h <<\_ACEOF
24134#define HAS_SHADOW_EXPIRE 1
24135_ACEOF
24136
24137 else
24138 echo "$as_me:$LINENO: result: no" >&5
24139echo "${ECHO_T}no" >&6
24140 fi
24141fi
24142
24143# Use ip address instead of hostname in $DISPLAY
24144if test ! -z "$IPADDR_IN_DISPLAY" ; then
24145 DISPLAY_HACK_MSG="yes"
24146 cat >>confdefs.h <<\_ACEOF
24147#define IPADDR_IN_DISPLAY 1
24148_ACEOF
24149
24150else
24151 DISPLAY_HACK_MSG="no"
24152
24153# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
24154if test "${with_ipaddr_display+set}" = set; then
24155 withval="$with_ipaddr_display"
24156
24157 if test "x$withval" != "xno" ; then
24158 cat >>confdefs.h <<\_ACEOF
24159#define IPADDR_IN_DISPLAY 1
24160_ACEOF
24161
24162 DISPLAY_HACK_MSG="yes"
24163 fi
24164
24165
24166fi;
24167fi
24168
24169# check for /etc/default/login and use it if present.
24170# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
24171if test "${enable_etc_default_login+set}" = set; then
24172 enableval="$enable_etc_default_login"
24173 if test "x$enableval" = "xno"; then
24174 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
24175echo "$as_me: /etc/default/login handling disabled" >&6;}
24176 etc_default_login=no
24177 else
24178 etc_default_login=yes
24179 fi
24180else
24181 etc_default_login=yes
24182
24183fi;
24184
24185if test "x$etc_default_login" != "xno"; then
24186 echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
24187echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
24188if test "${ac_cv_file___etc_default_login_+set}" = set; then
24189 echo $ECHO_N "(cached) $ECHO_C" >&6
24190else
24191 test "$cross_compiling" = yes &&
24192 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24193echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24194 { (exit 1); exit 1; }; }
24195if test -r ""/etc/default/login""; then
24196 ac_cv_file___etc_default_login_=yes
24197else
24198 ac_cv_file___etc_default_login_=no
24199fi
24200fi
24201echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
24202echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
24203if test $ac_cv_file___etc_default_login_ = yes; then
24204 external_path_file=/etc/default/login
24205fi
24206
24207 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
24208 then
24209 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /etc/default/login test" >&5
24210echo "$as_me: WARNING: cross compiling: Disabling /etc/default/login test" >&2;}
24211 elif test "x$external_path_file" = "x/etc/default/login"; then
24212 cat >>confdefs.h <<\_ACEOF
24213#define HAVE_ETC_DEFAULT_LOGIN 1
24214_ACEOF
24215
24216 fi
24217fi
24218
24219if test $ac_cv_func_login_getcapbool = "yes" && \
24220 test $ac_cv_header_login_cap_h = "yes" ; then
24221 external_path_file=/etc/login.conf
24222fi
24223
24224# Whether to mess with the default path
24225SERVER_PATH_MSG="(default)"
24226
24227# Check whether --with-default-path or --without-default-path was given.
24228if test "${with_default_path+set}" = set; then
24229 withval="$with_default_path"
24230
24231 if test "x$external_path_file" = "x/etc/login.conf" ; then
24232 { echo "$as_me:$LINENO: WARNING:
24233--with-default-path=PATH has no effect on this system.
24234Edit /etc/login.conf instead." >&5
24235echo "$as_me: WARNING:
24236--with-default-path=PATH has no effect on this system.
24237Edit /etc/login.conf instead." >&2;}
24238 elif test "x$withval" != "xno" ; then
24239 if test ! -z "$external_path_file" ; then
24240 { echo "$as_me:$LINENO: WARNING:
24241--with-default-path=PATH will only be used if PATH is not defined in
24242$external_path_file ." >&5
24243echo "$as_me: WARNING:
24244--with-default-path=PATH will only be used if PATH is not defined in
24245$external_path_file ." >&2;}
24246 fi
24247 user_path="$withval"
24248 SERVER_PATH_MSG="$withval"
24249 fi
24250
24251else
24252 if test "x$external_path_file" = "x/etc/login.conf" ; then
24253 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
24254echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
24255 else
24256 if test ! -z "$external_path_file" ; then
24257 { echo "$as_me:$LINENO: WARNING:
24258If PATH is defined in $external_path_file, ensure the path to scp is included,
24259otherwise scp will not work." >&5
24260echo "$as_me: WARNING:
24261If PATH is defined in $external_path_file, ensure the path to scp is included,
24262otherwise scp will not work." >&2;}
24263 fi
24264 if test "$cross_compiling" = yes; then
24265 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
24266
24267else
24268 cat >conftest.$ac_ext <<_ACEOF
24269/* confdefs.h. */
24270_ACEOF
24271cat confdefs.h >>conftest.$ac_ext
24272cat >>conftest.$ac_ext <<_ACEOF
24273/* end confdefs.h. */
24274
24275/* find out what STDPATH is */
24276#include <stdio.h>
24277#ifdef HAVE_PATHS_H
24278# include <paths.h>
24279#endif
24280#ifndef _PATH_STDPATH
24281# ifdef _PATH_USERPATH /* Irix */
24282# define _PATH_STDPATH _PATH_USERPATH
24283# else
24284# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
24285# endif
24286#endif
24287#include <sys/types.h>
24288#include <sys/stat.h>
24289#include <fcntl.h>
24290#define DATA "conftest.stdpath"
24291
24292main()
24293{
24294 FILE *fd;
24295 int rc;
24296
24297 fd = fopen(DATA,"w");
24298 if(fd == NULL)
24299 exit(1);
24300
24301 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
24302 exit(1);
24303
24304 exit(0);
24305}
24306
24307_ACEOF
24308rm -f conftest$ac_exeext
24309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24310 (eval $ac_link) 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; }; then
24319 user_path=`cat conftest.stdpath`
24320else
24321 echo "$as_me: program exited with status $ac_status" >&5
24322echo "$as_me: failed program was:" >&5
24323sed 's/^/| /' conftest.$ac_ext >&5
24324
24325( exit $ac_status )
24326 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
24327fi
24328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24329fi
24330# make sure $bindir is in USER_PATH so scp will work
24331 t_bindir=`eval echo ${bindir}`
24332 case $t_bindir in
24333 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
24334 esac
24335 case $t_bindir in
24336 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
24337 esac
24338 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
24339 if test $? -ne 0 ; then
24340 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
24341 if test $? -ne 0 ; then
24342 user_path=$user_path:$t_bindir
24343 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
24344echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
24345 fi
24346 fi
24347 fi
24348
24349fi;
24350if test "x$external_path_file" != "x/etc/login.conf" ; then
24351 cat >>confdefs.h <<_ACEOF
24352#define USER_PATH "$user_path"
24353_ACEOF
24354
24355
24356fi
24357
24358# Set superuser path separately to user path
24359
24360# Check whether --with-superuser-path or --without-superuser-path was given.
24361if test "${with_superuser_path+set}" = set; then
24362 withval="$with_superuser_path"
24363
24364 if test -n "$withval" && test "x$withval" != "xno" && \
24365 test "x${withval}" != "xyes"; then
24366 cat >>confdefs.h <<_ACEOF
24367#define SUPERUSER_PATH "$withval"
24368_ACEOF
24369
24370 superuser_path=$withval
24371 fi
24372
24373
24374fi;
24375
24376
24377echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
24378echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
24379IPV4_IN6_HACK_MSG="no"
24380
24381# Check whether --with-4in6 or --without-4in6 was given.
24382if test "${with_4in6+set}" = set; then
24383 withval="$with_4in6"
24384
24385 if test "x$withval" != "xno" ; then
24386 echo "$as_me:$LINENO: result: yes" >&5
24387echo "${ECHO_T}yes" >&6
24388 cat >>confdefs.h <<\_ACEOF
24389#define IPV4_IN_IPV6 1
24390_ACEOF
24391
24392 IPV4_IN6_HACK_MSG="yes"
24393 else
24394 echo "$as_me:$LINENO: result: no" >&5
24395echo "${ECHO_T}no" >&6
24396 fi
24397
24398else
24399
24400 if test "x$inet6_default_4in6" = "xyes"; then
24401 echo "$as_me:$LINENO: result: yes (default)" >&5
24402echo "${ECHO_T}yes (default)" >&6
24403 cat >>confdefs.h <<\_ACEOF
24404#define IPV4_IN_IPV6 1
24405_ACEOF
24406
24407 IPV4_IN6_HACK_MSG="yes"
24408 else
24409 echo "$as_me:$LINENO: result: no (default)" >&5
24410echo "${ECHO_T}no (default)" >&6
24411 fi
24412
24413
24414fi;
24415
24416# Whether to enable BSD auth support
24417BSD_AUTH_MSG=no
24418
24419# Check whether --with-bsd-auth or --without-bsd-auth was given.
24420if test "${with_bsd_auth+set}" = set; then
24421 withval="$with_bsd_auth"
24422
24423 if test "x$withval" != "xno" ; then
24424 cat >>confdefs.h <<\_ACEOF
24425#define BSD_AUTH 1
24426_ACEOF
24427
24428 BSD_AUTH_MSG=yes
24429 fi
24430
24431
24432fi;
24433
24434# Where to place sshd.pid
24435piddir=/var/run
24436# make sure the directory exists
24437if test ! -d $piddir ; then
24438 piddir=`eval echo ${sysconfdir}`
24439 case $piddir in
24440 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
24441 esac
24442fi
24443
24444
24445# Check whether --with-pid-dir or --without-pid-dir was given.
24446if test "${with_pid_dir+set}" = set; then
24447 withval="$with_pid_dir"
24448
24449 if test -n "$withval" && test "x$withval" != "xno" && \
24450 test "x${withval}" != "xyes"; then
24451 piddir=$withval
24452 if test ! -d $piddir ; then
24453 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
24454echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
24455 fi
24456 fi
24457
24458
24459fi;
24460
24461cat >>confdefs.h <<_ACEOF
24462#define _PATH_SSH_PIDDIR "$piddir"
24463_ACEOF
24464
24465
24466
24467# Check whether --enable-lastlog or --disable-lastlog was given.
24468if test "${enable_lastlog+set}" = set; then
24469 enableval="$enable_lastlog"
24470
24471 if test "x$enableval" = "xno" ; then
24472 cat >>confdefs.h <<\_ACEOF
24473#define DISABLE_LASTLOG 1
24474_ACEOF
24475
24476 fi
24477
24478
24479fi;
24480# Check whether --enable-utmp or --disable-utmp was given.
24481if test "${enable_utmp+set}" = set; then
24482 enableval="$enable_utmp"
24483
24484 if test "x$enableval" = "xno" ; then
24485 cat >>confdefs.h <<\_ACEOF
24486#define DISABLE_UTMP 1
24487_ACEOF
24488
24489 fi
24490
24491
24492fi;
24493# Check whether --enable-utmpx or --disable-utmpx was given.
24494if test "${enable_utmpx+set}" = set; then
24495 enableval="$enable_utmpx"
24496
24497 if test "x$enableval" = "xno" ; then
24498 cat >>confdefs.h <<\_ACEOF
24499#define DISABLE_UTMPX 1
24500_ACEOF
24501
24502 fi
24503
24504
24505fi;
24506# Check whether --enable-wtmp or --disable-wtmp was given.
24507if test "${enable_wtmp+set}" = set; then
24508 enableval="$enable_wtmp"
24509
24510 if test "x$enableval" = "xno" ; then
24511 cat >>confdefs.h <<\_ACEOF
24512#define DISABLE_WTMP 1
24513_ACEOF
24514
24515 fi
24516
24517
24518fi;
24519# Check whether --enable-wtmpx or --disable-wtmpx was given.
24520if test "${enable_wtmpx+set}" = set; then
24521 enableval="$enable_wtmpx"
24522
24523 if test "x$enableval" = "xno" ; then
24524 cat >>confdefs.h <<\_ACEOF
24525#define DISABLE_WTMPX 1
24526_ACEOF
24527
24528 fi
24529
24530
24531fi;
24532# Check whether --enable-libutil or --disable-libutil was given.
24533if test "${enable_libutil+set}" = set; then
24534 enableval="$enable_libutil"
24535
24536 if test "x$enableval" = "xno" ; then
24537 cat >>confdefs.h <<\_ACEOF
24538#define DISABLE_LOGIN 1
24539_ACEOF
24540
24541 fi
24542
24543
24544fi;
24545# Check whether --enable-pututline or --disable-pututline was given.
24546if test "${enable_pututline+set}" = set; then
24547 enableval="$enable_pututline"
24548
24549 if test "x$enableval" = "xno" ; then
24550 cat >>confdefs.h <<\_ACEOF
24551#define DISABLE_PUTUTLINE 1
24552_ACEOF
24553
24554 fi
24555
24556
24557fi;
24558# Check whether --enable-pututxline or --disable-pututxline was given.
24559if test "${enable_pututxline+set}" = set; then
24560 enableval="$enable_pututxline"
24561
24562 if test "x$enableval" = "xno" ; then
24563 cat >>confdefs.h <<\_ACEOF
24564#define DISABLE_PUTUTXLINE 1
24565_ACEOF
24566
24567 fi
24568
24569
24570fi;
24571
24572# Check whether --with-lastlog or --without-lastlog was given.
24573if test "${with_lastlog+set}" = set; then
24574 withval="$with_lastlog"
24575
24576 if test "x$withval" = "xno" ; then
24577 cat >>confdefs.h <<\_ACEOF
24578#define DISABLE_LASTLOG 1
24579_ACEOF
24580
24581 elif test -n "$withval" && test "x${withval}" != "xyes"; then
24582 conf_lastlog_location=$withval
24583 fi
24584
24585
24586fi;
24587
24588
24589echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
24590echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
24591cat >conftest.$ac_ext <<_ACEOF
24592/* confdefs.h. */
24593_ACEOF
24594cat confdefs.h >>conftest.$ac_ext
24595cat >>conftest.$ac_ext <<_ACEOF
24596/* end confdefs.h. */
24597
24598#include <sys/types.h>
24599#include <utmp.h>
24600#ifdef HAVE_LASTLOG_H
24601# include <lastlog.h>
24602#endif
24603#ifdef HAVE_PATHS_H
24604# include <paths.h>
24605#endif
24606#ifdef HAVE_LOGIN_H
24607# include <login.h>
24608#endif
24609
24610int
24611main ()
24612{
24613 char *lastlog = LASTLOG_FILE;
24614 ;
24615 return 0;
24616}
24617_ACEOF
24618rm -f conftest.$ac_objext
24619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24620 (eval $ac_compile) 2>conftest.er1
24621 ac_status=$?
24622 grep -v '^ *+' conftest.er1 >conftest.err
24623 rm -f conftest.er1
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
24627 { ac_try='test -z "$ac_c_werror_flag"
24628 || test ! -s conftest.err'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest.$ac_objext'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 echo "$as_me:$LINENO: result: yes" >&5
24641echo "${ECHO_T}yes" >&6
24642else
24643 echo "$as_me: failed program was:" >&5
24644sed 's/^/| /' conftest.$ac_ext >&5
24645
24646
24647 echo "$as_me:$LINENO: result: no" >&5
24648echo "${ECHO_T}no" >&6
24649 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
24650echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
24651 cat >conftest.$ac_ext <<_ACEOF
24652/* confdefs.h. */
24653_ACEOF
24654cat confdefs.h >>conftest.$ac_ext
24655cat >>conftest.$ac_ext <<_ACEOF
24656/* end confdefs.h. */
24657
24658#include <sys/types.h>
24659#include <utmp.h>
24660#ifdef HAVE_LASTLOG_H
24661# include <lastlog.h>
24662#endif
24663#ifdef HAVE_PATHS_H
24664# include <paths.h>
24665#endif
24666
24667int
24668main ()
24669{
24670 char *lastlog = _PATH_LASTLOG;
24671 ;
24672 return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext
24676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24677 (eval $ac_compile) 2>conftest.er1
24678 ac_status=$?
24679 grep -v '^ *+' conftest.er1 >conftest.err
24680 rm -f conftest.er1
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } &&
24684 { ac_try='test -z "$ac_c_werror_flag"
24685 || test ! -s conftest.err'
24686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; } &&
24691 { ac_try='test -s conftest.$ac_objext'
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; }; then
24697 echo "$as_me:$LINENO: result: yes" >&5
24698echo "${ECHO_T}yes" >&6
24699else
24700 echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
24703
24704 echo "$as_me:$LINENO: result: no" >&5
24705echo "${ECHO_T}no" >&6
24706 system_lastlog_path=no
24707
24708fi
24709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24710
24711
24712fi
24713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24714
24715if test -z "$conf_lastlog_location"; then
24716 if test x"$system_lastlog_path" = x"no" ; then
24717 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
24718 if (test -d "$f" || test -f "$f") ; then
24719 conf_lastlog_location=$f
24720 fi
24721 done
24722 if test -z "$conf_lastlog_location"; then
24723 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
24724echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
24725 fi
24726 fi
24727fi
24728
24729if test -n "$conf_lastlog_location"; then
24730 cat >>confdefs.h <<_ACEOF
24731#define CONF_LASTLOG_FILE "$conf_lastlog_location"
24732_ACEOF
24733
24734fi
24735
24736echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
24737echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
24738cat >conftest.$ac_ext <<_ACEOF
24739/* confdefs.h. */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h. */
24744
24745#include <sys/types.h>
24746#include <utmp.h>
24747#ifdef HAVE_PATHS_H
24748# include <paths.h>
24749#endif
24750
24751int
24752main ()
24753{
24754 char *utmp = UTMP_FILE;
24755 ;
24756 return 0;
24757}
24758_ACEOF
24759rm -f conftest.$ac_objext
24760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24761 (eval $ac_compile) 2>conftest.er1
24762 ac_status=$?
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } &&
24768 { ac_try='test -z "$ac_c_werror_flag"
24769 || test ! -s conftest.err'
24770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); }; } &&
24775 { ac_try='test -s conftest.$ac_objext'
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 echo "$as_me:$LINENO: result: yes" >&5
24782echo "${ECHO_T}yes" >&6
24783else
24784 echo "$as_me: failed program was:" >&5
24785sed 's/^/| /' conftest.$ac_ext >&5
24786
24787 echo "$as_me:$LINENO: result: no" >&5
24788echo "${ECHO_T}no" >&6
24789 system_utmp_path=no
24790
24791fi
24792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24793if test -z "$conf_utmp_location"; then
24794 if test x"$system_utmp_path" = x"no" ; then
24795 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
24796 if test -f $f ; then
24797 conf_utmp_location=$f
24798 fi
24799 done
24800 if test -z "$conf_utmp_location"; then
24801 cat >>confdefs.h <<\_ACEOF
24802#define DISABLE_UTMP 1
24803_ACEOF
24804
24805 fi
24806 fi
24807fi
24808if test -n "$conf_utmp_location"; then
24809 cat >>confdefs.h <<_ACEOF
24810#define CONF_UTMP_FILE "$conf_utmp_location"
24811_ACEOF
24812
24813fi
24814
24815echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
24816echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
24817cat >conftest.$ac_ext <<_ACEOF
24818/* confdefs.h. */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h. */
24823
24824#include <sys/types.h>
24825#include <utmp.h>
24826#ifdef HAVE_PATHS_H
24827# include <paths.h>
24828#endif
24829
24830int
24831main ()
24832{
24833 char *wtmp = WTMP_FILE;
24834 ;
24835 return 0;
24836}
24837_ACEOF
24838rm -f conftest.$ac_objext
24839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24840 (eval $ac_compile) 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest.$ac_objext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 echo "$as_me:$LINENO: result: yes" >&5
24861echo "${ECHO_T}yes" >&6
24862else
24863 echo "$as_me: failed program was:" >&5
24864sed 's/^/| /' conftest.$ac_ext >&5
24865
24866 echo "$as_me:$LINENO: result: no" >&5
24867echo "${ECHO_T}no" >&6
24868 system_wtmp_path=no
24869
24870fi
24871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24872if test -z "$conf_wtmp_location"; then
24873 if test x"$system_wtmp_path" = x"no" ; then
24874 for f in /usr/adm/wtmp /var/log/wtmp; do
24875 if test -f $f ; then
24876 conf_wtmp_location=$f
24877 fi
24878 done
24879 if test -z "$conf_wtmp_location"; then
24880 cat >>confdefs.h <<\_ACEOF
24881#define DISABLE_WTMP 1
24882_ACEOF
24883
24884 fi
24885 fi
24886fi
24887if test -n "$conf_wtmp_location"; then
24888 cat >>confdefs.h <<_ACEOF
24889#define CONF_WTMP_FILE "$conf_wtmp_location"
24890_ACEOF
24891
24892fi
24893
24894
24895echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
24896echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
24897cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903
24904#include <sys/types.h>
24905#include <utmp.h>
24906#ifdef HAVE_UTMPX_H
24907#include <utmpx.h>
24908#endif
24909#ifdef HAVE_PATHS_H
24910# include <paths.h>
24911#endif
24912
24913int
24914main ()
24915{
24916 char *utmpx = UTMPX_FILE;
24917 ;
24918 return 0;
24919}
24920_ACEOF
24921rm -f conftest.$ac_objext
24922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24923 (eval $ac_compile) 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag"
24931 || test ! -s conftest.err'
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; } &&
24937 { ac_try='test -s conftest.$ac_objext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24940 ac_status=$?
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 echo "$as_me:$LINENO: result: yes" >&5
24944echo "${ECHO_T}yes" >&6
24945else
24946 echo "$as_me: failed program was:" >&5
24947sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 echo "$as_me:$LINENO: result: no" >&5
24950echo "${ECHO_T}no" >&6
24951 system_utmpx_path=no
24952
24953fi
24954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24955if test -z "$conf_utmpx_location"; then
24956 if test x"$system_utmpx_path" = x"no" ; then
24957 cat >>confdefs.h <<\_ACEOF
24958#define DISABLE_UTMPX 1
24959_ACEOF
24960
24961 fi
24962else
24963 cat >>confdefs.h <<_ACEOF
24964#define CONF_UTMPX_FILE "$conf_utmpx_location"
24965_ACEOF
24966
24967fi
24968
24969echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
24970echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
24971cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
24977
24978#include <sys/types.h>
24979#include <utmp.h>
24980#ifdef HAVE_UTMPX_H
24981#include <utmpx.h>
24982#endif
24983#ifdef HAVE_PATHS_H
24984# include <paths.h>
24985#endif
24986
24987int
24988main ()
24989{
24990 char *wtmpx = WTMPX_FILE;
24991 ;
24992 return 0;
24993}
24994_ACEOF
24995rm -f conftest.$ac_objext
24996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24997 (eval $ac_compile) 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } &&
25004 { ac_try='test -z "$ac_c_werror_flag"
25005 || test ! -s conftest.err'
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; } &&
25011 { ac_try='test -s conftest.$ac_objext'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; }; then
25017 echo "$as_me:$LINENO: result: yes" >&5
25018echo "${ECHO_T}yes" >&6
25019else
25020 echo "$as_me: failed program was:" >&5
25021sed 's/^/| /' conftest.$ac_ext >&5
25022
25023 echo "$as_me:$LINENO: result: no" >&5
25024echo "${ECHO_T}no" >&6
25025 system_wtmpx_path=no
25026
25027fi
25028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25029if test -z "$conf_wtmpx_location"; then
25030 if test x"$system_wtmpx_path" = x"no" ; then
25031 cat >>confdefs.h <<\_ACEOF
25032#define DISABLE_WTMPX 1
25033_ACEOF
25034
25035 fi
25036else
25037 cat >>confdefs.h <<_ACEOF
25038#define CONF_WTMPX_FILE "$conf_wtmpx_location"
25039_ACEOF
25040
25041fi
25042
25043
25044if test ! -z "$blibpath" ; then
25045 LDFLAGS="$LDFLAGS $blibflags$blibpath"
25046 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
25047echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
25048fi
25049
25050if test "$PAM_MSG" = yes ; then
25051 LIBS=`echo $LIBS | sed 's/-lpam //'`
25052fi
25053if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
25054 LIBS=`echo $LIBS | sed 's/-ldl //'`
25055fi
25056
25057
25058 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh"
25059
25060cat >confcache <<\_ACEOF
25061# This file is a shell script that caches the results of configure
25062# tests run on this system so they can be shared between configure
25063# scripts and configure runs, see configure's option --config-cache.
25064# It is not useful on other systems. If it contains results you don't
25065# want to keep, you may remove or edit it.
25066#
25067# config.status only pays attention to the cache file if you give it
25068# the --recheck option to rerun configure.
25069#
25070# `ac_cv_env_foo' variables (set or unset) will be overridden when
25071# loading this file, other *unset* `ac_cv_foo' will be assigned the
25072# following values.
25073
25074_ACEOF
25075
25076# The following way of writing the cache mishandles newlines in values,
25077# but we know of no workaround that is simple, portable, and efficient.
25078# So, don't put newlines in cache variables' values.
25079# Ultrix sh set writes to stderr and can't be redirected directly,
25080# and sets the high bit in the cache file unless we assign to the vars.
25081{
25082 (set) 2>&1 |
25083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25084 *ac_space=\ *)
25085 # `set' does not quote correctly, so add quotes (double-quote
25086 # substitution turns \\\\ into \\, and sed turns \\ into \).
25087 sed -n \
25088 "s/'/'\\\\''/g;
25089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25090 ;;
25091 *)
25092 # `set' quotes correctly as required by POSIX, so do not add quotes.
25093 sed -n \
25094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25095 ;;
25096 esac;
25097} |
25098 sed '
25099 t clear
25100 : clear
25101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25102 t end
25103 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25104 : end' >>confcache
25105if diff $cache_file confcache >/dev/null 2>&1; then :; else
25106 if test -w $cache_file; then
25107 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25108 cat confcache >$cache_file
25109 else
25110 echo "not updating unwritable cache $cache_file"
25111 fi
25112fi
25113rm -f confcache
25114
25115test "x$prefix" = xNONE && prefix=$ac_default_prefix
25116# Let make expand exec_prefix.
25117test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25118
25119# VPATH may cause trouble with some makes, so we remove $(srcdir),
25120# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25121# trailing colons and then remove the whole line if VPATH becomes empty
25122# (actually we leave an empty line to preserve line numbers).
25123if test "x$srcdir" = x.; then
25124 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25125s/:*\$(srcdir):*/:/;
25126s/:*\${srcdir}:*/:/;
25127s/:*@srcdir@:*/:/;
25128s/^\([^=]*=[ ]*\):*/\1/;
25129s/:*$//;
25130s/^[^=]*=[ ]*$//;
25131}'
25132fi
25133
25134DEFS=-DHAVE_CONFIG_H
25135
25136ac_libobjs=
25137ac_ltlibobjs=
25138for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25139 # 1. Remove the extension, and $U if already installed.
25140 ac_i=`echo "$ac_i" |
25141 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25142 # 2. Add them.
25143 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25144 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25145done
25146LIBOBJS=$ac_libobjs
25147
25148LTLIBOBJS=$ac_ltlibobjs
25149
25150
25151
25152: ${CONFIG_STATUS=./config.status}
25153ac_clean_files_save=$ac_clean_files
25154ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25155{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25156echo "$as_me: creating $CONFIG_STATUS" >&6;}
25157cat >$CONFIG_STATUS <<_ACEOF
25158#! $SHELL
25159# Generated by $as_me.
25160# Run this file to recreate the current configuration.
25161# Compiler output produced by configure, useful for debugging
25162# configure, is in config.log if it exists.
25163
25164debug=false
25165ac_cs_recheck=false
25166ac_cs_silent=false
25167SHELL=\${CONFIG_SHELL-$SHELL}
25168_ACEOF
25169
25170cat >>$CONFIG_STATUS <<\_ACEOF
25171## --------------------- ##
25172## M4sh Initialization. ##
25173## --------------------- ##
25174
25175# Be Bourne compatible
25176if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25177 emulate sh
25178 NULLCMD=:
25179 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25180 # is contrary to our usage. Disable this feature.
25181 alias -g '${1+"$@"}'='"$@"'
25182elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25183 set -o posix
25184fi
25185DUALCASE=1; export DUALCASE # for MKS sh
25186
25187# Support unset when possible.
25188if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25189 as_unset=unset
25190else
25191 as_unset=false
25192fi
25193
25194
25195# Work around bugs in pre-3.0 UWIN ksh.
25196$as_unset ENV MAIL MAILPATH
25197PS1='$ '
25198PS2='> '
25199PS4='+ '
25200
25201# NLS nuisances.
25202for as_var in \
25203 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25204 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25205 LC_TELEPHONE LC_TIME
25206do
25207 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25208 eval $as_var=C; export $as_var
25209 else
25210 $as_unset $as_var
25211 fi
25212done
25213
25214# Required to use basename.
25215if expr a : '\(a\)' >/dev/null 2>&1; then
25216 as_expr=expr
25217else
25218 as_expr=false
25219fi
25220
25221if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25222 as_basename=basename
25223else
25224 as_basename=false
25225fi
25226
25227
25228# Name of the executable.
25229as_me=`$as_basename "$0" ||
25230$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25231 X"$0" : 'X\(//\)$' \| \
25232 X"$0" : 'X\(/\)$' \| \
25233 . : '\(.\)' 2>/dev/null ||
25234echo X/"$0" |
25235 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25236 /^X\/\(\/\/\)$/{ s//\1/; q; }
25237 /^X\/\(\/\).*/{ s//\1/; q; }
25238 s/.*/./; q'`
25239
25240
25241# PATH needs CR, and LINENO needs CR and PATH.
25242# Avoid depending upon Character Ranges.
25243as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25244as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25245as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25246as_cr_digits='0123456789'
25247as_cr_alnum=$as_cr_Letters$as_cr_digits
25248
25249# The user is always right.
25250if test "${PATH_SEPARATOR+set}" != set; then
25251 echo "#! /bin/sh" >conf$$.sh
25252 echo "exit 0" >>conf$$.sh
25253 chmod +x conf$$.sh
25254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25255 PATH_SEPARATOR=';'
25256 else
25257 PATH_SEPARATOR=:
25258 fi
25259 rm -f conf$$.sh
25260fi
25261
25262
25263 as_lineno_1=$LINENO
25264 as_lineno_2=$LINENO
25265 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25266 test "x$as_lineno_1" != "x$as_lineno_2" &&
25267 test "x$as_lineno_3" = "x$as_lineno_2" || {
25268 # Find who we are. Look in the path if we contain no path at all
25269 # relative or not.
25270 case $0 in
25271 *[\\/]* ) as_myself=$0 ;;
25272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25273for as_dir in $PATH
25274do
25275 IFS=$as_save_IFS
25276 test -z "$as_dir" && as_dir=.
25277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25278done
25279
25280 ;;
25281 esac
25282 # We did not find ourselves, most probably we were run as `sh COMMAND'
25283 # in which case we are not to be found in the path.
25284 if test "x$as_myself" = x; then
25285 as_myself=$0
25286 fi
25287 if test ! -f "$as_myself"; then
25288 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25289echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25290 { (exit 1); exit 1; }; }
25291 fi
25292 case $CONFIG_SHELL in
25293 '')
25294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25295for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25296do
25297 IFS=$as_save_IFS
25298 test -z "$as_dir" && as_dir=.
25299 for as_base in sh bash ksh sh5; do
25300 case $as_dir in
25301 /*)
25302 if ("$as_dir/$as_base" -c '
25303 as_lineno_1=$LINENO
25304 as_lineno_2=$LINENO
25305 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25306 test "x$as_lineno_1" != "x$as_lineno_2" &&
25307 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25308 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25309 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25310 CONFIG_SHELL=$as_dir/$as_base
25311 export CONFIG_SHELL
25312 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25313 fi;;
25314 esac
25315 done
25316done
25317;;
25318 esac
25319
25320 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25321 # uniformly replaced by the line number. The first 'sed' inserts a
25322 # line-number line before each line; the second 'sed' does the real
25323 # work. The second script uses 'N' to pair each line-number line
25324 # with the numbered line, and appends trailing '-' during
25325 # substitution so that $LINENO is not a special case at line end.
25326 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25327 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25328 sed '=' <$as_myself |
25329 sed '
25330 N
25331 s,$,-,
25332 : loop
25333 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25334 t loop
25335 s,-$,,
25336 s,^['$as_cr_digits']*\n,,
25337 ' >$as_me.lineno &&
25338 chmod +x $as_me.lineno ||
25339 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25340echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25341 { (exit 1); exit 1; }; }
25342
25343 # Don't try to exec as it changes $[0], causing all sort of problems
25344 # (the dirname of $[0] is not the place where we might find the
25345 # original and so on. Autoconf is especially sensible to this).
25346 . ./$as_me.lineno
25347 # Exit status is that of the last command.
25348 exit
25349}
25350
25351
25352case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25353 *c*,-n*) ECHO_N= ECHO_C='
25354' ECHO_T=' ' ;;
25355 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25356 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25357esac
25358
25359if expr a : '\(a\)' >/dev/null 2>&1; then
25360 as_expr=expr
25361else
25362 as_expr=false
25363fi
25364
25365rm -f conf$$ conf$$.exe conf$$.file
25366echo >conf$$.file
25367if ln -s conf$$.file conf$$ 2>/dev/null; then
25368 # We could just check for DJGPP; but this test a) works b) is more generic
25369 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25370 if test -f conf$$.exe; then
25371 # Don't use ln at all; we don't have any links
25372 as_ln_s='cp -p'
25373 else
25374 as_ln_s='ln -s'
25375 fi
25376elif ln conf$$.file conf$$ 2>/dev/null; then
25377 as_ln_s=ln
25378else
25379 as_ln_s='cp -p'
25380fi
25381rm -f conf$$ conf$$.exe conf$$.file
25382
25383if mkdir -p . 2>/dev/null; then
25384 as_mkdir_p=:
25385else
25386 test -d ./-p && rmdir ./-p
25387 as_mkdir_p=false
25388fi
25389
25390as_executable_p="test -f"
25391
25392# Sed expression to map a string onto a valid CPP name.
25393as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25394
25395# Sed expression to map a string onto a valid variable name.
25396as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25397
25398
25399# IFS
25400# We need space, tab and new line, in precisely that order.
25401as_nl='
25402'
25403IFS=" $as_nl"
25404
25405# CDPATH.
25406$as_unset CDPATH
25407
25408exec 6>&1
25409
25410# Open the log real soon, to keep \$[0] and so on meaningful, and to
25411# report actual input values of CONFIG_FILES etc. instead of their
25412# values after options handling. Logging --version etc. is OK.
25413exec 5>>config.log
25414{
25415 echo
25416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25417## Running $as_me. ##
25418_ASBOX
25419} >&5
25420cat >&5 <<_CSEOF
25421
25422This file was extended by OpenSSH $as_me Portable, which was
25423generated by GNU Autoconf 2.59. Invocation command line was
25424
25425 CONFIG_FILES = $CONFIG_FILES
25426 CONFIG_HEADERS = $CONFIG_HEADERS
25427 CONFIG_LINKS = $CONFIG_LINKS
25428 CONFIG_COMMANDS = $CONFIG_COMMANDS
25429 $ $0 $@
25430
25431_CSEOF
25432echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25433echo >&5
25434_ACEOF
25435
25436# Files that config.status was made for.
25437if test -n "$ac_config_files"; then
25438 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25439fi
25440
25441if test -n "$ac_config_headers"; then
25442 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25443fi
25444
25445if test -n "$ac_config_links"; then
25446 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25447fi
25448
25449if test -n "$ac_config_commands"; then
25450 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25451fi
25452
25453cat >>$CONFIG_STATUS <<\_ACEOF
25454
25455ac_cs_usage="\
25456\`$as_me' instantiates files from templates according to the
25457current configuration.
25458
25459Usage: $0 [OPTIONS] [FILE]...
25460
25461 -h, --help print this help, then exit
25462 -V, --version print version number, then exit
25463 -q, --quiet do not print progress messages
25464 -d, --debug don't remove temporary files
25465 --recheck update $as_me by reconfiguring in the same conditions
25466 --file=FILE[:TEMPLATE]
25467 instantiate the configuration file FILE
25468 --header=FILE[:TEMPLATE]
25469 instantiate the configuration header FILE
25470
25471Configuration files:
25472$config_files
25473
25474Configuration headers:
25475$config_headers
25476
25477Report bugs to <bug-autoconf@gnu.org>."
25478_ACEOF
25479
25480cat >>$CONFIG_STATUS <<_ACEOF
25481ac_cs_version="\\
25482OpenSSH config.status Portable
25483configured by $0, generated by GNU Autoconf 2.59,
25484 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25485
25486Copyright (C) 2003 Free Software Foundation, Inc.
25487This config.status script is free software; the Free Software Foundation
25488gives unlimited permission to copy, distribute and modify it."
25489srcdir=$srcdir
25490INSTALL="$INSTALL"
25491_ACEOF
25492
25493cat >>$CONFIG_STATUS <<\_ACEOF
25494# If no file are specified by the user, then we need to provide default
25495# value. By we need to know if files were specified by the user.
25496ac_need_defaults=:
25497while test $# != 0
25498do
25499 case $1 in
25500 --*=*)
25501 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25502 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25503 ac_shift=:
25504 ;;
25505 -*)
25506 ac_option=$1
25507 ac_optarg=$2
25508 ac_shift=shift
25509 ;;
25510 *) # This is not an option, so the user has probably given explicit
25511 # arguments.
25512 ac_option=$1
25513 ac_need_defaults=false;;
25514 esac
25515
25516 case $ac_option in
25517 # Handling of the options.
25518_ACEOF
25519cat >>$CONFIG_STATUS <<\_ACEOF
25520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25521 ac_cs_recheck=: ;;
25522 --version | --vers* | -V )
25523 echo "$ac_cs_version"; exit 0 ;;
25524 --he | --h)
25525 # Conflict between --help and --header
25526 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25527Try \`$0 --help' for more information." >&5
25528echo "$as_me: error: ambiguous option: $1
25529Try \`$0 --help' for more information." >&2;}
25530 { (exit 1); exit 1; }; };;
25531 --help | --hel | -h )
25532 echo "$ac_cs_usage"; exit 0 ;;
25533 --debug | --d* | -d )
25534 debug=: ;;
25535 --file | --fil | --fi | --f )
25536 $ac_shift
25537 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25538 ac_need_defaults=false;;
25539 --header | --heade | --head | --hea )
25540 $ac_shift
25541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25542 ac_need_defaults=false;;
25543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25545 ac_cs_silent=: ;;
25546
25547 # This is an error.
25548 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25549Try \`$0 --help' for more information." >&5
25550echo "$as_me: error: unrecognized option: $1
25551Try \`$0 --help' for more information." >&2;}
25552 { (exit 1); exit 1; }; } ;;
25553
25554 *) ac_config_targets="$ac_config_targets $1" ;;
25555
25556 esac
25557 shift
25558done
25559
25560ac_configure_extra_args=
25561
25562if $ac_cs_silent; then
25563 exec 6>/dev/null
25564 ac_configure_extra_args="$ac_configure_extra_args --silent"
25565fi
25566
25567_ACEOF
25568cat >>$CONFIG_STATUS <<_ACEOF
25569if \$ac_cs_recheck; then
25570 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25571 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25572fi
25573
25574_ACEOF
25575
25576
25577
25578
25579
25580cat >>$CONFIG_STATUS <<\_ACEOF
25581for ac_config_target in $ac_config_targets
25582do
25583 case "$ac_config_target" in
25584 # Handling of arguments.
25585 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25586 "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
25587 "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
25588 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
25589 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
25590 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
25591 "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
25592 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25594echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25595 { (exit 1); exit 1; }; };;
25596 esac
25597done
25598
25599# If the user did not use the arguments to specify the items to instantiate,
25600# then the envvar interface is used. Set only those that are not.
25601# We use the long form for the default assignment because of an extremely
25602# bizarre bug on SunOS 4.1.3.
25603if $ac_need_defaults; then
25604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25606fi
25607
25608# Have a temporary directory for convenience. Make it in the build tree
25609# simply because there is no reason to put it here, and in addition,
25610# creating and moving files from /tmp can sometimes cause problems.
25611# Create a temporary directory, and hook for its removal unless debugging.
25612$debug ||
25613{
25614 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25615 trap '{ (exit 1); exit 1; }' 1 2 13 15
25616}
25617
25618# Create a (secure) tmp directory for tmp files.
25619
25620{
25621 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25622 test -n "$tmp" && test -d "$tmp"
25623} ||
25624{
25625 tmp=./confstat$$-$RANDOM
25626 (umask 077 && mkdir $tmp)
25627} ||
25628{
25629 echo "$me: cannot create a temporary directory in ." >&2
25630 { (exit 1); exit 1; }
25631}
25632
25633_ACEOF
25634
25635cat >>$CONFIG_STATUS <<_ACEOF
25636
25637#
25638# CONFIG_FILES section.
25639#
25640
25641# No need to generate the scripts if there are no CONFIG_FILES.
25642# This happens for instance when ./config.status config.h
25643if test -n "\$CONFIG_FILES"; then
25644 # Protect against being on the right side of a sed subst in config.status.
25645 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25646 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25647s,@SHELL@,$SHELL,;t t
25648s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25649s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25650s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25651s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25652s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25653s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25654s,@exec_prefix@,$exec_prefix,;t t
25655s,@prefix@,$prefix,;t t
25656s,@program_transform_name@,$program_transform_name,;t t
25657s,@bindir@,$bindir,;t t
25658s,@sbindir@,$sbindir,;t t
25659s,@libexecdir@,$libexecdir,;t t
25660s,@datadir@,$datadir,;t t
25661s,@sysconfdir@,$sysconfdir,;t t
25662s,@sharedstatedir@,$sharedstatedir,;t t
25663s,@localstatedir@,$localstatedir,;t t
25664s,@libdir@,$libdir,;t t
25665s,@includedir@,$includedir,;t t
25666s,@oldincludedir@,$oldincludedir,;t t
25667s,@infodir@,$infodir,;t t
25668s,@mandir@,$mandir,;t t
25669s,@build_alias@,$build_alias,;t t
25670s,@host_alias@,$host_alias,;t t
25671s,@target_alias@,$target_alias,;t t
25672s,@DEFS@,$DEFS,;t t
25673s,@ECHO_C@,$ECHO_C,;t t
25674s,@ECHO_N@,$ECHO_N,;t t
25675s,@ECHO_T@,$ECHO_T,;t t
25676s,@LIBS@,$LIBS,;t t
25677s,@CC@,$CC,;t t
25678s,@CFLAGS@,$CFLAGS,;t t
25679s,@LDFLAGS@,$LDFLAGS,;t t
25680s,@CPPFLAGS@,$CPPFLAGS,;t t
25681s,@ac_ct_CC@,$ac_ct_CC,;t t
25682s,@EXEEXT@,$EXEEXT,;t t
25683s,@OBJEXT@,$OBJEXT,;t t
25684s,@build@,$build,;t t
25685s,@build_cpu@,$build_cpu,;t t
25686s,@build_vendor@,$build_vendor,;t t
25687s,@build_os@,$build_os,;t t
25688s,@host@,$host,;t t
25689s,@host_cpu@,$host_cpu,;t t
25690s,@host_vendor@,$host_vendor,;t t
25691s,@host_os@,$host_os,;t t
25692s,@AWK@,$AWK,;t t
25693s,@CPP@,$CPP,;t t
25694s,@RANLIB@,$RANLIB,;t t
25695s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25696s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25697s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25698s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25699s,@AR@,$AR,;t t
25700s,@CAT@,$CAT,;t t
25701s,@KILL@,$KILL,;t t
25702s,@PERL@,$PERL,;t t
25703s,@SED@,$SED,;t t
25704s,@ENT@,$ENT,;t t
25705s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
25706s,@SH@,$SH,;t t
25707s,@TEST_SHELL@,$TEST_SHELL,;t t
25708s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t
25709s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t
25710s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t
25711s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
25712s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
25713s,@LD@,$LD,;t t
25714s,@EGREP@,$EGREP,;t t
25715s,@LIBWRAP@,$LIBWRAP,;t t
25716s,@LIBEDIT@,$LIBEDIT,;t t
25717s,@LIBPAM@,$LIBPAM,;t t
25718s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
25719s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
25720s,@PROG_LS@,$PROG_LS,;t t
25721s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
25722s,@PROG_ARP@,$PROG_ARP,;t t
25723s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
25724s,@PROG_JSTAT@,$PROG_JSTAT,;t t
25725s,@PROG_PS@,$PROG_PS,;t t
25726s,@PROG_SAR@,$PROG_SAR,;t t
25727s,@PROG_W@,$PROG_W,;t t
25728s,@PROG_WHO@,$PROG_WHO,;t t
25729s,@PROG_LAST@,$PROG_LAST,;t t
25730s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
25731s,@PROG_DF@,$PROG_DF,;t t
25732s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
25733s,@PROG_UPTIME@,$PROG_UPTIME,;t t
25734s,@PROG_IPCS@,$PROG_IPCS,;t t
25735s,@PROG_TAIL@,$PROG_TAIL,;t t
25736s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
25737s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
25738s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
25739s,@xauth_path@,$xauth_path,;t t
25740s,@STRIP_OPT@,$STRIP_OPT,;t t
25741s,@XAUTH_PATH@,$XAUTH_PATH,;t t
25742s,@NROFF@,$NROFF,;t t
25743s,@MANTYPE@,$MANTYPE,;t t
25744s,@mansubdir@,$mansubdir,;t t
25745s,@user_path@,$user_path,;t t
25746s,@piddir@,$piddir,;t t
25747s,@LIBOBJS@,$LIBOBJS,;t t
25748s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25749CEOF
25750
25751_ACEOF
25752
25753 cat >>$CONFIG_STATUS <<\_ACEOF
25754 # Split the substitutions into bite-sized pieces for seds with
25755 # small command number limits, like on Digital OSF/1 and HP-UX.
25756 ac_max_sed_lines=48
25757 ac_sed_frag=1 # Number of current file.
25758 ac_beg=1 # First line for current file.
25759 ac_end=$ac_max_sed_lines # Line after last line for current file.
25760 ac_more_lines=:
25761 ac_sed_cmds=
25762 while $ac_more_lines; do
25763 if test $ac_beg -gt 1; then
25764 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25765 else
25766 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25767 fi
25768 if test ! -s $tmp/subs.frag; then
25769 ac_more_lines=false
25770 else
25771 # The purpose of the label and of the branching condition is to
25772 # speed up the sed processing (if there are no `@' at all, there
25773 # is no need to browse any of the substitutions).
25774 # These are the two extra sed commands mentioned above.
25775 (echo ':t
25776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25777 if test -z "$ac_sed_cmds"; then
25778 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25779 else
25780 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25781 fi
25782 ac_sed_frag=`expr $ac_sed_frag + 1`
25783 ac_beg=$ac_end
25784 ac_end=`expr $ac_end + $ac_max_sed_lines`
25785 fi
25786 done
25787 if test -z "$ac_sed_cmds"; then
25788 ac_sed_cmds=cat
25789 fi
25790fi # test -n "$CONFIG_FILES"
25791
25792_ACEOF
25793cat >>$CONFIG_STATUS <<\_ACEOF
25794for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25796 case $ac_file in
25797 - | *:- | *:-:* ) # input from stdin
25798 cat >$tmp/stdin
25799 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25801 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25803 * ) ac_file_in=$ac_file.in ;;
25804 esac
25805
25806 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25807 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25808$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25809 X"$ac_file" : 'X\(//\)[^/]' \| \
25810 X"$ac_file" : 'X\(//\)$' \| \
25811 X"$ac_file" : 'X\(/\)' \| \
25812 . : '\(.\)' 2>/dev/null ||
25813echo X"$ac_file" |
25814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25816 /^X\(\/\/\)$/{ s//\1/; q; }
25817 /^X\(\/\).*/{ s//\1/; q; }
25818 s/.*/./; q'`
25819 { if $as_mkdir_p; then
25820 mkdir -p "$ac_dir"
25821 else
25822 as_dir="$ac_dir"
25823 as_dirs=
25824 while test ! -d "$as_dir"; do
25825 as_dirs="$as_dir $as_dirs"
25826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25828 X"$as_dir" : 'X\(//\)[^/]' \| \
25829 X"$as_dir" : 'X\(//\)$' \| \
25830 X"$as_dir" : 'X\(/\)' \| \
25831 . : '\(.\)' 2>/dev/null ||
25832echo X"$as_dir" |
25833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25835 /^X\(\/\/\)$/{ s//\1/; q; }
25836 /^X\(\/\).*/{ s//\1/; q; }
25837 s/.*/./; q'`
25838 done
25839 test ! -n "$as_dirs" || mkdir $as_dirs
25840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25842 { (exit 1); exit 1; }; }; }
25843
25844 ac_builddir=.
25845
25846if test "$ac_dir" != .; then
25847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25848 # A "../" for each directory in $ac_dir_suffix.
25849 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25850else
25851 ac_dir_suffix= ac_top_builddir=
25852fi
25853
25854case $srcdir in
25855 .) # No --srcdir option. We are building in place.
25856 ac_srcdir=.
25857 if test -z "$ac_top_builddir"; then
25858 ac_top_srcdir=.
25859 else
25860 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25861 fi ;;
25862 [\\/]* | ?:[\\/]* ) # Absolute path.
25863 ac_srcdir=$srcdir$ac_dir_suffix;
25864 ac_top_srcdir=$srcdir ;;
25865 *) # Relative path.
25866 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25867 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25868esac
25869
25870# Do not use `cd foo && pwd` to compute absolute paths, because
25871# the directories may not exist.
25872case `pwd` in
25873.) ac_abs_builddir="$ac_dir";;
25874*)
25875 case "$ac_dir" in
25876 .) ac_abs_builddir=`pwd`;;
25877 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25878 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25879 esac;;
25880esac
25881case $ac_abs_builddir in
25882.) ac_abs_top_builddir=${ac_top_builddir}.;;
25883*)
25884 case ${ac_top_builddir}. in
25885 .) ac_abs_top_builddir=$ac_abs_builddir;;
25886 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25887 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25888 esac;;
25889esac
25890case $ac_abs_builddir in
25891.) ac_abs_srcdir=$ac_srcdir;;
25892*)
25893 case $ac_srcdir in
25894 .) ac_abs_srcdir=$ac_abs_builddir;;
25895 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25896 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25897 esac;;
25898esac
25899case $ac_abs_builddir in
25900.) ac_abs_top_srcdir=$ac_top_srcdir;;
25901*)
25902 case $ac_top_srcdir in
25903 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25904 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25905 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25906 esac;;
25907esac
25908
25909
25910 case $INSTALL in
25911 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25912 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25913 esac
25914
25915 if test x"$ac_file" != x-; then
25916 { echo "$as_me:$LINENO: creating $ac_file" >&5
25917echo "$as_me: creating $ac_file" >&6;}
25918 rm -f "$ac_file"
25919 fi
25920 # Let's still pretend it is `configure' which instantiates (i.e., don't
25921 # use $as_me), people would be surprised to read:
25922 # /* config.h. Generated by config.status. */
25923 if test x"$ac_file" = x-; then
25924 configure_input=
25925 else
25926 configure_input="$ac_file. "
25927 fi
25928 configure_input=$configure_input"Generated from `echo $ac_file_in |
25929 sed 's,.*/,,'` by configure."
25930
25931 # First look for the input files in the build tree, otherwise in the
25932 # src tree.
25933 ac_file_inputs=`IFS=:
25934 for f in $ac_file_in; do
25935 case $f in
25936 -) echo $tmp/stdin ;;
25937 [\\/$]*)
25938 # Absolute (can't be DOS-style, as IFS=:)
25939 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25940echo "$as_me: error: cannot find input file: $f" >&2;}
25941 { (exit 1); exit 1; }; }
25942 echo "$f";;
25943 *) # Relative
25944 if test -f "$f"; then
25945 # Build tree
25946 echo "$f"
25947 elif test -f "$srcdir/$f"; then
25948 # Source tree
25949 echo "$srcdir/$f"
25950 else
25951 # /dev/null tree
25952 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25953echo "$as_me: error: cannot find input file: $f" >&2;}
25954 { (exit 1); exit 1; }; }
25955 fi;;
25956 esac
25957 done` || { (exit 1); exit 1; }
25958_ACEOF
25959cat >>$CONFIG_STATUS <<_ACEOF
25960 sed "$ac_vpsub
25961$extrasub
25962_ACEOF
25963cat >>$CONFIG_STATUS <<\_ACEOF
25964:t
25965/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25966s,@configure_input@,$configure_input,;t t
25967s,@srcdir@,$ac_srcdir,;t t
25968s,@abs_srcdir@,$ac_abs_srcdir,;t t
25969s,@top_srcdir@,$ac_top_srcdir,;t t
25970s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25971s,@builddir@,$ac_builddir,;t t
25972s,@abs_builddir@,$ac_abs_builddir,;t t
25973s,@top_builddir@,$ac_top_builddir,;t t
25974s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25975s,@INSTALL@,$ac_INSTALL,;t t
25976" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25977 rm -f $tmp/stdin
25978 if test x"$ac_file" != x-; then
25979 mv $tmp/out $ac_file
25980 else
25981 cat $tmp/out
25982 rm -f $tmp/out
25983 fi
25984
25985done
25986_ACEOF
25987cat >>$CONFIG_STATUS <<\_ACEOF
25988
25989#
25990# CONFIG_HEADER section.
25991#
25992
25993# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25994# NAME is the cpp macro being defined and VALUE is the value it is being given.
25995#
25996# ac_d sets the value in "#define NAME VALUE" lines.
25997ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25998ac_dB='[ ].*$,\1#\2'
25999ac_dC=' '
26000ac_dD=',;t'
26001# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26002ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26003ac_uB='$,\1#\2define\3'
26004ac_uC=' '
26005ac_uD=',;t'
26006
26007for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26009 case $ac_file in
26010 - | *:- | *:-:* ) # input from stdin
26011 cat >$tmp/stdin
26012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26016 * ) ac_file_in=$ac_file.in ;;
26017 esac
26018
26019 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26020echo "$as_me: creating $ac_file" >&6;}
26021
26022 # First look for the input files in the build tree, otherwise in the
26023 # src tree.
26024 ac_file_inputs=`IFS=:
26025 for f in $ac_file_in; do
26026 case $f in
26027 -) echo $tmp/stdin ;;
26028 [\\/$]*)
26029 # Absolute (can't be DOS-style, as IFS=:)
26030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26031echo "$as_me: error: cannot find input file: $f" >&2;}
26032 { (exit 1); exit 1; }; }
26033 # Do quote $f, to prevent DOS paths from being IFS'd.
26034 echo "$f";;
26035 *) # Relative
26036 if test -f "$f"; then
26037 # Build tree
26038 echo "$f"
26039 elif test -f "$srcdir/$f"; then
26040 # Source tree
26041 echo "$srcdir/$f"
26042 else
26043 # /dev/null tree
26044 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26045echo "$as_me: error: cannot find input file: $f" >&2;}
26046 { (exit 1); exit 1; }; }
26047 fi;;
26048 esac
26049 done` || { (exit 1); exit 1; }
26050 # Remove the trailing spaces.
26051 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26052
26053_ACEOF
26054
26055# Transform confdefs.h into two sed scripts, `conftest.defines' and
26056# `conftest.undefs', that substitutes the proper values into
26057# config.h.in to produce config.h. The first handles `#define'
26058# templates, and the second `#undef' templates.
26059# And first: Protect against being on the right side of a sed subst in
26060# config.status. Protect against being in an unquoted here document
26061# in config.status.
26062rm -f conftest.defines conftest.undefs
26063# Using a here document instead of a string reduces the quoting nightmare.
26064# Putting comments in sed scripts is not portable.
26065#
26066# `end' is used to avoid that the second main sed command (meant for
26067# 0-ary CPP macros) applies to n-ary macro definitions.
26068# See the Autoconf documentation for `clear'.
26069cat >confdef2sed.sed <<\_ACEOF
26070s/[\\&,]/\\&/g
26071s,[\\$`],\\&,g
26072t clear
26073: clear
26074s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26075t end
26076s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26077: end
26078_ACEOF
26079# If some macros were called several times there might be several times
26080# the same #defines, which is useless. Nevertheless, we may not want to
26081# sort them, since we want the *last* AC-DEFINE to be honored.
26082uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26083sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26084rm -f confdef2sed.sed
26085
26086# This sed command replaces #undef with comments. This is necessary, for
26087# example, in the case of _POSIX_SOURCE, which is predefined and required
26088# on some systems where configure will not decide to define it.
26089cat >>conftest.undefs <<\_ACEOF
26090s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26091_ACEOF
26092
26093# Break up conftest.defines because some shells have a limit on the size
26094# of here documents, and old seds have small limits too (100 cmds).
26095echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26096echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26097echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26098echo ' :' >>$CONFIG_STATUS
26099rm -f conftest.tail
26100while grep . conftest.defines >/dev/null
26101do
26102 # Write a limited-size here document to $tmp/defines.sed.
26103 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26104 # Speed up: don't consider the non `#define' lines.
26105 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26106 # Work around the forget-to-reset-the-flag bug.
26107 echo 't clr' >>$CONFIG_STATUS
26108 echo ': clr' >>$CONFIG_STATUS
26109 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26110 echo 'CEOF
26111 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26112 rm -f $tmp/in
26113 mv $tmp/out $tmp/in
26114' >>$CONFIG_STATUS
26115 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26116 rm -f conftest.defines
26117 mv conftest.tail conftest.defines
26118done
26119rm -f conftest.defines
26120echo ' fi # grep' >>$CONFIG_STATUS
26121echo >>$CONFIG_STATUS
26122
26123# Break up conftest.undefs because some shells have a limit on the size
26124# of here documents, and old seds have small limits too (100 cmds).
26125echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26126rm -f conftest.tail
26127while grep . conftest.undefs >/dev/null
26128do
26129 # Write a limited-size here document to $tmp/undefs.sed.
26130 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26131 # Speed up: don't consider the non `#undef'
26132 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26133 # Work around the forget-to-reset-the-flag bug.
26134 echo 't clr' >>$CONFIG_STATUS
26135 echo ': clr' >>$CONFIG_STATUS
26136 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26137 echo 'CEOF
26138 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26139 rm -f $tmp/in
26140 mv $tmp/out $tmp/in
26141' >>$CONFIG_STATUS
26142 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26143 rm -f conftest.undefs
26144 mv conftest.tail conftest.undefs
26145done
26146rm -f conftest.undefs
26147
26148cat >>$CONFIG_STATUS <<\_ACEOF
26149 # Let's still pretend it is `configure' which instantiates (i.e., don't
26150 # use $as_me), people would be surprised to read:
26151 # /* config.h. Generated by config.status. */
26152 if test x"$ac_file" = x-; then
26153 echo "/* Generated by configure. */" >$tmp/config.h
26154 else
26155 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26156 fi
26157 cat $tmp/in >>$tmp/config.h
26158 rm -f $tmp/in
26159 if test x"$ac_file" != x-; then
26160 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26161 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26162echo "$as_me: $ac_file is unchanged" >&6;}
26163 else
26164 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26165$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26166 X"$ac_file" : 'X\(//\)[^/]' \| \
26167 X"$ac_file" : 'X\(//\)$' \| \
26168 X"$ac_file" : 'X\(/\)' \| \
26169 . : '\(.\)' 2>/dev/null ||
26170echo X"$ac_file" |
26171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26173 /^X\(\/\/\)$/{ s//\1/; q; }
26174 /^X\(\/\).*/{ s//\1/; q; }
26175 s/.*/./; q'`
26176 { if $as_mkdir_p; then
26177 mkdir -p "$ac_dir"
26178 else
26179 as_dir="$ac_dir"
26180 as_dirs=
26181 while test ! -d "$as_dir"; do
26182 as_dirs="$as_dir $as_dirs"
26183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26184$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26185 X"$as_dir" : 'X\(//\)[^/]' \| \
26186 X"$as_dir" : 'X\(//\)$' \| \
26187 X"$as_dir" : 'X\(/\)' \| \
26188 . : '\(.\)' 2>/dev/null ||
26189echo X"$as_dir" |
26190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26192 /^X\(\/\/\)$/{ s//\1/; q; }
26193 /^X\(\/\).*/{ s//\1/; q; }
26194 s/.*/./; q'`
26195 done
26196 test ! -n "$as_dirs" || mkdir $as_dirs
26197 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26198echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26199 { (exit 1); exit 1; }; }; }
26200
26201 rm -f $ac_file
26202 mv $tmp/config.h $ac_file
26203 fi
26204 else
26205 cat $tmp/config.h
26206 rm -f $tmp/config.h
26207 fi
26208done
26209_ACEOF
26210
26211cat >>$CONFIG_STATUS <<\_ACEOF
26212
26213{ (exit 0); exit 0; }
26214_ACEOF
26215chmod +x $CONFIG_STATUS
26216ac_clean_files=$ac_clean_files_save
26217
26218
26219# configure is writing to config.log, and then calls config.status.
26220# config.status does its own redirection, appending to config.log.
26221# Unfortunately, on DOS this fails, as config.log is still kept open
26222# by configure, so config.status won't be able to write to it; its
26223# output is simply discarded. So we exec the FD to /dev/null,
26224# effectively closing config.log, so it can be properly (re)opened and
26225# appended to by config.status. When coming back to configure, we
26226# need to make the FD available again.
26227if test "$no_create" != yes; then
26228 ac_cs_success=:
26229 ac_config_status_args=
26230 test "$silent" = yes &&
26231 ac_config_status_args="$ac_config_status_args --quiet"
26232 exec 5>/dev/null
26233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26234 exec 5>>config.log
26235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26236 # would make configure fail if this is the last instruction.
26237 $ac_cs_success || { (exit 1); exit 1; }
26238fi
26239
26240
26241# Print summary of options
26242
26243# Someone please show me a better way :)
26244A=`eval echo ${prefix}` ; A=`eval echo ${A}`
26245B=`eval echo ${bindir}` ; B=`eval echo ${B}`
26246C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
26247D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
26248E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
26249F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
26250G=`eval echo ${piddir}` ; G=`eval echo ${G}`
26251H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
26252I=`eval echo ${user_path}` ; I=`eval echo ${I}`
26253J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
26254
26255echo ""
26256echo "OpenSSH has been configured with the following options:"
26257echo " User binaries: $B"
26258echo " System binaries: $C"
26259echo " Configuration files: $D"
26260echo " Askpass program: $E"
26261echo " Manual pages: $F"
26262echo " PID file: $G"
26263echo " Privilege separation chroot path: $H"
26264if test "x$external_path_file" = "x/etc/login.conf" ; then
26265echo " At runtime, sshd will use the path defined in $external_path_file"
26266echo " Make sure the path to scp is present, otherwise scp will not work"
26267else
26268echo " sshd default user PATH: $I"
26269 if test ! -z "$external_path_file"; then
26270echo " (If PATH is set in $external_path_file it will be used instead. If"
26271echo " used, ensure the path to scp is present, otherwise scp will not work.)"
26272 fi
26273fi
26274if test ! -z "$superuser_path" ; then
26275echo " sshd superuser user PATH: $J"
26276fi
26277echo " Manpage format: $MANTYPE"
26278echo " PAM support: $PAM_MSG"
26279echo " KerberosV support: $KRB5_MSG"
26280echo " Smartcard support: $SCARD_MSG"
26281echo " S/KEY support: $SKEY_MSG"
26282echo " TCP Wrappers support: $TCPW_MSG"
26283echo " MD5 password support: $MD5_MSG"
26284echo " libedit support: $LIBEDIT_MSG"
26285echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
26286echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
26287echo " BSD Auth support: $BSD_AUTH_MSG"
26288echo " Random number source: $RAND_MSG"
26289if test ! -z "$USE_RAND_HELPER" ; then
26290echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
26291fi
26292
26293echo ""
26294
26295echo " Host: ${host}"
26296echo " Compiler: ${CC}"
26297echo " Compiler flags: ${CFLAGS}"
26298echo "Preprocessor flags: ${CPPFLAGS}"
26299echo " Linker flags: ${LDFLAGS}"
26300echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
26301
26302echo ""
26303
26304if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
26305 echo "SVR4 style packages are supported with \"make package\""
26306 echo ""
26307fi
26308
26309if test "x$PAM_MSG" = "xyes" ; then
26310 echo "PAM is enabled. You may need to install a PAM control file "
26311 echo "for sshd, otherwise password authentication may fail. "
26312 echo "Example PAM control files can be found in the contrib/ "
26313 echo "subdirectory"
26314 echo ""
26315fi
26316
26317if test ! -z "$RAND_HELPER_CMDHASH" ; then
26318 echo "WARNING: you are using the builtin random number collection "
26319 echo "service. Please read WARNING.RNG and request that your OS "
26320 echo "vendor includes kernel-based random number collection in "
26321 echo "future versions of your OS."
26322 echo ""
26323fi
26324
26325if test ! -z "$NO_PEERCHECK" ; then
26326 echo "WARNING: the operating system that you are using does not "
26327 echo "appear to support either the getpeereid() API nor the "
26328 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
26329 echo "enforce security checks to prevent unauthorised connections to "
26330 echo "ssh-agent. Their absence increases the risk that a malicious "
26331 echo "user can connect to your agent. "
26332 echo ""
26333fi
26334
26335if test "$AUDIT_MODULE" = "bsm" ; then
26336 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
26337 echo "See the Solaris section in README.platform for details."
26338fi