summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-03-10 00:24:57 +0000
committerColin Watson <cjwatson@debian.org>2005-03-10 00:24:57 +0000
commit5d05471f6657646d1d6500c7c43134462c407ee6 (patch)
treec142ff8a5b1fcb1c671ba8c6f023746191124d39 /configure
parent485bab886137bbf8b7ec8df82bd66dc6e5654371 (diff)
parentebd2ce335af5861020c79fddb1ae35c03bf036cf (diff)
Import OpenSSH 4.0p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26215
1 files changed, 26215 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..1bf7b0b0b
--- /dev/null
+++ b/configure
@@ -0,0 +1,26215 @@
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
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
4646
4647
4648 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
4649echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
4650if test "${ac_cv_have_decl_loginfailed+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
4659#include <usersec.h>
4660
4661
4662int
4663main ()
4664{
4665#ifndef loginfailed
4666 char *p = (char *) loginfailed;
4667#endif
4668
4669 ;
4670 return 0;
4671}
4672_ACEOF
4673rm -f conftest.$ac_objext
4674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag"
4683 || test ! -s conftest.err'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; } &&
4689 { ac_try='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_have_decl_loginfailed=yes
4696else
4697 echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700ac_cv_have_decl_loginfailed=no
4701fi
4702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4703fi
4704echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
4705echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
4706if test $ac_cv_have_decl_loginfailed = yes; then
4707
4708cat >>confdefs.h <<_ACEOF
4709#define HAVE_DECL_LOGINFAILED 1
4710_ACEOF
4711
4712echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
4713echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h. */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h. */
4720#include <usersec.h>
4721int
4722main ()
4723{
4724(void)loginfailed("user","host","tty",0);
4725 ;
4726 return 0;
4727}
4728_ACEOF
4729rm -f conftest.$ac_objext
4730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
4753 cat >>confdefs.h <<\_ACEOF
4754#define AIX_LOGINFAILED_4ARG 1
4755_ACEOF
4756
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763
4764fi
4765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766else
4767 cat >>confdefs.h <<_ACEOF
4768#define HAVE_DECL_LOGINFAILED 0
4769_ACEOF
4770
4771
4772fi
4773
4774
4775
4776for ac_func in setauthdb
4777do
4778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4779echo "$as_me:$LINENO: checking for $ac_func" >&5
4780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4781if eval "test \"\${$as_ac_var+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 cat >conftest.$ac_ext <<_ACEOF
4785/* confdefs.h. */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h. */
4790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4792#define $ac_func innocuous_$ac_func
4793
4794/* System header to define __stub macros and hopefully few prototypes,
4795 which can conflict with char $ac_func (); below.
4796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 <limits.h> exists even on freestanding compilers. */
4798
4799#ifdef __STDC__
4800# include <limits.h>
4801#else
4802# include <assert.h>
4803#endif
4804
4805#undef $ac_func
4806
4807/* Override any gcc2 internal prototype to avoid an error. */
4808#ifdef __cplusplus
4809extern "C"
4810{
4811#endif
4812/* We use char because int might match the return type of a gcc2
4813 builtin and then its argument prototype would still apply. */
4814char $ac_func ();
4815/* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
4818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4819choke me
4820#else
4821char (*f) () = $ac_func;
4822#endif
4823#ifdef __cplusplus
4824}
4825#endif
4826
4827int
4828main ()
4829{
4830return f != $ac_func;
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835rm -f conftest.$ac_objext conftest$ac_exeext
4836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837 (eval $ac_link) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest$ac_exeext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 eval "$as_ac_var=yes"
4858else
4859 echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862eval "$as_ac_var=no"
4863fi
4864rm -f conftest.err conftest.$ac_objext \
4865 conftest$ac_exeext conftest.$ac_ext
4866fi
4867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4868echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4869if test `eval echo '${'$as_ac_var'}'` = yes; then
4870 cat >>confdefs.h <<_ACEOF
4871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4872_ACEOF
4873
4874fi
4875done
4876
4877 check_for_aix_broken_getaddrinfo=1
4878 cat >>confdefs.h <<\_ACEOF
4879#define BROKEN_REALPATH 1
4880_ACEOF
4881
4882 cat >>confdefs.h <<\_ACEOF
4883#define SETEUID_BREAKS_SETUID 1
4884_ACEOF
4885
4886 cat >>confdefs.h <<\_ACEOF
4887#define BROKEN_SETREUID 1
4888_ACEOF
4889
4890 cat >>confdefs.h <<\_ACEOF
4891#define BROKEN_SETREGID 1
4892_ACEOF
4893
4894 cat >>confdefs.h <<\_ACEOF
4895#define DISABLE_LASTLOG 1
4896_ACEOF
4897
4898 cat >>confdefs.h <<\_ACEOF
4899#define LOGIN_NEEDS_UTMPX 1
4900_ACEOF
4901
4902 cat >>confdefs.h <<\_ACEOF
4903#define SPT_TYPE SPT_REUSEARGV
4904_ACEOF
4905
4906 ;;
4907*-*-cygwin*)
4908 check_for_libcrypt_later=1
4909 LIBS="$LIBS /usr/lib/textmode.o"
4910 cat >>confdefs.h <<\_ACEOF
4911#define HAVE_CYGWIN 1
4912_ACEOF
4913
4914 cat >>confdefs.h <<\_ACEOF
4915#define USE_PIPES 1
4916_ACEOF
4917
4918 cat >>confdefs.h <<\_ACEOF
4919#define DISABLE_SHADOW 1
4920_ACEOF
4921
4922 cat >>confdefs.h <<\_ACEOF
4923#define IP_TOS_IS_BROKEN 1
4924_ACEOF
4925
4926 cat >>confdefs.h <<\_ACEOF
4927#define NO_X11_UNIX_SOCKETS 1
4928_ACEOF
4929
4930 cat >>confdefs.h <<\_ACEOF
4931#define NO_IPPORT_RESERVED_CONCEPT 1
4932_ACEOF
4933
4934 cat >>confdefs.h <<\_ACEOF
4935#define DISABLE_FD_PASSING 1
4936_ACEOF
4937
4938 ;;
4939*-*-dgux*)
4940 cat >>confdefs.h <<\_ACEOF
4941#define IP_TOS_IS_BROKEN 1
4942_ACEOF
4943
4944 cat >>confdefs.h <<\_ACEOF
4945#define SETEUID_BREAKS_SETUID 1
4946_ACEOF
4947
4948 cat >>confdefs.h <<\_ACEOF
4949#define BROKEN_SETREUID 1
4950_ACEOF
4951
4952 cat >>confdefs.h <<\_ACEOF
4953#define BROKEN_SETREGID 1
4954_ACEOF
4955
4956 ;;
4957*-*-darwin*)
4958 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
4959echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
4960 if test "$cross_compiling" = yes; then
4961 echo "$as_me:$LINENO: result: assume it is working" >&5
4962echo "${ECHO_T}assume it is working" >&6
4963else
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#include <mach-o/dyld.h>
4971main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
4972 exit(0);
4973 else
4974 exit(1);
4975}
4976_ACEOF
4977rm -f conftest$ac_exeext
4978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 echo "$as_me:$LINENO: result: working" >&5
4989echo "${ECHO_T}working" >&6
4990else
4991 echo "$as_me: program exited with status $ac_status" >&5
4992echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
4995( exit $ac_status )
4996echo "$as_me:$LINENO: result: buggy" >&5
4997echo "${ECHO_T}buggy" >&6
4998 cat >>confdefs.h <<\_ACEOF
4999#define BROKEN_GETADDRINFO 1
5000_ACEOF
5001
5002fi
5003rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5004fi
5005 cat >>confdefs.h <<\_ACEOF
5006#define SETEUID_BREAKS_SETUID 1
5007_ACEOF
5008
5009 cat >>confdefs.h <<\_ACEOF
5010#define BROKEN_SETREUID 1
5011_ACEOF
5012
5013 cat >>confdefs.h <<\_ACEOF
5014#define BROKEN_SETREGID 1
5015_ACEOF
5016
5017 cat >>confdefs.h <<_ACEOF
5018#define BIND_8_COMPAT 1
5019_ACEOF
5020
5021 ;;
5022*-*-hpux10.26)
5023 if test -z "$GCC"; then
5024 CFLAGS="$CFLAGS -Ae"
5025 fi
5026 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5027 IPADDR_IN_DISPLAY=yes
5028 cat >>confdefs.h <<\_ACEOF
5029#define HAVE_SECUREWARE 1
5030_ACEOF
5031
5032 cat >>confdefs.h <<\_ACEOF
5033#define USE_PIPES 1
5034_ACEOF
5035
5036 cat >>confdefs.h <<\_ACEOF
5037#define LOGIN_NO_ENDOPT 1
5038_ACEOF
5039
5040 cat >>confdefs.h <<\_ACEOF
5041#define LOGIN_NEEDS_UTMPX 1
5042_ACEOF
5043
5044 cat >>confdefs.h <<\_ACEOF
5045#define LOCKED_PASSWD_STRING "*"
5046_ACEOF
5047
5048 cat >>confdefs.h <<\_ACEOF
5049#define SPT_TYPE SPT_PSTAT
5050_ACEOF
5051
5052 LIBS="$LIBS -lsec -lsecpw"
5053
5054echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5055echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5056if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059 ac_check_lib_save_LIBS=$LIBS
5060LIBS="-lxnet $LIBS"
5061cat >conftest.$ac_ext <<_ACEOF
5062/* confdefs.h. */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h. */
5067
5068/* Override any gcc2 internal prototype to avoid an error. */
5069#ifdef __cplusplus
5070extern "C"
5071#endif
5072/* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074char t_error ();
5075int
5076main ()
5077{
5078t_error ();
5079 ;
5080 return 0;
5081}
5082_ACEOF
5083rm -f conftest.$ac_objext conftest$ac_exeext
5084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085 (eval $ac_link) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest$ac_exeext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_lib_xnet_t_error=yes
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110ac_cv_lib_xnet_t_error=no
5111fi
5112rm -f conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5114LIBS=$ac_check_lib_save_LIBS
5115fi
5116echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5117echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5118if test $ac_cv_lib_xnet_t_error = yes; then
5119 cat >>confdefs.h <<_ACEOF
5120#define HAVE_LIBXNET 1
5121_ACEOF
5122
5123 LIBS="-lxnet $LIBS"
5124
5125else
5126 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5127echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5128 { (exit 1); exit 1; }; }
5129fi
5130
5131 disable_ptmx_check=yes
5132 ;;
5133*-*-hpux10*)
5134 if test -z "$GCC"; then
5135 CFLAGS="$CFLAGS -Ae"
5136 fi
5137 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5138 IPADDR_IN_DISPLAY=yes
5139 cat >>confdefs.h <<\_ACEOF
5140#define USE_PIPES 1
5141_ACEOF
5142
5143 cat >>confdefs.h <<\_ACEOF
5144#define LOGIN_NO_ENDOPT 1
5145_ACEOF
5146
5147 cat >>confdefs.h <<\_ACEOF
5148#define LOGIN_NEEDS_UTMPX 1
5149_ACEOF
5150
5151 cat >>confdefs.h <<\_ACEOF
5152#define LOCKED_PASSWD_STRING "*"
5153_ACEOF
5154
5155 cat >>confdefs.h <<\_ACEOF
5156#define SPT_TYPE SPT_PSTAT
5157_ACEOF
5158
5159 LIBS="$LIBS -lsec"
5160
5161echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5162echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5163if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lxnet $LIBS"
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174
5175/* Override any gcc2 internal prototype to avoid an error. */
5176#ifdef __cplusplus
5177extern "C"
5178#endif
5179/* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181char t_error ();
5182int
5183main ()
5184{
5185t_error ();
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190rm -f conftest.$ac_objext conftest$ac_exeext
5191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest$ac_exeext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_lib_xnet_t_error=yes
5213else
5214 echo "$as_me: failed program was:" >&5
5215sed 's/^/| /' conftest.$ac_ext >&5
5216
5217ac_cv_lib_xnet_t_error=no
5218fi
5219rm -f conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5221LIBS=$ac_check_lib_save_LIBS
5222fi
5223echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5224echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5225if test $ac_cv_lib_xnet_t_error = yes; then
5226 cat >>confdefs.h <<_ACEOF
5227#define HAVE_LIBXNET 1
5228_ACEOF
5229
5230 LIBS="-lxnet $LIBS"
5231
5232else
5233 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5234echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5235 { (exit 1); exit 1; }; }
5236fi
5237
5238 ;;
5239*-*-hpux11*)
5240 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5241 IPADDR_IN_DISPLAY=yes
5242 cat >>confdefs.h <<\_ACEOF
5243#define PAM_SUN_CODEBASE 1
5244_ACEOF
5245
5246 cat >>confdefs.h <<\_ACEOF
5247#define USE_PIPES 1
5248_ACEOF
5249
5250 cat >>confdefs.h <<\_ACEOF
5251#define LOGIN_NO_ENDOPT 1
5252_ACEOF
5253
5254 cat >>confdefs.h <<\_ACEOF
5255#define LOGIN_NEEDS_UTMPX 1
5256_ACEOF
5257
5258 cat >>confdefs.h <<\_ACEOF
5259#define DISABLE_UTMP 1
5260_ACEOF
5261
5262 cat >>confdefs.h <<\_ACEOF
5263#define LOCKED_PASSWD_STRING "*"
5264_ACEOF
5265
5266 cat >>confdefs.h <<\_ACEOF
5267#define SPT_TYPE SPT_PSTAT
5268_ACEOF
5269
5270
5271cat >>confdefs.h <<\_ACEOF
5272#define USE_BTMP 1
5273_ACEOF
5274
5275 check_for_hpux_broken_getaddrinfo=1
5276 check_for_conflicting_getspnam=1
5277 LIBS="$LIBS -lsec"
5278
5279echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5280echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5281if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 ac_check_lib_save_LIBS=$LIBS
5285LIBS="-lxnet $LIBS"
5286cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292
5293/* Override any gcc2 internal prototype to avoid an error. */
5294#ifdef __cplusplus
5295extern "C"
5296#endif
5297/* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5299char t_error ();
5300int
5301main ()
5302{
5303t_error ();
5304 ;
5305 return 0;
5306}
5307_ACEOF
5308rm -f conftest.$ac_objext conftest$ac_exeext
5309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_lib_xnet_t_error=yes
5331else
5332 echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335ac_cv_lib_xnet_t_error=no
5336fi
5337rm -f conftest.err conftest.$ac_objext \
5338 conftest$ac_exeext conftest.$ac_ext
5339LIBS=$ac_check_lib_save_LIBS
5340fi
5341echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5342echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5343if test $ac_cv_lib_xnet_t_error = yes; then
5344 cat >>confdefs.h <<_ACEOF
5345#define HAVE_LIBXNET 1
5346_ACEOF
5347
5348 LIBS="-lxnet $LIBS"
5349
5350else
5351 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5352echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5353 { (exit 1); exit 1; }; }
5354fi
5355
5356 ;;
5357*-*-irix5*)
5358 PATH="$PATH:/usr/etc"
5359 cat >>confdefs.h <<\_ACEOF
5360#define BROKEN_INET_NTOA 1
5361_ACEOF
5362
5363 cat >>confdefs.h <<\_ACEOF
5364#define SETEUID_BREAKS_SETUID 1
5365_ACEOF
5366
5367 cat >>confdefs.h <<\_ACEOF
5368#define BROKEN_SETREUID 1
5369_ACEOF
5370
5371 cat >>confdefs.h <<\_ACEOF
5372#define BROKEN_SETREGID 1
5373_ACEOF
5374
5375 cat >>confdefs.h <<\_ACEOF
5376#define WITH_ABBREV_NO_TTY 1
5377_ACEOF
5378
5379 cat >>confdefs.h <<\_ACEOF
5380#define LOCKED_PASSWD_STRING "*LK*"
5381_ACEOF
5382
5383 ;;
5384*-*-irix6*)
5385 PATH="$PATH:/usr/etc"
5386 cat >>confdefs.h <<\_ACEOF
5387#define WITH_IRIX_ARRAY 1
5388_ACEOF
5389
5390 cat >>confdefs.h <<\_ACEOF
5391#define WITH_IRIX_PROJECT 1
5392_ACEOF
5393
5394 cat >>confdefs.h <<\_ACEOF
5395#define WITH_IRIX_AUDIT 1
5396_ACEOF
5397
5398 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
5399echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
5400if test "${ac_cv_func_jlimit_startjob+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
5409/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
5410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5411#define jlimit_startjob innocuous_jlimit_startjob
5412
5413/* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char jlimit_startjob (); below.
5415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 <limits.h> exists even on freestanding compilers. */
5417
5418#ifdef __STDC__
5419# include <limits.h>
5420#else
5421# include <assert.h>
5422#endif
5423
5424#undef jlimit_startjob
5425
5426/* Override any gcc2 internal prototype to avoid an error. */
5427#ifdef __cplusplus
5428extern "C"
5429{
5430#endif
5431/* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5433char jlimit_startjob ();
5434/* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
5438choke me
5439#else
5440char (*f) () = jlimit_startjob;
5441#endif
5442#ifdef __cplusplus
5443}
5444#endif
5445
5446int
5447main ()
5448{
5449return f != jlimit_startjob;
5450 ;
5451 return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext conftest$ac_exeext
5455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456 (eval $ac_link) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_c_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_func_jlimit_startjob=yes
5477else
5478 echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481ac_cv_func_jlimit_startjob=no
5482fi
5483rm -f conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485fi
5486echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
5487echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
5488if test $ac_cv_func_jlimit_startjob = yes; then
5489 cat >>confdefs.h <<\_ACEOF
5490#define WITH_IRIX_JOBS 1
5491_ACEOF
5492
5493fi
5494
5495 cat >>confdefs.h <<\_ACEOF
5496#define BROKEN_INET_NTOA 1
5497_ACEOF
5498
5499 cat >>confdefs.h <<\_ACEOF
5500#define SETEUID_BREAKS_SETUID 1
5501_ACEOF
5502
5503 cat >>confdefs.h <<\_ACEOF
5504#define BROKEN_SETREUID 1
5505_ACEOF
5506
5507 cat >>confdefs.h <<\_ACEOF
5508#define BROKEN_SETREGID 1
5509_ACEOF
5510
5511 cat >>confdefs.h <<\_ACEOF
5512#define BROKEN_UPDWTMPX 1
5513_ACEOF
5514
5515 cat >>confdefs.h <<\_ACEOF
5516#define WITH_ABBREV_NO_TTY 1
5517_ACEOF
5518
5519 cat >>confdefs.h <<\_ACEOF
5520#define LOCKED_PASSWD_STRING "*LK*"
5521_ACEOF
5522
5523 ;;
5524*-*-linux*)
5525 no_dev_ptmx=1
5526 check_for_libcrypt_later=1
5527 check_for_openpty_ctty_bug=1
5528 cat >>confdefs.h <<\_ACEOF
5529#define DONT_TRY_OTHER_AF 1
5530_ACEOF
5531
5532 cat >>confdefs.h <<\_ACEOF
5533#define PAM_TTY_KLUDGE 1
5534_ACEOF
5535
5536 cat >>confdefs.h <<\_ACEOF
5537#define LOCKED_PASSWD_PREFIX "!"
5538_ACEOF
5539
5540 cat >>confdefs.h <<\_ACEOF
5541#define SPT_TYPE SPT_REUSEARGV
5542_ACEOF
5543
5544 cat >>confdefs.h <<\_ACEOF
5545#define LINK_OPNOTSUPP_ERRNO EPERM
5546_ACEOF
5547
5548
5549cat >>confdefs.h <<\_ACEOF
5550#define _PATH_BTMP "/var/log/btmp"
5551_ACEOF
5552
5553
5554cat >>confdefs.h <<\_ACEOF
5555#define USE_BTMP 1
5556_ACEOF
5557
5558 inet6_default_4in6=yes
5559 case `uname -r` in
5560 1.*|2.0.*)
5561 cat >>confdefs.h <<\_ACEOF
5562#define BROKEN_CMSG_TYPE 1
5563_ACEOF
5564
5565 ;;
5566 esac
5567 ;;
5568mips-sony-bsd|mips-sony-newsos4)
5569 cat >>confdefs.h <<\_ACEOF
5570#define HAVE_NEWS4 1
5571_ACEOF
5572
5573 SONY=1
5574 ;;
5575*-*-netbsd*)
5576 check_for_libcrypt_before=1
5577 if test "x$withval" != "xno" ; then
5578 need_dash_r=1
5579 fi
5580 ;;
5581*-*-freebsd*)
5582 check_for_libcrypt_later=1
5583 ;;
5584*-*-bsdi*)
5585 cat >>confdefs.h <<\_ACEOF
5586#define SETEUID_BREAKS_SETUID 1
5587_ACEOF
5588
5589 cat >>confdefs.h <<\_ACEOF
5590#define BROKEN_SETREUID 1
5591_ACEOF
5592
5593 cat >>confdefs.h <<\_ACEOF
5594#define BROKEN_SETREGID 1
5595_ACEOF
5596
5597 ;;
5598*-next-*)
5599 conf_lastlog_location="/usr/adm/lastlog"
5600 conf_utmp_location=/etc/utmp
5601 conf_wtmp_location=/usr/adm/wtmp
5602 MAIL=/usr/spool/mail
5603 cat >>confdefs.h <<\_ACEOF
5604#define HAVE_NEXT 1
5605_ACEOF
5606
5607 cat >>confdefs.h <<\_ACEOF
5608#define BROKEN_REALPATH 1
5609_ACEOF
5610
5611 cat >>confdefs.h <<\_ACEOF
5612#define USE_PIPES 1
5613_ACEOF
5614
5615 cat >>confdefs.h <<\_ACEOF
5616#define BROKEN_SAVED_UIDS 1
5617_ACEOF
5618
5619 ;;
5620*-*-solaris*)
5621 if test "x$withval" != "xno" ; then
5622 need_dash_r=1
5623 fi
5624 cat >>confdefs.h <<\_ACEOF
5625#define PAM_SUN_CODEBASE 1
5626_ACEOF
5627
5628 cat >>confdefs.h <<\_ACEOF
5629#define LOGIN_NEEDS_UTMPX 1
5630_ACEOF
5631
5632 cat >>confdefs.h <<\_ACEOF
5633#define LOGIN_NEEDS_TERM 1
5634_ACEOF
5635
5636 cat >>confdefs.h <<\_ACEOF
5637#define PAM_TTY_KLUDGE 1
5638_ACEOF
5639
5640 cat >>confdefs.h <<\_ACEOF
5641#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
5642_ACEOF
5643
5644 cat >>confdefs.h <<\_ACEOF
5645#define LOCKED_PASSWD_STRING "*LK*"
5646_ACEOF
5647
5648 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
5649 cat >>confdefs.h <<\_ACEOF
5650#define SSHD_ACQUIRES_CTTY 1
5651_ACEOF
5652
5653 external_path_file=/etc/default/login
5654 # hardwire lastlog location (can't detect it on some versions)
5655 conf_lastlog_location="/var/adm/lastlog"
5656 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
5657echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
5658 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
5659 if test "$sol2ver" -ge 8; then
5660 echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6
5662 cat >>confdefs.h <<\_ACEOF
5663#define DISABLE_UTMP 1
5664_ACEOF
5665
5666 cat >>confdefs.h <<\_ACEOF
5667#define DISABLE_WTMP 1
5668_ACEOF
5669
5670 else
5671 echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673 fi
5674 ;;
5675*-*-sunos4*)
5676 CPPFLAGS="$CPPFLAGS -DSUNOS4"
5677
5678for ac_func in getpwanam
5679do
5680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5681echo "$as_me:$LINENO: checking for $ac_func" >&5
5682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5683if eval "test \"\${$as_ac_var+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h. */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h. */
5692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5694#define $ac_func innocuous_$ac_func
5695
5696/* System header to define __stub macros and hopefully few prototypes,
5697 which can conflict with char $ac_func (); below.
5698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 <limits.h> exists even on freestanding compilers. */
5700
5701#ifdef __STDC__
5702# include <limits.h>
5703#else
5704# include <assert.h>
5705#endif
5706
5707#undef $ac_func
5708
5709/* Override any gcc2 internal prototype to avoid an error. */
5710#ifdef __cplusplus
5711extern "C"
5712{
5713#endif
5714/* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716char $ac_func ();
5717/* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5721choke me
5722#else
5723char (*f) () = $ac_func;
5724#endif
5725#ifdef __cplusplus
5726}
5727#endif
5728
5729int
5730main ()
5731{
5732return f != $ac_func;
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext conftest$ac_exeext
5738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 eval "$as_ac_var=yes"
5760else
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764eval "$as_ac_var=no"
5765fi
5766rm -f conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768fi
5769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5771if test `eval echo '${'$as_ac_var'}'` = yes; then
5772 cat >>confdefs.h <<_ACEOF
5773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5774_ACEOF
5775
5776fi
5777done
5778
5779 cat >>confdefs.h <<\_ACEOF
5780#define PAM_SUN_CODEBASE 1
5781_ACEOF
5782
5783 conf_utmp_location=/etc/utmp
5784 conf_wtmp_location=/var/adm/wtmp
5785 conf_lastlog_location=/var/adm/lastlog
5786 cat >>confdefs.h <<\_ACEOF
5787#define USE_PIPES 1
5788_ACEOF
5789
5790 ;;
5791*-ncr-sysv*)
5792 LIBS="$LIBS -lc89"
5793 cat >>confdefs.h <<\_ACEOF
5794#define USE_PIPES 1
5795_ACEOF
5796
5797 cat >>confdefs.h <<\_ACEOF
5798#define SSHD_ACQUIRES_CTTY 1
5799_ACEOF
5800
5801 cat >>confdefs.h <<\_ACEOF
5802#define SETEUID_BREAKS_SETUID 1
5803_ACEOF
5804
5805 cat >>confdefs.h <<\_ACEOF
5806#define BROKEN_SETREUID 1
5807_ACEOF
5808
5809 cat >>confdefs.h <<\_ACEOF
5810#define BROKEN_SETREGID 1
5811_ACEOF
5812
5813 ;;
5814*-sni-sysv*)
5815 # /usr/ucblib MUST NOT be searched on ReliantUNIX
5816
5817echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
5818echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5819if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 ac_check_lib_save_LIBS=$LIBS
5823LIBS="-ldl $LIBS"
5824cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830
5831/* Override any gcc2 internal prototype to avoid an error. */
5832#ifdef __cplusplus
5833extern "C"
5834#endif
5835/* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5837char dlsym ();
5838int
5839main ()
5840{
5841dlsym ();
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext conftest$ac_exeext
5847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_lib_dl_dlsym=yes
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873ac_cv_lib_dl_dlsym=no
5874fi
5875rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877LIBS=$ac_check_lib_save_LIBS
5878fi
5879echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
5880echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5881if test $ac_cv_lib_dl_dlsym = yes; then
5882 cat >>confdefs.h <<_ACEOF
5883#define HAVE_LIBDL 1
5884_ACEOF
5885
5886 LIBS="-ldl $LIBS"
5887
5888fi
5889
5890 # -lresolv needs to be at then end of LIBS or DNS lookups break
5891 echo "$as_me:$LINENO: checking for resolv in -lres_query" >&5
5892echo $ECHO_N "checking for resolv in -lres_query... $ECHO_C" >&6
5893if test "${ac_cv_lib_res_query_resolv+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895else
5896 ac_check_lib_save_LIBS=$LIBS
5897LIBS="-lres_query $LIBS"
5898cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
5904
5905/* Override any gcc2 internal prototype to avoid an error. */
5906#ifdef __cplusplus
5907extern "C"
5908#endif
5909/* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5911char resolv ();
5912int
5913main ()
5914{
5915resolv ();
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext conftest$ac_exeext
5921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922 (eval $ac_link) 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_lib_res_query_resolv=yes
5943else
5944 echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947ac_cv_lib_res_query_resolv=no
5948fi
5949rm -f conftest.err conftest.$ac_objext \
5950 conftest$ac_exeext conftest.$ac_ext
5951LIBS=$ac_check_lib_save_LIBS
5952fi
5953echo "$as_me:$LINENO: result: $ac_cv_lib_res_query_resolv" >&5
5954echo "${ECHO_T}$ac_cv_lib_res_query_resolv" >&6
5955if test $ac_cv_lib_res_query_resolv = yes; then
5956 LIBS="$LIBS -lresolv"
5957fi
5958
5959 IPADDR_IN_DISPLAY=yes
5960 cat >>confdefs.h <<\_ACEOF
5961#define USE_PIPES 1
5962_ACEOF
5963
5964 cat >>confdefs.h <<\_ACEOF
5965#define IP_TOS_IS_BROKEN 1
5966_ACEOF
5967
5968 cat >>confdefs.h <<\_ACEOF
5969#define SETEUID_BREAKS_SETUID 1
5970_ACEOF
5971
5972 cat >>confdefs.h <<\_ACEOF
5973#define BROKEN_SETREUID 1
5974_ACEOF
5975
5976 cat >>confdefs.h <<\_ACEOF
5977#define BROKEN_SETREGID 1
5978_ACEOF
5979
5980 cat >>confdefs.h <<\_ACEOF
5981#define SSHD_ACQUIRES_CTTY 1
5982_ACEOF
5983
5984 external_path_file=/etc/default/login
5985 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
5986 # Attention: always take care to bind libsocket and libnsl before libc,
5987 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
5988 ;;
5989# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
5990*-*-sysv4.2*)
5991 cat >>confdefs.h <<\_ACEOF
5992#define USE_PIPES 1
5993_ACEOF
5994
5995 cat >>confdefs.h <<\_ACEOF
5996#define SETEUID_BREAKS_SETUID 1
5997_ACEOF
5998
5999 cat >>confdefs.h <<\_ACEOF
6000#define BROKEN_SETREUID 1
6001_ACEOF
6002
6003 cat >>confdefs.h <<\_ACEOF
6004#define BROKEN_SETREGID 1
6005_ACEOF
6006
6007 ;;
6008# UnixWare 7.x, OpenUNIX 8
6009*-*-sysv5*)
6010 cat >>confdefs.h <<\_ACEOF
6011#define USE_PIPES 1
6012_ACEOF
6013
6014 cat >>confdefs.h <<\_ACEOF
6015#define SETEUID_BREAKS_SETUID 1
6016_ACEOF
6017
6018 cat >>confdefs.h <<\_ACEOF
6019#define BROKEN_SETREUID 1
6020_ACEOF
6021
6022 cat >>confdefs.h <<\_ACEOF
6023#define BROKEN_SETREGID 1
6024_ACEOF
6025
6026 ;;
6027*-*-sysv*)
6028 ;;
6029# SCO UNIX and OEM versions of SCO UNIX
6030*-*-sco3.2v4*)
6031 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
6032echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
6033 { (exit 1); exit 1; }; }
6034 ;;
6035# SCO OpenServer 5.x
6036*-*-sco3.2v5*)
6037 if test -z "$GCC"; then
6038 CFLAGS="$CFLAGS -belf"
6039 fi
6040 LIBS="$LIBS -lprot -lx -ltinfo -lm"
6041 no_dev_ptmx=1
6042 cat >>confdefs.h <<\_ACEOF
6043#define USE_PIPES 1
6044_ACEOF
6045
6046 cat >>confdefs.h <<\_ACEOF
6047#define HAVE_SECUREWARE 1
6048_ACEOF
6049
6050 cat >>confdefs.h <<\_ACEOF
6051#define DISABLE_SHADOW 1
6052_ACEOF
6053
6054 cat >>confdefs.h <<\_ACEOF
6055#define DISABLE_FD_PASSING 1
6056_ACEOF
6057
6058 cat >>confdefs.h <<\_ACEOF
6059#define SETEUID_BREAKS_SETUID 1
6060_ACEOF
6061
6062 cat >>confdefs.h <<\_ACEOF
6063#define BROKEN_SETREUID 1
6064_ACEOF
6065
6066 cat >>confdefs.h <<\_ACEOF
6067#define BROKEN_SETREGID 1
6068_ACEOF
6069
6070 cat >>confdefs.h <<\_ACEOF
6071#define WITH_ABBREV_NO_TTY 1
6072_ACEOF
6073
6074 cat >>confdefs.h <<\_ACEOF
6075#define BROKEN_UPDWTMPX 1
6076_ACEOF
6077
6078
6079cat >>confdefs.h <<\_ACEOF
6080#define PASSWD_NEEDS_USERNAME 1
6081_ACEOF
6082
6083
6084
6085for ac_func in getluid setluid
6086do
6087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6088echo "$as_me:$LINENO: checking for $ac_func" >&5
6089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6090if eval "test \"\${$as_ac_var+set}\" = set"; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093 cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6101#define $ac_func innocuous_$ac_func
6102
6103/* System header to define __stub macros and hopefully few prototypes,
6104 which can conflict with char $ac_func (); below.
6105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6106 <limits.h> exists even on freestanding compilers. */
6107
6108#ifdef __STDC__
6109# include <limits.h>
6110#else
6111# include <assert.h>
6112#endif
6113
6114#undef $ac_func
6115
6116/* Override any gcc2 internal prototype to avoid an error. */
6117#ifdef __cplusplus
6118extern "C"
6119{
6120#endif
6121/* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123char $ac_func ();
6124/* The GNU C library defines this for functions which it implements
6125 to always fail with ENOSYS. Some functions are actually named
6126 something starting with __ and the normal name is an alias. */
6127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6128choke me
6129#else
6130char (*f) () = $ac_func;
6131#endif
6132#ifdef __cplusplus
6133}
6134#endif
6135
6136int
6137main ()
6138{
6139return f != $ac_func;
6140 ;
6141 return 0;
6142}
6143_ACEOF
6144rm -f conftest.$ac_objext conftest$ac_exeext
6145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 eval "$as_ac_var=yes"
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171eval "$as_ac_var=no"
6172fi
6173rm -f conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6175fi
6176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6178if test `eval echo '${'$as_ac_var'}'` = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6181_ACEOF
6182
6183fi
6184done
6185
6186 MANTYPE=man
6187 TEST_SHELL=ksh
6188 ;;
6189*-*-unicosmk*)
6190 cat >>confdefs.h <<\_ACEOF
6191#define NO_SSH_LASTLOG 1
6192_ACEOF
6193
6194 cat >>confdefs.h <<\_ACEOF
6195#define SETEUID_BREAKS_SETUID 1
6196_ACEOF
6197
6198 cat >>confdefs.h <<\_ACEOF
6199#define BROKEN_SETREUID 1
6200_ACEOF
6201
6202 cat >>confdefs.h <<\_ACEOF
6203#define BROKEN_SETREGID 1
6204_ACEOF
6205
6206 cat >>confdefs.h <<\_ACEOF
6207#define USE_PIPES 1
6208_ACEOF
6209
6210 cat >>confdefs.h <<\_ACEOF
6211#define DISABLE_FD_PASSING 1
6212_ACEOF
6213
6214 LDFLAGS="$LDFLAGS"
6215 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6216 MANTYPE=cat
6217 ;;
6218*-*-unicosmp*)
6219 cat >>confdefs.h <<\_ACEOF
6220#define SETEUID_BREAKS_SETUID 1
6221_ACEOF
6222
6223 cat >>confdefs.h <<\_ACEOF
6224#define BROKEN_SETREUID 1
6225_ACEOF
6226
6227 cat >>confdefs.h <<\_ACEOF
6228#define BROKEN_SETREGID 1
6229_ACEOF
6230
6231 cat >>confdefs.h <<\_ACEOF
6232#define WITH_ABBREV_NO_TTY 1
6233_ACEOF
6234
6235 cat >>confdefs.h <<\_ACEOF
6236#define USE_PIPES 1
6237_ACEOF
6238
6239 cat >>confdefs.h <<\_ACEOF
6240#define DISABLE_FD_PASSING 1
6241_ACEOF
6242
6243 LDFLAGS="$LDFLAGS"
6244 LIBS="$LIBS -lgen -lacid -ldb"
6245 MANTYPE=cat
6246 ;;
6247*-*-unicos*)
6248 cat >>confdefs.h <<\_ACEOF
6249#define SETEUID_BREAKS_SETUID 1
6250_ACEOF
6251
6252 cat >>confdefs.h <<\_ACEOF
6253#define BROKEN_SETREUID 1
6254_ACEOF
6255
6256 cat >>confdefs.h <<\_ACEOF
6257#define BROKEN_SETREGID 1
6258_ACEOF
6259
6260 cat >>confdefs.h <<\_ACEOF
6261#define USE_PIPES 1
6262_ACEOF
6263
6264 cat >>confdefs.h <<\_ACEOF
6265#define DISABLE_FD_PASSING 1
6266_ACEOF
6267
6268 cat >>confdefs.h <<\_ACEOF
6269#define NO_SSH_LASTLOG 1
6270_ACEOF
6271
6272 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
6273 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6274 MANTYPE=cat
6275 ;;
6276*-dec-osf*)
6277 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
6278echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
6279 no_osfsia=""
6280
6281# Check whether --with-osfsia or --without-osfsia was given.
6282if test "${with_osfsia+set}" = set; then
6283 withval="$with_osfsia"
6284
6285 if test "x$withval" = "xno" ; then
6286 echo "$as_me:$LINENO: result: disabled" >&5
6287echo "${ECHO_T}disabled" >&6
6288 no_osfsia=1
6289 fi
6290
6291fi;
6292 if test -z "$no_osfsia" ; then
6293 if test -f /etc/sia/matrix.conf; then
6294 echo "$as_me:$LINENO: result: yes" >&5
6295echo "${ECHO_T}yes" >&6
6296 cat >>confdefs.h <<\_ACEOF
6297#define HAVE_OSF_SIA 1
6298_ACEOF
6299
6300 cat >>confdefs.h <<\_ACEOF
6301#define DISABLE_LOGIN 1
6302_ACEOF
6303
6304 cat >>confdefs.h <<\_ACEOF
6305#define DISABLE_FD_PASSING 1
6306_ACEOF
6307
6308 LIBS="$LIBS -lsecurity -ldb -lm -laud"
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312 cat >>confdefs.h <<\_ACEOF
6313#define LOCKED_PASSWD_SUBSTR "Nologin"
6314_ACEOF
6315
6316 fi
6317 fi
6318 cat >>confdefs.h <<\_ACEOF
6319#define BROKEN_GETADDRINFO 1
6320_ACEOF
6321
6322 cat >>confdefs.h <<\_ACEOF
6323#define SETEUID_BREAKS_SETUID 1
6324_ACEOF
6325
6326 cat >>confdefs.h <<\_ACEOF
6327#define BROKEN_SETREUID 1
6328_ACEOF
6329
6330 cat >>confdefs.h <<\_ACEOF
6331#define BROKEN_SETREGID 1
6332_ACEOF
6333
6334 ;;
6335
6336*-*-nto-qnx)
6337 cat >>confdefs.h <<\_ACEOF
6338#define USE_PIPES 1
6339_ACEOF
6340
6341 cat >>confdefs.h <<\_ACEOF
6342#define NO_X11_UNIX_SOCKETS 1
6343_ACEOF
6344
6345 cat >>confdefs.h <<\_ACEOF
6346#define MISSING_NFDBITS 1
6347_ACEOF
6348
6349 cat >>confdefs.h <<\_ACEOF
6350#define MISSING_HOWMANY 1
6351_ACEOF
6352
6353 cat >>confdefs.h <<\_ACEOF
6354#define MISSING_FD_MASK 1
6355_ACEOF
6356
6357 ;;
6358esac
6359
6360# Allow user to specify flags
6361
6362# Check whether --with-cflags or --without-cflags was given.
6363if test "${with_cflags+set}" = set; then
6364 withval="$with_cflags"
6365
6366 if test "x$withval" != "xno" ; then
6367 CFLAGS="$CFLAGS $withval"
6368 fi
6369
6370
6371fi;
6372
6373# Check whether --with-cppflags or --without-cppflags was given.
6374if test "${with_cppflags+set}" = set; then
6375 withval="$with_cppflags"
6376
6377 if test "x$withval" != "xno"; then
6378 CPPFLAGS="$CPPFLAGS $withval"
6379 fi
6380
6381
6382fi;
6383
6384# Check whether --with-ldflags or --without-ldflags was given.
6385if test "${with_ldflags+set}" = set; then
6386 withval="$with_ldflags"
6387
6388 if test "x$withval" != "xno" ; then
6389 LDFLAGS="$LDFLAGS $withval"
6390 fi
6391
6392
6393fi;
6394
6395# Check whether --with-libs or --without-libs was given.
6396if test "${with_libs+set}" = set; then
6397 withval="$with_libs"
6398
6399 if test "x$withval" != "xno" ; then
6400 LIBS="$LIBS $withval"
6401 fi
6402
6403
6404fi;
6405
6406echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
6407echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
6408if test "$cross_compiling" = yes; then
6409 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
6410echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
6411
6412else
6413 cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
6419
6420#include <stdio.h>
6421int main(){exit(0);}
6422
6423_ACEOF
6424rm -f conftest$ac_exeext
6425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 echo "$as_me:$LINENO: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
6437else
6438 echo "$as_me: program exited with status $ac_status" >&5
6439echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442( exit $ac_status )
6443
6444 echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
6446 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
6447echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
6448 { (exit 1); exit 1; }; }
6449
6450fi
6451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6452fi
6453
6454# Checks for header files.
6455
6456echo "$as_me:$LINENO: checking for egrep" >&5
6457echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6458if test "${ac_cv_prog_egrep+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6462 then ac_cv_prog_egrep='grep -E'
6463 else ac_cv_prog_egrep='egrep'
6464 fi
6465fi
6466echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6467echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6468 EGREP=$ac_cv_prog_egrep
6469
6470
6471echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6472echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6473if test "${ac_cv_header_stdc+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482#include <stdlib.h>
6483#include <stdarg.h>
6484#include <string.h>
6485#include <float.h>
6486
6487int
6488main ()
6489{
6490
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext
6496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -z "$ac_c_werror_flag"
6505 || test ! -s conftest.err'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest.$ac_objext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 ac_cv_header_stdc=yes
6518else
6519 echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522ac_cv_header_stdc=no
6523fi
6524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6525
6526if test $ac_cv_header_stdc = yes; then
6527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6528 cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
6534#include <string.h>
6535
6536_ACEOF
6537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6538 $EGREP "memchr" >/dev/null 2>&1; then
6539 :
6540else
6541 ac_cv_header_stdc=no
6542fi
6543rm -f conftest*
6544
6545fi
6546
6547if test $ac_cv_header_stdc = yes; then
6548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6549 cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h. */
6555#include <stdlib.h>
6556
6557_ACEOF
6558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "free" >/dev/null 2>&1; then
6560 :
6561else
6562 ac_cv_header_stdc=no
6563fi
6564rm -f conftest*
6565
6566fi
6567
6568if test $ac_cv_header_stdc = yes; then
6569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6570 if test "$cross_compiling" = yes; then
6571 :
6572else
6573 cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579#include <ctype.h>
6580#if ((' ' & 0x0FF) == 0x020)
6581# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6582# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6583#else
6584# define ISLOWER(c) \
6585 (('a' <= (c) && (c) <= 'i') \
6586 || ('j' <= (c) && (c) <= 'r') \
6587 || ('s' <= (c) && (c) <= 'z'))
6588# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6589#endif
6590
6591#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6592int
6593main ()
6594{
6595 int i;
6596 for (i = 0; i < 256; i++)
6597 if (XOR (islower (i), ISLOWER (i))
6598 || toupper (i) != TOUPPER (i))
6599 exit(2);
6600 exit (0);
6601}
6602_ACEOF
6603rm -f conftest$ac_exeext
6604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 :
6615else
6616 echo "$as_me: program exited with status $ac_status" >&5
6617echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620( exit $ac_status )
6621ac_cv_header_stdc=no
6622fi
6623rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6624fi
6625fi
6626fi
6627echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6628echo "${ECHO_T}$ac_cv_header_stdc" >&6
6629if test $ac_cv_header_stdc = yes; then
6630
6631cat >>confdefs.h <<\_ACEOF
6632#define STDC_HEADERS 1
6633_ACEOF
6634
6635fi
6636
6637# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6648 inttypes.h stdint.h unistd.h
6649do
6650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6651echo "$as_me:$LINENO: checking for $ac_header" >&5
6652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6653if eval "test \"\${$as_ac_Header+set}\" = set"; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656 cat >conftest.$ac_ext <<_ACEOF
6657/* confdefs.h. */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h. */
6662$ac_includes_default
6663
6664#include <$ac_header>
6665_ACEOF
6666rm -f conftest.$ac_objext
6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag"
6676 || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 eval "$as_ac_Header=yes"
6689else
6690 echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693eval "$as_ac_Header=no"
6694fi
6695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6696fi
6697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6699if test `eval echo '${'$as_ac_Header'}'` = yes; then
6700 cat >>confdefs.h <<_ACEOF
6701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6702_ACEOF
6703
6704fi
6705
6706done
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764for ac_header in bstring.h crypt.h dirent.h endian.h features.h \
6765 floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \
6766 login_cap.h maillock.h ndir.h netdb.h netgroup.h \
6767 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \
6768 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
6769 strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \
6770 sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \
6771 sys/pstat.h sys/select.h sys/stat.h sys/stream.h \
6772 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \
6773 time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h
6774do
6775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6776if eval "test \"\${$as_ac_Header+set}\" = set"; then
6777 echo "$as_me:$LINENO: checking for $ac_header" >&5
6778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6779if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781fi
6782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6784else
6785 # Is the header compilable?
6786echo "$as_me:$LINENO: checking $ac_header usability" >&5
6787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6788cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
6794$ac_includes_default
6795#include <$ac_header>
6796_ACEOF
6797rm -f conftest.$ac_objext
6798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_header_compiler=yes
6820else
6821 echo "$as_me: failed program was:" >&5
6822sed 's/^/| /' conftest.$ac_ext >&5
6823
6824ac_header_compiler=no
6825fi
6826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6828echo "${ECHO_T}$ac_header_compiler" >&6
6829
6830# Is the header present?
6831echo "$as_me:$LINENO: checking $ac_header presence" >&5
6832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6833cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h. */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h. */
6839#include <$ac_header>
6840_ACEOF
6841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } >/dev/null; then
6849 if test -s conftest.err; then
6850 ac_cpp_err=$ac_c_preproc_warn_flag
6851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6852 else
6853 ac_cpp_err=
6854 fi
6855else
6856 ac_cpp_err=yes
6857fi
6858if test -z "$ac_cpp_err"; then
6859 ac_header_preproc=yes
6860else
6861 echo "$as_me: failed program was:" >&5
6862sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 ac_header_preproc=no
6865fi
6866rm -f conftest.err conftest.$ac_ext
6867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6868echo "${ECHO_T}$ac_header_preproc" >&6
6869
6870# So? What about this header?
6871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6872 yes:no: )
6873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6877 ac_header_preproc=yes
6878 ;;
6879 no:yes:* )
6880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6892 (
6893 cat <<\_ASBOX
6894## ---------------------------------- ##
6895## Report this to the OpenSSH lists. ##
6896## ---------------------------------- ##
6897_ASBOX
6898 ) |
6899 sed "s/^/$as_me: WARNING: /" >&2
6900 ;;
6901esac
6902echo "$as_me:$LINENO: checking for $ac_header" >&5
6903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6904if eval "test \"\${$as_ac_Header+set}\" = set"; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 eval "$as_ac_Header=\$ac_header_preproc"
6908fi
6909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6911
6912fi
6913if test `eval echo '${'$as_ac_Header'}'` = yes; then
6914 cat >>confdefs.h <<_ACEOF
6915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6916_ACEOF
6917
6918fi
6919
6920done
6921
6922
6923# sys/ptms.h requires sys/stream.h to be included first on Solaris
6924
6925for ac_header in sys/ptms.h
6926do
6927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928echo "$as_me:$LINENO: checking for $ac_header" >&5
6929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6930if eval "test \"\${$as_ac_Header+set}\" = set"; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932else
6933 cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
6939
6940#ifdef HAVE_SYS_STREAM_H
6941# include <sys/stream.h>
6942#endif
6943
6944
6945#include <$ac_header>
6946_ACEOF
6947rm -f conftest.$ac_objext
6948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>conftest.er1
6950 ac_status=$?
6951 grep -v '^ *+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 eval "$as_ac_Header=yes"
6970else
6971 echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974eval "$as_ac_Header=no"
6975fi
6976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6977fi
6978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6980if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983_ACEOF
6984
6985fi
6986
6987done
6988
6989
6990# Checks for libraries.
6991echo "$as_me:$LINENO: checking for yp_match" >&5
6992echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
6993if test "${ac_cv_func_yp_match+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h. */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h. */
7002/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
7003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7004#define yp_match innocuous_yp_match
7005
7006/* System header to define __stub macros and hopefully few prototypes,
7007 which can conflict with char yp_match (); below.
7008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7009 <limits.h> exists even on freestanding compilers. */
7010
7011#ifdef __STDC__
7012# include <limits.h>
7013#else
7014# include <assert.h>
7015#endif
7016
7017#undef yp_match
7018
7019/* Override any gcc2 internal prototype to avoid an error. */
7020#ifdef __cplusplus
7021extern "C"
7022{
7023#endif
7024/* We use char because int might match the return type of a gcc2
7025 builtin and then its argument prototype would still apply. */
7026char yp_match ();
7027/* The GNU C library defines this for functions which it implements
7028 to always fail with ENOSYS. Some functions are actually named
7029 something starting with __ and the normal name is an alias. */
7030#if defined (__stub_yp_match) || defined (__stub___yp_match)
7031choke me
7032#else
7033char (*f) () = yp_match;
7034#endif
7035#ifdef __cplusplus
7036}
7037#endif
7038
7039int
7040main ()
7041{
7042return f != yp_match;
7043 ;
7044 return 0;
7045}
7046_ACEOF
7047rm -f conftest.$ac_objext conftest$ac_exeext
7048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049 (eval $ac_link) 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try='test -z "$ac_c_werror_flag"
7057 || test ! -s conftest.err'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 ac_cv_func_yp_match=yes
7070else
7071 echo "$as_me: failed program was:" >&5
7072sed 's/^/| /' conftest.$ac_ext >&5
7073
7074ac_cv_func_yp_match=no
7075fi
7076rm -f conftest.err conftest.$ac_objext \
7077 conftest$ac_exeext conftest.$ac_ext
7078fi
7079echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
7080echo "${ECHO_T}$ac_cv_func_yp_match" >&6
7081if test $ac_cv_func_yp_match = yes; then
7082 :
7083else
7084
7085echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
7086echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
7087if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090 ac_check_lib_save_LIBS=$LIBS
7091LIBS="-lnsl $LIBS"
7092cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
7098
7099/* Override any gcc2 internal prototype to avoid an error. */
7100#ifdef __cplusplus
7101extern "C"
7102#endif
7103/* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105char yp_match ();
7106int
7107main ()
7108{
7109yp_match ();
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext conftest$ac_exeext
7115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag"
7124 || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_lib_nsl_yp_match=yes
7137else
7138 echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141ac_cv_lib_nsl_yp_match=no
7142fi
7143rm -f conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145LIBS=$ac_check_lib_save_LIBS
7146fi
7147echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
7148echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
7149if test $ac_cv_lib_nsl_yp_match = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151#define HAVE_LIBNSL 1
7152_ACEOF
7153
7154 LIBS="-lnsl $LIBS"
7155
7156fi
7157
7158fi
7159
7160echo "$as_me:$LINENO: checking for setsockopt" >&5
7161echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
7162if test "${ac_cv_func_setsockopt+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165 cat >conftest.$ac_ext <<_ACEOF
7166/* confdefs.h. */
7167_ACEOF
7168cat confdefs.h >>conftest.$ac_ext
7169cat >>conftest.$ac_ext <<_ACEOF
7170/* end confdefs.h. */
7171/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
7172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7173#define setsockopt innocuous_setsockopt
7174
7175/* System header to define __stub macros and hopefully few prototypes,
7176 which can conflict with char setsockopt (); below.
7177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178 <limits.h> exists even on freestanding compilers. */
7179
7180#ifdef __STDC__
7181# include <limits.h>
7182#else
7183# include <assert.h>
7184#endif
7185
7186#undef setsockopt
7187
7188/* Override any gcc2 internal prototype to avoid an error. */
7189#ifdef __cplusplus
7190extern "C"
7191{
7192#endif
7193/* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7195char setsockopt ();
7196/* The GNU C library defines this for functions which it implements
7197 to always fail with ENOSYS. Some functions are actually named
7198 something starting with __ and the normal name is an alias. */
7199#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
7200choke me
7201#else
7202char (*f) () = setsockopt;
7203#endif
7204#ifdef __cplusplus
7205}
7206#endif
7207
7208int
7209main ()
7210{
7211return f != setsockopt;
7212 ;
7213 return 0;
7214}
7215_ACEOF
7216rm -f conftest.$ac_objext conftest$ac_exeext
7217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_cv_func_setsockopt=yes
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243ac_cv_func_setsockopt=no
7244fi
7245rm -f conftest.err conftest.$ac_objext \
7246 conftest$ac_exeext conftest.$ac_ext
7247fi
7248echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
7249echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
7250if test $ac_cv_func_setsockopt = yes; then
7251 :
7252else
7253
7254echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
7255echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
7256if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259 ac_check_lib_save_LIBS=$LIBS
7260LIBS="-lsocket $LIBS"
7261cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
7267
7268/* Override any gcc2 internal prototype to avoid an error. */
7269#ifdef __cplusplus
7270extern "C"
7271#endif
7272/* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274char setsockopt ();
7275int
7276main ()
7277{
7278setsockopt ();
7279 ;
7280 return 0;
7281}
7282_ACEOF
7283rm -f conftest.$ac_objext conftest$ac_exeext
7284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_lib_socket_setsockopt=yes
7306else
7307 echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7310ac_cv_lib_socket_setsockopt=no
7311fi
7312rm -f conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314LIBS=$ac_check_lib_save_LIBS
7315fi
7316echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
7317echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
7318if test $ac_cv_lib_socket_setsockopt = yes; then
7319 cat >>confdefs.h <<_ACEOF
7320#define HAVE_LIBSOCKET 1
7321_ACEOF
7322
7323 LIBS="-lsocket $LIBS"
7324
7325fi
7326
7327fi
7328
7329
7330
7331for ac_func in dirname
7332do
7333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7334echo "$as_me:$LINENO: checking for $ac_func" >&5
7335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7336if eval "test \"\${$as_ac_var+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339 cat >conftest.$ac_ext <<_ACEOF
7340/* confdefs.h. */
7341_ACEOF
7342cat confdefs.h >>conftest.$ac_ext
7343cat >>conftest.$ac_ext <<_ACEOF
7344/* end confdefs.h. */
7345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7347#define $ac_func innocuous_$ac_func
7348
7349/* System header to define __stub macros and hopefully few prototypes,
7350 which can conflict with char $ac_func (); below.
7351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7352 <limits.h> exists even on freestanding compilers. */
7353
7354#ifdef __STDC__
7355# include <limits.h>
7356#else
7357# include <assert.h>
7358#endif
7359
7360#undef $ac_func
7361
7362/* Override any gcc2 internal prototype to avoid an error. */
7363#ifdef __cplusplus
7364extern "C"
7365{
7366#endif
7367/* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7369char $ac_func ();
7370/* The GNU C library defines this for functions which it implements
7371 to always fail with ENOSYS. Some functions are actually named
7372 something starting with __ and the normal name is an alias. */
7373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7374choke me
7375#else
7376char (*f) () = $ac_func;
7377#endif
7378#ifdef __cplusplus
7379}
7380#endif
7381
7382int
7383main ()
7384{
7385return f != $ac_func;
7386 ;
7387 return 0;
7388}
7389_ACEOF
7390rm -f conftest.$ac_objext conftest$ac_exeext
7391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392 (eval $ac_link) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try='test -s conftest$ac_exeext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 eval "$as_ac_var=yes"
7413else
7414 echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
7417eval "$as_ac_var=no"
7418fi
7419rm -f conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421fi
7422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7424if test `eval echo '${'$as_ac_var'}'` = yes; then
7425 cat >>confdefs.h <<_ACEOF
7426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7427_ACEOF
7428
7429for ac_header in libgen.h
7430do
7431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7432if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433 echo "$as_me:$LINENO: checking for $ac_header" >&5
7434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7435if eval "test \"\${$as_ac_Header+set}\" = set"; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437fi
7438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7440else
7441 # Is the header compilable?
7442echo "$as_me:$LINENO: checking $ac_header usability" >&5
7443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7444cat >conftest.$ac_ext <<_ACEOF
7445/* confdefs.h. */
7446_ACEOF
7447cat confdefs.h >>conftest.$ac_ext
7448cat >>conftest.$ac_ext <<_ACEOF
7449/* end confdefs.h. */
7450$ac_includes_default
7451#include <$ac_header>
7452_ACEOF
7453rm -f conftest.$ac_objext
7454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag"
7463 || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest.$ac_objext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 ac_header_compiler=yes
7476else
7477 echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480ac_header_compiler=no
7481fi
7482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7484echo "${ECHO_T}$ac_header_compiler" >&6
7485
7486# Is the header present?
7487echo "$as_me:$LINENO: checking $ac_header presence" >&5
7488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7489cat >conftest.$ac_ext <<_ACEOF
7490/* confdefs.h. */
7491_ACEOF
7492cat confdefs.h >>conftest.$ac_ext
7493cat >>conftest.$ac_ext <<_ACEOF
7494/* end confdefs.h. */
7495#include <$ac_header>
7496_ACEOF
7497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } >/dev/null; then
7505 if test -s conftest.err; then
7506 ac_cpp_err=$ac_c_preproc_warn_flag
7507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7508 else
7509 ac_cpp_err=
7510 fi
7511else
7512 ac_cpp_err=yes
7513fi
7514if test -z "$ac_cpp_err"; then
7515 ac_header_preproc=yes
7516else
7517 echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520 ac_header_preproc=no
7521fi
7522rm -f conftest.err conftest.$ac_ext
7523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7524echo "${ECHO_T}$ac_header_preproc" >&6
7525
7526# So? What about this header?
7527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7528 yes:no: )
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7533 ac_header_preproc=yes
7534 ;;
7535 no:yes:* )
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7548 (
7549 cat <<\_ASBOX
7550## ---------------------------------- ##
7551## Report this to the OpenSSH lists. ##
7552## ---------------------------------- ##
7553_ASBOX
7554 ) |
7555 sed "s/^/$as_me: WARNING: /" >&2
7556 ;;
7557esac
7558echo "$as_me:$LINENO: checking for $ac_header" >&5
7559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7560if eval "test \"\${$as_ac_Header+set}\" = set"; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 eval "$as_ac_Header=\$ac_header_preproc"
7564fi
7565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7567
7568fi
7569if test `eval echo '${'$as_ac_Header'}'` = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7572_ACEOF
7573
7574fi
7575
7576done
7577
7578else
7579
7580 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7581echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7582if test "${ac_cv_lib_gen_dirname+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 ac_check_lib_save_LIBS=$LIBS
7586LIBS="-lgen $LIBS"
7587cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593
7594/* Override any gcc2 internal prototype to avoid an error. */
7595#ifdef __cplusplus
7596extern "C"
7597#endif
7598/* We use char because int might match the return type of a gcc2
7599 builtin and then its argument prototype would still apply. */
7600char dirname ();
7601int
7602main ()
7603{
7604dirname ();
7605 ;
7606 return 0;
7607}
7608_ACEOF
7609rm -f conftest.$ac_objext conftest$ac_exeext
7610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_lib_gen_dirname=yes
7632else
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7636ac_cv_lib_gen_dirname=no
7637fi
7638rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640LIBS=$ac_check_lib_save_LIBS
7641fi
7642echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7643echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7644if test $ac_cv_lib_gen_dirname = yes; then
7645
7646 echo "$as_me:$LINENO: checking for broken dirname" >&5
7647echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7648if test "${ac_cv_have_broken_dirname+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651
7652 save_LIBS="$LIBS"
7653 LIBS="$LIBS -lgen"
7654 if test "$cross_compiling" = yes; then
7655 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7656See \`config.log' for more details." >&5
7657echo "$as_me: error: cannot run test program while cross compiling
7658See \`config.log' for more details." >&2;}
7659 { (exit 1); exit 1; }; }
7660else
7661 cat >conftest.$ac_ext <<_ACEOF
7662/* confdefs.h. */
7663_ACEOF
7664cat confdefs.h >>conftest.$ac_ext
7665cat >>conftest.$ac_ext <<_ACEOF
7666/* end confdefs.h. */
7667
7668#include <libgen.h>
7669#include <string.h>
7670
7671int main(int argc, char **argv) {
7672 char *s, buf[32];
7673
7674 strncpy(buf,"/etc", 32);
7675 s = dirname(buf);
7676 if (!s || strncmp(s, "/", 32) != 0) {
7677 exit(1);
7678 } else {
7679 exit(0);
7680 }
7681}
7682
7683_ACEOF
7684rm -f conftest$ac_exeext
7685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 ac_cv_have_broken_dirname="no"
7696else
7697 echo "$as_me: program exited with status $ac_status" >&5
7698echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701( exit $ac_status )
7702 ac_cv_have_broken_dirname="yes"
7703
7704fi
7705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706fi
7707 LIBS="$save_LIBS"
7708
7709fi
7710echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7711echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7712 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7713 LIBS="$LIBS -lgen"
7714 cat >>confdefs.h <<\_ACEOF
7715#define HAVE_DIRNAME 1
7716_ACEOF
7717
7718
7719for ac_header in libgen.h
7720do
7721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7722if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723 echo "$as_me:$LINENO: checking for $ac_header" >&5
7724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727fi
7728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7730else
7731 # Is the header compilable?
7732echo "$as_me:$LINENO: checking $ac_header usability" >&5
7733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7734cat >conftest.$ac_ext <<_ACEOF
7735/* confdefs.h. */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h. */
7740$ac_includes_default
7741#include <$ac_header>
7742_ACEOF
7743rm -f conftest.$ac_objext
7744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7745 (eval $ac_compile) 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -z "$ac_c_werror_flag"
7753 || test ! -s conftest.err'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; } &&
7759 { ac_try='test -s conftest.$ac_objext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_header_compiler=yes
7766else
7767 echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770ac_header_compiler=no
7771fi
7772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7774echo "${ECHO_T}$ac_header_compiler" >&6
7775
7776# Is the header present?
7777echo "$as_me:$LINENO: checking $ac_header presence" >&5
7778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7779cat >conftest.$ac_ext <<_ACEOF
7780/* confdefs.h. */
7781_ACEOF
7782cat confdefs.h >>conftest.$ac_ext
7783cat >>conftest.$ac_ext <<_ACEOF
7784/* end confdefs.h. */
7785#include <$ac_header>
7786_ACEOF
7787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } >/dev/null; then
7795 if test -s conftest.err; then
7796 ac_cpp_err=$ac_c_preproc_warn_flag
7797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7798 else
7799 ac_cpp_err=
7800 fi
7801else
7802 ac_cpp_err=yes
7803fi
7804if test -z "$ac_cpp_err"; then
7805 ac_header_preproc=yes
7806else
7807 echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 ac_header_preproc=no
7811fi
7812rm -f conftest.err conftest.$ac_ext
7813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7814echo "${ECHO_T}$ac_header_preproc" >&6
7815
7816# So? What about this header?
7817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7818 yes:no: )
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7823 ac_header_preproc=yes
7824 ;;
7825 no:yes:* )
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7838 (
7839 cat <<\_ASBOX
7840## ---------------------------------- ##
7841## Report this to the OpenSSH lists. ##
7842## ---------------------------------- ##
7843_ASBOX
7844 ) |
7845 sed "s/^/$as_me: WARNING: /" >&2
7846 ;;
7847esac
7848echo "$as_me:$LINENO: checking for $ac_header" >&5
7849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7850if eval "test \"\${$as_ac_Header+set}\" = set"; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 eval "$as_ac_Header=\$ac_header_preproc"
7854fi
7855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857
7858fi
7859if test `eval echo '${'$as_ac_Header'}'` = yes; then
7860 cat >>confdefs.h <<_ACEOF
7861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7862_ACEOF
7863
7864fi
7865
7866done
7867
7868 fi
7869
7870fi
7871
7872
7873fi
7874done
7875
7876
7877echo "$as_me:$LINENO: checking for getspnam" >&5
7878echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
7879if test "${ac_cv_func_getspnam+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882 cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
7889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7890#define getspnam innocuous_getspnam
7891
7892/* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char getspnam (); below.
7894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7895 <limits.h> exists even on freestanding compilers. */
7896
7897#ifdef __STDC__
7898# include <limits.h>
7899#else
7900# include <assert.h>
7901#endif
7902
7903#undef getspnam
7904
7905/* Override any gcc2 internal prototype to avoid an error. */
7906#ifdef __cplusplus
7907extern "C"
7908{
7909#endif
7910/* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7912char getspnam ();
7913/* The GNU C library defines this for functions which it implements
7914 to always fail with ENOSYS. Some functions are actually named
7915 something starting with __ and the normal name is an alias. */
7916#if defined (__stub_getspnam) || defined (__stub___getspnam)
7917choke me
7918#else
7919char (*f) () = getspnam;
7920#endif
7921#ifdef __cplusplus
7922}
7923#endif
7924
7925int
7926main ()
7927{
7928return f != getspnam;
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext conftest$ac_exeext
7934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7935 (eval $ac_link) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest$ac_exeext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_cv_func_getspnam=yes
7956else
7957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960ac_cv_func_getspnam=no
7961fi
7962rm -f conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964fi
7965echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
7966echo "${ECHO_T}$ac_cv_func_getspnam" >&6
7967if test $ac_cv_func_getspnam = yes; then
7968 :
7969else
7970 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
7971echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
7972if test "${ac_cv_lib_gen_getspnam+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 ac_check_lib_save_LIBS=$LIBS
7976LIBS="-lgen $LIBS"
7977cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
7983
7984/* Override any gcc2 internal prototype to avoid an error. */
7985#ifdef __cplusplus
7986extern "C"
7987#endif
7988/* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7990char getspnam ();
7991int
7992main ()
7993{
7994getspnam ();
7995 ;
7996 return 0;
7997}
7998_ACEOF
7999rm -f conftest.$ac_objext conftest$ac_exeext
8000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag"
8009 || test ! -s conftest.err'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 (eval $ac_try) 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_cv_lib_gen_getspnam=yes
8022else
8023 echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026ac_cv_lib_gen_getspnam=no
8027fi
8028rm -f conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030LIBS=$ac_check_lib_save_LIBS
8031fi
8032echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
8033echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
8034if test $ac_cv_lib_gen_getspnam = yes; then
8035 LIBS="$LIBS -lgen"
8036fi
8037
8038fi
8039
8040echo "$as_me:$LINENO: checking for library containing basename" >&5
8041echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
8042if test "${ac_cv_search_basename+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045 ac_func_search_save_LIBS=$LIBS
8046ac_cv_search_basename=no
8047cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h. */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h. */
8053
8054/* Override any gcc2 internal prototype to avoid an error. */
8055#ifdef __cplusplus
8056extern "C"
8057#endif
8058/* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060char basename ();
8061int
8062main ()
8063{
8064basename ();
8065 ;
8066 return 0;
8067}
8068_ACEOF
8069rm -f conftest.$ac_objext conftest$ac_exeext
8070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag"
8079 || test ! -s conftest.err'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8091 ac_cv_search_basename="none required"
8092else
8093 echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
8096fi
8097rm -f conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099if test "$ac_cv_search_basename" = no; then
8100 for ac_lib in gen; do
8101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h. */
8108
8109/* Override any gcc2 internal prototype to avoid an error. */
8110#ifdef __cplusplus
8111extern "C"
8112#endif
8113/* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115char basename ();
8116int
8117main ()
8118{
8119basename ();
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext conftest$ac_exeext
8125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_search_basename="-l$ac_lib"
8147break
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152fi
8153rm -f conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8155 done
8156fi
8157LIBS=$ac_func_search_save_LIBS
8158fi
8159echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
8160echo "${ECHO_T}$ac_cv_search_basename" >&6
8161if test "$ac_cv_search_basename" != no; then
8162 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
8163 cat >>confdefs.h <<\_ACEOF
8164#define HAVE_BASENAME 1
8165_ACEOF
8166
8167fi
8168
8169
8170
8171# Check whether --with-zlib or --without-zlib was given.
8172if test "${with_zlib+set}" = set; then
8173 withval="$with_zlib"
8174
8175 if test "x$withval" = "xno" ; then
8176 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
8177echo "$as_me: error: *** zlib is required ***" >&2;}
8178 { (exit 1); exit 1; }; }
8179 fi
8180 if test -d "$withval/lib"; then
8181 if test -n "${need_dash_r}"; then
8182 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8183 else
8184 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8185 fi
8186 else
8187 if test -n "${need_dash_r}"; then
8188 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8189 else
8190 LDFLAGS="-L${withval} ${LDFLAGS}"
8191 fi
8192 fi
8193 if test -d "$withval/include"; then
8194 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8195 else
8196 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8197 fi
8198
8199
8200fi;
8201
8202
8203echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8204echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8205if test "${ac_cv_lib_z_deflate+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208 ac_check_lib_save_LIBS=$LIBS
8209LIBS="-lz $LIBS"
8210cat >conftest.$ac_ext <<_ACEOF
8211/* confdefs.h. */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h. */
8216
8217/* Override any gcc2 internal prototype to avoid an error. */
8218#ifdef __cplusplus
8219extern "C"
8220#endif
8221/* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8223char deflate ();
8224int
8225main ()
8226{
8227deflate ();
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232rm -f conftest.$ac_objext conftest$ac_exeext
8233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_lib_z_deflate=yes
8255else
8256 echo "$as_me: failed program was:" >&5
8257sed 's/^/| /' conftest.$ac_ext >&5
8258
8259ac_cv_lib_z_deflate=no
8260fi
8261rm -f conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263LIBS=$ac_check_lib_save_LIBS
8264fi
8265echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8266echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8267if test $ac_cv_lib_z_deflate = yes; then
8268 cat >>confdefs.h <<_ACEOF
8269#define HAVE_LIBZ 1
8270_ACEOF
8271
8272 LIBS="-lz $LIBS"
8273
8274else
8275
8276 saved_CPPFLAGS="$CPPFLAGS"
8277 saved_LDFLAGS="$LDFLAGS"
8278 save_LIBS="$LIBS"
8279 if test -n "${need_dash_r}"; then
8280 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8281 else
8282 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8283 fi
8284 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8285 LIBS="$LIBS -lz"
8286 cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */
8292
8293/* Override any gcc2 internal prototype to avoid an error. */
8294#ifdef __cplusplus
8295extern "C"
8296#endif
8297/* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8299char deflate ();
8300int
8301main ()
8302{
8303deflate ();
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308rm -f conftest.$ac_objext conftest$ac_exeext
8309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 cat >>confdefs.h <<\_ACEOF
8331#define HAVE_LIBZ 1
8332_ACEOF
8333
8334else
8335 echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338
8339 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
8340echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
8341 { (exit 1); exit 1; }; }
8342
8343
8344fi
8345rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8347
8348
8349fi
8350
8351if test "${ac_cv_header_zlib_h+set}" = set; then
8352 echo "$as_me:$LINENO: checking for zlib.h" >&5
8353echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8354if test "${ac_cv_header_zlib_h+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356fi
8357echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8358echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8359else
8360 # Is the header compilable?
8361echo "$as_me:$LINENO: checking zlib.h usability" >&5
8362echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8363cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369$ac_includes_default
8370#include <zlib.h>
8371_ACEOF
8372rm -f conftest.$ac_objext
8373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_header_compiler=yes
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
8398
8399ac_header_compiler=no
8400fi
8401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8403echo "${ECHO_T}$ac_header_compiler" >&6
8404
8405# Is the header present?
8406echo "$as_me:$LINENO: checking zlib.h presence" >&5
8407echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8408cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414#include <zlib.h>
8415_ACEOF
8416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } >/dev/null; then
8424 if test -s conftest.err; then
8425 ac_cpp_err=$ac_c_preproc_warn_flag
8426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8427 else
8428 ac_cpp_err=
8429 fi
8430else
8431 ac_cpp_err=yes
8432fi
8433if test -z "$ac_cpp_err"; then
8434 ac_header_preproc=yes
8435else
8436 echo "$as_me: failed program was:" >&5
8437sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 ac_header_preproc=no
8440fi
8441rm -f conftest.err conftest.$ac_ext
8442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8443echo "${ECHO_T}$ac_header_preproc" >&6
8444
8445# So? What about this header?
8446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8447 yes:no: )
8448 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8449echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8451echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8452 ac_header_preproc=yes
8453 ;;
8454 no:yes:* )
8455 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8456echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8457 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8458echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8459 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8460echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8461 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8462echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8464echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8465 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8466echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8467 (
8468 cat <<\_ASBOX
8469## ---------------------------------- ##
8470## Report this to the OpenSSH lists. ##
8471## ---------------------------------- ##
8472_ASBOX
8473 ) |
8474 sed "s/^/$as_me: WARNING: /" >&2
8475 ;;
8476esac
8477echo "$as_me:$LINENO: checking for zlib.h" >&5
8478echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8479if test "${ac_cv_header_zlib_h+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 ac_cv_header_zlib_h=$ac_header_preproc
8483fi
8484echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8485echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8486
8487fi
8488if test $ac_cv_header_zlib_h = yes; then
8489 :
8490else
8491 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
8492echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
8493 { (exit 1); exit 1; }; }
8494fi
8495
8496
8497
8498
8499# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
8500if test "${with_zlib_version_check+set}" = set; then
8501 withval="$with_zlib_version_check"
8502 if test "x$withval" = "xno" ; then
8503 zlib_check_nonfatal=1
8504 fi
8505
8506
8507fi;
8508
8509echo "$as_me:$LINENO: checking for zlib 1.1.4 or greater" >&5
8510echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6
8511if test "$cross_compiling" = yes; then
8512 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
8513echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8514
8515else
8516 cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h. */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */
8522
8523#include <zlib.h>
8524int main()
8525{
8526 int a, b, c, v;
8527 if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3)
8528 exit(1);
8529 v = a*1000000 + b*1000 + c;
8530 if (v >= 1001004)
8531 exit(0);
8532 exit(2);
8533}
8534
8535_ACEOF
8536rm -f conftest$ac_exeext
8537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538 (eval $ac_link) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 echo "$as_me:$LINENO: result: yes" >&5
8548echo "${ECHO_T}yes" >&6
8549else
8550 echo "$as_me: program exited with status $ac_status" >&5
8551echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554( exit $ac_status )
8555 echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6
8557 if test -z "$zlib_check_nonfatal" ; then
8558 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
8559Your reported zlib version has known security problems. It's possible your
8560vendor has fixed these problems without changing the version number. If you
8561are sure this is the case, you can disable the check by running
8562\"./configure --without-zlib-version-check\".
8563If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5
8564echo "$as_me: error: *** zlib too old - check config.log ***
8565Your reported zlib version has known security problems. It's possible your
8566vendor has fixed these problems without changing the version number. If you
8567are sure this is the case, you can disable the check by running
8568\"./configure --without-zlib-version-check\".
8569If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;}
8570 { (exit 1); exit 1; }; }
8571 else
8572 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
8573echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8574 fi
8575
8576fi
8577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8578fi
8579
8580echo "$as_me:$LINENO: checking for strcasecmp" >&5
8581echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
8582if test "${ac_cv_func_strcasecmp+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585 cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
8592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8593#define strcasecmp innocuous_strcasecmp
8594
8595/* System header to define __stub macros and hopefully few prototypes,
8596 which can conflict with char strcasecmp (); below.
8597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8598 <limits.h> exists even on freestanding compilers. */
8599
8600#ifdef __STDC__
8601# include <limits.h>
8602#else
8603# include <assert.h>
8604#endif
8605
8606#undef strcasecmp
8607
8608/* Override any gcc2 internal prototype to avoid an error. */
8609#ifdef __cplusplus
8610extern "C"
8611{
8612#endif
8613/* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8615char strcasecmp ();
8616/* The GNU C library defines this for functions which it implements
8617 to always fail with ENOSYS. Some functions are actually named
8618 something starting with __ and the normal name is an alias. */
8619#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
8620choke me
8621#else
8622char (*f) () = strcasecmp;
8623#endif
8624#ifdef __cplusplus
8625}
8626#endif
8627
8628int
8629main ()
8630{
8631return f != strcasecmp;
8632 ;
8633 return 0;
8634}
8635_ACEOF
8636rm -f conftest.$ac_objext conftest$ac_exeext
8637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag"
8646 || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_func_strcasecmp=yes
8659else
8660 echo "$as_me: failed program was:" >&5
8661sed 's/^/| /' conftest.$ac_ext >&5
8662
8663ac_cv_func_strcasecmp=no
8664fi
8665rm -f conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667fi
8668echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
8669echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
8670if test $ac_cv_func_strcasecmp = yes; then
8671 :
8672else
8673 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
8674echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
8675if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 ac_check_lib_save_LIBS=$LIBS
8679LIBS="-lresolv $LIBS"
8680cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686
8687/* Override any gcc2 internal prototype to avoid an error. */
8688#ifdef __cplusplus
8689extern "C"
8690#endif
8691/* We use char because int might match the return type of a gcc2
8692 builtin and then its argument prototype would still apply. */
8693char strcasecmp ();
8694int
8695main ()
8696{
8697strcasecmp ();
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
8703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest$ac_exeext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_lib_resolv_strcasecmp=yes
8725else
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729ac_cv_lib_resolv_strcasecmp=no
8730fi
8731rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733LIBS=$ac_check_lib_save_LIBS
8734fi
8735echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
8736echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
8737if test $ac_cv_lib_resolv_strcasecmp = yes; then
8738 LIBS="$LIBS -lresolv"
8739fi
8740
8741
8742fi
8743
8744echo "$as_me:$LINENO: checking for utimes" >&5
8745echo $ECHO_N "checking for utimes... $ECHO_C" >&6
8746if test "${ac_cv_func_utimes+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748else
8749 cat >conftest.$ac_ext <<_ACEOF
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
8755/* Define utimes to an innocuous variant, in case <limits.h> declares utimes.
8756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8757#define utimes innocuous_utimes
8758
8759/* System header to define __stub macros and hopefully few prototypes,
8760 which can conflict with char utimes (); below.
8761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762 <limits.h> exists even on freestanding compilers. */
8763
8764#ifdef __STDC__
8765# include <limits.h>
8766#else
8767# include <assert.h>
8768#endif
8769
8770#undef utimes
8771
8772/* Override any gcc2 internal prototype to avoid an error. */
8773#ifdef __cplusplus
8774extern "C"
8775{
8776#endif
8777/* We use char because int might match the return type of a gcc2
8778 builtin and then its argument prototype would still apply. */
8779char utimes ();
8780/* The GNU C library defines this for functions which it implements
8781 to always fail with ENOSYS. Some functions are actually named
8782 something starting with __ and the normal name is an alias. */
8783#if defined (__stub_utimes) || defined (__stub___utimes)
8784choke me
8785#else
8786char (*f) () = utimes;
8787#endif
8788#ifdef __cplusplus
8789}
8790#endif
8791
8792int
8793main ()
8794{
8795return f != utimes;
8796 ;
8797 return 0;
8798}
8799_ACEOF
8800rm -f conftest.$ac_objext conftest$ac_exeext
8801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802 (eval $ac_link) 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -z "$ac_c_werror_flag"
8810 || test ! -s conftest.err'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 (eval $ac_try) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; } &&
8816 { ac_try='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_func_utimes=yes
8823else
8824 echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827ac_cv_func_utimes=no
8828fi
8829rm -f conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831fi
8832echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
8833echo "${ECHO_T}$ac_cv_func_utimes" >&6
8834if test $ac_cv_func_utimes = yes; then
8835 :
8836else
8837 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
8838echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
8839if test "${ac_cv_lib_c89_utimes+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842 ac_check_lib_save_LIBS=$LIBS
8843LIBS="-lc89 $LIBS"
8844cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
8850
8851/* Override any gcc2 internal prototype to avoid an error. */
8852#ifdef __cplusplus
8853extern "C"
8854#endif
8855/* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8857char utimes ();
8858int
8859main ()
8860{
8861utimes ();
8862 ;
8863 return 0;
8864}
8865_ACEOF
8866rm -f conftest.$ac_objext conftest$ac_exeext
8867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_lib_c89_utimes=yes
8889else
8890 echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
8893ac_cv_lib_c89_utimes=no
8894fi
8895rm -f conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897LIBS=$ac_check_lib_save_LIBS
8898fi
8899echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
8900echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
8901if test $ac_cv_lib_c89_utimes = yes; then
8902 cat >>confdefs.h <<\_ACEOF
8903#define HAVE_UTIMES 1
8904_ACEOF
8905
8906 LIBS="$LIBS -lc89"
8907fi
8908
8909
8910fi
8911
8912
8913
8914for ac_header in libutil.h
8915do
8916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8917if eval "test \"\${$as_ac_Header+set}\" = set"; then
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922fi
8923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925else
8926 # Is the header compilable?
8927echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <$ac_header>
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_header_compiler=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965ac_header_compiler=no
8966fi
8967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8969echo "${ECHO_T}$ac_header_compiler" >&6
8970
8971# Is the header present?
8972echo "$as_me:$LINENO: checking $ac_header presence" >&5
8973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980#include <$ac_header>
8981_ACEOF
8982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } >/dev/null; then
8990 if test -s conftest.err; then
8991 ac_cpp_err=$ac_c_preproc_warn_flag
8992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8993 else
8994 ac_cpp_err=
8995 fi
8996else
8997 ac_cpp_err=yes
8998fi
8999if test -z "$ac_cpp_err"; then
9000 ac_header_preproc=yes
9001else
9002 echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 ac_header_preproc=no
9006fi
9007rm -f conftest.err conftest.$ac_ext
9008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9009echo "${ECHO_T}$ac_header_preproc" >&6
9010
9011# So? What about this header?
9012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9013 yes:no: )
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9018 ac_header_preproc=yes
9019 ;;
9020 no:yes:* )
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9033 (
9034 cat <<\_ASBOX
9035## ---------------------------------- ##
9036## Report this to the OpenSSH lists. ##
9037## ---------------------------------- ##
9038_ASBOX
9039 ) |
9040 sed "s/^/$as_me: WARNING: /" >&2
9041 ;;
9042esac
9043echo "$as_me:$LINENO: checking for $ac_header" >&5
9044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047else
9048 eval "$as_ac_Header=\$ac_header_preproc"
9049fi
9050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052
9053fi
9054if test `eval echo '${'$as_ac_Header'}'` = yes; then
9055 cat >>confdefs.h <<_ACEOF
9056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9057_ACEOF
9058
9059fi
9060
9061done
9062
9063echo "$as_me:$LINENO: checking for library containing login" >&5
9064echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
9065if test "${ac_cv_search_login+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068 ac_func_search_save_LIBS=$LIBS
9069ac_cv_search_login=no
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
9077/* Override any gcc2 internal prototype to avoid an error. */
9078#ifdef __cplusplus
9079extern "C"
9080#endif
9081/* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9083char login ();
9084int
9085main ()
9086{
9087login ();
9088 ;
9089 return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext conftest$ac_exeext
9093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094 (eval $ac_link) 2>conftest.er1
9095 ac_status=$?
9096 grep -v '^ *+' conftest.er1 >conftest.err
9097 rm -f conftest.er1
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try='test -z "$ac_c_werror_flag"
9102 || test ! -s conftest.err'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; } &&
9108 { ac_try='test -s conftest$ac_exeext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9114 ac_cv_search_login="none required"
9115else
9116 echo "$as_me: failed program was:" >&5
9117sed 's/^/| /' conftest.$ac_ext >&5
9118
9119fi
9120rm -f conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122if test "$ac_cv_search_login" = no; then
9123 for ac_lib in util bsd; do
9124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9125 cat >conftest.$ac_ext <<_ACEOF
9126/* confdefs.h. */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
9131
9132/* Override any gcc2 internal prototype to avoid an error. */
9133#ifdef __cplusplus
9134extern "C"
9135#endif
9136/* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9138char login ();
9139int
9140main ()
9141{
9142login ();
9143 ;
9144 return 0;
9145}
9146_ACEOF
9147rm -f conftest.$ac_objext conftest$ac_exeext
9148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_search_login="-l$ac_lib"
9170break
9171else
9172 echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175fi
9176rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 done
9179fi
9180LIBS=$ac_func_search_save_LIBS
9181fi
9182echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
9183echo "${ECHO_T}$ac_cv_search_login" >&6
9184if test "$ac_cv_search_login" != no; then
9185 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
9186 cat >>confdefs.h <<\_ACEOF
9187#define HAVE_LOGIN 1
9188_ACEOF
9189
9190fi
9191
9192
9193
9194
9195for ac_func in logout updwtmp logwtmp
9196do
9197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9198echo "$as_me:$LINENO: checking for $ac_func" >&5
9199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9200if eval "test \"\${$as_ac_var+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 cat >conftest.$ac_ext <<_ACEOF
9204/* confdefs.h. */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h. */
9209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9211#define $ac_func innocuous_$ac_func
9212
9213/* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char $ac_func (); below.
9215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216 <limits.h> exists even on freestanding compilers. */
9217
9218#ifdef __STDC__
9219# include <limits.h>
9220#else
9221# include <assert.h>
9222#endif
9223
9224#undef $ac_func
9225
9226/* Override any gcc2 internal prototype to avoid an error. */
9227#ifdef __cplusplus
9228extern "C"
9229{
9230#endif
9231/* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9233char $ac_func ();
9234/* The GNU C library defines this for functions which it implements
9235 to always fail with ENOSYS. Some functions are actually named
9236 something starting with __ and the normal name is an alias. */
9237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9238choke me
9239#else
9240char (*f) () = $ac_func;
9241#endif
9242#ifdef __cplusplus
9243}
9244#endif
9245
9246int
9247main ()
9248{
9249return f != $ac_func;
9250 ;
9251 return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -z "$ac_c_werror_flag"
9264 || test ! -s conftest.err'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try='test -s conftest$ac_exeext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276 eval "$as_ac_var=yes"
9277else
9278 echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281eval "$as_ac_var=no"
9282fi
9283rm -f conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285fi
9286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9288if test `eval echo '${'$as_ac_var'}'` = yes; then
9289 cat >>confdefs.h <<_ACEOF
9290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9291_ACEOF
9292
9293fi
9294done
9295
9296
9297
9298for ac_func in strftime
9299do
9300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301echo "$as_me:$LINENO: checking for $ac_func" >&5
9302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9303if eval "test \"\${$as_ac_var+set}\" = set"; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305else
9306 cat >conftest.$ac_ext <<_ACEOF
9307/* confdefs.h. */
9308_ACEOF
9309cat confdefs.h >>conftest.$ac_ext
9310cat >>conftest.$ac_ext <<_ACEOF
9311/* end confdefs.h. */
9312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9314#define $ac_func innocuous_$ac_func
9315
9316/* System header to define __stub macros and hopefully few prototypes,
9317 which can conflict with char $ac_func (); below.
9318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319 <limits.h> exists even on freestanding compilers. */
9320
9321#ifdef __STDC__
9322# include <limits.h>
9323#else
9324# include <assert.h>
9325#endif
9326
9327#undef $ac_func
9328
9329/* Override any gcc2 internal prototype to avoid an error. */
9330#ifdef __cplusplus
9331extern "C"
9332{
9333#endif
9334/* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336char $ac_func ();
9337/* The GNU C library defines this for functions which it implements
9338 to always fail with ENOSYS. Some functions are actually named
9339 something starting with __ and the normal name is an alias. */
9340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9341choke me
9342#else
9343char (*f) () = $ac_func;
9344#endif
9345#ifdef __cplusplus
9346}
9347#endif
9348
9349int
9350main ()
9351{
9352return f != $ac_func;
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357rm -f conftest.$ac_objext conftest$ac_exeext
9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 eval "$as_ac_var=yes"
9380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384eval "$as_ac_var=no"
9385fi
9386rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388fi
9389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9390echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9391if test `eval echo '${'$as_ac_var'}'` = yes; then
9392 cat >>confdefs.h <<_ACEOF
9393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9394_ACEOF
9395
9396else
9397 # strftime is in -lintl on SCO UNIX.
9398echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9399echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9400if test "${ac_cv_lib_intl_strftime+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403 ac_check_lib_save_LIBS=$LIBS
9404LIBS="-lintl $LIBS"
9405cat >conftest.$ac_ext <<_ACEOF
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
9410/* end confdefs.h. */
9411
9412/* Override any gcc2 internal prototype to avoid an error. */
9413#ifdef __cplusplus
9414extern "C"
9415#endif
9416/* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9418char strftime ();
9419int
9420main ()
9421{
9422strftime ();
9423 ;
9424 return 0;
9425}
9426_ACEOF
9427rm -f conftest.$ac_objext conftest$ac_exeext
9428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag"
9437 || test ! -s conftest.err'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_lib_intl_strftime=yes
9450else
9451 echo "$as_me: failed program was:" >&5
9452sed 's/^/| /' conftest.$ac_ext >&5
9453
9454ac_cv_lib_intl_strftime=no
9455fi
9456rm -f conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
9458LIBS=$ac_check_lib_save_LIBS
9459fi
9460echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9461echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9462if test $ac_cv_lib_intl_strftime = yes; then
9463 cat >>confdefs.h <<\_ACEOF
9464#define HAVE_STRFTIME 1
9465_ACEOF
9466
9467LIBS="-lintl $LIBS"
9468fi
9469
9470fi
9471done
9472
9473
9474# Check for ALTDIRFUNC glob() extension
9475echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
9476echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
9477cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483
9484 #include <glob.h>
9485 #ifdef GLOB_ALTDIRFUNC
9486 FOUNDIT
9487 #endif
9488
9489_ACEOF
9490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9491 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9492
9493 cat >>confdefs.h <<\_ACEOF
9494#define GLOB_HAS_ALTDIRFUNC 1
9495_ACEOF
9496
9497 echo "$as_me:$LINENO: result: yes" >&5
9498echo "${ECHO_T}yes" >&6
9499
9500else
9501
9502 echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
9504
9505
9506fi
9507rm -f conftest*
9508
9509
9510# Check for g.gl_matchc glob() extension
9511echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
9512echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
9513cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
9518/* end confdefs.h. */
9519
9520 #include <glob.h>
9521 int main(void){glob_t g; g.gl_matchc = 1;}
9522
9523_ACEOF
9524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9525 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9526
9527 cat >>confdefs.h <<\_ACEOF
9528#define GLOB_HAS_GL_MATCHC 1
9529_ACEOF
9530
9531 echo "$as_me:$LINENO: result: yes" >&5
9532echo "${ECHO_T}yes" >&6
9533
9534else
9535
9536 echo "$as_me:$LINENO: result: no" >&5
9537echo "${ECHO_T}no" >&6
9538
9539
9540fi
9541rm -f conftest*
9542
9543
9544echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
9545echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
9546if test "$cross_compiling" = yes; then
9547
9548 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9549echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9550 cat >>confdefs.h <<\_ACEOF
9551#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9552_ACEOF
9553
9554
9555
9556else
9557 cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h. */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h. */
9563
9564#include <sys/types.h>
9565#include <dirent.h>
9566int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
9567
9568_ACEOF
9569rm -f conftest$ac_exeext
9570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 echo "$as_me:$LINENO: result: yes" >&5
9581echo "${ECHO_T}yes" >&6
9582else
9583 echo "$as_me: program exited with status $ac_status" >&5
9584echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587( exit $ac_status )
9588
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 cat >>confdefs.h <<\_ACEOF
9592#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9593_ACEOF
9594
9595
9596fi
9597rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9598fi
9599
9600echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
9601echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6
9602if test -d "/proc/$$/fd" ; then
9603 cat >>confdefs.h <<\_ACEOF
9604#define HAVE_PROC_PID 1
9605_ACEOF
9606
9607 echo "$as_me:$LINENO: result: yes" >&5
9608echo "${ECHO_T}yes" >&6
9609else
9610 echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
9612fi
9613
9614# Check whether user wants S/Key support
9615SKEY_MSG="no"
9616
9617# Check whether --with-skey or --without-skey was given.
9618if test "${with_skey+set}" = set; then
9619 withval="$with_skey"
9620
9621 if test "x$withval" != "xno" ; then
9622
9623 if test "x$withval" != "xyes" ; then
9624 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9625 LDFLAGS="$LDFLAGS -L${withval}/lib"
9626 fi
9627
9628 cat >>confdefs.h <<\_ACEOF
9629#define SKEY 1
9630_ACEOF
9631
9632 LIBS="-lskey $LIBS"
9633 SKEY_MSG="yes"
9634
9635 echo "$as_me:$LINENO: checking for s/key support" >&5
9636echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
9637 if test "$cross_compiling" = yes; then
9638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9639See \`config.log' for more details." >&5
9640echo "$as_me: error: cannot run test program while cross compiling
9641See \`config.log' for more details." >&2;}
9642 { (exit 1); exit 1; }; }
9643else
9644 cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650
9651#include <stdio.h>
9652#include <skey.h>
9653int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
9654
9655_ACEOF
9656rm -f conftest$ac_exeext
9657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 echo "$as_me:$LINENO: result: yes" >&5
9668echo "${ECHO_T}yes" >&6
9669else
9670 echo "$as_me: program exited with status $ac_status" >&5
9671echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
9674( exit $ac_status )
9675
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
9679echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
9680 { (exit 1); exit 1; }; }
9681
9682fi
9683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9684fi
9685 echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
9686echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9688/* confdefs.h. */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h. */
9693#include <stdio.h>
9694 #include <skey.h>
9695int
9696main ()
9697{
9698(void)skeychallenge(NULL,"name","",0);
9699 ;
9700 return 0;
9701}
9702_ACEOF
9703rm -f conftest.$ac_objext
9704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 echo "$as_me:$LINENO: result: yes" >&5
9726echo "${ECHO_T}yes" >&6
9727 cat >>confdefs.h <<\_ACEOF
9728#define SKEYCHALLENGE_4ARG 1
9729_ACEOF
9730
9731else
9732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6
9737
9738fi
9739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9740 fi
9741
9742
9743fi;
9744
9745# Check whether user wants TCP wrappers support
9746TCPW_MSG="no"
9747
9748# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9749if test "${with_tcp_wrappers+set}" = set; then
9750 withval="$with_tcp_wrappers"
9751
9752 if test "x$withval" != "xno" ; then
9753 saved_LIBS="$LIBS"
9754 saved_LDFLAGS="$LDFLAGS"
9755 saved_CPPFLAGS="$CPPFLAGS"
9756 if test -n "${withval}" -a "${withval}" != "yes"; then
9757 if test -d "${withval}/lib"; then
9758 if test -n "${need_dash_r}"; then
9759 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9760 else
9761 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9762 fi
9763 else
9764 if test -n "${need_dash_r}"; then
9765 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9766 else
9767 LDFLAGS="-L${withval} ${LDFLAGS}"
9768 fi
9769 fi
9770 if test -d "${withval}/include"; then
9771 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9772 else
9773 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9774 fi
9775 fi
9776 LIBWRAP="-lwrap"
9777 LIBS="$LIBWRAP $LIBS"
9778 echo "$as_me:$LINENO: checking for libwrap" >&5
9779echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
9786
9787#include <sys/types.h>
9788#include <sys/socket.h>
9789#include <netinet/in.h>
9790#include <tcpd.h>
9791 int deny_severity = 0, allow_severity = 0;
9792
9793int
9794main ()
9795{
9796hosts_access(0);
9797 ;
9798 return 0;
9799}
9800_ACEOF
9801rm -f conftest.$ac_objext conftest$ac_exeext
9802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823
9824 echo "$as_me:$LINENO: result: yes" >&5
9825echo "${ECHO_T}yes" >&6
9826 cat >>confdefs.h <<\_ACEOF
9827#define LIBWRAP 1
9828_ACEOF
9829
9830
9831 TCPW_MSG="yes"
9832
9833else
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837
9838 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9839echo "$as_me: error: *** libwrap missing" >&2;}
9840 { (exit 1); exit 1; }; }
9841
9842
9843fi
9844rm -f conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LIBS="$saved_LIBS"
9847 fi
9848
9849
9850fi;
9851
9852# Check whether user wants libedit support
9853LIBEDIT_MSG="no"
9854
9855# Check whether --with-libedit or --without-libedit was given.
9856if test "${with_libedit+set}" = set; then
9857 withval="$with_libedit"
9858 if test "x$withval" != "xno" ; then
9859 echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
9860echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6
9861if test "${ac_cv_lib_edit_el_init+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-ledit -lcurses
9866 $LIBS"
9867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
9873
9874/* Override any gcc2 internal prototype to avoid an error. */
9875#ifdef __cplusplus
9876extern "C"
9877#endif
9878/* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880char el_init ();
9881int
9882main ()
9883{
9884el_init ();
9885 ;
9886 return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_lib_edit_el_init=yes
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916ac_cv_lib_edit_el_init=no
9917fi
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920LIBS=$ac_check_lib_save_LIBS
9921fi
9922echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
9923echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6
9924if test $ac_cv_lib_edit_el_init = yes; then
9925
9926cat >>confdefs.h <<\_ACEOF
9927#define USE_LIBEDIT
9928_ACEOF
9929
9930 LIBEDIT="-ledit -lcurses"
9931 LIBEDIT_MSG="yes"
9932
9933
9934fi
9935
9936 fi
9937
9938fi;
9939
9940AUDIT_MODULE=none
9941
9942# Check whether --with-audit or --without-audit was given.
9943if test "${with_audit+set}" = set; then
9944 withval="$with_audit"
9945
9946 echo "$as_me:$LINENO: checking for supported audit module" >&5
9947echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6
9948 case "$withval" in
9949 bsm)
9950 echo "$as_me:$LINENO: result: bsm" >&5
9951echo "${ECHO_T}bsm" >&6
9952 AUDIT_MODULE=bsm
9953
9954for ac_header in bsm/audit.h
9955do
9956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9957if eval "test \"\${$as_ac_Header+set}\" = set"; then
9958 echo "$as_me:$LINENO: checking for $ac_header" >&5
9959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9960if eval "test \"\${$as_ac_Header+set}\" = set"; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962fi
9963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9965else
9966 # Is the header compilable?
9967echo "$as_me:$LINENO: checking $ac_header usability" >&5
9968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9969cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h. */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h. */
9975$ac_includes_default
9976#include <$ac_header>
9977_ACEOF
9978rm -f conftest.$ac_objext
9979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980 (eval $ac_compile) 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 (eval $ac_try) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest.$ac_objext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_header_compiler=yes
10001else
10002 echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005ac_header_compiler=no
10006fi
10007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10009echo "${ECHO_T}$ac_header_compiler" >&6
10010
10011# Is the header present?
10012echo "$as_me:$LINENO: checking $ac_header presence" >&5
10013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h. */
10020#include <$ac_header>
10021_ACEOF
10022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } >/dev/null; then
10030 if test -s conftest.err; then
10031 ac_cpp_err=$ac_c_preproc_warn_flag
10032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10033 else
10034 ac_cpp_err=
10035 fi
10036else
10037 ac_cpp_err=yes
10038fi
10039if test -z "$ac_cpp_err"; then
10040 ac_header_preproc=yes
10041else
10042 echo "$as_me: failed program was:" >&5
10043sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 ac_header_preproc=no
10046fi
10047rm -f conftest.err conftest.$ac_ext
10048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10049echo "${ECHO_T}$ac_header_preproc" >&6
10050
10051# So? What about this header?
10052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10053 yes:no: )
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10058 ac_header_preproc=yes
10059 ;;
10060 no:yes:* )
10061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10073 (
10074 cat <<\_ASBOX
10075## ---------------------------------- ##
10076## Report this to the OpenSSH lists. ##
10077## ---------------------------------- ##
10078_ASBOX
10079 ) |
10080 sed "s/^/$as_me: WARNING: /" >&2
10081 ;;
10082esac
10083echo "$as_me:$LINENO: checking for $ac_header" >&5
10084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10085if eval "test \"\${$as_ac_Header+set}\" = set"; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088 eval "$as_ac_Header=\$ac_header_preproc"
10089fi
10090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10092
10093fi
10094if test `eval echo '${'$as_ac_Header'}'` = yes; then
10095 cat >>confdefs.h <<_ACEOF
10096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10097_ACEOF
10098
10099else
10100 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
10101echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
10102 { (exit 1); exit 1; }; }
10103fi
10104
10105done
10106
10107
10108echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
10109echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6
10110if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112else
10113 ac_check_lib_save_LIBS=$LIBS
10114LIBS="-lbsm $LIBS"
10115cat >conftest.$ac_ext <<_ACEOF
10116/* confdefs.h. */
10117_ACEOF
10118cat confdefs.h >>conftest.$ac_ext
10119cat >>conftest.$ac_ext <<_ACEOF
10120/* end confdefs.h. */
10121
10122/* Override any gcc2 internal prototype to avoid an error. */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126/* We use char because int might match the return type of a gcc2
10127 builtin and then its argument prototype would still apply. */
10128char getaudit ();
10129int
10130main ()
10131{
10132getaudit ();
10133 ;
10134 return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext conftest$ac_exeext
10138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_lib_bsm_getaudit=yes
10160else
10161 echo "$as_me: failed program was:" >&5
10162sed 's/^/| /' conftest.$ac_ext >&5
10163
10164ac_cv_lib_bsm_getaudit=no
10165fi
10166rm -f conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168LIBS=$ac_check_lib_save_LIBS
10169fi
10170echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
10171echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6
10172if test $ac_cv_lib_bsm_getaudit = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174#define HAVE_LIBBSM 1
10175_ACEOF
10176
10177 LIBS="-lbsm $LIBS"
10178
10179else
10180 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
10181echo "$as_me: error: BSM enabled and required library not found" >&2;}
10182 { (exit 1); exit 1; }; }
10183fi
10184
10185
10186for ac_func in getaudit
10187do
10188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10189echo "$as_me:$LINENO: checking for $ac_func" >&5
10190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10191if eval "test \"\${$as_ac_var+set}\" = set"; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h. */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h. */
10200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10202#define $ac_func innocuous_$ac_func
10203
10204/* System header to define __stub macros and hopefully few prototypes,
10205 which can conflict with char $ac_func (); below.
10206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207 <limits.h> exists even on freestanding compilers. */
10208
10209#ifdef __STDC__
10210# include <limits.h>
10211#else
10212# include <assert.h>
10213#endif
10214
10215#undef $ac_func
10216
10217/* Override any gcc2 internal prototype to avoid an error. */
10218#ifdef __cplusplus
10219extern "C"
10220{
10221#endif
10222/* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224char $ac_func ();
10225/* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10229choke me
10230#else
10231char (*f) () = $ac_func;
10232#endif
10233#ifdef __cplusplus
10234}
10235#endif
10236
10237int
10238main ()
10239{
10240return f != $ac_func;
10241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext conftest$ac_exeext
10246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag"
10255 || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 eval "$as_ac_var=yes"
10268else
10269 echo "$as_me: failed program was:" >&5
10270sed 's/^/| /' conftest.$ac_ext >&5
10271
10272eval "$as_ac_var=no"
10273fi
10274rm -f conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276fi
10277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10279if test `eval echo '${'$as_ac_var'}'` = yes; then
10280 cat >>confdefs.h <<_ACEOF
10281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10282_ACEOF
10283
10284else
10285 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
10286echo "$as_me: error: BSM enabled and required function not found" >&2;}
10287 { (exit 1); exit 1; }; }
10288fi
10289done
10290
10291 # These are optional
10292
10293for ac_func in getaudit_addr
10294do
10295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10296echo "$as_me:$LINENO: checking for $ac_func" >&5
10297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10298if eval "test \"\${$as_ac_var+set}\" = set"; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300else
10301 cat >conftest.$ac_ext <<_ACEOF
10302/* confdefs.h. */
10303_ACEOF
10304cat confdefs.h >>conftest.$ac_ext
10305cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h. */
10307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10309#define $ac_func innocuous_$ac_func
10310
10311/* System header to define __stub macros and hopefully few prototypes,
10312 which can conflict with char $ac_func (); below.
10313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10314 <limits.h> exists even on freestanding compilers. */
10315
10316#ifdef __STDC__
10317# include <limits.h>
10318#else
10319# include <assert.h>
10320#endif
10321
10322#undef $ac_func
10323
10324/* Override any gcc2 internal prototype to avoid an error. */
10325#ifdef __cplusplus
10326extern "C"
10327{
10328#endif
10329/* We use char because int might match the return type of a gcc2
10330 builtin and then its argument prototype would still apply. */
10331char $ac_func ();
10332/* The GNU C library defines this for functions which it implements
10333 to always fail with ENOSYS. Some functions are actually named
10334 something starting with __ and the normal name is an alias. */
10335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10336choke me
10337#else
10338char (*f) () = $ac_func;
10339#endif
10340#ifdef __cplusplus
10341}
10342#endif
10343
10344int
10345main ()
10346{
10347return f != $ac_func;
10348 ;
10349 return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext conftest$ac_exeext
10353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354 (eval $ac_link) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest$ac_exeext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 eval "$as_ac_var=yes"
10375else
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379eval "$as_ac_var=no"
10380fi
10381rm -f conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383fi
10384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10386if test `eval echo '${'$as_ac_var'}'` = yes; then
10387 cat >>confdefs.h <<_ACEOF
10388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10389_ACEOF
10390
10391fi
10392done
10393
10394
10395cat >>confdefs.h <<\_ACEOF
10396#define USE_BSM_AUDIT
10397_ACEOF
10398
10399 ;;
10400 debug)
10401 AUDIT_MODULE=debug
10402 echo "$as_me:$LINENO: result: debug" >&5
10403echo "${ECHO_T}debug" >&6
10404
10405cat >>confdefs.h <<\_ACEOF
10406#define SSH_AUDIT_EVENTS
10407_ACEOF
10408
10409 ;;
10410 *)
10411 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
10412echo "$as_me: error: Unknown audit module $withval" >&2;}
10413 { (exit 1); exit 1; }; }
10414 ;;
10415 esac
10416
10417fi;
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497for ac_func in \
10498 arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \
10499 bindresvport_sa clock closefrom dirfd fchdir fchmod fchown \
10500 freeaddrinfo futimes getaddrinfo getcwd getgrouplist getnameinfo \
10501 getopt getpeereid _getpty getrlimit getttyent glob inet_aton \
10502 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
10503 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \
10504 pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \
10505 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
10506 setproctitle setregid setreuid setrlimit \
10507 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
10508 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \
10509 truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \
10510
10511do
10512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513echo "$as_me:$LINENO: checking for $ac_func" >&5
10514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10515if eval "test \"\${$as_ac_var+set}\" = set"; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517else
10518 cat >conftest.$ac_ext <<_ACEOF
10519/* confdefs.h. */
10520_ACEOF
10521cat confdefs.h >>conftest.$ac_ext
10522cat >>conftest.$ac_ext <<_ACEOF
10523/* end confdefs.h. */
10524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10526#define $ac_func innocuous_$ac_func
10527
10528/* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10532
10533#ifdef __STDC__
10534# include <limits.h>
10535#else
10536# include <assert.h>
10537#endif
10538
10539#undef $ac_func
10540
10541/* Override any gcc2 internal prototype to avoid an error. */
10542#ifdef __cplusplus
10543extern "C"
10544{
10545#endif
10546/* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10548char $ac_func ();
10549/* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10553choke me
10554#else
10555char (*f) () = $ac_func;
10556#endif
10557#ifdef __cplusplus
10558}
10559#endif
10560
10561int
10562main ()
10563{
10564return f != $ac_func;
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext conftest$ac_exeext
10570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 eval "$as_ac_var=yes"
10592else
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596eval "$as_ac_var=no"
10597fi
10598rm -f conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10600fi
10601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603if test `eval echo '${'$as_ac_var'}'` = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10606_ACEOF
10607
10608fi
10609done
10610
10611
10612# IRIX has a const char return value for gai_strerror()
10613
10614for ac_func in gai_strerror
10615do
10616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10617echo "$as_me:$LINENO: checking for $ac_func" >&5
10618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10619if eval "test \"\${$as_ac_var+set}\" = set"; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621else
10622 cat >conftest.$ac_ext <<_ACEOF
10623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
10627/* end confdefs.h. */
10628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10630#define $ac_func innocuous_$ac_func
10631
10632/* System header to define __stub macros and hopefully few prototypes,
10633 which can conflict with char $ac_func (); below.
10634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10635 <limits.h> exists even on freestanding compilers. */
10636
10637#ifdef __STDC__
10638# include <limits.h>
10639#else
10640# include <assert.h>
10641#endif
10642
10643#undef $ac_func
10644
10645/* Override any gcc2 internal prototype to avoid an error. */
10646#ifdef __cplusplus
10647extern "C"
10648{
10649#endif
10650/* We use char because int might match the return type of a gcc2
10651 builtin and then its argument prototype would still apply. */
10652char $ac_func ();
10653/* The GNU C library defines this for functions which it implements
10654 to always fail with ENOSYS. Some functions are actually named
10655 something starting with __ and the normal name is an alias. */
10656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10657choke me
10658#else
10659char (*f) () = $ac_func;
10660#endif
10661#ifdef __cplusplus
10662}
10663#endif
10664
10665int
10666main ()
10667{
10668return f != $ac_func;
10669 ;
10670 return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext conftest$ac_exeext
10674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675 (eval $ac_link) 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag"
10683 || test ! -s conftest.err'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest$ac_exeext'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 eval "$as_ac_var=yes"
10696else
10697 echo "$as_me: failed program was:" >&5
10698sed 's/^/| /' conftest.$ac_ext >&5
10699
10700eval "$as_ac_var=no"
10701fi
10702rm -f conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704fi
10705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707if test `eval echo '${'$as_ac_var'}'` = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710_ACEOF
10711
10712 cat >>confdefs.h <<\_ACEOF
10713#define HAVE_GAI_STRERROR 1
10714_ACEOF
10715
10716 cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
10722
10723#include <sys/types.h>
10724#include <sys/socket.h>
10725#include <netdb.h>
10726
10727const char *gai_strerror(int);
10728int
10729main ()
10730{
10731
10732char *str;
10733
10734str = gai_strerror(0);
10735 ;
10736 return 0;
10737}
10738_ACEOF
10739rm -f conftest.$ac_objext
10740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10741 (eval $ac_compile) 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag"
10749 || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761
10762
10763cat >>confdefs.h <<\_ACEOF
10764#define HAVE_CONST_GAI_STRERROR_PROTO 1
10765_ACEOF
10766
10767else
10768 echo "$as_me: failed program was:" >&5
10769sed 's/^/| /' conftest.$ac_ext >&5
10770
10771fi
10772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773fi
10774done
10775
10776
10777echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
10778echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
10779if test "${ac_cv_search_nanosleep+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782 ac_func_search_save_LIBS=$LIBS
10783ac_cv_search_nanosleep=no
10784cat >conftest.$ac_ext <<_ACEOF
10785/* confdefs.h. */
10786_ACEOF
10787cat confdefs.h >>conftest.$ac_ext
10788cat >>conftest.$ac_ext <<_ACEOF
10789/* end confdefs.h. */
10790
10791/* Override any gcc2 internal prototype to avoid an error. */
10792#ifdef __cplusplus
10793extern "C"
10794#endif
10795/* We use char because int might match the return type of a gcc2
10796 builtin and then its argument prototype would still apply. */
10797char nanosleep ();
10798int
10799main ()
10800{
10801nanosleep ();
10802 ;
10803 return 0;
10804}
10805_ACEOF
10806rm -f conftest.$ac_objext conftest$ac_exeext
10807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_search_nanosleep="none required"
10829else
10830 echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833fi
10834rm -f conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836if test "$ac_cv_search_nanosleep" = no; then
10837 for ac_lib in rt posix4; do
10838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845
10846/* Override any gcc2 internal prototype to avoid an error. */
10847#ifdef __cplusplus
10848extern "C"
10849#endif
10850/* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10852char nanosleep ();
10853int
10854main ()
10855{
10856nanosleep ();
10857 ;
10858 return 0;
10859}
10860_ACEOF
10861rm -f conftest.$ac_objext conftest$ac_exeext
10862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863 (eval $ac_link) 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag"
10871 || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_search_nanosleep="-l$ac_lib"
10884break
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889fi
10890rm -f conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 done
10893fi
10894LIBS=$ac_func_search_save_LIBS
10895fi
10896echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
10897echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
10898if test "$ac_cv_search_nanosleep" != no; then
10899 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
10900 cat >>confdefs.h <<\_ACEOF
10901#define HAVE_NANOSLEEP 1
10902_ACEOF
10903
10904fi
10905
10906
10907echo "$as_me:$LINENO: checking whether strsep is declared" >&5
10908echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
10909if test "${ac_cv_have_decl_strsep+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 cat >conftest.$ac_ext <<_ACEOF
10913/* confdefs.h. */
10914_ACEOF
10915cat confdefs.h >>conftest.$ac_ext
10916cat >>conftest.$ac_ext <<_ACEOF
10917/* end confdefs.h. */
10918$ac_includes_default
10919int
10920main ()
10921{
10922#ifndef strsep
10923 char *p = (char *) strsep;
10924#endif
10925
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930rm -f conftest.$ac_objext
10931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932 (eval $ac_compile) 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_have_decl_strsep=yes
10953else
10954 echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
10956
10957ac_cv_have_decl_strsep=no
10958fi
10959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10960fi
10961echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
10962echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
10963if test $ac_cv_have_decl_strsep = yes; then
10964
10965for ac_func in strsep
10966do
10967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10968echo "$as_me:$LINENO: checking for $ac_func" >&5
10969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10970if eval "test \"\${$as_ac_var+set}\" = set"; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 cat >conftest.$ac_ext <<_ACEOF
10974/* confdefs.h. */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h. */
10979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10981#define $ac_func innocuous_$ac_func
10982
10983/* System header to define __stub macros and hopefully few prototypes,
10984 which can conflict with char $ac_func (); below.
10985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10986 <limits.h> exists even on freestanding compilers. */
10987
10988#ifdef __STDC__
10989# include <limits.h>
10990#else
10991# include <assert.h>
10992#endif
10993
10994#undef $ac_func
10995
10996/* Override any gcc2 internal prototype to avoid an error. */
10997#ifdef __cplusplus
10998extern "C"
10999{
11000#endif
11001/* We use char because int might match the return type of a gcc2
11002 builtin and then its argument prototype would still apply. */
11003char $ac_func ();
11004/* The GNU C library defines this for functions which it implements
11005 to always fail with ENOSYS. Some functions are actually named
11006 something starting with __ and the normal name is an alias. */
11007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11008choke me
11009#else
11010char (*f) () = $ac_func;
11011#endif
11012#ifdef __cplusplus
11013}
11014#endif
11015
11016int
11017main ()
11018{
11019return f != $ac_func;
11020 ;
11021 return 0;
11022}
11023_ACEOF
11024rm -f conftest.$ac_objext conftest$ac_exeext
11025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>conftest.er1
11027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 eval "$as_ac_var=yes"
11047else
11048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051eval "$as_ac_var=no"
11052fi
11053rm -f conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055fi
11056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11058if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061_ACEOF
11062
11063fi
11064done
11065
11066fi
11067
11068echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
11069echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
11070if test "${ac_cv_have_decl_getrusage+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079$ac_includes_default
11080int
11081main ()
11082{
11083#ifndef getrusage
11084 char *p = (char *) getrusage;
11085#endif
11086
11087 ;
11088 return 0;
11089}
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_cv_have_decl_getrusage=yes
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118ac_cv_have_decl_getrusage=no
11119fi
11120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11121fi
11122echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
11123echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
11124if test $ac_cv_have_decl_getrusage = yes; then
11125
11126for ac_func in getrusage
11127do
11128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11129echo "$as_me:$LINENO: checking for $ac_func" >&5
11130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11131if eval "test \"\${$as_ac_var+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133else
11134 cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h. */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h. */
11140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11142#define $ac_func innocuous_$ac_func
11143
11144/* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char $ac_func (); below.
11146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11147 <limits.h> exists even on freestanding compilers. */
11148
11149#ifdef __STDC__
11150# include <limits.h>
11151#else
11152# include <assert.h>
11153#endif
11154
11155#undef $ac_func
11156
11157/* Override any gcc2 internal prototype to avoid an error. */
11158#ifdef __cplusplus
11159extern "C"
11160{
11161#endif
11162/* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164char $ac_func ();
11165/* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11169choke me
11170#else
11171char (*f) () = $ac_func;
11172#endif
11173#ifdef __cplusplus
11174}
11175#endif
11176
11177int
11178main ()
11179{
11180return f != $ac_func;
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext conftest$ac_exeext
11186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "$as_ac_var=yes"
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212eval "$as_ac_var=no"
11213fi
11214rm -f conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216fi
11217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11219if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222_ACEOF
11223
11224fi
11225done
11226
11227fi
11228
11229
11230echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
11231echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
11232if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241#include <termios.h>
11242
11243
11244int
11245main ()
11246{
11247#ifndef tcsendbreak
11248 char *p = (char *) tcsendbreak;
11249#endif
11250
11251 ;
11252 return 0;
11253}
11254_ACEOF
11255rm -f conftest.$ac_objext
11256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257 (eval $ac_compile) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag"
11265 || test ! -s conftest.err'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 ac_cv_have_decl_tcsendbreak=yes
11278else
11279 echo "$as_me: failed program was:" >&5
11280sed 's/^/| /' conftest.$ac_ext >&5
11281
11282ac_cv_have_decl_tcsendbreak=no
11283fi
11284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11285fi
11286echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
11287echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
11288if test $ac_cv_have_decl_tcsendbreak = yes; then
11289 cat >>confdefs.h <<\_ACEOF
11290#define HAVE_TCSENDBREAK 1
11291_ACEOF
11292
11293else
11294
11295for ac_func in tcsendbreak
11296do
11297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11298echo "$as_me:$LINENO: checking for $ac_func" >&5
11299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11300if eval "test \"\${$as_ac_var+set}\" = set"; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11311#define $ac_func innocuous_$ac_func
11312
11313/* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char $ac_func (); below.
11315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11316 <limits.h> exists even on freestanding compilers. */
11317
11318#ifdef __STDC__
11319# include <limits.h>
11320#else
11321# include <assert.h>
11322#endif
11323
11324#undef $ac_func
11325
11326/* Override any gcc2 internal prototype to avoid an error. */
11327#ifdef __cplusplus
11328extern "C"
11329{
11330#endif
11331/* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333char $ac_func ();
11334/* The GNU C library defines this for functions which it implements
11335 to always fail with ENOSYS. Some functions are actually named
11336 something starting with __ and the normal name is an alias. */
11337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11338choke me
11339#else
11340char (*f) () = $ac_func;
11341#endif
11342#ifdef __cplusplus
11343}
11344#endif
11345
11346int
11347main ()
11348{
11349return f != $ac_func;
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354rm -f conftest.$ac_objext conftest$ac_exeext
11355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11356 (eval $ac_link) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11376 eval "$as_ac_var=yes"
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381eval "$as_ac_var=no"
11382fi
11383rm -f conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385fi
11386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11388if test `eval echo '${'$as_ac_var'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391_ACEOF
11392
11393fi
11394done
11395
11396fi
11397
11398
11399echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
11400echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6
11401if test "${ac_cv_have_decl_h_errno+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410#include <netdb.h>
11411
11412int
11413main ()
11414{
11415#ifndef h_errno
11416 char *p = (char *) h_errno;
11417#endif
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_cv_have_decl_h_errno=yes
11446else
11447 echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
11450ac_cv_have_decl_h_errno=no
11451fi
11452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11453fi
11454echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
11455echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6
11456if test $ac_cv_have_decl_h_errno = yes; then
11457
11458cat >>confdefs.h <<_ACEOF
11459#define HAVE_DECL_H_ERRNO 1
11460_ACEOF
11461
11462
11463else
11464 cat >>confdefs.h <<_ACEOF
11465#define HAVE_DECL_H_ERRNO 0
11466_ACEOF
11467
11468
11469fi
11470
11471
11472
11473
11474for ac_func in setresuid
11475do
11476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477echo "$as_me:$LINENO: checking for $ac_func" >&5
11478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11479if eval "test \"\${$as_ac_var+set}\" = set"; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481else
11482 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490#define $ac_func innocuous_$ac_func
11491
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11496
11497#ifdef __STDC__
11498# include <limits.h>
11499#else
11500# include <assert.h>
11501#endif
11502
11503#undef $ac_func
11504
11505/* Override any gcc2 internal prototype to avoid an error. */
11506#ifdef __cplusplus
11507extern "C"
11508{
11509#endif
11510/* We use char because int might match the return type of a gcc2
11511 builtin and then its argument prototype would still apply. */
11512char $ac_func ();
11513/* The GNU C library defines this for functions which it implements
11514 to always fail with ENOSYS. Some functions are actually named
11515 something starting with __ and the normal name is an alias. */
11516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11517choke me
11518#else
11519char (*f) () = $ac_func;
11520#endif
11521#ifdef __cplusplus
11522}
11523#endif
11524
11525int
11526main ()
11527{
11528return f != $ac_func;
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext conftest$ac_exeext
11534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 eval "$as_ac_var=yes"
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560eval "$as_ac_var=no"
11561fi
11562rm -f conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564fi
11565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11567if test `eval echo '${'$as_ac_var'}'` = yes; then
11568 cat >>confdefs.h <<_ACEOF
11569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11570_ACEOF
11571
11572 echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
11573echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
11574 if test "$cross_compiling" = yes; then
11575 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
11576echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11577
11578else
11579 cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585
11586#include <stdlib.h>
11587#include <errno.h>
11588int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
11589
11590_ACEOF
11591rm -f conftest$ac_exeext
11592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 echo "$as_me:$LINENO: result: yes" >&5
11603echo "${ECHO_T}yes" >&6
11604else
11605 echo "$as_me: program exited with status $ac_status" >&5
11606echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
11609( exit $ac_status )
11610cat >>confdefs.h <<\_ACEOF
11611#define BROKEN_SETRESUID 1
11612_ACEOF
11613
11614 echo "$as_me:$LINENO: result: not implemented" >&5
11615echo "${ECHO_T}not implemented" >&6
11616fi
11617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11618fi
11619
11620fi
11621done
11622
11623
11624
11625for ac_func in setresgid
11626do
11627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11628echo "$as_me:$LINENO: checking for $ac_func" >&5
11629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11630if eval "test \"\${$as_ac_var+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633 cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
11639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11641#define $ac_func innocuous_$ac_func
11642
11643/* System header to define __stub macros and hopefully few prototypes,
11644 which can conflict with char $ac_func (); below.
11645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11646 <limits.h> exists even on freestanding compilers. */
11647
11648#ifdef __STDC__
11649# include <limits.h>
11650#else
11651# include <assert.h>
11652#endif
11653
11654#undef $ac_func
11655
11656/* Override any gcc2 internal prototype to avoid an error. */
11657#ifdef __cplusplus
11658extern "C"
11659{
11660#endif
11661/* We use char because int might match the return type of a gcc2
11662 builtin and then its argument prototype would still apply. */
11663char $ac_func ();
11664/* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11668choke me
11669#else
11670char (*f) () = $ac_func;
11671#endif
11672#ifdef __cplusplus
11673}
11674#endif
11675
11676int
11677main ()
11678{
11679return f != $ac_func;
11680 ;
11681 return 0;
11682}
11683_ACEOF
11684rm -f conftest.$ac_objext conftest$ac_exeext
11685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag"
11694 || test ! -s conftest.err'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 eval "$as_ac_var=yes"
11707else
11708 echo "$as_me: failed program was:" >&5
11709sed 's/^/| /' conftest.$ac_ext >&5
11710
11711eval "$as_ac_var=no"
11712fi
11713rm -f conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715fi
11716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11718if test `eval echo '${'$as_ac_var'}'` = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11721_ACEOF
11722
11723 echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
11724echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
11725 if test "$cross_compiling" = yes; then
11726 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
11727echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11728
11729else
11730 cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
11736
11737#include <stdlib.h>
11738#include <errno.h>
11739int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
11740
11741_ACEOF
11742rm -f conftest$ac_exeext
11743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 echo "$as_me:$LINENO: result: yes" >&5
11754echo "${ECHO_T}yes" >&6
11755else
11756 echo "$as_me: program exited with status $ac_status" >&5
11757echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760( exit $ac_status )
11761cat >>confdefs.h <<\_ACEOF
11762#define BROKEN_SETRESGID 1
11763_ACEOF
11764
11765 echo "$as_me:$LINENO: result: not implemented" >&5
11766echo "${ECHO_T}not implemented" >&6
11767fi
11768rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11769fi
11770
11771fi
11772done
11773
11774
11775
11776
11777for ac_func in gettimeofday time
11778do
11779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780echo "$as_me:$LINENO: checking for $ac_func" >&5
11781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11782if eval "test \"\${$as_ac_var+set}\" = set"; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784else
11785 cat >conftest.$ac_ext <<_ACEOF
11786/* confdefs.h. */
11787_ACEOF
11788cat confdefs.h >>conftest.$ac_ext
11789cat >>conftest.$ac_ext <<_ACEOF
11790/* end confdefs.h. */
11791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11793#define $ac_func innocuous_$ac_func
11794
11795/* System header to define __stub macros and hopefully few prototypes,
11796 which can conflict with char $ac_func (); below.
11797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798 <limits.h> exists even on freestanding compilers. */
11799
11800#ifdef __STDC__
11801# include <limits.h>
11802#else
11803# include <assert.h>
11804#endif
11805
11806#undef $ac_func
11807
11808/* Override any gcc2 internal prototype to avoid an error. */
11809#ifdef __cplusplus
11810extern "C"
11811{
11812#endif
11813/* We use char because int might match the return type of a gcc2
11814 builtin and then its argument prototype would still apply. */
11815char $ac_func ();
11816/* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
11819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11820choke me
11821#else
11822char (*f) () = $ac_func;
11823#endif
11824#ifdef __cplusplus
11825}
11826#endif
11827
11828int
11829main ()
11830{
11831return f != $ac_func;
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext conftest$ac_exeext
11837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11838 (eval $ac_link) 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag"
11846 || test ! -s conftest.err'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s 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 eval "$as_ac_var=yes"
11859else
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863eval "$as_ac_var=no"
11864fi
11865rm -f conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext conftest.$ac_ext
11867fi
11868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11870if test `eval echo '${'$as_ac_var'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873_ACEOF
11874
11875fi
11876done
11877
11878
11879
11880
11881
11882
11883
11884for ac_func in endutent getutent getutid getutline pututline setutent
11885do
11886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11887echo "$as_me:$LINENO: checking for $ac_func" >&5
11888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11889if eval "test \"\${$as_ac_var+set}\" = set"; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891else
11892 cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11900#define $ac_func innocuous_$ac_func
11901
11902/* System header to define __stub macros and hopefully few prototypes,
11903 which can conflict with char $ac_func (); below.
11904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905 <limits.h> exists even on freestanding compilers. */
11906
11907#ifdef __STDC__
11908# include <limits.h>
11909#else
11910# include <assert.h>
11911#endif
11912
11913#undef $ac_func
11914
11915/* Override any gcc2 internal prototype to avoid an error. */
11916#ifdef __cplusplus
11917extern "C"
11918{
11919#endif
11920/* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11922char $ac_func ();
11923/* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11927choke me
11928#else
11929char (*f) () = $ac_func;
11930#endif
11931#ifdef __cplusplus
11932}
11933#endif
11934
11935int
11936main ()
11937{
11938return f != $ac_func;
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
11944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_c_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 eval "$as_ac_var=yes"
11966else
11967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
11970eval "$as_ac_var=no"
11971fi
11972rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974fi
11975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11977if test `eval echo '${'$as_ac_var'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980_ACEOF
11981
11982fi
11983done
11984
11985
11986for ac_func in utmpname
11987do
11988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11989echo "$as_me:$LINENO: checking for $ac_func" >&5
11990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11991if eval "test \"\${$as_ac_var+set}\" = set"; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994 cat >conftest.$ac_ext <<_ACEOF
11995/* confdefs.h. */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h. */
12000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12002#define $ac_func innocuous_$ac_func
12003
12004/* System header to define __stub macros and hopefully few prototypes,
12005 which can conflict with char $ac_func (); below.
12006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12007 <limits.h> exists even on freestanding compilers. */
12008
12009#ifdef __STDC__
12010# include <limits.h>
12011#else
12012# include <assert.h>
12013#endif
12014
12015#undef $ac_func
12016
12017/* Override any gcc2 internal prototype to avoid an error. */
12018#ifdef __cplusplus
12019extern "C"
12020{
12021#endif
12022/* We use char because int might match the return type of a gcc2
12023 builtin and then its argument prototype would still apply. */
12024char $ac_func ();
12025/* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
12028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12029choke me
12030#else
12031char (*f) () = $ac_func;
12032#endif
12033#ifdef __cplusplus
12034}
12035#endif
12036
12037int
12038main ()
12039{
12040return f != $ac_func;
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -z "$ac_c_werror_flag"
12055 || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 eval "$as_ac_var=yes"
12068else
12069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
12072eval "$as_ac_var=no"
12073fi
12074rm -f conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076fi
12077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12079if test `eval echo '${'$as_ac_var'}'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082_ACEOF
12083
12084fi
12085done
12086
12087
12088
12089
12090
12091
12092for ac_func in endutxent getutxent getutxid getutxline pututxline
12093do
12094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12095echo "$as_me:$LINENO: checking for $ac_func" >&5
12096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12097if eval "test \"\${$as_ac_var+set}\" = set"; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099else
12100 cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
12105/* end confdefs.h. */
12106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12108#define $ac_func innocuous_$ac_func
12109
12110/* System header to define __stub macros and hopefully few prototypes,
12111 which can conflict with char $ac_func (); below.
12112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113 <limits.h> exists even on freestanding compilers. */
12114
12115#ifdef __STDC__
12116# include <limits.h>
12117#else
12118# include <assert.h>
12119#endif
12120
12121#undef $ac_func
12122
12123/* Override any gcc2 internal prototype to avoid an error. */
12124#ifdef __cplusplus
12125extern "C"
12126{
12127#endif
12128/* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12130char $ac_func ();
12131/* The GNU C library defines this for functions which it implements
12132 to always fail with ENOSYS. Some functions are actually named
12133 something starting with __ and the normal name is an alias. */
12134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12135choke me
12136#else
12137char (*f) () = $ac_func;
12138#endif
12139#ifdef __cplusplus
12140}
12141#endif
12142
12143int
12144main ()
12145{
12146return f != $ac_func;
12147 ;
12148 return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext conftest$ac_exeext
12152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153 (eval $ac_link) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest$ac_exeext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 eval "$as_ac_var=yes"
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178eval "$as_ac_var=no"
12179fi
12180rm -f conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12182fi
12183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12185if test `eval echo '${'$as_ac_var'}'` = yes; then
12186 cat >>confdefs.h <<_ACEOF
12187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12188_ACEOF
12189
12190fi
12191done
12192
12193
12194
12195for ac_func in setutxent utmpxname
12196do
12197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12198echo "$as_me:$LINENO: checking for $ac_func" >&5
12199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12200if eval "test \"\${$as_ac_var+set}\" = set"; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202else
12203 cat >conftest.$ac_ext <<_ACEOF
12204/* confdefs.h. */
12205_ACEOF
12206cat confdefs.h >>conftest.$ac_ext
12207cat >>conftest.$ac_ext <<_ACEOF
12208/* end confdefs.h. */
12209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12211#define $ac_func innocuous_$ac_func
12212
12213/* System header to define __stub macros and hopefully few prototypes,
12214 which can conflict with char $ac_func (); below.
12215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12216 <limits.h> exists even on freestanding compilers. */
12217
12218#ifdef __STDC__
12219# include <limits.h>
12220#else
12221# include <assert.h>
12222#endif
12223
12224#undef $ac_func
12225
12226/* Override any gcc2 internal prototype to avoid an error. */
12227#ifdef __cplusplus
12228extern "C"
12229{
12230#endif
12231/* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233char $ac_func ();
12234/* The GNU C library defines this for functions which it implements
12235 to always fail with ENOSYS. Some functions are actually named
12236 something starting with __ and the normal name is an alias. */
12237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12238choke me
12239#else
12240char (*f) () = $ac_func;
12241#endif
12242#ifdef __cplusplus
12243}
12244#endif
12245
12246int
12247main ()
12248{
12249return f != $ac_func;
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254rm -f conftest.$ac_objext conftest$ac_exeext
12255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12256 (eval $ac_link) 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -z "$ac_c_werror_flag"
12264 || test ! -s conftest.err'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; } &&
12270 { ac_try='test -s conftest$ac_exeext'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 eval "$as_ac_var=yes"
12277else
12278 echo "$as_me: failed program was:" >&5
12279sed 's/^/| /' conftest.$ac_ext >&5
12280
12281eval "$as_ac_var=no"
12282fi
12283rm -f conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285fi
12286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12288if test `eval echo '${'$as_ac_var'}'` = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291_ACEOF
12292
12293fi
12294done
12295
12296
12297echo "$as_me:$LINENO: checking for daemon" >&5
12298echo $ECHO_N "checking for daemon... $ECHO_C" >&6
12299if test "${ac_cv_func_daemon+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
12309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12310#define daemon innocuous_daemon
12311
12312/* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char daemon (); below.
12314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315 <limits.h> exists even on freestanding compilers. */
12316
12317#ifdef __STDC__
12318# include <limits.h>
12319#else
12320# include <assert.h>
12321#endif
12322
12323#undef daemon
12324
12325/* Override any gcc2 internal prototype to avoid an error. */
12326#ifdef __cplusplus
12327extern "C"
12328{
12329#endif
12330/* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12332char daemon ();
12333/* The GNU C library defines this for functions which it implements
12334 to always fail with ENOSYS. Some functions are actually named
12335 something starting with __ and the normal name is an alias. */
12336#if defined (__stub_daemon) || defined (__stub___daemon)
12337choke me
12338#else
12339char (*f) () = daemon;
12340#endif
12341#ifdef __cplusplus
12342}
12343#endif
12344
12345int
12346main ()
12347{
12348return f != daemon;
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext conftest$ac_exeext
12354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12375 ac_cv_func_daemon=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380ac_cv_func_daemon=no
12381fi
12382rm -f conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384fi
12385echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
12386echo "${ECHO_T}$ac_cv_func_daemon" >&6
12387if test $ac_cv_func_daemon = yes; then
12388 cat >>confdefs.h <<\_ACEOF
12389#define HAVE_DAEMON 1
12390_ACEOF
12391
12392else
12393 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
12394echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
12395if test "${ac_cv_lib_bsd_daemon+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397else
12398 ac_check_lib_save_LIBS=$LIBS
12399LIBS="-lbsd $LIBS"
12400cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
12406
12407/* Override any gcc2 internal prototype to avoid an error. */
12408#ifdef __cplusplus
12409extern "C"
12410#endif
12411/* We use char because int might match the return type of a gcc2
12412 builtin and then its argument prototype would still apply. */
12413char daemon ();
12414int
12415main ()
12416{
12417daemon ();
12418 ;
12419 return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext conftest$ac_exeext
12423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424 (eval $ac_link) 2>conftest.er1
12425 ac_status=$?
12426 grep -v '^ *+' conftest.er1 >conftest.err
12427 rm -f conftest.er1
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag"
12432 || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_lib_bsd_daemon=yes
12445else
12446 echo "$as_me: failed program was:" >&5
12447sed 's/^/| /' conftest.$ac_ext >&5
12448
12449ac_cv_lib_bsd_daemon=no
12450fi
12451rm -f conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453LIBS=$ac_check_lib_save_LIBS
12454fi
12455echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
12456echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
12457if test $ac_cv_lib_bsd_daemon = yes; then
12458 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
12459#define HAVE_DAEMON 1
12460_ACEOF
12461
12462fi
12463
12464
12465fi
12466
12467
12468echo "$as_me:$LINENO: checking for getpagesize" >&5
12469echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
12470if test "${ac_cv_func_getpagesize+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481#define getpagesize innocuous_getpagesize
12482
12483/* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char getpagesize (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12487
12488#ifdef __STDC__
12489# include <limits.h>
12490#else
12491# include <assert.h>
12492#endif
12493
12494#undef getpagesize
12495
12496/* Override any gcc2 internal prototype to avoid an error. */
12497#ifdef __cplusplus
12498extern "C"
12499{
12500#endif
12501/* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503char getpagesize ();
12504/* The GNU C library defines this for functions which it implements
12505 to always fail with ENOSYS. Some functions are actually named
12506 something starting with __ and the normal name is an alias. */
12507#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
12508choke me
12509#else
12510char (*f) () = getpagesize;
12511#endif
12512#ifdef __cplusplus
12513}
12514#endif
12515
12516int
12517main ()
12518{
12519return f != getpagesize;
12520 ;
12521 return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext conftest$ac_exeext
12525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>conftest.er1
12527 ac_status=$?
12528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_func_getpagesize=yes
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551ac_cv_func_getpagesize=no
12552fi
12553rm -f conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555fi
12556echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
12557echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
12558if test $ac_cv_func_getpagesize = yes; then
12559 cat >>confdefs.h <<\_ACEOF
12560#define HAVE_GETPAGESIZE 1
12561_ACEOF
12562
12563else
12564 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
12565echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
12566if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 ac_check_lib_save_LIBS=$LIBS
12570LIBS="-lucb $LIBS"
12571cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577
12578/* Override any gcc2 internal prototype to avoid an error. */
12579#ifdef __cplusplus
12580extern "C"
12581#endif
12582/* We use char because int might match the return type of a gcc2
12583 builtin and then its argument prototype would still apply. */
12584char getpagesize ();
12585int
12586main ()
12587{
12588getpagesize ();
12589 ;
12590 return 0;
12591}
12592_ACEOF
12593rm -f conftest.$ac_objext conftest$ac_exeext
12594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_lib_ucb_getpagesize=yes
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620ac_cv_lib_ucb_getpagesize=no
12621fi
12622rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624LIBS=$ac_check_lib_save_LIBS
12625fi
12626echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
12627echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
12628if test $ac_cv_lib_ucb_getpagesize = yes; then
12629 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
12630#define HAVE_GETPAGESIZE 1
12631_ACEOF
12632
12633fi
12634
12635
12636fi
12637
12638
12639# Check for broken snprintf
12640if test "x$ac_cv_func_snprintf" = "xyes" ; then
12641 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
12642echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
12643 if test "$cross_compiling" = yes; then
12644 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
12645echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12646
12647else
12648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654
12655#include <stdio.h>
12656int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
12657
12658_ACEOF
12659rm -f conftest$ac_exeext
12660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661 (eval $ac_link) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 echo "$as_me:$LINENO: result: yes" >&5
12671echo "${ECHO_T}yes" >&6
12672else
12673 echo "$as_me: program exited with status $ac_status" >&5
12674echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677( exit $ac_status )
12678
12679 echo "$as_me:$LINENO: result: no" >&5
12680echo "${ECHO_T}no" >&6
12681 cat >>confdefs.h <<\_ACEOF
12682#define BROKEN_SNPRINTF 1
12683_ACEOF
12684
12685 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
12686echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
12687
12688fi
12689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12690fi
12691fi
12692
12693# Check for missing getpeereid (or equiv) support
12694NO_PEERCHECK=""
12695if test "x$ac_cv_func_getpeereid" != "xyes" ; then
12696 echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
12697echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6
12698 cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h. */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h. */
12704#include <sys/types.h>
12705 #include <sys/socket.h>
12706int
12707main ()
12708{
12709int i = SO_PEERCRED;
12710 ;
12711 return 0;
12712}
12713_ACEOF
12714rm -f conftest.$ac_objext
12715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag"
12724 || test ! -s conftest.err'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 echo "$as_me:$LINENO: result: yes" >&5
12737echo "${ECHO_T}yes" >&6
12738else
12739 echo "$as_me: failed program was:" >&5
12740sed 's/^/| /' conftest.$ac_ext >&5
12741
12742echo "$as_me:$LINENO: result: no" >&5
12743echo "${ECHO_T}no" >&6
12744 NO_PEERCHECK=1
12745
12746fi
12747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12748fi
12749
12750if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
12751echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
12752echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
12753if test "$cross_compiling" = yes; then
12754
12755 echo "$as_me:$LINENO: result: yes" >&5
12756echo "${ECHO_T}yes" >&6
12757 cat >>confdefs.h <<\_ACEOF
12758#define HAVE_STRICT_MKSTEMP 1
12759_ACEOF
12760
12761
12762
12763else
12764 cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770
12771#include <stdlib.h>
12772main() { char template[]="conftest.mkstemp-test";
12773if (mkstemp(template) == -1)
12774 exit(1);
12775unlink(template); exit(0);
12776}
12777
12778_ACEOF
12779rm -f conftest$ac_exeext
12780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790
12791 echo "$as_me:$LINENO: result: no" >&5
12792echo "${ECHO_T}no" >&6
12793
12794else
12795 echo "$as_me: program exited with status $ac_status" >&5
12796echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
12799( exit $ac_status )
12800
12801 echo "$as_me:$LINENO: result: yes" >&5
12802echo "${ECHO_T}yes" >&6
12803 cat >>confdefs.h <<\_ACEOF
12804#define HAVE_STRICT_MKSTEMP 1
12805_ACEOF
12806
12807
12808fi
12809rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12810fi
12811fi
12812
12813if test ! -z "$check_for_openpty_ctty_bug"; then
12814 echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
12815echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
12816 if test "$cross_compiling" = yes; then
12817 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12818See \`config.log' for more details." >&5
12819echo "$as_me: error: cannot run test program while cross compiling
12820See \`config.log' for more details." >&2;}
12821 { (exit 1); exit 1; }; }
12822else
12823 cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829
12830#include <stdio.h>
12831#include <sys/fcntl.h>
12832#include <sys/types.h>
12833#include <sys/wait.h>
12834
12835int
12836main()
12837{
12838 pid_t pid;
12839 int fd, ptyfd, ttyfd, status;
12840
12841 pid = fork();
12842 if (pid < 0) { /* failed */
12843 exit(1);
12844 } else if (pid > 0) { /* parent */
12845 waitpid(pid, &status, 0);
12846 if (WIFEXITED(status))
12847 exit(WEXITSTATUS(status));
12848 else
12849 exit(2);
12850 } else { /* child */
12851 close(0); close(1); close(2);
12852 setsid();
12853 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12854 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12855 if (fd >= 0)
12856 exit(3); /* Acquired ctty: broken */
12857 else
12858 exit(0); /* Did not acquire ctty: OK */
12859 }
12860}
12861
12862_ACEOF
12863rm -f conftest$ac_exeext
12864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874
12875 echo "$as_me:$LINENO: result: yes" >&5
12876echo "${ECHO_T}yes" >&6
12877
12878else
12879 echo "$as_me: program exited with status $ac_status" >&5
12880echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883( exit $ac_status )
12884
12885 echo "$as_me:$LINENO: result: no" >&5
12886echo "${ECHO_T}no" >&6
12887 cat >>confdefs.h <<\_ACEOF
12888#define SSHD_ACQUIRES_CTTY 1
12889_ACEOF
12890
12891
12892
12893fi
12894rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12895fi
12896fi
12897
12898if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12899 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
12900echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
12901 if test "$cross_compiling" = yes; then
12902 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12903See \`config.log' for more details." >&5
12904echo "$as_me: error: cannot run test program while cross compiling
12905See \`config.log' for more details." >&2;}
12906 { (exit 1); exit 1; }; }
12907else
12908 cat >conftest.$ac_ext <<_ACEOF
12909/* confdefs.h. */
12910_ACEOF
12911cat confdefs.h >>conftest.$ac_ext
12912cat >>conftest.$ac_ext <<_ACEOF
12913/* end confdefs.h. */
12914
12915#include <stdio.h>
12916#include <sys/socket.h>
12917#include <netdb.h>
12918#include <errno.h>
12919#include <netinet/in.h>
12920
12921#define TEST_PORT "2222"
12922
12923int
12924main(void)
12925{
12926 int err, sock;
12927 struct addrinfo *gai_ai, *ai, hints;
12928 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12929
12930 memset(&hints, 0, sizeof(hints));
12931 hints.ai_family = PF_UNSPEC;
12932 hints.ai_socktype = SOCK_STREAM;
12933 hints.ai_flags = AI_PASSIVE;
12934
12935 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12936 if (err != 0) {
12937 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12938 exit(1);
12939 }
12940
12941 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12942 if (ai->ai_family != AF_INET6)
12943 continue;
12944
12945 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12946 sizeof(ntop), strport, sizeof(strport),
12947 NI_NUMERICHOST|NI_NUMERICSERV);
12948
12949 if (err != 0) {
12950 if (err == EAI_SYSTEM)
12951 perror("getnameinfo EAI_SYSTEM");
12952 else
12953 fprintf(stderr, "getnameinfo failed: %s\n",
12954 gai_strerror(err));
12955 exit(2);
12956 }
12957
12958 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
12959 if (sock < 0)
12960 perror("socket");
12961 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
12962 if (errno == EBADF)
12963 exit(3);
12964 }
12965 }
12966 exit(0);
12967}
12968
12969_ACEOF
12970rm -f conftest$ac_exeext
12971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981
12982 echo "$as_me:$LINENO: result: yes" >&5
12983echo "${ECHO_T}yes" >&6
12984
12985else
12986 echo "$as_me: program exited with status $ac_status" >&5
12987echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990( exit $ac_status )
12991
12992 echo "$as_me:$LINENO: result: no" >&5
12993echo "${ECHO_T}no" >&6
12994 cat >>confdefs.h <<\_ACEOF
12995#define BROKEN_GETADDRINFO 1
12996_ACEOF
12997
12998
12999
13000fi
13001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13002fi
13003fi
13004
13005if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_aix_broken_getaddrinfo" = "x1"; then
13006 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
13007echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
13008 if test "$cross_compiling" = yes; then
13009 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13010See \`config.log' for more details." >&5
13011echo "$as_me: error: cannot run test program while cross compiling
13012See \`config.log' for more details." >&2;}
13013 { (exit 1); exit 1; }; }
13014else
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021
13022#include <stdio.h>
13023#include <sys/socket.h>
13024#include <netdb.h>
13025#include <errno.h>
13026#include <netinet/in.h>
13027
13028#define TEST_PORT "2222"
13029
13030int
13031main(void)
13032{
13033 int err, sock;
13034 struct addrinfo *gai_ai, *ai, hints;
13035 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
13036
13037 memset(&hints, 0, sizeof(hints));
13038 hints.ai_family = PF_UNSPEC;
13039 hints.ai_socktype = SOCK_STREAM;
13040 hints.ai_flags = AI_PASSIVE;
13041
13042 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
13043 if (err != 0) {
13044 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
13045 exit(1);
13046 }
13047
13048 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
13049 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
13050 continue;
13051
13052 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
13053 sizeof(ntop), strport, sizeof(strport),
13054 NI_NUMERICHOST|NI_NUMERICSERV);
13055
13056 if (ai->ai_family == AF_INET && err != 0) {
13057 perror("getnameinfo");
13058 exit(2);
13059 }
13060 }
13061 exit(0);
13062}
13063
13064_ACEOF
13065rm -f conftest$ac_exeext
13066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076
13077 echo "$as_me:$LINENO: result: yes" >&5
13078echo "${ECHO_T}yes" >&6
13079
13080cat >>confdefs.h <<\_ACEOF
13081#define AIX_GETNAMEINFO_HACK
13082_ACEOF
13083
13084
13085else
13086 echo "$as_me: program exited with status $ac_status" >&5
13087echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
13089
13090( exit $ac_status )
13091
13092 echo "$as_me:$LINENO: result: no" >&5
13093echo "${ECHO_T}no" >&6
13094 cat >>confdefs.h <<\_ACEOF
13095#define BROKEN_GETADDRINFO 1
13096_ACEOF
13097
13098
13099
13100fi
13101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13102fi
13103fi
13104
13105if test "x$check_for_conflicting_getspnam" = "x1"; then
13106 echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
13107echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6
13108 cat >conftest.$ac_ext <<_ACEOF
13109
13110#include <shadow.h>
13111int main(void) {exit(0);}
13112
13113_ACEOF
13114rm -f conftest.$ac_objext
13115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136
13137 echo "$as_me:$LINENO: result: no" >&5
13138echo "${ECHO_T}no" >&6
13139
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144
13145 echo "$as_me:$LINENO: result: yes" >&5
13146echo "${ECHO_T}yes" >&6
13147
13148cat >>confdefs.h <<\_ACEOF
13149#define GETSPNAM_CONFLICTING_DEFS 1
13150_ACEOF
13151
13152
13153
13154fi
13155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13156fi
13157
13158echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13159echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13160if test "${ac_cv_func_getpgrp_void+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162else
13163 # Use it with a single arg.
13164cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170$ac_includes_default
13171int
13172main ()
13173{
13174getpgrp (0);
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext
13180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_cv_func_getpgrp_void=no
13202else
13203 echo "$as_me: failed program was:" >&5
13204sed 's/^/| /' conftest.$ac_ext >&5
13205
13206ac_cv_func_getpgrp_void=yes
13207fi
13208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209
13210fi
13211echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13212echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13213if test $ac_cv_func_getpgrp_void = yes; then
13214
13215cat >>confdefs.h <<\_ACEOF
13216#define GETPGRP_VOID 1
13217_ACEOF
13218
13219fi
13220
13221
13222# Check for PAM libs
13223PAM_MSG="no"
13224
13225# Check whether --with-pam or --without-pam was given.
13226if test "${with_pam+set}" = set; then
13227 withval="$with_pam"
13228
13229 if test "x$withval" != "xno" ; then
13230 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
13231 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
13232 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
13233echo "$as_me: error: PAM headers not found" >&2;}
13234 { (exit 1); exit 1; }; }
13235 fi
13236
13237
13238echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13239echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13240if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243 ac_check_lib_save_LIBS=$LIBS
13244LIBS="-ldl $LIBS"
13245cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
13251
13252/* Override any gcc2 internal prototype to avoid an error. */
13253#ifdef __cplusplus
13254extern "C"
13255#endif
13256/* We use char because int might match the return type of a gcc2
13257 builtin and then its argument prototype would still apply. */
13258char dlopen ();
13259int
13260main ()
13261{
13262dlopen ();
13263 ;
13264 return 0;
13265}
13266_ACEOF
13267rm -f conftest.$ac_objext conftest$ac_exeext
13268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_lib_dl_dlopen=yes
13290else
13291 echo "$as_me: failed program was:" >&5
13292sed 's/^/| /' conftest.$ac_ext >&5
13293
13294ac_cv_lib_dl_dlopen=no
13295fi
13296rm -f conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13298LIBS=$ac_check_lib_save_LIBS
13299fi
13300echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13301echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13302if test $ac_cv_lib_dl_dlopen = yes; then
13303 cat >>confdefs.h <<_ACEOF
13304#define HAVE_LIBDL 1
13305_ACEOF
13306
13307 LIBS="-ldl $LIBS"
13308
13309fi
13310
13311
13312echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
13313echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
13314if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317 ac_check_lib_save_LIBS=$LIBS
13318LIBS="-lpam $LIBS"
13319cat >conftest.$ac_ext <<_ACEOF
13320/* confdefs.h. */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
13324/* end confdefs.h. */
13325
13326/* Override any gcc2 internal prototype to avoid an error. */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330/* We use char because int might match the return type of a gcc2
13331 builtin and then its argument prototype would still apply. */
13332char pam_set_item ();
13333int
13334main ()
13335{
13336pam_set_item ();
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341rm -f conftest.$ac_objext conftest$ac_exeext
13342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343 (eval $ac_link) 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -z "$ac_c_werror_flag"
13351 || test ! -s conftest.err'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_cv_lib_pam_pam_set_item=yes
13364else
13365 echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368ac_cv_lib_pam_pam_set_item=no
13369fi
13370rm -f conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372LIBS=$ac_check_lib_save_LIBS
13373fi
13374echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
13375echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
13376if test $ac_cv_lib_pam_pam_set_item = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378#define HAVE_LIBPAM 1
13379_ACEOF
13380
13381 LIBS="-lpam $LIBS"
13382
13383else
13384 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
13385echo "$as_me: error: *** libpam missing" >&2;}
13386 { (exit 1); exit 1; }; }
13387fi
13388
13389
13390for ac_func in pam_getenvlist
13391do
13392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13393echo "$as_me:$LINENO: checking for $ac_func" >&5
13394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13395if eval "test \"\${$as_ac_var+set}\" = set"; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397else
13398 cat >conftest.$ac_ext <<_ACEOF
13399/* confdefs.h. */
13400_ACEOF
13401cat confdefs.h >>conftest.$ac_ext
13402cat >>conftest.$ac_ext <<_ACEOF
13403/* end confdefs.h. */
13404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13406#define $ac_func innocuous_$ac_func
13407
13408/* System header to define __stub macros and hopefully few prototypes,
13409 which can conflict with char $ac_func (); below.
13410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13411 <limits.h> exists even on freestanding compilers. */
13412
13413#ifdef __STDC__
13414# include <limits.h>
13415#else
13416# include <assert.h>
13417#endif
13418
13419#undef $ac_func
13420
13421/* Override any gcc2 internal prototype to avoid an error. */
13422#ifdef __cplusplus
13423extern "C"
13424{
13425#endif
13426/* We use char because int might match the return type of a gcc2
13427 builtin and then its argument prototype would still apply. */
13428char $ac_func ();
13429/* The GNU C library defines this for functions which it implements
13430 to always fail with ENOSYS. Some functions are actually named
13431 something starting with __ and the normal name is an alias. */
13432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13433choke me
13434#else
13435char (*f) () = $ac_func;
13436#endif
13437#ifdef __cplusplus
13438}
13439#endif
13440
13441int
13442main ()
13443{
13444return f != $ac_func;
13445 ;
13446 return 0;
13447}
13448_ACEOF
13449rm -f conftest.$ac_objext conftest$ac_exeext
13450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451 (eval $ac_link) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -z "$ac_c_werror_flag"
13459 || test ! -s conftest.err'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 eval "$as_ac_var=yes"
13472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476eval "$as_ac_var=no"
13477fi
13478rm -f conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480fi
13481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13483if test `eval echo '${'$as_ac_var'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13486_ACEOF
13487
13488fi
13489done
13490
13491
13492for ac_func in pam_putenv
13493do
13494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13495echo "$as_me:$LINENO: checking for $ac_func" >&5
13496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13497if eval "test \"\${$as_ac_var+set}\" = set"; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499else
13500 cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
13506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13508#define $ac_func innocuous_$ac_func
13509
13510/* System header to define __stub macros and hopefully few prototypes,
13511 which can conflict with char $ac_func (); below.
13512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13513 <limits.h> exists even on freestanding compilers. */
13514
13515#ifdef __STDC__
13516# include <limits.h>
13517#else
13518# include <assert.h>
13519#endif
13520
13521#undef $ac_func
13522
13523/* Override any gcc2 internal prototype to avoid an error. */
13524#ifdef __cplusplus
13525extern "C"
13526{
13527#endif
13528/* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13530char $ac_func ();
13531/* The GNU C library defines this for functions which it implements
13532 to always fail with ENOSYS. Some functions are actually named
13533 something starting with __ and the normal name is an alias. */
13534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13535choke me
13536#else
13537char (*f) () = $ac_func;
13538#endif
13539#ifdef __cplusplus
13540}
13541#endif
13542
13543int
13544main ()
13545{
13546return f != $ac_func;
13547 ;
13548 return 0;
13549}
13550_ACEOF
13551rm -f conftest.$ac_objext conftest$ac_exeext
13552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 eval "$as_ac_var=yes"
13574else
13575 echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
13578eval "$as_ac_var=no"
13579fi
13580rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582fi
13583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13585if test `eval echo '${'$as_ac_var'}'` = yes; then
13586 cat >>confdefs.h <<_ACEOF
13587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13588_ACEOF
13589
13590fi
13591done
13592
13593
13594 PAM_MSG="yes"
13595
13596 cat >>confdefs.h <<\_ACEOF
13597#define USE_PAM 1
13598_ACEOF
13599
13600 if test $ac_cv_lib_dl_dlopen = yes; then
13601 LIBPAM="-lpam -ldl"
13602 else
13603 LIBPAM="-lpam"
13604 fi
13605
13606 fi
13607
13608
13609fi;
13610
13611# Check for older PAM
13612if test "x$PAM_MSG" = "xyes" ; then
13613 # Check PAM strerror arguments (old PAM)
13614 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
13615echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622
13623#include <stdlib.h>
13624#if defined(HAVE_SECURITY_PAM_APPL_H)
13625#include <security/pam_appl.h>
13626#elif defined (HAVE_PAM_PAM_APPL_H)
13627#include <pam/pam_appl.h>
13628#endif
13629
13630int
13631main ()
13632{
13633(void)pam_strerror((pam_handle_t *)NULL, -1);
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext
13639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 echo "$as_me:$LINENO: result: no" >&5
13661echo "${ECHO_T}no" >&6
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666
13667 cat >>confdefs.h <<\_ACEOF
13668#define HAVE_OLD_PAM 1
13669_ACEOF
13670
13671 echo "$as_me:$LINENO: result: yes" >&5
13672echo "${ECHO_T}yes" >&6
13673 PAM_MSG="yes (old library)"
13674
13675
13676fi
13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678fi
13679
13680# Search for OpenSSL
13681saved_CPPFLAGS="$CPPFLAGS"
13682saved_LDFLAGS="$LDFLAGS"
13683
13684# Check whether --with-ssl-dir or --without-ssl-dir was given.
13685if test "${with_ssl_dir+set}" = set; then
13686 withval="$with_ssl_dir"
13687
13688 if test "x$withval" != "xno" ; then
13689 case "$withval" in
13690 # Relative paths
13691 ./*|../*) withval="`pwd`/$withval"
13692 esac
13693 if test -d "$withval/lib"; then
13694 if test -n "${need_dash_r}"; then
13695 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13696 else
13697 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13698 fi
13699 else
13700 if test -n "${need_dash_r}"; then
13701 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13702 else
13703 LDFLAGS="-L${withval} ${LDFLAGS}"
13704 fi
13705 fi
13706 if test -d "$withval/include"; then
13707 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13708 else
13709 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13710 fi
13711 fi
13712
13713
13714fi;
13715LIBS="-lcrypto $LIBS"
13716cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722
13723/* Override any gcc2 internal prototype to avoid an error. */
13724#ifdef __cplusplus
13725extern "C"
13726#endif
13727/* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13729char RAND_add ();
13730int
13731main ()
13732{
13733RAND_add ();
13734 ;
13735 return 0;
13736}
13737_ACEOF
13738rm -f conftest.$ac_objext conftest$ac_exeext
13739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 cat >>confdefs.h <<\_ACEOF
13761#define HAVE_OPENSSL 1
13762_ACEOF
13763
13764else
13765 echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
13768
13769 if test -n "${need_dash_r}"; then
13770 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
13771 else
13772 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
13773 fi
13774 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
13775 cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781
13782/* Override any gcc2 internal prototype to avoid an error. */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786/* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13788char RAND_add ();
13789int
13790main ()
13791{
13792RAND_add ();
13793 ;
13794 return 0;
13795}
13796_ACEOF
13797rm -f conftest.$ac_objext conftest$ac_exeext
13798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest$ac_exeext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 cat >>confdefs.h <<\_ACEOF
13820#define HAVE_OPENSSL 1
13821_ACEOF
13822
13823else
13824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827
13828 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
13829echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
13830 { (exit 1); exit 1; }; }
13831
13832
13833fi
13834rm -f conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13836
13837
13838fi
13839rm -f conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841
13842# Determine OpenSSL header version
13843echo "$as_me:$LINENO: checking OpenSSL header version" >&5
13844echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
13845if test "$cross_compiling" = yes; then
13846
13847 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
13848echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13849
13850
13851else
13852 cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
13858
13859#include <stdio.h>
13860#include <string.h>
13861#include <openssl/opensslv.h>
13862#define DATA "conftest.sslincver"
13863int main(void) {
13864 FILE *fd;
13865 int rc;
13866
13867 fd = fopen(DATA,"w");
13868 if(fd == NULL)
13869 exit(1);
13870
13871 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
13872 exit(1);
13873
13874 exit(0);
13875}
13876
13877_ACEOF
13878rm -f conftest$ac_exeext
13879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13889
13890 ssl_header_ver=`cat conftest.sslincver`
13891 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
13892echo "${ECHO_T}$ssl_header_ver" >&6
13893
13894else
13895 echo "$as_me: program exited with status $ac_status" >&5
13896echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899( exit $ac_status )
13900
13901 echo "$as_me:$LINENO: result: not found" >&5
13902echo "${ECHO_T}not found" >&6
13903 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
13904echo "$as_me: error: OpenSSL version header not found." >&2;}
13905 { (exit 1); exit 1; }; }
13906
13907fi
13908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13909fi
13910
13911# Determine OpenSSL library version
13912echo "$as_me:$LINENO: checking OpenSSL library version" >&5
13913echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
13914if test "$cross_compiling" = yes; then
13915
13916 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
13917echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13918
13919
13920else
13921 cat >conftest.$ac_ext <<_ACEOF
13922/* confdefs.h. */
13923_ACEOF
13924cat confdefs.h >>conftest.$ac_ext
13925cat >>conftest.$ac_ext <<_ACEOF
13926/* end confdefs.h. */
13927
13928#include <stdio.h>
13929#include <string.h>
13930#include <openssl/opensslv.h>
13931#include <openssl/crypto.h>
13932#define DATA "conftest.ssllibver"
13933int main(void) {
13934 FILE *fd;
13935 int rc;
13936
13937 fd = fopen(DATA,"w");
13938 if(fd == NULL)
13939 exit(1);
13940
13941 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
13942 exit(1);
13943
13944 exit(0);
13945}
13946
13947_ACEOF
13948rm -f conftest$ac_exeext
13949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13950 (eval $ac_link) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959
13960 ssl_library_ver=`cat conftest.ssllibver`
13961 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
13962echo "${ECHO_T}$ssl_library_ver" >&6
13963
13964else
13965 echo "$as_me: program exited with status $ac_status" >&5
13966echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969( exit $ac_status )
13970
13971 echo "$as_me:$LINENO: result: not found" >&5
13972echo "${ECHO_T}not found" >&6
13973 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
13974echo "$as_me: error: OpenSSL library not found." >&2;}
13975 { (exit 1); exit 1; }; }
13976
13977fi
13978rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13979fi
13980
13981# Sanity check OpenSSL headers
13982echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
13983echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
13984if test "$cross_compiling" = yes; then
13985
13986 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
13987echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13988
13989
13990else
13991 cat >conftest.$ac_ext <<_ACEOF
13992/* confdefs.h. */
13993_ACEOF
13994cat confdefs.h >>conftest.$ac_ext
13995cat >>conftest.$ac_ext <<_ACEOF
13996/* end confdefs.h. */
13997
13998#include <string.h>
13999#include <openssl/opensslv.h>
14000int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
14001
14002_ACEOF
14003rm -f conftest$ac_exeext
14004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005 (eval $ac_link) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014
14015 echo "$as_me:$LINENO: result: yes" >&5
14016echo "${ECHO_T}yes" >&6
14017
14018else
14019 echo "$as_me: program exited with status $ac_status" >&5
14020echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023( exit $ac_status )
14024
14025 echo "$as_me:$LINENO: result: no" >&5
14026echo "${ECHO_T}no" >&6
14027 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
14028Check config.log for details.
14029Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
14030echo "$as_me: error: Your OpenSSL headers do not match your library.
14031Check config.log for details.
14032Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
14033 { (exit 1); exit 1; }; }
14034
14035fi
14036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14037fi
14038
14039# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
14040# because the system crypt() is more featureful.
14041if test "x$check_for_libcrypt_before" = "x1"; then
14042
14043echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14044echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14045if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 ac_check_lib_save_LIBS=$LIBS
14049LIBS="-lcrypt $LIBS"
14050cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056
14057/* Override any gcc2 internal prototype to avoid an error. */
14058#ifdef __cplusplus
14059extern "C"
14060#endif
14061/* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14063char crypt ();
14064int
14065main ()
14066{
14067crypt ();
14068 ;
14069 return 0;
14070}
14071_ACEOF
14072rm -f conftest.$ac_objext conftest$ac_exeext
14073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -z "$ac_c_werror_flag"
14082 || test ! -s conftest.err'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_lib_crypt_crypt=yes
14095else
14096 echo "$as_me: failed program was:" >&5
14097sed 's/^/| /' conftest.$ac_ext >&5
14098
14099ac_cv_lib_crypt_crypt=no
14100fi
14101rm -f conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103LIBS=$ac_check_lib_save_LIBS
14104fi
14105echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14106echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14107if test $ac_cv_lib_crypt_crypt = yes; then
14108 cat >>confdefs.h <<_ACEOF
14109#define HAVE_LIBCRYPT 1
14110_ACEOF
14111
14112 LIBS="-lcrypt $LIBS"
14113
14114fi
14115
14116fi
14117
14118# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
14119# version in OpenSSL.
14120if test "x$check_for_libcrypt_later" = "x1"; then
14121 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14122echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14123if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125else
14126 ac_check_lib_save_LIBS=$LIBS
14127LIBS="-lcrypt $LIBS"
14128cat >conftest.$ac_ext <<_ACEOF
14129/* confdefs.h. */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h. */
14134
14135/* Override any gcc2 internal prototype to avoid an error. */
14136#ifdef __cplusplus
14137extern "C"
14138#endif
14139/* We use char because int might match the return type of a gcc2
14140 builtin and then its argument prototype would still apply. */
14141char crypt ();
14142int
14143main ()
14144{
14145crypt ();
14146 ;
14147 return 0;
14148}
14149_ACEOF
14150rm -f conftest.$ac_objext conftest$ac_exeext
14151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152 (eval $ac_link) 2>conftest.er1
14153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -z "$ac_c_werror_flag"
14160 || test ! -s conftest.err'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest$ac_exeext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_lib_crypt_crypt=yes
14173else
14174 echo "$as_me: failed program was:" >&5
14175sed 's/^/| /' conftest.$ac_ext >&5
14176
14177ac_cv_lib_crypt_crypt=no
14178fi
14179rm -f conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181LIBS=$ac_check_lib_save_LIBS
14182fi
14183echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14184echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14185if test $ac_cv_lib_crypt_crypt = yes; then
14186 LIBS="$LIBS -lcrypt"
14187fi
14188
14189fi
14190
14191
14192### Configure cryptographic random number support
14193
14194# Check wheter OpenSSL seeds itself
14195echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
14196echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
14197if test "$cross_compiling" = yes; then
14198
14199 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
14200echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14201 # This is safe, since all recent OpenSSL versions will
14202 # complain at runtime if not seeded correctly.
14203 OPENSSL_SEEDS_ITSELF=yes
14204
14205
14206else
14207 cat >conftest.$ac_ext <<_ACEOF
14208/* confdefs.h. */
14209_ACEOF
14210cat confdefs.h >>conftest.$ac_ext
14211cat >>conftest.$ac_ext <<_ACEOF
14212/* end confdefs.h. */
14213
14214#include <string.h>
14215#include <openssl/rand.h>
14216int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
14217
14218_ACEOF
14219rm -f conftest$ac_exeext
14220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230
14231 OPENSSL_SEEDS_ITSELF=yes
14232 echo "$as_me:$LINENO: result: yes" >&5
14233echo "${ECHO_T}yes" >&6
14234
14235else
14236 echo "$as_me: program exited with status $ac_status" >&5
14237echo "$as_me: failed program was:" >&5
14238sed 's/^/| /' conftest.$ac_ext >&5
14239
14240( exit $ac_status )
14241
14242 echo "$as_me:$LINENO: result: no" >&5
14243echo "${ECHO_T}no" >&6
14244 # Default to use of the rand helper if OpenSSL doesn't
14245 # seed itself
14246 USE_RAND_HELPER=yes
14247
14248fi
14249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14250fi
14251
14252
14253# Do we want to force the use of the rand helper?
14254
14255# Check whether --with-rand-helper or --without-rand-helper was given.
14256if test "${with_rand_helper+set}" = set; then
14257 withval="$with_rand_helper"
14258
14259 if test "x$withval" = "xno" ; then
14260 # Force use of OpenSSL's internal RNG, even if
14261 # the previous test showed it to be unseeded.
14262 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
14263 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
14264echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
14265 OPENSSL_SEEDS_ITSELF=yes
14266 USE_RAND_HELPER=""
14267 fi
14268 else
14269 USE_RAND_HELPER=yes
14270 fi
14271
14272fi;
14273
14274# Which randomness source do we use?
14275if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
14276 # OpenSSL only
14277 cat >>confdefs.h <<\_ACEOF
14278#define OPENSSL_PRNG_ONLY 1
14279_ACEOF
14280
14281 RAND_MSG="OpenSSL internal ONLY"
14282 INSTALL_SSH_RAND_HELPER=""
14283elif test ! -z "$USE_RAND_HELPER" ; then
14284 # install rand helper
14285 RAND_MSG="ssh-rand-helper"
14286 INSTALL_SSH_RAND_HELPER="yes"
14287fi
14288
14289
14290### Configuration of ssh-rand-helper
14291
14292# PRNGD TCP socket
14293
14294# Check whether --with-prngd-port or --without-prngd-port was given.
14295if test "${with_prngd_port+set}" = set; then
14296 withval="$with_prngd_port"
14297
14298 case "$withval" in
14299 no)
14300 withval=""
14301 ;;
14302 [0-9]*)
14303 ;;
14304 *)
14305 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
14306echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
14307 { (exit 1); exit 1; }; }
14308 ;;
14309 esac
14310 if test ! -z "$withval" ; then
14311 PRNGD_PORT="$withval"
14312 cat >>confdefs.h <<_ACEOF
14313#define PRNGD_PORT $PRNGD_PORT
14314_ACEOF
14315
14316 fi
14317
14318
14319fi;
14320
14321# PRNGD Unix domain socket
14322
14323# Check whether --with-prngd-socket or --without-prngd-socket was given.
14324if test "${with_prngd_socket+set}" = set; then
14325 withval="$with_prngd_socket"
14326
14327 case "$withval" in
14328 yes)
14329 withval="/var/run/egd-pool"
14330 ;;
14331 no)
14332 withval=""
14333 ;;
14334 /*)
14335 ;;
14336 *)
14337 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
14338echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
14339 { (exit 1); exit 1; }; }
14340 ;;
14341 esac
14342
14343 if test ! -z "$withval" ; then
14344 if test ! -z "$PRNGD_PORT" ; then
14345 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
14346echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
14347 { (exit 1); exit 1; }; }
14348 fi
14349 if test ! -r "$withval" ; then
14350 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
14351echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
14352 fi
14353 PRNGD_SOCKET="$withval"
14354 cat >>confdefs.h <<_ACEOF
14355#define PRNGD_SOCKET "$PRNGD_SOCKET"
14356_ACEOF
14357
14358 fi
14359
14360else
14361
14362 # Check for existing socket only if we don't have a random device already
14363 if test "$USE_RAND_HELPER" = yes ; then
14364 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
14365echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
14366 # Insert other locations here
14367 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
14368 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
14369 PRNGD_SOCKET="$sock"
14370 cat >>confdefs.h <<_ACEOF
14371#define PRNGD_SOCKET "$PRNGD_SOCKET"
14372_ACEOF
14373
14374 break;
14375 fi
14376 done
14377 if test ! -z "$PRNGD_SOCKET" ; then
14378 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
14379echo "${ECHO_T}$PRNGD_SOCKET" >&6
14380 else
14381 echo "$as_me:$LINENO: result: not found" >&5
14382echo "${ECHO_T}not found" >&6
14383 fi
14384 fi
14385
14386
14387fi;
14388
14389# Change default command timeout for hashing entropy source
14390entropy_timeout=200
14391
14392# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
14393if test "${with_entropy_timeout+set}" = set; then
14394 withval="$with_entropy_timeout"
14395
14396 if test "x$withval" != "xno" ; then
14397 entropy_timeout=$withval
14398 fi
14399
14400
14401fi;
14402cat >>confdefs.h <<_ACEOF
14403#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
14404_ACEOF
14405
14406
14407SSH_PRIVSEP_USER=sshd
14408
14409# Check whether --with-privsep-user or --without-privsep-user was given.
14410if test "${with_privsep_user+set}" = set; then
14411 withval="$with_privsep_user"
14412
14413 if test -n "$withval"; then
14414 SSH_PRIVSEP_USER=$withval
14415 fi
14416
14417
14418fi;
14419cat >>confdefs.h <<_ACEOF
14420#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
14421_ACEOF
14422
14423
14424
14425# We do this little dance with the search path to insure
14426# that programs that we select for use by installed programs
14427# (which may be run by the super-user) come from trusted
14428# locations before they come from the user's private area.
14429# This should help avoid accidentally configuring some
14430# random version of a program in someone's personal bin.
14431
14432OPATH=$PATH
14433PATH=/bin:/usr/bin
14434test -h /bin 2> /dev/null && PATH=/usr/bin
14435test -d /sbin && PATH=$PATH:/sbin
14436test -d /usr/sbin && PATH=$PATH:/usr/sbin
14437PATH=$PATH:/etc:$OPATH
14438
14439# These programs are used by the command hashing source to gather entropy
14440
14441 # Extract the first word of "ls", so it can be a program name with args.
14442set dummy ls; ac_word=$2
14443echo "$as_me:$LINENO: checking for $ac_word" >&5
14444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14445if test "${ac_cv_path_PROG_LS+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447else
14448 case $PROG_LS in
14449 [\\/]* | ?:[\\/]*)
14450 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
14451 ;;
14452 *)
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454for as_dir in $PATH
14455do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14460 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
14461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14462 break 2
14463 fi
14464done
14465done
14466
14467 ;;
14468esac
14469fi
14470PROG_LS=$ac_cv_path_PROG_LS
14471
14472if test -n "$PROG_LS"; then
14473 echo "$as_me:$LINENO: result: $PROG_LS" >&5
14474echo "${ECHO_T}$PROG_LS" >&6
14475else
14476 echo "$as_me:$LINENO: result: no" >&5
14477echo "${ECHO_T}no" >&6
14478fi
14479
14480 if test -z "$PROG_LS" ; then
14481 PROG_LS="undef"
14482 fi
14483
14484
14485
14486 # Extract the first word of "netstat", so it can be a program name with args.
14487set dummy netstat; ac_word=$2
14488echo "$as_me:$LINENO: checking for $ac_word" >&5
14489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14490if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 case $PROG_NETSTAT in
14494 [\\/]* | ?:[\\/]*)
14495 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
14496 ;;
14497 *)
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499for as_dir in $PATH
14500do
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
14506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14507 break 2
14508 fi
14509done
14510done
14511
14512 ;;
14513esac
14514fi
14515PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
14516
14517if test -n "$PROG_NETSTAT"; then
14518 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
14519echo "${ECHO_T}$PROG_NETSTAT" >&6
14520else
14521 echo "$as_me:$LINENO: result: no" >&5
14522echo "${ECHO_T}no" >&6
14523fi
14524
14525 if test -z "$PROG_NETSTAT" ; then
14526 PROG_NETSTAT="undef"
14527 fi
14528
14529
14530
14531 # Extract the first word of "arp", so it can be a program name with args.
14532set dummy arp; ac_word=$2
14533echo "$as_me:$LINENO: checking for $ac_word" >&5
14534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14535if test "${ac_cv_path_PROG_ARP+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537else
14538 case $PROG_ARP in
14539 [\\/]* | ?:[\\/]*)
14540 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
14541 ;;
14542 *)
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544for as_dir in $PATH
14545do
14546 IFS=$as_save_IFS
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14550 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
14551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14552 break 2
14553 fi
14554done
14555done
14556
14557 ;;
14558esac
14559fi
14560PROG_ARP=$ac_cv_path_PROG_ARP
14561
14562if test -n "$PROG_ARP"; then
14563 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
14564echo "${ECHO_T}$PROG_ARP" >&6
14565else
14566 echo "$as_me:$LINENO: result: no" >&5
14567echo "${ECHO_T}no" >&6
14568fi
14569
14570 if test -z "$PROG_ARP" ; then
14571 PROG_ARP="undef"
14572 fi
14573
14574
14575
14576 # Extract the first word of "ifconfig", so it can be a program name with args.
14577set dummy ifconfig; ac_word=$2
14578echo "$as_me:$LINENO: checking for $ac_word" >&5
14579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14580if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582else
14583 case $PROG_IFCONFIG in
14584 [\\/]* | ?:[\\/]*)
14585 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
14586 ;;
14587 *)
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589for as_dir in $PATH
14590do
14591 IFS=$as_save_IFS
14592 test -z "$as_dir" && as_dir=.
14593 for ac_exec_ext in '' $ac_executable_extensions; do
14594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14595 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
14596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14597 break 2
14598 fi
14599done
14600done
14601
14602 ;;
14603esac
14604fi
14605PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
14606
14607if test -n "$PROG_IFCONFIG"; then
14608 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
14609echo "${ECHO_T}$PROG_IFCONFIG" >&6
14610else
14611 echo "$as_me:$LINENO: result: no" >&5
14612echo "${ECHO_T}no" >&6
14613fi
14614
14615 if test -z "$PROG_IFCONFIG" ; then
14616 PROG_IFCONFIG="undef"
14617 fi
14618
14619
14620
14621 # Extract the first word of "jstat", so it can be a program name with args.
14622set dummy jstat; ac_word=$2
14623echo "$as_me:$LINENO: checking for $ac_word" >&5
14624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14625if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627else
14628 case $PROG_JSTAT in
14629 [\\/]* | ?:[\\/]*)
14630 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
14631 ;;
14632 *)
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634for as_dir in $PATH
14635do
14636 IFS=$as_save_IFS
14637 test -z "$as_dir" && as_dir=.
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
14641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14642 break 2
14643 fi
14644done
14645done
14646
14647 ;;
14648esac
14649fi
14650PROG_JSTAT=$ac_cv_path_PROG_JSTAT
14651
14652if test -n "$PROG_JSTAT"; then
14653 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
14654echo "${ECHO_T}$PROG_JSTAT" >&6
14655else
14656 echo "$as_me:$LINENO: result: no" >&5
14657echo "${ECHO_T}no" >&6
14658fi
14659
14660 if test -z "$PROG_JSTAT" ; then
14661 PROG_JSTAT="undef"
14662 fi
14663
14664
14665
14666 # Extract the first word of "ps", so it can be a program name with args.
14667set dummy ps; ac_word=$2
14668echo "$as_me:$LINENO: checking for $ac_word" >&5
14669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14670if test "${ac_cv_path_PROG_PS+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672else
14673 case $PROG_PS in
14674 [\\/]* | ?:[\\/]*)
14675 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
14676 ;;
14677 *)
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679for as_dir in $PATH
14680do
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
14686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14688 fi
14689done
14690done
14691
14692 ;;
14693esac
14694fi
14695PROG_PS=$ac_cv_path_PROG_PS
14696
14697if test -n "$PROG_PS"; then
14698 echo "$as_me:$LINENO: result: $PROG_PS" >&5
14699echo "${ECHO_T}$PROG_PS" >&6
14700else
14701 echo "$as_me:$LINENO: result: no" >&5
14702echo "${ECHO_T}no" >&6
14703fi
14704
14705 if test -z "$PROG_PS" ; then
14706 PROG_PS="undef"
14707 fi
14708
14709
14710
14711 # Extract the first word of "sar", so it can be a program name with args.
14712set dummy sar; ac_word=$2
14713echo "$as_me:$LINENO: checking for $ac_word" >&5
14714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14715if test "${ac_cv_path_PROG_SAR+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717else
14718 case $PROG_SAR in
14719 [\\/]* | ?:[\\/]*)
14720 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
14721 ;;
14722 *)
14723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724for as_dir in $PATH
14725do
14726 IFS=$as_save_IFS
14727 test -z "$as_dir" && as_dir=.
14728 for ac_exec_ext in '' $ac_executable_extensions; do
14729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14730 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
14731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14732 break 2
14733 fi
14734done
14735done
14736
14737 ;;
14738esac
14739fi
14740PROG_SAR=$ac_cv_path_PROG_SAR
14741
14742if test -n "$PROG_SAR"; then
14743 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
14744echo "${ECHO_T}$PROG_SAR" >&6
14745else
14746 echo "$as_me:$LINENO: result: no" >&5
14747echo "${ECHO_T}no" >&6
14748fi
14749
14750 if test -z "$PROG_SAR" ; then
14751 PROG_SAR="undef"
14752 fi
14753
14754
14755
14756 # Extract the first word of "w", so it can be a program name with args.
14757set dummy w; ac_word=$2
14758echo "$as_me:$LINENO: checking for $ac_word" >&5
14759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14760if test "${ac_cv_path_PROG_W+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14762else
14763 case $PROG_W in
14764 [\\/]* | ?:[\\/]*)
14765 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
14766 ;;
14767 *)
14768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769for as_dir in $PATH
14770do
14771 IFS=$as_save_IFS
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14775 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
14776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14777 break 2
14778 fi
14779done
14780done
14781
14782 ;;
14783esac
14784fi
14785PROG_W=$ac_cv_path_PROG_W
14786
14787if test -n "$PROG_W"; then
14788 echo "$as_me:$LINENO: result: $PROG_W" >&5
14789echo "${ECHO_T}$PROG_W" >&6
14790else
14791 echo "$as_me:$LINENO: result: no" >&5
14792echo "${ECHO_T}no" >&6
14793fi
14794
14795 if test -z "$PROG_W" ; then
14796 PROG_W="undef"
14797 fi
14798
14799
14800
14801 # Extract the first word of "who", so it can be a program name with args.
14802set dummy who; ac_word=$2
14803echo "$as_me:$LINENO: checking for $ac_word" >&5
14804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14805if test "${ac_cv_path_PROG_WHO+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807else
14808 case $PROG_WHO in
14809 [\\/]* | ?:[\\/]*)
14810 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
14811 ;;
14812 *)
14813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14814for as_dir in $PATH
14815do
14816 IFS=$as_save_IFS
14817 test -z "$as_dir" && as_dir=.
14818 for ac_exec_ext in '' $ac_executable_extensions; do
14819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14820 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
14821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14822 break 2
14823 fi
14824done
14825done
14826
14827 ;;
14828esac
14829fi
14830PROG_WHO=$ac_cv_path_PROG_WHO
14831
14832if test -n "$PROG_WHO"; then
14833 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
14834echo "${ECHO_T}$PROG_WHO" >&6
14835else
14836 echo "$as_me:$LINENO: result: no" >&5
14837echo "${ECHO_T}no" >&6
14838fi
14839
14840 if test -z "$PROG_WHO" ; then
14841 PROG_WHO="undef"
14842 fi
14843
14844
14845
14846 # Extract the first word of "last", so it can be a program name with args.
14847set dummy last; ac_word=$2
14848echo "$as_me:$LINENO: checking for $ac_word" >&5
14849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14850if test "${ac_cv_path_PROG_LAST+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852else
14853 case $PROG_LAST in
14854 [\\/]* | ?:[\\/]*)
14855 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
14856 ;;
14857 *)
14858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14859for as_dir in $PATH
14860do
14861 IFS=$as_save_IFS
14862 test -z "$as_dir" && as_dir=.
14863 for ac_exec_ext in '' $ac_executable_extensions; do
14864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14865 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
14866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14867 break 2
14868 fi
14869done
14870done
14871
14872 ;;
14873esac
14874fi
14875PROG_LAST=$ac_cv_path_PROG_LAST
14876
14877if test -n "$PROG_LAST"; then
14878 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
14879echo "${ECHO_T}$PROG_LAST" >&6
14880else
14881 echo "$as_me:$LINENO: result: no" >&5
14882echo "${ECHO_T}no" >&6
14883fi
14884
14885 if test -z "$PROG_LAST" ; then
14886 PROG_LAST="undef"
14887 fi
14888
14889
14890
14891 # Extract the first word of "lastlog", so it can be a program name with args.
14892set dummy lastlog; ac_word=$2
14893echo "$as_me:$LINENO: checking for $ac_word" >&5
14894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14895if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897else
14898 case $PROG_LASTLOG in
14899 [\\/]* | ?:[\\/]*)
14900 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
14901 ;;
14902 *)
14903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904for as_dir in $PATH
14905do
14906 IFS=$as_save_IFS
14907 test -z "$as_dir" && as_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14910 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
14911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14912 break 2
14913 fi
14914done
14915done
14916
14917 ;;
14918esac
14919fi
14920PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
14921
14922if test -n "$PROG_LASTLOG"; then
14923 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
14924echo "${ECHO_T}$PROG_LASTLOG" >&6
14925else
14926 echo "$as_me:$LINENO: result: no" >&5
14927echo "${ECHO_T}no" >&6
14928fi
14929
14930 if test -z "$PROG_LASTLOG" ; then
14931 PROG_LASTLOG="undef"
14932 fi
14933
14934
14935
14936 # Extract the first word of "df", so it can be a program name with args.
14937set dummy df; ac_word=$2
14938echo "$as_me:$LINENO: checking for $ac_word" >&5
14939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14940if test "${ac_cv_path_PROG_DF+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 case $PROG_DF in
14944 [\\/]* | ?:[\\/]*)
14945 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
14946 ;;
14947 *)
14948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14949for as_dir in $PATH
14950do
14951 IFS=$as_save_IFS
14952 test -z "$as_dir" && as_dir=.
14953 for ac_exec_ext in '' $ac_executable_extensions; do
14954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14955 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
14956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14957 break 2
14958 fi
14959done
14960done
14961
14962 ;;
14963esac
14964fi
14965PROG_DF=$ac_cv_path_PROG_DF
14966
14967if test -n "$PROG_DF"; then
14968 echo "$as_me:$LINENO: result: $PROG_DF" >&5
14969echo "${ECHO_T}$PROG_DF" >&6
14970else
14971 echo "$as_me:$LINENO: result: no" >&5
14972echo "${ECHO_T}no" >&6
14973fi
14974
14975 if test -z "$PROG_DF" ; then
14976 PROG_DF="undef"
14977 fi
14978
14979
14980
14981 # Extract the first word of "vmstat", so it can be a program name with args.
14982set dummy vmstat; ac_word=$2
14983echo "$as_me:$LINENO: checking for $ac_word" >&5
14984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14985if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987else
14988 case $PROG_VMSTAT in
14989 [\\/]* | ?:[\\/]*)
14990 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
14991 ;;
14992 *)
14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994for as_dir in $PATH
14995do
14996 IFS=$as_save_IFS
14997 test -z "$as_dir" && as_dir=.
14998 for ac_exec_ext in '' $ac_executable_extensions; do
14999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15000 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
15001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15002 break 2
15003 fi
15004done
15005done
15006
15007 ;;
15008esac
15009fi
15010PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
15011
15012if test -n "$PROG_VMSTAT"; then
15013 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
15014echo "${ECHO_T}$PROG_VMSTAT" >&6
15015else
15016 echo "$as_me:$LINENO: result: no" >&5
15017echo "${ECHO_T}no" >&6
15018fi
15019
15020 if test -z "$PROG_VMSTAT" ; then
15021 PROG_VMSTAT="undef"
15022 fi
15023
15024
15025
15026 # Extract the first word of "uptime", so it can be a program name with args.
15027set dummy uptime; ac_word=$2
15028echo "$as_me:$LINENO: checking for $ac_word" >&5
15029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15030if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
15033 case $PROG_UPTIME in
15034 [\\/]* | ?:[\\/]*)
15035 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
15036 ;;
15037 *)
15038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15039for as_dir in $PATH
15040do
15041 IFS=$as_save_IFS
15042 test -z "$as_dir" && as_dir=.
15043 for ac_exec_ext in '' $ac_executable_extensions; do
15044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15045 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
15046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15047 break 2
15048 fi
15049done
15050done
15051
15052 ;;
15053esac
15054fi
15055PROG_UPTIME=$ac_cv_path_PROG_UPTIME
15056
15057if test -n "$PROG_UPTIME"; then
15058 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
15059echo "${ECHO_T}$PROG_UPTIME" >&6
15060else
15061 echo "$as_me:$LINENO: result: no" >&5
15062echo "${ECHO_T}no" >&6
15063fi
15064
15065 if test -z "$PROG_UPTIME" ; then
15066 PROG_UPTIME="undef"
15067 fi
15068
15069
15070
15071 # Extract the first word of "ipcs", so it can be a program name with args.
15072set dummy ipcs; ac_word=$2
15073echo "$as_me:$LINENO: checking for $ac_word" >&5
15074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15075if test "${ac_cv_path_PROG_IPCS+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077else
15078 case $PROG_IPCS in
15079 [\\/]* | ?:[\\/]*)
15080 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
15081 ;;
15082 *)
15083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15084for as_dir in $PATH
15085do
15086 IFS=$as_save_IFS
15087 test -z "$as_dir" && as_dir=.
15088 for ac_exec_ext in '' $ac_executable_extensions; do
15089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15090 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
15091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15092 break 2
15093 fi
15094done
15095done
15096
15097 ;;
15098esac
15099fi
15100PROG_IPCS=$ac_cv_path_PROG_IPCS
15101
15102if test -n "$PROG_IPCS"; then
15103 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
15104echo "${ECHO_T}$PROG_IPCS" >&6
15105else
15106 echo "$as_me:$LINENO: result: no" >&5
15107echo "${ECHO_T}no" >&6
15108fi
15109
15110 if test -z "$PROG_IPCS" ; then
15111 PROG_IPCS="undef"
15112 fi
15113
15114
15115
15116 # Extract the first word of "tail", so it can be a program name with args.
15117set dummy tail; ac_word=$2
15118echo "$as_me:$LINENO: checking for $ac_word" >&5
15119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15120if test "${ac_cv_path_PROG_TAIL+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122else
15123 case $PROG_TAIL in
15124 [\\/]* | ?:[\\/]*)
15125 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
15126 ;;
15127 *)
15128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129for as_dir in $PATH
15130do
15131 IFS=$as_save_IFS
15132 test -z "$as_dir" && as_dir=.
15133 for ac_exec_ext in '' $ac_executable_extensions; do
15134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
15136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15137 break 2
15138 fi
15139done
15140done
15141
15142 ;;
15143esac
15144fi
15145PROG_TAIL=$ac_cv_path_PROG_TAIL
15146
15147if test -n "$PROG_TAIL"; then
15148 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
15149echo "${ECHO_T}$PROG_TAIL" >&6
15150else
15151 echo "$as_me:$LINENO: result: no" >&5
15152echo "${ECHO_T}no" >&6
15153fi
15154
15155 if test -z "$PROG_TAIL" ; then
15156 PROG_TAIL="undef"
15157 fi
15158
15159
15160# restore PATH
15161PATH=$OPATH
15162
15163# Where does ssh-rand-helper get its randomness from?
15164INSTALL_SSH_PRNG_CMDS=""
15165if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
15166 if test ! -z "$PRNGD_PORT" ; then
15167 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
15168 elif test ! -z "$PRNGD_SOCKET" ; then
15169 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
15170 else
15171 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
15172 RAND_HELPER_CMDHASH=yes
15173 INSTALL_SSH_PRNG_CMDS="yes"
15174 fi
15175fi
15176
15177
15178
15179# Cheap hack to ensure NEWS-OS libraries are arranged right.
15180if test ! -z "$SONY" ; then
15181 LIBS="$LIBS -liberty";
15182fi
15183
15184# Checks for data types
15185echo "$as_me:$LINENO: checking for char" >&5
15186echo $ECHO_N "checking for char... $ECHO_C" >&6
15187if test "${ac_cv_type_char+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189else
15190 cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
15196$ac_includes_default
15197int
15198main ()
15199{
15200if ((char *) 0)
15201 return 0;
15202if (sizeof (char))
15203 return 0;
15204 ;
15205 return 0;
15206}
15207_ACEOF
15208rm -f conftest.$ac_objext
15209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15210 (eval $ac_compile) 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag"
15218 || test ! -s conftest.err'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 ac_cv_type_char=yes
15231else
15232 echo "$as_me: failed program was:" >&5
15233sed 's/^/| /' conftest.$ac_ext >&5
15234
15235ac_cv_type_char=no
15236fi
15237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15238fi
15239echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15240echo "${ECHO_T}$ac_cv_type_char" >&6
15241
15242echo "$as_me:$LINENO: checking size of char" >&5
15243echo $ECHO_N "checking size of char... $ECHO_C" >&6
15244if test "${ac_cv_sizeof_char+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246else
15247 if test "$ac_cv_type_char" = yes; then
15248 # The cast to unsigned long works around a bug in the HP C Compiler
15249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15251 # This bug is HP SR number 8606223364.
15252 if test "$cross_compiling" = yes; then
15253 # Depending upon the size, compute the lo and hi bounds.
15254cat >conftest.$ac_ext <<_ACEOF
15255/* confdefs.h. */
15256_ACEOF
15257cat confdefs.h >>conftest.$ac_ext
15258cat >>conftest.$ac_ext <<_ACEOF
15259/* end confdefs.h. */
15260$ac_includes_default
15261int
15262main ()
15263{
15264static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15265test_array [0] = 0
15266
15267 ;
15268 return 0;
15269}
15270_ACEOF
15271rm -f conftest.$ac_objext
15272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15273 (eval $ac_compile) 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -z "$ac_c_werror_flag"
15281 || test ! -s conftest.err'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest.$ac_objext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_lo=0 ac_mid=0
15294 while :; do
15295 cat >conftest.$ac_ext <<_ACEOF
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301$ac_includes_default
15302int
15303main ()
15304{
15305static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15306test_array [0] = 0
15307
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext
15313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_hi=$ac_mid; break
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_lo=`expr $ac_mid + 1`
15340 if test $ac_lo -le $ac_mid; then
15341 ac_lo= ac_hi=
15342 break
15343 fi
15344 ac_mid=`expr 2 '*' $ac_mid + 1`
15345fi
15346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15347 done
15348else
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352cat >conftest.$ac_ext <<_ACEOF
15353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
15358$ac_includes_default
15359int
15360main ()
15361{
15362static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15363test_array [0] = 0
15364
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest.$ac_objext'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_hi=-1 ac_mid=-1
15392 while :; do
15393 cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
15399$ac_includes_default
15400int
15401main ()
15402{
15403static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15404test_array [0] = 0
15405
15406 ;
15407 return 0;
15408}
15409_ACEOF
15410rm -f conftest.$ac_objext
15411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412 (eval $ac_compile) 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest.$ac_objext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_lo=$ac_mid; break
15433else
15434 echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437ac_hi=`expr '(' $ac_mid ')' - 1`
15438 if test $ac_mid -le $ac_hi; then
15439 ac_lo= ac_hi=
15440 break
15441 fi
15442 ac_mid=`expr 2 '*' $ac_mid`
15443fi
15444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 done
15446else
15447 echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450ac_lo= ac_hi=
15451fi
15452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15453fi
15454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15455# Binary search between lo and hi bounds.
15456while test "x$ac_lo" != "x$ac_hi"; do
15457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15458 cat >conftest.$ac_ext <<_ACEOF
15459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
15463/* end confdefs.h. */
15464$ac_includes_default
15465int
15466main ()
15467{
15468static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15469test_array [0] = 0
15470
15471 ;
15472 return 0;
15473}
15474_ACEOF
15475rm -f conftest.$ac_objext
15476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag"
15485 || test ! -s conftest.err'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try='test -s conftest.$ac_objext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_hi=$ac_mid
15498else
15499 echo "$as_me: failed program was:" >&5
15500sed 's/^/| /' conftest.$ac_ext >&5
15501
15502ac_lo=`expr '(' $ac_mid ')' + 1`
15503fi
15504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15505done
15506case $ac_lo in
15507?*) ac_cv_sizeof_char=$ac_lo;;
15508'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15509See \`config.log' for more details." >&5
15510echo "$as_me: error: cannot compute sizeof (char), 77
15511See \`config.log' for more details." >&2;}
15512 { (exit 1); exit 1; }; } ;;
15513esac
15514else
15515 if test "$cross_compiling" = yes; then
15516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15517See \`config.log' for more details." >&5
15518echo "$as_me: error: cannot run test program while cross compiling
15519See \`config.log' for more details." >&2;}
15520 { (exit 1); exit 1; }; }
15521else
15522 cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528$ac_includes_default
15529long longval () { return (long) (sizeof (char)); }
15530unsigned long ulongval () { return (long) (sizeof (char)); }
15531#include <stdio.h>
15532#include <stdlib.h>
15533int
15534main ()
15535{
15536
15537 FILE *f = fopen ("conftest.val", "w");
15538 if (! f)
15539 exit (1);
15540 if (((long) (sizeof (char))) < 0)
15541 {
15542 long i = longval ();
15543 if (i != ((long) (sizeof (char))))
15544 exit (1);
15545 fprintf (f, "%ld\n", i);
15546 }
15547 else
15548 {
15549 unsigned long i = ulongval ();
15550 if (i != ((long) (sizeof (char))))
15551 exit (1);
15552 fprintf (f, "%lu\n", i);
15553 }
15554 exit (ferror (f) || fclose (f) != 0);
15555
15556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest$ac_exeext
15561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 ac_cv_sizeof_char=`cat conftest.val`
15572else
15573 echo "$as_me: program exited with status $ac_status" >&5
15574echo "$as_me: failed program was:" >&5
15575sed 's/^/| /' conftest.$ac_ext >&5
15576
15577( exit $ac_status )
15578{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15579See \`config.log' for more details." >&5
15580echo "$as_me: error: cannot compute sizeof (char), 77
15581See \`config.log' for more details." >&2;}
15582 { (exit 1); exit 1; }; }
15583fi
15584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15585fi
15586fi
15587rm -f conftest.val
15588else
15589 ac_cv_sizeof_char=0
15590fi
15591fi
15592echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15593echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15594cat >>confdefs.h <<_ACEOF
15595#define SIZEOF_CHAR $ac_cv_sizeof_char
15596_ACEOF
15597
15598
15599echo "$as_me:$LINENO: checking for short int" >&5
15600echo $ECHO_N "checking for short int... $ECHO_C" >&6
15601if test "${ac_cv_type_short_int+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603else
15604 cat >conftest.$ac_ext <<_ACEOF
15605/* confdefs.h. */
15606_ACEOF
15607cat confdefs.h >>conftest.$ac_ext
15608cat >>conftest.$ac_ext <<_ACEOF
15609/* end confdefs.h. */
15610$ac_includes_default
15611int
15612main ()
15613{
15614if ((short int *) 0)
15615 return 0;
15616if (sizeof (short int))
15617 return 0;
15618 ;
15619 return 0;
15620}
15621_ACEOF
15622rm -f conftest.$ac_objext
15623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag"
15632 || test ! -s conftest.err'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_cv_type_short_int=yes
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649ac_cv_type_short_int=no
15650fi
15651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15652fi
15653echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15654echo "${ECHO_T}$ac_cv_type_short_int" >&6
15655
15656echo "$as_me:$LINENO: checking size of short int" >&5
15657echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15658if test "${ac_cv_sizeof_short_int+set}" = set; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660else
15661 if test "$ac_cv_type_short_int" = yes; then
15662 # The cast to unsigned long works around a bug in the HP C Compiler
15663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15665 # This bug is HP SR number 8606223364.
15666 if test "$cross_compiling" = yes; then
15667 # Depending upon the size, compute the lo and hi bounds.
15668cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674$ac_includes_default
15675int
15676main ()
15677{
15678static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15679test_array [0] = 0
15680
15681 ;
15682 return 0;
15683}
15684_ACEOF
15685rm -f conftest.$ac_objext
15686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_lo=0 ac_mid=0
15708 while :; do
15709 cat >conftest.$ac_ext <<_ACEOF
15710/* confdefs.h. */
15711_ACEOF
15712cat confdefs.h >>conftest.$ac_ext
15713cat >>conftest.$ac_ext <<_ACEOF
15714/* end confdefs.h. */
15715$ac_includes_default
15716int
15717main ()
15718{
15719static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15720test_array [0] = 0
15721
15722 ;
15723 return 0;
15724}
15725_ACEOF
15726rm -f conftest.$ac_objext
15727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_hi=$ac_mid; break
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753ac_lo=`expr $ac_mid + 1`
15754 if test $ac_lo -le $ac_mid; then
15755 ac_lo= ac_hi=
15756 break
15757 fi
15758 ac_mid=`expr 2 '*' $ac_mid + 1`
15759fi
15760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15761 done
15762else
15763 echo "$as_me: failed program was:" >&5
15764sed 's/^/| /' conftest.$ac_ext >&5
15765
15766cat >conftest.$ac_ext <<_ACEOF
15767/* confdefs.h. */
15768_ACEOF
15769cat confdefs.h >>conftest.$ac_ext
15770cat >>conftest.$ac_ext <<_ACEOF
15771/* end confdefs.h. */
15772$ac_includes_default
15773int
15774main ()
15775{
15776static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15777test_array [0] = 0
15778
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext
15784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_hi=-1 ac_mid=-1
15806 while :; do
15807 cat >conftest.$ac_ext <<_ACEOF
15808/* confdefs.h. */
15809_ACEOF
15810cat confdefs.h >>conftest.$ac_ext
15811cat >>conftest.$ac_ext <<_ACEOF
15812/* end confdefs.h. */
15813$ac_includes_default
15814int
15815main ()
15816{
15817static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15818test_array [0] = 0
15819
15820 ;
15821 return 0;
15822}
15823_ACEOF
15824rm -f conftest.$ac_objext
15825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15826 (eval $ac_compile) 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
15833 { ac_try='test -z "$ac_c_werror_flag"
15834 || test ! -s conftest.err'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } &&
15840 { ac_try='test -s conftest.$ac_objext'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 ac_lo=$ac_mid; break
15847else
15848 echo "$as_me: failed program was:" >&5
15849sed 's/^/| /' conftest.$ac_ext >&5
15850
15851ac_hi=`expr '(' $ac_mid ')' - 1`
15852 if test $ac_mid -le $ac_hi; then
15853 ac_lo= ac_hi=
15854 break
15855 fi
15856 ac_mid=`expr 2 '*' $ac_mid`
15857fi
15858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15859 done
15860else
15861 echo "$as_me: failed program was:" >&5
15862sed 's/^/| /' conftest.$ac_ext >&5
15863
15864ac_lo= ac_hi=
15865fi
15866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15867fi
15868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15869# Binary search between lo and hi bounds.
15870while test "x$ac_lo" != "x$ac_hi"; do
15871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15872 cat >conftest.$ac_ext <<_ACEOF
15873/* confdefs.h. */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h. */
15878$ac_includes_default
15879int
15880main ()
15881{
15882static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15883test_array [0] = 0
15884
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext
15890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891 (eval $ac_compile) 2>conftest.er1
15892 ac_status=$?
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -z "$ac_c_werror_flag"
15899 || test ! -s conftest.err'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_hi=$ac_mid
15912else
15913 echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916ac_lo=`expr '(' $ac_mid ')' + 1`
15917fi
15918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15919done
15920case $ac_lo in
15921?*) ac_cv_sizeof_short_int=$ac_lo;;
15922'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15923See \`config.log' for more details." >&5
15924echo "$as_me: error: cannot compute sizeof (short int), 77
15925See \`config.log' for more details." >&2;}
15926 { (exit 1); exit 1; }; } ;;
15927esac
15928else
15929 if test "$cross_compiling" = yes; then
15930 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15931See \`config.log' for more details." >&5
15932echo "$as_me: error: cannot run test program while cross compiling
15933See \`config.log' for more details." >&2;}
15934 { (exit 1); exit 1; }; }
15935else
15936 cat >conftest.$ac_ext <<_ACEOF
15937/* confdefs.h. */
15938_ACEOF
15939cat confdefs.h >>conftest.$ac_ext
15940cat >>conftest.$ac_ext <<_ACEOF
15941/* end confdefs.h. */
15942$ac_includes_default
15943long longval () { return (long) (sizeof (short int)); }
15944unsigned long ulongval () { return (long) (sizeof (short int)); }
15945#include <stdio.h>
15946#include <stdlib.h>
15947int
15948main ()
15949{
15950
15951 FILE *f = fopen ("conftest.val", "w");
15952 if (! f)
15953 exit (1);
15954 if (((long) (sizeof (short int))) < 0)
15955 {
15956 long i = longval ();
15957 if (i != ((long) (sizeof (short int))))
15958 exit (1);
15959 fprintf (f, "%ld\n", i);
15960 }
15961 else
15962 {
15963 unsigned long i = ulongval ();
15964 if (i != ((long) (sizeof (short int))))
15965 exit (1);
15966 fprintf (f, "%lu\n", i);
15967 }
15968 exit (ferror (f) || fclose (f) != 0);
15969
15970 ;
15971 return 0;
15972}
15973_ACEOF
15974rm -f conftest$ac_exeext
15975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15976 (eval $ac_link) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_cv_sizeof_short_int=`cat conftest.val`
15986else
15987 echo "$as_me: program exited with status $ac_status" >&5
15988echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991( exit $ac_status )
15992{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15993See \`config.log' for more details." >&5
15994echo "$as_me: error: cannot compute sizeof (short int), 77
15995See \`config.log' for more details." >&2;}
15996 { (exit 1); exit 1; }; }
15997fi
15998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15999fi
16000fi
16001rm -f conftest.val
16002else
16003 ac_cv_sizeof_short_int=0
16004fi
16005fi
16006echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
16007echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
16008cat >>confdefs.h <<_ACEOF
16009#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
16010_ACEOF
16011
16012
16013echo "$as_me:$LINENO: checking for int" >&5
16014echo $ECHO_N "checking for int... $ECHO_C" >&6
16015if test "${ac_cv_type_int+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017else
16018 cat >conftest.$ac_ext <<_ACEOF
16019/* confdefs.h. */
16020_ACEOF
16021cat confdefs.h >>conftest.$ac_ext
16022cat >>conftest.$ac_ext <<_ACEOF
16023/* end confdefs.h. */
16024$ac_includes_default
16025int
16026main ()
16027{
16028if ((int *) 0)
16029 return 0;
16030if (sizeof (int))
16031 return 0;
16032 ;
16033 return 0;
16034}
16035_ACEOF
16036rm -f conftest.$ac_objext
16037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag"
16046 || test ! -s conftest.err'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest.$ac_objext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_type_int=yes
16059else
16060 echo "$as_me: failed program was:" >&5
16061sed 's/^/| /' conftest.$ac_ext >&5
16062
16063ac_cv_type_int=no
16064fi
16065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16066fi
16067echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16068echo "${ECHO_T}$ac_cv_type_int" >&6
16069
16070echo "$as_me:$LINENO: checking size of int" >&5
16071echo $ECHO_N "checking size of int... $ECHO_C" >&6
16072if test "${ac_cv_sizeof_int+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 if test "$ac_cv_type_int" = yes; then
16076 # The cast to unsigned long works around a bug in the HP C Compiler
16077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16079 # This bug is HP SR number 8606223364.
16080 if test "$cross_compiling" = yes; then
16081 # Depending upon the size, compute the lo and hi bounds.
16082cat >conftest.$ac_ext <<_ACEOF
16083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
16088$ac_includes_default
16089int
16090main ()
16091{
16092static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16093test_array [0] = 0
16094
16095 ;
16096 return 0;
16097}
16098_ACEOF
16099rm -f conftest.$ac_objext
16100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16101 (eval $ac_compile) 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -z "$ac_c_werror_flag"
16109 || test ! -s conftest.err'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest.$ac_objext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_lo=0 ac_mid=0
16122 while :; do
16123 cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129$ac_includes_default
16130int
16131main ()
16132{
16133static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16134test_array [0] = 0
16135
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest.$ac_objext
16141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16142 (eval $ac_compile) 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_hi=$ac_mid; break
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167ac_lo=`expr $ac_mid + 1`
16168 if test $ac_lo -le $ac_mid; then
16169 ac_lo= ac_hi=
16170 break
16171 fi
16172 ac_mid=`expr 2 '*' $ac_mid + 1`
16173fi
16174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16175 done
16176else
16177 echo "$as_me: failed program was:" >&5
16178sed 's/^/| /' conftest.$ac_ext >&5
16179
16180cat >conftest.$ac_ext <<_ACEOF
16181/* confdefs.h. */
16182_ACEOF
16183cat confdefs.h >>conftest.$ac_ext
16184cat >>conftest.$ac_ext <<_ACEOF
16185/* end confdefs.h. */
16186$ac_includes_default
16187int
16188main ()
16189{
16190static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16191test_array [0] = 0
16192
16193 ;
16194 return 0;
16195}
16196_ACEOF
16197rm -f conftest.$ac_objext
16198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_hi=-1 ac_mid=-1
16220 while :; do
16221 cat >conftest.$ac_ext <<_ACEOF
16222/* confdefs.h. */
16223_ACEOF
16224cat confdefs.h >>conftest.$ac_ext
16225cat >>conftest.$ac_ext <<_ACEOF
16226/* end confdefs.h. */
16227$ac_includes_default
16228int
16229main ()
16230{
16231static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16232test_array [0] = 0
16233
16234 ;
16235 return 0;
16236}
16237_ACEOF
16238rm -f conftest.$ac_objext
16239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240 (eval $ac_compile) 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag"
16248 || test ! -s conftest.err'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_lo=$ac_mid; break
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265ac_hi=`expr '(' $ac_mid ')' - 1`
16266 if test $ac_mid -le $ac_hi; then
16267 ac_lo= ac_hi=
16268 break
16269 fi
16270 ac_mid=`expr 2 '*' $ac_mid`
16271fi
16272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16273 done
16274else
16275 echo "$as_me: failed program was:" >&5
16276sed 's/^/| /' conftest.$ac_ext >&5
16277
16278ac_lo= ac_hi=
16279fi
16280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16281fi
16282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16283# Binary search between lo and hi bounds.
16284while test "x$ac_lo" != "x$ac_hi"; do
16285 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16286 cat >conftest.$ac_ext <<_ACEOF
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292$ac_includes_default
16293int
16294main ()
16295{
16296static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16297test_array [0] = 0
16298
16299 ;
16300 return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag"
16313 || test ! -s conftest.err'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_hi=$ac_mid
16326else
16327 echo "$as_me: failed program was:" >&5
16328sed 's/^/| /' conftest.$ac_ext >&5
16329
16330ac_lo=`expr '(' $ac_mid ')' + 1`
16331fi
16332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16333done
16334case $ac_lo in
16335?*) ac_cv_sizeof_int=$ac_lo;;
16336'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16337See \`config.log' for more details." >&5
16338echo "$as_me: error: cannot compute sizeof (int), 77
16339See \`config.log' for more details." >&2;}
16340 { (exit 1); exit 1; }; } ;;
16341esac
16342else
16343 if test "$cross_compiling" = yes; then
16344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16345See \`config.log' for more details." >&5
16346echo "$as_me: error: cannot run test program while cross compiling
16347See \`config.log' for more details." >&2;}
16348 { (exit 1); exit 1; }; }
16349else
16350 cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356$ac_includes_default
16357long longval () { return (long) (sizeof (int)); }
16358unsigned long ulongval () { return (long) (sizeof (int)); }
16359#include <stdio.h>
16360#include <stdlib.h>
16361int
16362main ()
16363{
16364
16365 FILE *f = fopen ("conftest.val", "w");
16366 if (! f)
16367 exit (1);
16368 if (((long) (sizeof (int))) < 0)
16369 {
16370 long i = longval ();
16371 if (i != ((long) (sizeof (int))))
16372 exit (1);
16373 fprintf (f, "%ld\n", i);
16374 }
16375 else
16376 {
16377 unsigned long i = ulongval ();
16378 if (i != ((long) (sizeof (int))))
16379 exit (1);
16380 fprintf (f, "%lu\n", i);
16381 }
16382 exit (ferror (f) || fclose (f) != 0);
16383
16384 ;
16385 return 0;
16386}
16387_ACEOF
16388rm -f conftest$ac_exeext
16389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16390 (eval $ac_link) 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 ac_cv_sizeof_int=`cat conftest.val`
16400else
16401 echo "$as_me: program exited with status $ac_status" >&5
16402echo "$as_me: failed program was:" >&5
16403sed 's/^/| /' conftest.$ac_ext >&5
16404
16405( exit $ac_status )
16406{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16407See \`config.log' for more details." >&5
16408echo "$as_me: error: cannot compute sizeof (int), 77
16409See \`config.log' for more details." >&2;}
16410 { (exit 1); exit 1; }; }
16411fi
16412rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16413fi
16414fi
16415rm -f conftest.val
16416else
16417 ac_cv_sizeof_int=0
16418fi
16419fi
16420echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16421echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16422cat >>confdefs.h <<_ACEOF
16423#define SIZEOF_INT $ac_cv_sizeof_int
16424_ACEOF
16425
16426
16427echo "$as_me:$LINENO: checking for long int" >&5
16428echo $ECHO_N "checking for long int... $ECHO_C" >&6
16429if test "${ac_cv_type_long_int+set}" = set; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431else
16432 cat >conftest.$ac_ext <<_ACEOF
16433/* confdefs.h. */
16434_ACEOF
16435cat confdefs.h >>conftest.$ac_ext
16436cat >>conftest.$ac_ext <<_ACEOF
16437/* end confdefs.h. */
16438$ac_includes_default
16439int
16440main ()
16441{
16442if ((long int *) 0)
16443 return 0;
16444if (sizeof (long int))
16445 return 0;
16446 ;
16447 return 0;
16448}
16449_ACEOF
16450rm -f conftest.$ac_objext
16451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16452 (eval $ac_compile) 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } &&
16459 { ac_try='test -z "$ac_c_werror_flag"
16460 || test ! -s conftest.err'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; } &&
16466 { ac_try='test -s conftest.$ac_objext'
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; }; then
16472 ac_cv_type_long_int=yes
16473else
16474 echo "$as_me: failed program was:" >&5
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
16477ac_cv_type_long_int=no
16478fi
16479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16480fi
16481echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
16482echo "${ECHO_T}$ac_cv_type_long_int" >&6
16483
16484echo "$as_me:$LINENO: checking size of long int" >&5
16485echo $ECHO_N "checking size of long int... $ECHO_C" >&6
16486if test "${ac_cv_sizeof_long_int+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488else
16489 if test "$ac_cv_type_long_int" = yes; then
16490 # The cast to unsigned long works around a bug in the HP C Compiler
16491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16493 # This bug is HP SR number 8606223364.
16494 if test "$cross_compiling" = yes; then
16495 # Depending upon the size, compute the lo and hi bounds.
16496cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
16502$ac_includes_default
16503int
16504main ()
16505{
16506static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
16507test_array [0] = 0
16508
16509 ;
16510 return 0;
16511}
16512_ACEOF
16513rm -f conftest.$ac_objext
16514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>conftest.er1
16516 ac_status=$?
16517 grep -v '^ *+' conftest.er1 >conftest.err
16518 rm -f conftest.er1
16519 cat conftest.err >&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -z "$ac_c_werror_flag"
16523 || test ! -s conftest.err'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; } &&
16529 { ac_try='test -s conftest.$ac_objext'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16535 ac_lo=0 ac_mid=0
16536 while :; do
16537 cat >conftest.$ac_ext <<_ACEOF
16538/* confdefs.h. */
16539_ACEOF
16540cat confdefs.h >>conftest.$ac_ext
16541cat >>conftest.$ac_ext <<_ACEOF
16542/* end confdefs.h. */
16543$ac_includes_default
16544int
16545main ()
16546{
16547static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16548test_array [0] = 0
16549
16550 ;
16551 return 0;
16552}
16553_ACEOF
16554rm -f conftest.$ac_objext
16555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>conftest.er1
16557 ac_status=$?
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag"
16564 || test ! -s conftest.err'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_hi=$ac_mid; break
16577else
16578 echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581ac_lo=`expr $ac_mid + 1`
16582 if test $ac_lo -le $ac_mid; then
16583 ac_lo= ac_hi=
16584 break
16585 fi
16586 ac_mid=`expr 2 '*' $ac_mid + 1`
16587fi
16588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16589 done
16590else
16591 echo "$as_me: failed program was:" >&5
16592sed 's/^/| /' conftest.$ac_ext >&5
16593
16594cat >conftest.$ac_ext <<_ACEOF
16595/* confdefs.h. */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h. */
16600$ac_includes_default
16601int
16602main ()
16603{
16604static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
16605test_array [0] = 0
16606
16607 ;
16608 return 0;
16609}
16610_ACEOF
16611rm -f conftest.$ac_objext
16612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_hi=-1 ac_mid=-1
16634 while :; do
16635 cat >conftest.$ac_ext <<_ACEOF
16636/* confdefs.h. */
16637_ACEOF
16638cat confdefs.h >>conftest.$ac_ext
16639cat >>conftest.$ac_ext <<_ACEOF
16640/* end confdefs.h. */
16641$ac_includes_default
16642int
16643main ()
16644{
16645static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16646test_array [0] = 0
16647
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652rm -f conftest.$ac_objext
16653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16654 (eval $ac_compile) 2>conftest.er1
16655 ac_status=$?
16656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try='test -z "$ac_c_werror_flag"
16662 || test ! -s conftest.err'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest.$ac_objext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_lo=$ac_mid; break
16675else
16676 echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679ac_hi=`expr '(' $ac_mid ')' - 1`
16680 if test $ac_mid -le $ac_hi; then
16681 ac_lo= ac_hi=
16682 break
16683 fi
16684 ac_mid=`expr 2 '*' $ac_mid`
16685fi
16686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16687 done
16688else
16689 echo "$as_me: failed program was:" >&5
16690sed 's/^/| /' conftest.$ac_ext >&5
16691
16692ac_lo= ac_hi=
16693fi
16694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16695fi
16696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16697# Binary search between lo and hi bounds.
16698while test "x$ac_lo" != "x$ac_hi"; do
16699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16700 cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16711test_array [0] = 0
16712
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_hi=$ac_mid
16740else
16741 echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744ac_lo=`expr '(' $ac_mid ')' + 1`
16745fi
16746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16747done
16748case $ac_lo in
16749?*) ac_cv_sizeof_long_int=$ac_lo;;
16750'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16751See \`config.log' for more details." >&5
16752echo "$as_me: error: cannot compute sizeof (long int), 77
16753See \`config.log' for more details." >&2;}
16754 { (exit 1); exit 1; }; } ;;
16755esac
16756else
16757 if test "$cross_compiling" = yes; then
16758 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16759See \`config.log' for more details." >&5
16760echo "$as_me: error: cannot run test program while cross compiling
16761See \`config.log' for more details." >&2;}
16762 { (exit 1); exit 1; }; }
16763else
16764 cat >conftest.$ac_ext <<_ACEOF
16765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
16770$ac_includes_default
16771long longval () { return (long) (sizeof (long int)); }
16772unsigned long ulongval () { return (long) (sizeof (long int)); }
16773#include <stdio.h>
16774#include <stdlib.h>
16775int
16776main ()
16777{
16778
16779 FILE *f = fopen ("conftest.val", "w");
16780 if (! f)
16781 exit (1);
16782 if (((long) (sizeof (long int))) < 0)
16783 {
16784 long i = longval ();
16785 if (i != ((long) (sizeof (long int))))
16786 exit (1);
16787 fprintf (f, "%ld\n", i);
16788 }
16789 else
16790 {
16791 unsigned long i = ulongval ();
16792 if (i != ((long) (sizeof (long int))))
16793 exit (1);
16794 fprintf (f, "%lu\n", i);
16795 }
16796 exit (ferror (f) || fclose (f) != 0);
16797
16798 ;
16799 return 0;
16800}
16801_ACEOF
16802rm -f conftest$ac_exeext
16803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_sizeof_long_int=`cat conftest.val`
16814else
16815 echo "$as_me: program exited with status $ac_status" >&5
16816echo "$as_me: failed program was:" >&5
16817sed 's/^/| /' conftest.$ac_ext >&5
16818
16819( exit $ac_status )
16820{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16821See \`config.log' for more details." >&5
16822echo "$as_me: error: cannot compute sizeof (long int), 77
16823See \`config.log' for more details." >&2;}
16824 { (exit 1); exit 1; }; }
16825fi
16826rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16827fi
16828fi
16829rm -f conftest.val
16830else
16831 ac_cv_sizeof_long_int=0
16832fi
16833fi
16834echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16835echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16836cat >>confdefs.h <<_ACEOF
16837#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16838_ACEOF
16839
16840
16841echo "$as_me:$LINENO: checking for long long int" >&5
16842echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16843if test "${ac_cv_type_long_long_int+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845else
16846 cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852$ac_includes_default
16853int
16854main ()
16855{
16856if ((long long int *) 0)
16857 return 0;
16858if (sizeof (long long int))
16859 return 0;
16860 ;
16861 return 0;
16862}
16863_ACEOF
16864rm -f conftest.$ac_objext
16865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16866 (eval $ac_compile) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_type_long_long_int=yes
16887else
16888 echo "$as_me: failed program was:" >&5
16889sed 's/^/| /' conftest.$ac_ext >&5
16890
16891ac_cv_type_long_long_int=no
16892fi
16893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894fi
16895echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16896echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16897
16898echo "$as_me:$LINENO: checking size of long long int" >&5
16899echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16900if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902else
16903 if test "$ac_cv_type_long_long_int" = yes; then
16904 # The cast to unsigned long works around a bug in the HP C Compiler
16905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16907 # This bug is HP SR number 8606223364.
16908 if test "$cross_compiling" = yes; then
16909 # Depending upon the size, compute the lo and hi bounds.
16910cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
16917int
16918main ()
16919{
16920static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16921test_array [0] = 0
16922
16923 ;
16924 return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext
16928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929 (eval $ac_compile) 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_lo=0 ac_mid=0
16950 while :; do
16951 cat >conftest.$ac_ext <<_ACEOF
16952/* confdefs.h. */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h. */
16957$ac_includes_default
16958int
16959main ()
16960{
16961static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16962test_array [0] = 0
16963
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext
16969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970 (eval $ac_compile) 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_hi=$ac_mid; break
16991else
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995ac_lo=`expr $ac_mid + 1`
16996 if test $ac_lo -le $ac_mid; then
16997 ac_lo= ac_hi=
16998 break
16999 fi
17000 ac_mid=`expr 2 '*' $ac_mid + 1`
17001fi
17002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17003 done
17004else
17005 echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008cat >conftest.$ac_ext <<_ACEOF
17009/* confdefs.h. */
17010_ACEOF
17011cat confdefs.h >>conftest.$ac_ext
17012cat >>conftest.$ac_ext <<_ACEOF
17013/* end confdefs.h. */
17014$ac_includes_default
17015int
17016main ()
17017{
17018static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
17019test_array [0] = 0
17020
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17028 ac_status=$?
17029 grep -v '^ *+' conftest.er1 >conftest.err
17030 rm -f conftest.er1
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_hi=-1 ac_mid=-1
17048 while :; do
17049 cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055$ac_includes_default
17056int
17057main ()
17058{
17059static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
17060test_array [0] = 0
17061
17062 ;
17063 return 0;
17064}
17065_ACEOF
17066rm -f conftest.$ac_objext
17067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068 (eval $ac_compile) 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag"
17076 || test ! -s conftest.err'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_lo=$ac_mid; break
17089else
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093ac_hi=`expr '(' $ac_mid ')' - 1`
17094 if test $ac_mid -le $ac_hi; then
17095 ac_lo= ac_hi=
17096 break
17097 fi
17098 ac_mid=`expr 2 '*' $ac_mid`
17099fi
17100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17101 done
17102else
17103 echo "$as_me: failed program was:" >&5
17104sed 's/^/| /' conftest.$ac_ext >&5
17105
17106ac_lo= ac_hi=
17107fi
17108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17109fi
17110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17111# Binary search between lo and hi bounds.
17112while test "x$ac_lo" != "x$ac_hi"; do
17113 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17114 cat >conftest.$ac_ext <<_ACEOF
17115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
17120$ac_includes_default
17121int
17122main ()
17123{
17124static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
17125test_array [0] = 0
17126
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_hi=$ac_mid
17154else
17155 echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158ac_lo=`expr '(' $ac_mid ')' + 1`
17159fi
17160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17161done
17162case $ac_lo in
17163?*) ac_cv_sizeof_long_long_int=$ac_lo;;
17164'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
17165See \`config.log' for more details." >&5
17166echo "$as_me: error: cannot compute sizeof (long long int), 77
17167See \`config.log' for more details." >&2;}
17168 { (exit 1); exit 1; }; } ;;
17169esac
17170else
17171 if test "$cross_compiling" = yes; then
17172 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17173See \`config.log' for more details." >&5
17174echo "$as_me: error: cannot run test program while cross compiling
17175See \`config.log' for more details." >&2;}
17176 { (exit 1); exit 1; }; }
17177else
17178 cat >conftest.$ac_ext <<_ACEOF
17179/* confdefs.h. */
17180_ACEOF
17181cat confdefs.h >>conftest.$ac_ext
17182cat >>conftest.$ac_ext <<_ACEOF
17183/* end confdefs.h. */
17184$ac_includes_default
17185long longval () { return (long) (sizeof (long long int)); }
17186unsigned long ulongval () { return (long) (sizeof (long long int)); }
17187#include <stdio.h>
17188#include <stdlib.h>
17189int
17190main ()
17191{
17192
17193 FILE *f = fopen ("conftest.val", "w");
17194 if (! f)
17195 exit (1);
17196 if (((long) (sizeof (long long int))) < 0)
17197 {
17198 long i = longval ();
17199 if (i != ((long) (sizeof (long long int))))
17200 exit (1);
17201 fprintf (f, "%ld\n", i);
17202 }
17203 else
17204 {
17205 unsigned long i = ulongval ();
17206 if (i != ((long) (sizeof (long long int))))
17207 exit (1);
17208 fprintf (f, "%lu\n", i);
17209 }
17210 exit (ferror (f) || fclose (f) != 0);
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest$ac_exeext
17217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17218 (eval $ac_link) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 ac_cv_sizeof_long_long_int=`cat conftest.val`
17228else
17229 echo "$as_me: program exited with status $ac_status" >&5
17230echo "$as_me: failed program was:" >&5
17231sed 's/^/| /' conftest.$ac_ext >&5
17232
17233( exit $ac_status )
17234{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
17235See \`config.log' for more details." >&5
17236echo "$as_me: error: cannot compute sizeof (long long int), 77
17237See \`config.log' for more details." >&2;}
17238 { (exit 1); exit 1; }; }
17239fi
17240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17241fi
17242fi
17243rm -f conftest.val
17244else
17245 ac_cv_sizeof_long_long_int=0
17246fi
17247fi
17248echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
17249echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
17250cat >>confdefs.h <<_ACEOF
17251#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
17252_ACEOF
17253
17254
17255
17256# Sanity check long long for some platforms (AIX)
17257if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
17258 ac_cv_sizeof_long_long_int=0
17259fi
17260
17261# More checks for data types
17262echo "$as_me:$LINENO: checking for u_int type" >&5
17263echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17264if test "${ac_cv_have_u_int+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266else
17267
17268 cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274 #include <sys/types.h>
17275int
17276main ()
17277{
17278 u_int a; a = 1;
17279 ;
17280 return 0;
17281}
17282_ACEOF
17283rm -f conftest.$ac_objext
17284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_cv_have_u_int="yes"
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_cv_have_u_int="no"
17311
17312fi
17313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314
17315fi
17316echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17317echo "${ECHO_T}$ac_cv_have_u_int" >&6
17318if test "x$ac_cv_have_u_int" = "xyes" ; then
17319 cat >>confdefs.h <<\_ACEOF
17320#define HAVE_U_INT 1
17321_ACEOF
17322
17323 have_u_int=1
17324fi
17325
17326echo "$as_me:$LINENO: checking for intXX_t types" >&5
17327echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17328if test "${ac_cv_have_intxx_t+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331
17332 cat >conftest.$ac_ext <<_ACEOF
17333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
17338 #include <sys/types.h>
17339int
17340main ()
17341{
17342 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext
17348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_c_werror_flag"
17357 || test ! -s conftest.err'
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_have_intxx_t="yes"
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374 ac_cv_have_intxx_t="no"
17375
17376fi
17377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378
17379fi
17380echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17381echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17382if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17383 cat >>confdefs.h <<\_ACEOF
17384#define HAVE_INTXX_T 1
17385_ACEOF
17386
17387 have_intxx_t=1
17388fi
17389
17390if (test -z "$have_intxx_t" && \
17391 test "x$ac_cv_header_stdint_h" = "xyes")
17392then
17393 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
17394echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
17395 cat >conftest.$ac_ext <<_ACEOF
17396/* confdefs.h. */
17397_ACEOF
17398cat confdefs.h >>conftest.$ac_ext
17399cat >>conftest.$ac_ext <<_ACEOF
17400/* end confdefs.h. */
17401 #include <stdint.h>
17402int
17403main ()
17404{
17405 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17406 ;
17407 return 0;
17408}
17409_ACEOF
17410rm -f conftest.$ac_objext
17411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432
17433 cat >>confdefs.h <<\_ACEOF
17434#define HAVE_INTXX_T 1
17435_ACEOF
17436
17437 echo "$as_me:$LINENO: result: yes" >&5
17438echo "${ECHO_T}yes" >&6
17439
17440else
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
17444 echo "$as_me:$LINENO: result: no" >&5
17445echo "${ECHO_T}no" >&6
17446
17447fi
17448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17449fi
17450
17451echo "$as_me:$LINENO: checking for int64_t type" >&5
17452echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17453if test "${ac_cv_have_int64_t+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17455else
17456
17457 cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h. */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h. */
17463
17464#include <sys/types.h>
17465#ifdef HAVE_STDINT_H
17466# include <stdint.h>
17467#endif
17468#include <sys/socket.h>
17469#ifdef HAVE_SYS_BITYPES_H
17470# include <sys/bitypes.h>
17471#endif
17472
17473int
17474main ()
17475{
17476 int64_t a; a = 1;
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext
17482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_have_int64_t="yes"
17504else
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ac_cv_have_int64_t="no"
17509
17510fi
17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17512
17513fi
17514echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17515echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17516if test "x$ac_cv_have_int64_t" = "xyes" ; then
17517 cat >>confdefs.h <<\_ACEOF
17518#define HAVE_INT64_T 1
17519_ACEOF
17520
17521fi
17522
17523echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17524echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17525if test "${ac_cv_have_u_intxx_t+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528
17529 cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
17535 #include <sys/types.h>
17536int
17537main ()
17538{
17539 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17540 ;
17541 return 0;
17542}
17543_ACEOF
17544rm -f conftest.$ac_objext
17545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17546 (eval $ac_compile) 2>conftest.er1
17547 ac_status=$?
17548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
17553 { ac_try='test -z "$ac_c_werror_flag"
17554 || test ! -s conftest.err'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest.$ac_objext'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_have_u_intxx_t="yes"
17567else
17568 echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 ac_cv_have_u_intxx_t="no"
17572
17573fi
17574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17575
17576fi
17577echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17578echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17579if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17580 cat >>confdefs.h <<\_ACEOF
17581#define HAVE_U_INTXX_T 1
17582_ACEOF
17583
17584 have_u_intxx_t=1
17585fi
17586
17587if test -z "$have_u_intxx_t" ; then
17588 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
17589echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
17590 cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
17596 #include <sys/socket.h>
17597int
17598main ()
17599{
17600 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17601 ;
17602 return 0;
17603}
17604_ACEOF
17605rm -f conftest.$ac_objext
17606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627
17628 cat >>confdefs.h <<\_ACEOF
17629#define HAVE_U_INTXX_T 1
17630_ACEOF
17631
17632 echo "$as_me:$LINENO: result: yes" >&5
17633echo "${ECHO_T}yes" >&6
17634
17635else
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 echo "$as_me:$LINENO: result: no" >&5
17640echo "${ECHO_T}no" >&6
17641
17642fi
17643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17644fi
17645
17646echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17647echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17648if test "${ac_cv_have_u_int64_t+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
17651
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658 #include <sys/types.h>
17659int
17660main ()
17661{
17662 u_int64_t a; a = 1;
17663 ;
17664 return 0;
17665}
17666_ACEOF
17667rm -f conftest.$ac_objext
17668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669 (eval $ac_compile) 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_c_werror_flag"
17677 || test ! -s conftest.err'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest.$ac_objext'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_cv_have_u_int64_t="yes"
17690else
17691 echo "$as_me: failed program was:" >&5
17692sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_cv_have_u_int64_t="no"
17695
17696fi
17697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17698
17699fi
17700echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17701echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17702if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17703 cat >>confdefs.h <<\_ACEOF
17704#define HAVE_U_INT64_T 1
17705_ACEOF
17706
17707 have_u_int64_t=1
17708fi
17709
17710if test -z "$have_u_int64_t" ; then
17711 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
17712echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
17713 cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
17719 #include <sys/bitypes.h>
17720int
17721main ()
17722{
17723 u_int64_t a; a = 1
17724 ;
17725 return 0;
17726}
17727_ACEOF
17728rm -f conftest.$ac_objext
17729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest.$ac_objext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750
17751 cat >>confdefs.h <<\_ACEOF
17752#define HAVE_U_INT64_T 1
17753_ACEOF
17754
17755 echo "$as_me:$LINENO: result: yes" >&5
17756echo "${ECHO_T}yes" >&6
17757
17758else
17759 echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
17761
17762 echo "$as_me:$LINENO: result: no" >&5
17763echo "${ECHO_T}no" >&6
17764
17765fi
17766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17767fi
17768
17769if test -z "$have_u_intxx_t" ; then
17770 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17771echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17772if test "${ac_cv_have_uintxx_t+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775
17776 cat >conftest.$ac_ext <<_ACEOF
17777/* confdefs.h. */
17778_ACEOF
17779cat confdefs.h >>conftest.$ac_ext
17780cat >>conftest.$ac_ext <<_ACEOF
17781/* end confdefs.h. */
17782
17783#include <sys/types.h>
17784
17785int
17786main ()
17787{
17788 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
17789 ;
17790 return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext
17794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>conftest.er1
17796 ac_status=$?
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_c_werror_flag"
17803 || test ! -s conftest.err'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest.$ac_objext'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_have_uintxx_t="yes"
17816else
17817 echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 ac_cv_have_uintxx_t="no"
17821
17822fi
17823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17824
17825fi
17826echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17827echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17828 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17829 cat >>confdefs.h <<\_ACEOF
17830#define HAVE_UINTXX_T 1
17831_ACEOF
17832
17833 fi
17834fi
17835
17836if test -z "$have_uintxx_t" ; then
17837 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
17838echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
17839 cat >conftest.$ac_ext <<_ACEOF
17840/* confdefs.h. */
17841_ACEOF
17842cat confdefs.h >>conftest.$ac_ext
17843cat >>conftest.$ac_ext <<_ACEOF
17844/* end confdefs.h. */
17845 #include <stdint.h>
17846int
17847main ()
17848{
17849 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856 (eval $ac_compile) 2>conftest.er1
17857 ac_status=$?
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876
17877 cat >>confdefs.h <<\_ACEOF
17878#define HAVE_UINTXX_T 1
17879_ACEOF
17880
17881 echo "$as_me:$LINENO: result: yes" >&5
17882echo "${ECHO_T}yes" >&6
17883
17884else
17885 echo "$as_me: failed program was:" >&5
17886sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 echo "$as_me:$LINENO: result: no" >&5
17889echo "${ECHO_T}no" >&6
17890
17891fi
17892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17893fi
17894
17895if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17896 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17897then
17898 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17899echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17900 cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906
17907#include <sys/bitypes.h>
17908
17909int
17910main ()
17911{
17912
17913 int8_t a; int16_t b; int32_t c;
17914 u_int8_t e; u_int16_t f; u_int32_t g;
17915 a = b = c = e = f = g = 1;
17916
17917 ;
17918 return 0;
17919}
17920_ACEOF
17921rm -f conftest.$ac_objext
17922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17923 (eval $ac_compile) 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } &&
17930 { ac_try='test -z "$ac_c_werror_flag"
17931 || test ! -s conftest.err'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest.$ac_objext'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; }; then
17943
17944 cat >>confdefs.h <<\_ACEOF
17945#define HAVE_U_INTXX_T 1
17946_ACEOF
17947
17948 cat >>confdefs.h <<\_ACEOF
17949#define HAVE_INTXX_T 1
17950_ACEOF
17951
17952 echo "$as_me:$LINENO: result: yes" >&5
17953echo "${ECHO_T}yes" >&6
17954
17955else
17956 echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959echo "$as_me:$LINENO: result: no" >&5
17960echo "${ECHO_T}no" >&6
17961
17962fi
17963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17964fi
17965
17966
17967echo "$as_me:$LINENO: checking for u_char" >&5
17968echo $ECHO_N "checking for u_char... $ECHO_C" >&6
17969if test "${ac_cv_have_u_char+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971else
17972
17973 cat >conftest.$ac_ext <<_ACEOF
17974/* confdefs.h. */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h. */
17979
17980#include <sys/types.h>
17981
17982int
17983main ()
17984{
17985 u_char foo; foo = 125;
17986 ;
17987 return 0;
17988}
17989_ACEOF
17990rm -f conftest.$ac_objext
17991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17992 (eval $ac_compile) 2>conftest.er1
17993 ac_status=$?
17994 grep -v '^ *+' conftest.er1 >conftest.err
17995 rm -f conftest.er1
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -z "$ac_c_werror_flag"
18000 || test ! -s conftest.err'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest.$ac_objext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_have_u_char="yes"
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017 ac_cv_have_u_char="no"
18018
18019fi
18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18021
18022fi
18023echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
18024echo "${ECHO_T}$ac_cv_have_u_char" >&6
18025if test "x$ac_cv_have_u_char" = "xyes" ; then
18026 cat >>confdefs.h <<\_ACEOF
18027#define HAVE_U_CHAR 1
18028_ACEOF
18029
18030fi
18031
18032
18033 echo "$as_me:$LINENO: checking for socklen_t" >&5
18034echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
18035if test "${ac_cv_type_socklen_t+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044#include <sys/types.h>
18045#include <sys/socket.h>
18046
18047int
18048main ()
18049{
18050if ((socklen_t *) 0)
18051 return 0;
18052if (sizeof (socklen_t))
18053 return 0;
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext
18059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060 (eval $ac_compile) 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest.$ac_objext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_type_socklen_t=yes
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085ac_cv_type_socklen_t=no
18086fi
18087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18088fi
18089echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
18090echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
18091if test $ac_cv_type_socklen_t = yes; then
18092 :
18093else
18094
18095 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
18096echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
18097 if test "${curl_cv_socklen_t_equiv+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18099else
18100
18101 # Systems have either "struct sockaddr *" or
18102 # "void *" as the second argument to getpeername
18103 curl_cv_socklen_t_equiv=
18104 for arg2 in "struct sockaddr" void; do
18105 for t in int size_t unsigned long "unsigned long"; do
18106 cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112
18113 #include <sys/types.h>
18114 #include <sys/socket.h>
18115
18116 int getpeername (int, $arg2 *, $t *);
18117
18118int
18119main ()
18120{
18121
18122 $t len;
18123 getpeername(0,0,&len);
18124
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest.$ac_objext
18130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151
18152 curl_cv_socklen_t_equiv="$t"
18153 break
18154
18155else
18156 echo "$as_me: failed program was:" >&5
18157sed 's/^/| /' conftest.$ac_ext >&5
18158
18159fi
18160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18161 done
18162 done
18163
18164 if test "x$curl_cv_socklen_t_equiv" = x; then
18165 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
18166echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
18167 { (exit 1); exit 1; }; }
18168 fi
18169
18170fi
18171
18172 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
18173echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
18174
18175cat >>confdefs.h <<_ACEOF
18176#define socklen_t $curl_cv_socklen_t_equiv
18177_ACEOF
18178
18179fi
18180
18181
18182
18183echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
18184echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
18185if test "${ac_cv_type_sig_atomic_t+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187else
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194#include <signal.h>
18195
18196int
18197main ()
18198{
18199if ((sig_atomic_t *) 0)
18200 return 0;
18201if (sizeof (sig_atomic_t))
18202 return 0;
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext
18208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_type_sig_atomic_t=yes
18230else
18231 echo "$as_me: failed program was:" >&5
18232sed 's/^/| /' conftest.$ac_ext >&5
18233
18234ac_cv_type_sig_atomic_t=no
18235fi
18236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18237fi
18238echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
18239echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
18240if test $ac_cv_type_sig_atomic_t = yes; then
18241
18242cat >>confdefs.h <<_ACEOF
18243#define HAVE_SIG_ATOMIC_T 1
18244_ACEOF
18245
18246
18247fi
18248
18249
18250echo "$as_me:$LINENO: checking for in_addr_t" >&5
18251echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
18252if test "${ac_cv_type_in_addr_t+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255 cat >conftest.$ac_ext <<_ACEOF
18256/* confdefs.h. */
18257_ACEOF
18258cat confdefs.h >>conftest.$ac_ext
18259cat >>conftest.$ac_ext <<_ACEOF
18260/* end confdefs.h. */
18261#include <sys/types.h>
18262#include <netinet/in.h>
18263
18264int
18265main ()
18266{
18267if ((in_addr_t *) 0)
18268 return 0;
18269if (sizeof (in_addr_t))
18270 return 0;
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext
18276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18277 (eval $ac_compile) 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest.$ac_objext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_type_in_addr_t=yes
18298else
18299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302ac_cv_type_in_addr_t=no
18303fi
18304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18305fi
18306echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
18307echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
18308if test $ac_cv_type_in_addr_t = yes; then
18309
18310cat >>confdefs.h <<_ACEOF
18311#define HAVE_IN_ADDR_T 1
18312_ACEOF
18313
18314
18315fi
18316
18317
18318echo "$as_me:$LINENO: checking for size_t" >&5
18319echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18320if test "${ac_cv_have_size_t+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322else
18323
18324 cat >conftest.$ac_ext <<_ACEOF
18325/* confdefs.h. */
18326_ACEOF
18327cat confdefs.h >>conftest.$ac_ext
18328cat >>conftest.$ac_ext <<_ACEOF
18329/* end confdefs.h. */
18330
18331#include <sys/types.h>
18332
18333int
18334main ()
18335{
18336 size_t foo; foo = 1235;
18337 ;
18338 return 0;
18339}
18340_ACEOF
18341rm -f conftest.$ac_objext
18342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>conftest.er1
18344 ac_status=$?
18345 grep -v '^ *+' conftest.er1 >conftest.err
18346 rm -f conftest.er1
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_cv_have_size_t="yes"
18364else
18365 echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_cv_have_size_t="no"
18369
18370fi
18371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18372
18373fi
18374echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
18375echo "${ECHO_T}$ac_cv_have_size_t" >&6
18376if test "x$ac_cv_have_size_t" = "xyes" ; then
18377 cat >>confdefs.h <<\_ACEOF
18378#define HAVE_SIZE_T 1
18379_ACEOF
18380
18381fi
18382
18383echo "$as_me:$LINENO: checking for ssize_t" >&5
18384echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18385if test "${ac_cv_have_ssize_t+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18387else
18388
18389 cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h. */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h. */
18395
18396#include <sys/types.h>
18397
18398int
18399main ()
18400{
18401 ssize_t foo; foo = 1235;
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext
18407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18408 (eval $ac_compile) 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag"
18416 || test ! -s conftest.err'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest.$ac_objext'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428 ac_cv_have_ssize_t="yes"
18429else
18430 echo "$as_me: failed program was:" >&5
18431sed 's/^/| /' conftest.$ac_ext >&5
18432
18433 ac_cv_have_ssize_t="no"
18434
18435fi
18436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18437
18438fi
18439echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
18440echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
18441if test "x$ac_cv_have_ssize_t" = "xyes" ; then
18442 cat >>confdefs.h <<\_ACEOF
18443#define HAVE_SSIZE_T 1
18444_ACEOF
18445
18446fi
18447
18448echo "$as_me:$LINENO: checking for clock_t" >&5
18449echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
18450if test "${ac_cv_have_clock_t+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453
18454 cat >conftest.$ac_ext <<_ACEOF
18455/* confdefs.h. */
18456_ACEOF
18457cat confdefs.h >>conftest.$ac_ext
18458cat >>conftest.$ac_ext <<_ACEOF
18459/* end confdefs.h. */
18460
18461#include <time.h>
18462
18463int
18464main ()
18465{
18466 clock_t foo; foo = 1235;
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext
18472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18473 (eval $ac_compile) 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
18480 { ac_try='test -z "$ac_c_werror_flag"
18481 || test ! -s conftest.err'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest.$ac_objext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_cv_have_clock_t="yes"
18494else
18495 echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498 ac_cv_have_clock_t="no"
18499
18500fi
18501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18502
18503fi
18504echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
18505echo "${ECHO_T}$ac_cv_have_clock_t" >&6
18506if test "x$ac_cv_have_clock_t" = "xyes" ; then
18507 cat >>confdefs.h <<\_ACEOF
18508#define HAVE_CLOCK_T 1
18509_ACEOF
18510
18511fi
18512
18513echo "$as_me:$LINENO: checking for sa_family_t" >&5
18514echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
18515if test "${ac_cv_have_sa_family_t+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517else
18518
18519 cat >conftest.$ac_ext <<_ACEOF
18520/* confdefs.h. */
18521_ACEOF
18522cat confdefs.h >>conftest.$ac_ext
18523cat >>conftest.$ac_ext <<_ACEOF
18524/* end confdefs.h. */
18525
18526#include <sys/types.h>
18527#include <sys/socket.h>
18528
18529int
18530main ()
18531{
18532 sa_family_t foo; foo = 1235;
18533 ;
18534 return 0;
18535}
18536_ACEOF
18537rm -f conftest.$ac_objext
18538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18539 (eval $ac_compile) 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } &&
18546 { ac_try='test -z "$ac_c_werror_flag"
18547 || test ! -s conftest.err'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_have_sa_family_t="yes"
18560else
18561 echo "$as_me: failed program was:" >&5
18562sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570
18571#include <sys/types.h>
18572#include <sys/socket.h>
18573#include <netinet/in.h>
18574
18575int
18576main ()
18577{
18578 sa_family_t foo; foo = 1235;
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18585 (eval $ac_compile) 2>conftest.er1
18586 ac_status=$?
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_have_sa_family_t="yes"
18606else
18607 echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 ac_cv_have_sa_family_t="no"
18611
18612fi
18613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18614
18615fi
18616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617
18618fi
18619echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
18620echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
18621if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
18622 cat >>confdefs.h <<\_ACEOF
18623#define HAVE_SA_FAMILY_T 1
18624_ACEOF
18625
18626fi
18627
18628echo "$as_me:$LINENO: checking for pid_t" >&5
18629echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18630if test "${ac_cv_have_pid_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
18643int
18644main ()
18645{
18646 pid_t foo; foo = 1235;
18647 ;
18648 return 0;
18649}
18650_ACEOF
18651rm -f conftest.$ac_objext
18652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
18660 { ac_try='test -z "$ac_c_werror_flag"
18661 || test ! -s conftest.err'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_cv_have_pid_t="yes"
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678 ac_cv_have_pid_t="no"
18679
18680fi
18681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18682
18683fi
18684echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
18685echo "${ECHO_T}$ac_cv_have_pid_t" >&6
18686if test "x$ac_cv_have_pid_t" = "xyes" ; then
18687 cat >>confdefs.h <<\_ACEOF
18688#define HAVE_PID_T 1
18689_ACEOF
18690
18691fi
18692
18693echo "$as_me:$LINENO: checking for mode_t" >&5
18694echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
18695if test "${ac_cv_have_mode_t+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698
18699 cat >conftest.$ac_ext <<_ACEOF
18700/* confdefs.h. */
18701_ACEOF
18702cat confdefs.h >>conftest.$ac_ext
18703cat >>conftest.$ac_ext <<_ACEOF
18704/* end confdefs.h. */
18705
18706#include <sys/types.h>
18707
18708int
18709main ()
18710{
18711 mode_t foo; foo = 1235;
18712 ;
18713 return 0;
18714}
18715_ACEOF
18716rm -f conftest.$ac_objext
18717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718 (eval $ac_compile) 2>conftest.er1
18719 ac_status=$?
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -z "$ac_c_werror_flag"
18726 || test ! -s conftest.err'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; } &&
18732 { ac_try='test -s conftest.$ac_objext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_have_mode_t="yes"
18739else
18740 echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ac_cv_have_mode_t="no"
18744
18745fi
18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18747
18748fi
18749echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
18750echo "${ECHO_T}$ac_cv_have_mode_t" >&6
18751if test "x$ac_cv_have_mode_t" = "xyes" ; then
18752 cat >>confdefs.h <<\_ACEOF
18753#define HAVE_MODE_T 1
18754_ACEOF
18755
18756fi
18757
18758
18759echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
18760echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
18761if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764
18765 cat >conftest.$ac_ext <<_ACEOF
18766/* confdefs.h. */
18767_ACEOF
18768cat confdefs.h >>conftest.$ac_ext
18769cat >>conftest.$ac_ext <<_ACEOF
18770/* end confdefs.h. */
18771
18772#include <sys/types.h>
18773#include <sys/socket.h>
18774
18775int
18776main ()
18777{
18778 struct sockaddr_storage s;
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag"
18793 || test ! -s conftest.err'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_cv_have_struct_sockaddr_storage="yes"
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 ac_cv_have_struct_sockaddr_storage="no"
18811
18812fi
18813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18814
18815fi
18816echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
18817echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
18818if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
18819 cat >>confdefs.h <<\_ACEOF
18820#define HAVE_STRUCT_SOCKADDR_STORAGE 1
18821_ACEOF
18822
18823fi
18824
18825echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
18826echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
18827if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829else
18830
18831 cat >conftest.$ac_ext <<_ACEOF
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
18837
18838#include <sys/types.h>
18839#include <netinet/in.h>
18840
18841int
18842main ()
18843{
18844 struct sockaddr_in6 s; s.sin6_family = 0;
18845 ;
18846 return 0;
18847}
18848_ACEOF
18849rm -f conftest.$ac_objext
18850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_cv_have_struct_sockaddr_in6="yes"
18872else
18873 echo "$as_me: failed program was:" >&5
18874sed 's/^/| /' conftest.$ac_ext >&5
18875
18876 ac_cv_have_struct_sockaddr_in6="no"
18877
18878fi
18879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18880
18881fi
18882echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
18883echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
18884if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
18885 cat >>confdefs.h <<\_ACEOF
18886#define HAVE_STRUCT_SOCKADDR_IN6 1
18887_ACEOF
18888
18889fi
18890
18891echo "$as_me:$LINENO: checking for struct in6_addr" >&5
18892echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
18893if test "${ac_cv_have_struct_in6_addr+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895else
18896
18897 cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903
18904#include <sys/types.h>
18905#include <netinet/in.h>
18906
18907int
18908main ()
18909{
18910 struct in6_addr s; s.s6_addr[0] = 0;
18911 ;
18912 return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext
18916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18917 (eval $ac_compile) 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -z "$ac_c_werror_flag"
18925 || test ! -s conftest.err'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_have_struct_in6_addr="yes"
18938else
18939 echo "$as_me: failed program was:" >&5
18940sed 's/^/| /' conftest.$ac_ext >&5
18941
18942 ac_cv_have_struct_in6_addr="no"
18943
18944fi
18945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18946
18947fi
18948echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
18949echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
18950if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
18951 cat >>confdefs.h <<\_ACEOF
18952#define HAVE_STRUCT_IN6_ADDR 1
18953_ACEOF
18954
18955fi
18956
18957echo "$as_me:$LINENO: checking for struct addrinfo" >&5
18958echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
18959if test "${ac_cv_have_struct_addrinfo+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961else
18962
18963 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
18968/* end confdefs.h. */
18969
18970#include <sys/types.h>
18971#include <sys/socket.h>
18972#include <netdb.h>
18973
18974int
18975main ()
18976{
18977 struct addrinfo s; s.ai_flags = AI_PASSIVE;
18978 ;
18979 return 0;
18980}
18981_ACEOF
18982rm -f conftest.$ac_objext
18983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18984 (eval $ac_compile) 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_c_werror_flag"
18992 || test ! -s conftest.err'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest.$ac_objext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_have_struct_addrinfo="yes"
19005else
19006 echo "$as_me: failed program was:" >&5
19007sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 ac_cv_have_struct_addrinfo="no"
19010
19011fi
19012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19013
19014fi
19015echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
19016echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
19017if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
19018 cat >>confdefs.h <<\_ACEOF
19019#define HAVE_STRUCT_ADDRINFO 1
19020_ACEOF
19021
19022fi
19023
19024echo "$as_me:$LINENO: checking for struct timeval" >&5
19025echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
19026if test "${ac_cv_have_struct_timeval+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19028else
19029
19030 cat >conftest.$ac_ext <<_ACEOF
19031/* confdefs.h. */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
19035/* end confdefs.h. */
19036 #include <sys/time.h>
19037int
19038main ()
19039{
19040 struct timeval tv; tv.tv_sec = 1;
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext
19046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047 (eval $ac_compile) 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest.$ac_objext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_have_struct_timeval="yes"
19068else
19069 echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_cv_have_struct_timeval="no"
19073
19074fi
19075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19076
19077fi
19078echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
19079echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
19080if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
19081 cat >>confdefs.h <<\_ACEOF
19082#define HAVE_STRUCT_TIMEVAL 1
19083_ACEOF
19084
19085 have_struct_timeval=1
19086fi
19087
19088echo "$as_me:$LINENO: checking for struct timespec" >&5
19089echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
19090if test "${ac_cv_type_struct_timespec+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19092else
19093 cat >conftest.$ac_ext <<_ACEOF
19094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
19099$ac_includes_default
19100int
19101main ()
19102{
19103if ((struct timespec *) 0)
19104 return 0;
19105if (sizeof (struct timespec))
19106 return 0;
19107 ;
19108 return 0;
19109}
19110_ACEOF
19111rm -f conftest.$ac_objext
19112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113 (eval $ac_compile) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_type_struct_timespec=yes
19134else
19135 echo "$as_me: failed program was:" >&5
19136sed 's/^/| /' conftest.$ac_ext >&5
19137
19138ac_cv_type_struct_timespec=no
19139fi
19140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19141fi
19142echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
19143echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
19144if test $ac_cv_type_struct_timespec = yes; then
19145
19146cat >>confdefs.h <<_ACEOF
19147#define HAVE_STRUCT_TIMESPEC 1
19148_ACEOF
19149
19150
19151fi
19152
19153
19154# We need int64_t or else certian parts of the compile will fail.
19155if test "x$ac_cv_have_int64_t" = "xno" -a \
19156 "x$ac_cv_sizeof_long_int" != "x8" -a \
19157 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
19158 echo "OpenSSH requires int64_t support. Contact your vendor or install"
19159 echo "an alternative compiler (I.E., GCC) before continuing."
19160 echo ""
19161 exit 1;
19162else
19163 if test "$cross_compiling" = yes; then
19164 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19165echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19166
19167else
19168 cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h. */
19174
19175#include <stdio.h>
19176#include <string.h>
19177#ifdef HAVE_SNPRINTF
19178main()
19179{
19180 char buf[50];
19181 char expected_out[50];
19182 int mazsize = 50 ;
19183#if (SIZEOF_LONG_INT == 8)
19184 long int num = 0x7fffffffffffffff;
19185#else
19186 long long num = 0x7fffffffffffffffll;
19187#endif
19188 strcpy(expected_out, "9223372036854775807");
19189 snprintf(buf, mazsize, "%lld", num);
19190 if(strcmp(buf, expected_out) != 0)
19191 exit(1);
19192 exit(0);
19193}
19194#else
19195main() { exit(0); }
19196#endif
19197
19198_ACEOF
19199rm -f conftest$ac_exeext
19200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19201 (eval $ac_link) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 true
19211else
19212 echo "$as_me: program exited with status $ac_status" >&5
19213echo "$as_me: failed program was:" >&5
19214sed 's/^/| /' conftest.$ac_ext >&5
19215
19216( exit $ac_status )
19217 cat >>confdefs.h <<\_ACEOF
19218#define BROKEN_SNPRINTF 1
19219_ACEOF
19220
19221fi
19222rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19223fi
19224fi
19225
19226
19227# look for field 'ut_host' in header 'utmp.h'
19228 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19229 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
19230 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
19231echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
19232 if eval "test \"\${$ossh_varname+set}\" = set"; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235
19236 cat >conftest.$ac_ext <<_ACEOF
19237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
19241/* end confdefs.h. */
19242#include <utmp.h>
19243
19244_ACEOF
19245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19246 $EGREP "ut_host" >/dev/null 2>&1; then
19247 eval "$ossh_varname=yes"
19248else
19249 eval "$ossh_varname=no"
19250fi
19251rm -f conftest*
19252
19253fi
19254
19255 ossh_result=`eval 'echo $'"$ossh_varname"`
19256 if test -n "`echo $ossh_varname`"; then
19257 echo "$as_me:$LINENO: result: $ossh_result" >&5
19258echo "${ECHO_T}$ossh_result" >&6
19259 if test "x$ossh_result" = "xyes"; then
19260 cat >>confdefs.h <<\_ACEOF
19261#define HAVE_HOST_IN_UTMP 1
19262_ACEOF
19263
19264 fi
19265 else
19266 echo "$as_me:$LINENO: result: no" >&5
19267echo "${ECHO_T}no" >&6
19268 fi
19269
19270
19271# look for field 'ut_host' in header 'utmpx.h'
19272 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19273 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
19274 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
19275echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
19276 if eval "test \"\${$ossh_varname+set}\" = set"; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19278else
19279
19280 cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
19286#include <utmpx.h>
19287
19288_ACEOF
19289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19290 $EGREP "ut_host" >/dev/null 2>&1; then
19291 eval "$ossh_varname=yes"
19292else
19293 eval "$ossh_varname=no"
19294fi
19295rm -f conftest*
19296
19297fi
19298
19299 ossh_result=`eval 'echo $'"$ossh_varname"`
19300 if test -n "`echo $ossh_varname`"; then
19301 echo "$as_me:$LINENO: result: $ossh_result" >&5
19302echo "${ECHO_T}$ossh_result" >&6
19303 if test "x$ossh_result" = "xyes"; then
19304 cat >>confdefs.h <<\_ACEOF
19305#define HAVE_HOST_IN_UTMPX 1
19306_ACEOF
19307
19308 fi
19309 else
19310 echo "$as_me:$LINENO: result: no" >&5
19311echo "${ECHO_T}no" >&6
19312 fi
19313
19314
19315# look for field 'syslen' in header 'utmpx.h'
19316 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19317 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
19318 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
19319echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
19320 if eval "test \"\${$ossh_varname+set}\" = set"; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323
19324 cat >conftest.$ac_ext <<_ACEOF
19325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330#include <utmpx.h>
19331
19332_ACEOF
19333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19334 $EGREP "syslen" >/dev/null 2>&1; then
19335 eval "$ossh_varname=yes"
19336else
19337 eval "$ossh_varname=no"
19338fi
19339rm -f conftest*
19340
19341fi
19342
19343 ossh_result=`eval 'echo $'"$ossh_varname"`
19344 if test -n "`echo $ossh_varname`"; then
19345 echo "$as_me:$LINENO: result: $ossh_result" >&5
19346echo "${ECHO_T}$ossh_result" >&6
19347 if test "x$ossh_result" = "xyes"; then
19348 cat >>confdefs.h <<\_ACEOF
19349#define HAVE_SYSLEN_IN_UTMPX 1
19350_ACEOF
19351
19352 fi
19353 else
19354 echo "$as_me:$LINENO: result: no" >&5
19355echo "${ECHO_T}no" >&6
19356 fi
19357
19358
19359# look for field 'ut_pid' in header 'utmp.h'
19360 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19361 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
19362 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
19363echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
19364 if eval "test \"\${$ossh_varname+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366else
19367
19368 cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
19374#include <utmp.h>
19375
19376_ACEOF
19377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19378 $EGREP "ut_pid" >/dev/null 2>&1; then
19379 eval "$ossh_varname=yes"
19380else
19381 eval "$ossh_varname=no"
19382fi
19383rm -f conftest*
19384
19385fi
19386
19387 ossh_result=`eval 'echo $'"$ossh_varname"`
19388 if test -n "`echo $ossh_varname`"; then
19389 echo "$as_me:$LINENO: result: $ossh_result" >&5
19390echo "${ECHO_T}$ossh_result" >&6
19391 if test "x$ossh_result" = "xyes"; then
19392 cat >>confdefs.h <<\_ACEOF
19393#define HAVE_PID_IN_UTMP 1
19394_ACEOF
19395
19396 fi
19397 else
19398 echo "$as_me:$LINENO: result: no" >&5
19399echo "${ECHO_T}no" >&6
19400 fi
19401
19402
19403# look for field 'ut_type' in header 'utmp.h'
19404 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19405 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
19406 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
19407echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
19408 if eval "test \"\${$ossh_varname+set}\" = set"; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410else
19411
19412 cat >conftest.$ac_ext <<_ACEOF
19413/* confdefs.h. */
19414_ACEOF
19415cat confdefs.h >>conftest.$ac_ext
19416cat >>conftest.$ac_ext <<_ACEOF
19417/* end confdefs.h. */
19418#include <utmp.h>
19419
19420_ACEOF
19421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19422 $EGREP "ut_type" >/dev/null 2>&1; then
19423 eval "$ossh_varname=yes"
19424else
19425 eval "$ossh_varname=no"
19426fi
19427rm -f conftest*
19428
19429fi
19430
19431 ossh_result=`eval 'echo $'"$ossh_varname"`
19432 if test -n "`echo $ossh_varname`"; then
19433 echo "$as_me:$LINENO: result: $ossh_result" >&5
19434echo "${ECHO_T}$ossh_result" >&6
19435 if test "x$ossh_result" = "xyes"; then
19436 cat >>confdefs.h <<\_ACEOF
19437#define HAVE_TYPE_IN_UTMP 1
19438_ACEOF
19439
19440 fi
19441 else
19442 echo "$as_me:$LINENO: result: no" >&5
19443echo "${ECHO_T}no" >&6
19444 fi
19445
19446
19447# look for field 'ut_type' in header 'utmpx.h'
19448 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19449 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
19450 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
19451echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
19452 if eval "test \"\${$ossh_varname+set}\" = set"; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454else
19455
19456 cat >conftest.$ac_ext <<_ACEOF
19457/* confdefs.h. */
19458_ACEOF
19459cat confdefs.h >>conftest.$ac_ext
19460cat >>conftest.$ac_ext <<_ACEOF
19461/* end confdefs.h. */
19462#include <utmpx.h>
19463
19464_ACEOF
19465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19466 $EGREP "ut_type" >/dev/null 2>&1; then
19467 eval "$ossh_varname=yes"
19468else
19469 eval "$ossh_varname=no"
19470fi
19471rm -f conftest*
19472
19473fi
19474
19475 ossh_result=`eval 'echo $'"$ossh_varname"`
19476 if test -n "`echo $ossh_varname`"; then
19477 echo "$as_me:$LINENO: result: $ossh_result" >&5
19478echo "${ECHO_T}$ossh_result" >&6
19479 if test "x$ossh_result" = "xyes"; then
19480 cat >>confdefs.h <<\_ACEOF
19481#define HAVE_TYPE_IN_UTMPX 1
19482_ACEOF
19483
19484 fi
19485 else
19486 echo "$as_me:$LINENO: result: no" >&5
19487echo "${ECHO_T}no" >&6
19488 fi
19489
19490
19491# look for field 'ut_tv' in header 'utmp.h'
19492 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19493 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
19494 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
19495echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
19496 if eval "test \"\${$ossh_varname+set}\" = set"; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
19499
19500 cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506#include <utmp.h>
19507
19508_ACEOF
19509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19510 $EGREP "ut_tv" >/dev/null 2>&1; then
19511 eval "$ossh_varname=yes"
19512else
19513 eval "$ossh_varname=no"
19514fi
19515rm -f conftest*
19516
19517fi
19518
19519 ossh_result=`eval 'echo $'"$ossh_varname"`
19520 if test -n "`echo $ossh_varname`"; then
19521 echo "$as_me:$LINENO: result: $ossh_result" >&5
19522echo "${ECHO_T}$ossh_result" >&6
19523 if test "x$ossh_result" = "xyes"; then
19524 cat >>confdefs.h <<\_ACEOF
19525#define HAVE_TV_IN_UTMP 1
19526_ACEOF
19527
19528 fi
19529 else
19530 echo "$as_me:$LINENO: result: no" >&5
19531echo "${ECHO_T}no" >&6
19532 fi
19533
19534
19535# look for field 'ut_id' in header 'utmp.h'
19536 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19537 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
19538 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
19539echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
19540 if eval "test \"\${$ossh_varname+set}\" = set"; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542else
19543
19544 cat >conftest.$ac_ext <<_ACEOF
19545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
19550#include <utmp.h>
19551
19552_ACEOF
19553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19554 $EGREP "ut_id" >/dev/null 2>&1; then
19555 eval "$ossh_varname=yes"
19556else
19557 eval "$ossh_varname=no"
19558fi
19559rm -f conftest*
19560
19561fi
19562
19563 ossh_result=`eval 'echo $'"$ossh_varname"`
19564 if test -n "`echo $ossh_varname`"; then
19565 echo "$as_me:$LINENO: result: $ossh_result" >&5
19566echo "${ECHO_T}$ossh_result" >&6
19567 if test "x$ossh_result" = "xyes"; then
19568 cat >>confdefs.h <<\_ACEOF
19569#define HAVE_ID_IN_UTMP 1
19570_ACEOF
19571
19572 fi
19573 else
19574 echo "$as_me:$LINENO: result: no" >&5
19575echo "${ECHO_T}no" >&6
19576 fi
19577
19578
19579# look for field 'ut_id' in header 'utmpx.h'
19580 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19581 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
19582 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
19583echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
19584 if eval "test \"\${$ossh_varname+set}\" = set"; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587
19588 cat >conftest.$ac_ext <<_ACEOF
19589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
19593/* end confdefs.h. */
19594#include <utmpx.h>
19595
19596_ACEOF
19597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19598 $EGREP "ut_id" >/dev/null 2>&1; then
19599 eval "$ossh_varname=yes"
19600else
19601 eval "$ossh_varname=no"
19602fi
19603rm -f conftest*
19604
19605fi
19606
19607 ossh_result=`eval 'echo $'"$ossh_varname"`
19608 if test -n "`echo $ossh_varname`"; then
19609 echo "$as_me:$LINENO: result: $ossh_result" >&5
19610echo "${ECHO_T}$ossh_result" >&6
19611 if test "x$ossh_result" = "xyes"; then
19612 cat >>confdefs.h <<\_ACEOF
19613#define HAVE_ID_IN_UTMPX 1
19614_ACEOF
19615
19616 fi
19617 else
19618 echo "$as_me:$LINENO: result: no" >&5
19619echo "${ECHO_T}no" >&6
19620 fi
19621
19622
19623# look for field 'ut_addr' in header 'utmp.h'
19624 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19625 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
19626 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
19627echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
19628 if eval "test \"\${$ossh_varname+set}\" = set"; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19630else
19631
19632 cat >conftest.$ac_ext <<_ACEOF
19633/* confdefs.h. */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h. */
19638#include <utmp.h>
19639
19640_ACEOF
19641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19642 $EGREP "ut_addr" >/dev/null 2>&1; then
19643 eval "$ossh_varname=yes"
19644else
19645 eval "$ossh_varname=no"
19646fi
19647rm -f conftest*
19648
19649fi
19650
19651 ossh_result=`eval 'echo $'"$ossh_varname"`
19652 if test -n "`echo $ossh_varname`"; then
19653 echo "$as_me:$LINENO: result: $ossh_result" >&5
19654echo "${ECHO_T}$ossh_result" >&6
19655 if test "x$ossh_result" = "xyes"; then
19656 cat >>confdefs.h <<\_ACEOF
19657#define HAVE_ADDR_IN_UTMP 1
19658_ACEOF
19659
19660 fi
19661 else
19662 echo "$as_me:$LINENO: result: no" >&5
19663echo "${ECHO_T}no" >&6
19664 fi
19665
19666
19667# look for field 'ut_addr' in header 'utmpx.h'
19668 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19669 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
19670 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
19671echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
19672 if eval "test \"\${$ossh_varname+set}\" = set"; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674else
19675
19676 cat >conftest.$ac_ext <<_ACEOF
19677/* confdefs.h. */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
19681/* end confdefs.h. */
19682#include <utmpx.h>
19683
19684_ACEOF
19685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19686 $EGREP "ut_addr" >/dev/null 2>&1; then
19687 eval "$ossh_varname=yes"
19688else
19689 eval "$ossh_varname=no"
19690fi
19691rm -f conftest*
19692
19693fi
19694
19695 ossh_result=`eval 'echo $'"$ossh_varname"`
19696 if test -n "`echo $ossh_varname`"; then
19697 echo "$as_me:$LINENO: result: $ossh_result" >&5
19698echo "${ECHO_T}$ossh_result" >&6
19699 if test "x$ossh_result" = "xyes"; then
19700 cat >>confdefs.h <<\_ACEOF
19701#define HAVE_ADDR_IN_UTMPX 1
19702_ACEOF
19703
19704 fi
19705 else
19706 echo "$as_me:$LINENO: result: no" >&5
19707echo "${ECHO_T}no" >&6
19708 fi
19709
19710
19711# look for field 'ut_addr_v6' in header 'utmp.h'
19712 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19713 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
19714 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
19715echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
19716 if eval "test \"\${$ossh_varname+set}\" = set"; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718else
19719
19720 cat >conftest.$ac_ext <<_ACEOF
19721/* confdefs.h. */
19722_ACEOF
19723cat confdefs.h >>conftest.$ac_ext
19724cat >>conftest.$ac_ext <<_ACEOF
19725/* end confdefs.h. */
19726#include <utmp.h>
19727
19728_ACEOF
19729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19730 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
19731 eval "$ossh_varname=yes"
19732else
19733 eval "$ossh_varname=no"
19734fi
19735rm -f conftest*
19736
19737fi
19738
19739 ossh_result=`eval 'echo $'"$ossh_varname"`
19740 if test -n "`echo $ossh_varname`"; then
19741 echo "$as_me:$LINENO: result: $ossh_result" >&5
19742echo "${ECHO_T}$ossh_result" >&6
19743 if test "x$ossh_result" = "xyes"; then
19744 cat >>confdefs.h <<\_ACEOF
19745#define HAVE_ADDR_V6_IN_UTMP 1
19746_ACEOF
19747
19748 fi
19749 else
19750 echo "$as_me:$LINENO: result: no" >&5
19751echo "${ECHO_T}no" >&6
19752 fi
19753
19754
19755# look for field 'ut_addr_v6' in header 'utmpx.h'
19756 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19757 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
19758 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
19759echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
19760 if eval "test \"\${$ossh_varname+set}\" = set"; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
19763
19764 cat >conftest.$ac_ext <<_ACEOF
19765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
19770#include <utmpx.h>
19771
19772_ACEOF
19773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19774 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
19775 eval "$ossh_varname=yes"
19776else
19777 eval "$ossh_varname=no"
19778fi
19779rm -f conftest*
19780
19781fi
19782
19783 ossh_result=`eval 'echo $'"$ossh_varname"`
19784 if test -n "`echo $ossh_varname`"; then
19785 echo "$as_me:$LINENO: result: $ossh_result" >&5
19786echo "${ECHO_T}$ossh_result" >&6
19787 if test "x$ossh_result" = "xyes"; then
19788 cat >>confdefs.h <<\_ACEOF
19789#define HAVE_ADDR_V6_IN_UTMPX 1
19790_ACEOF
19791
19792 fi
19793 else
19794 echo "$as_me:$LINENO: result: no" >&5
19795echo "${ECHO_T}no" >&6
19796 fi
19797
19798
19799# look for field 'ut_exit' in header 'utmp.h'
19800 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19801 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
19802 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
19803echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
19804 if eval "test \"\${$ossh_varname+set}\" = set"; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19806else
19807
19808 cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814#include <utmp.h>
19815
19816_ACEOF
19817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19818 $EGREP "ut_exit" >/dev/null 2>&1; then
19819 eval "$ossh_varname=yes"
19820else
19821 eval "$ossh_varname=no"
19822fi
19823rm -f conftest*
19824
19825fi
19826
19827 ossh_result=`eval 'echo $'"$ossh_varname"`
19828 if test -n "`echo $ossh_varname`"; then
19829 echo "$as_me:$LINENO: result: $ossh_result" >&5
19830echo "${ECHO_T}$ossh_result" >&6
19831 if test "x$ossh_result" = "xyes"; then
19832 cat >>confdefs.h <<\_ACEOF
19833#define HAVE_EXIT_IN_UTMP 1
19834_ACEOF
19835
19836 fi
19837 else
19838 echo "$as_me:$LINENO: result: no" >&5
19839echo "${ECHO_T}no" >&6
19840 fi
19841
19842
19843# look for field 'ut_time' in header 'utmp.h'
19844 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19845 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
19846 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
19847echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
19848 if eval "test \"\${$ossh_varname+set}\" = set"; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850else
19851
19852 cat >conftest.$ac_ext <<_ACEOF
19853/* confdefs.h. */
19854_ACEOF
19855cat confdefs.h >>conftest.$ac_ext
19856cat >>conftest.$ac_ext <<_ACEOF
19857/* end confdefs.h. */
19858#include <utmp.h>
19859
19860_ACEOF
19861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19862 $EGREP "ut_time" >/dev/null 2>&1; then
19863 eval "$ossh_varname=yes"
19864else
19865 eval "$ossh_varname=no"
19866fi
19867rm -f conftest*
19868
19869fi
19870
19871 ossh_result=`eval 'echo $'"$ossh_varname"`
19872 if test -n "`echo $ossh_varname`"; then
19873 echo "$as_me:$LINENO: result: $ossh_result" >&5
19874echo "${ECHO_T}$ossh_result" >&6
19875 if test "x$ossh_result" = "xyes"; then
19876 cat >>confdefs.h <<\_ACEOF
19877#define HAVE_TIME_IN_UTMP 1
19878_ACEOF
19879
19880 fi
19881 else
19882 echo "$as_me:$LINENO: result: no" >&5
19883echo "${ECHO_T}no" >&6
19884 fi
19885
19886
19887# look for field 'ut_time' in header 'utmpx.h'
19888 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19889 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
19890 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
19891echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
19892 if eval "test \"\${$ossh_varname+set}\" = set"; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894else
19895
19896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
19902#include <utmpx.h>
19903
19904_ACEOF
19905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19906 $EGREP "ut_time" >/dev/null 2>&1; then
19907 eval "$ossh_varname=yes"
19908else
19909 eval "$ossh_varname=no"
19910fi
19911rm -f conftest*
19912
19913fi
19914
19915 ossh_result=`eval 'echo $'"$ossh_varname"`
19916 if test -n "`echo $ossh_varname`"; then
19917 echo "$as_me:$LINENO: result: $ossh_result" >&5
19918echo "${ECHO_T}$ossh_result" >&6
19919 if test "x$ossh_result" = "xyes"; then
19920 cat >>confdefs.h <<\_ACEOF
19921#define HAVE_TIME_IN_UTMPX 1
19922_ACEOF
19923
19924 fi
19925 else
19926 echo "$as_me:$LINENO: result: no" >&5
19927echo "${ECHO_T}no" >&6
19928 fi
19929
19930
19931# look for field 'ut_tv' in header 'utmpx.h'
19932 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19933 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
19934 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
19935echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
19936 if eval "test \"\${$ossh_varname+set}\" = set"; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939
19940 cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
19946#include <utmpx.h>
19947
19948_ACEOF
19949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19950 $EGREP "ut_tv" >/dev/null 2>&1; then
19951 eval "$ossh_varname=yes"
19952else
19953 eval "$ossh_varname=no"
19954fi
19955rm -f conftest*
19956
19957fi
19958
19959 ossh_result=`eval 'echo $'"$ossh_varname"`
19960 if test -n "`echo $ossh_varname`"; then
19961 echo "$as_me:$LINENO: result: $ossh_result" >&5
19962echo "${ECHO_T}$ossh_result" >&6
19963 if test "x$ossh_result" = "xyes"; then
19964 cat >>confdefs.h <<\_ACEOF
19965#define HAVE_TV_IN_UTMPX 1
19966_ACEOF
19967
19968 fi
19969 else
19970 echo "$as_me:$LINENO: result: no" >&5
19971echo "${ECHO_T}no" >&6
19972 fi
19973
19974
19975echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19976echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19977if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979else
19980 cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h. */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h. */
19986$ac_includes_default
19987int
19988main ()
19989{
19990static struct stat ac_aggr;
19991if (ac_aggr.st_blksize)
19992return 0;
19993 ;
19994 return 0;
19995}
19996_ACEOF
19997rm -f conftest.$ac_objext
19998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19999 (eval $ac_compile) 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -z "$ac_c_werror_flag"
20007 || test ! -s conftest.err'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest.$ac_objext'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_cv_member_struct_stat_st_blksize=yes
20020else
20021 echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024cat >conftest.$ac_ext <<_ACEOF
20025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
20030$ac_includes_default
20031int
20032main ()
20033{
20034static struct stat ac_aggr;
20035if (sizeof ac_aggr.st_blksize)
20036return 0;
20037 ;
20038 return 0;
20039}
20040_ACEOF
20041rm -f conftest.$ac_objext
20042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20043 (eval $ac_compile) 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try='test -z "$ac_c_werror_flag"
20051 || test ! -s conftest.err'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_cv_member_struct_stat_st_blksize=yes
20064else
20065 echo "$as_me: failed program was:" >&5
20066sed 's/^/| /' conftest.$ac_ext >&5
20067
20068ac_cv_member_struct_stat_st_blksize=no
20069fi
20070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20071fi
20072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20073fi
20074echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20075echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20076if test $ac_cv_member_struct_stat_st_blksize = yes; then
20077
20078cat >>confdefs.h <<_ACEOF
20079#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20080_ACEOF
20081
20082
20083fi
20084
20085
20086echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
20087echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
20088if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098
20099#include <sys/types.h>
20100#include <sys/socket.h>
20101
20102int
20103main ()
20104{
20105 struct sockaddr_storage s; s.ss_family = 1;
20106 ;
20107 return 0;
20108}
20109_ACEOF
20110rm -f conftest.$ac_objext
20111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112 (eval $ac_compile) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_cv_have_ss_family_in_struct_ss="yes"
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_cv_have_ss_family_in_struct_ss="no"
20138fi
20139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20140
20141fi
20142echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
20143echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
20144if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
20145 cat >>confdefs.h <<\_ACEOF
20146#define HAVE_SS_FAMILY_IN_SS 1
20147_ACEOF
20148
20149fi
20150
20151echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
20152echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
20153if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155else
20156
20157 cat >conftest.$ac_ext <<_ACEOF
20158/* confdefs.h. */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
20162/* end confdefs.h. */
20163
20164#include <sys/types.h>
20165#include <sys/socket.h>
20166
20167int
20168main ()
20169{
20170 struct sockaddr_storage s; s.__ss_family = 1;
20171 ;
20172 return 0;
20173}
20174_ACEOF
20175rm -f conftest.$ac_objext
20176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177 (eval $ac_compile) 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -z "$ac_c_werror_flag"
20185 || test ! -s conftest.err'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 ac_cv_have___ss_family_in_struct_ss="yes"
20198else
20199 echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_cv_have___ss_family_in_struct_ss="no"
20203
20204fi
20205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20206
20207fi
20208echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
20209echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
20210if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
20211 cat >>confdefs.h <<\_ACEOF
20212#define HAVE___SS_FAMILY_IN_SS 1
20213_ACEOF
20214
20215fi
20216
20217echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
20218echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
20219if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221else
20222
20223 cat >conftest.$ac_ext <<_ACEOF
20224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
20229
20230#include <pwd.h>
20231
20232int
20233main ()
20234{
20235 struct passwd p; p.pw_class = 0;
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest.$ac_objext
20241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_cv_have_pw_class_in_struct_passwd="yes"
20263else
20264 echo "$as_me: failed program was:" >&5
20265sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_cv_have_pw_class_in_struct_passwd="no"
20268
20269fi
20270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20271
20272fi
20273echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
20274echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
20275if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
20276 cat >>confdefs.h <<\_ACEOF
20277#define HAVE_PW_CLASS_IN_PASSWD 1
20278_ACEOF
20279
20280fi
20281
20282echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
20283echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
20284if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294
20295#include <pwd.h>
20296
20297int
20298main ()
20299{
20300 struct passwd p; p.pw_expire = 0;
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext
20306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20307 (eval $ac_compile) 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
20314 { ac_try='test -z "$ac_c_werror_flag"
20315 || test ! -s conftest.err'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_have_pw_expire_in_struct_passwd="yes"
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 ac_cv_have_pw_expire_in_struct_passwd="no"
20333
20334fi
20335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20336
20337fi
20338echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
20339echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
20340if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
20341 cat >>confdefs.h <<\_ACEOF
20342#define HAVE_PW_EXPIRE_IN_PASSWD 1
20343_ACEOF
20344
20345fi
20346
20347echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
20348echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
20349if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351else
20352
20353 cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h. */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h. */
20359
20360#include <pwd.h>
20361
20362int
20363main ()
20364{
20365 struct passwd p; p.pw_change = 0;
20366 ;
20367 return 0;
20368}
20369_ACEOF
20370rm -f conftest.$ac_objext
20371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag"
20380 || test ! -s conftest.err'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_have_pw_change_in_struct_passwd="yes"
20393else
20394 echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 ac_cv_have_pw_change_in_struct_passwd="no"
20398
20399fi
20400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401
20402fi
20403echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
20404echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
20405if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
20406 cat >>confdefs.h <<\_ACEOF
20407#define HAVE_PW_CHANGE_IN_PASSWD 1
20408_ACEOF
20409
20410fi
20411
20412echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
20413echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
20414if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20416else
20417
20418 cat >conftest.$ac_ext <<_ACEOF
20419
20420#include <sys/types.h>
20421#include <sys/socket.h>
20422#include <sys/uio.h>
20423int main() {
20424#ifdef msg_accrights
20425#error "msg_accrights is a macro"
20426exit(1);
20427#endif
20428struct msghdr m;
20429m.msg_accrights = 0;
20430exit(0);
20431}
20432
20433_ACEOF
20434rm -f conftest.$ac_objext
20435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436 (eval $ac_compile) 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_have_accrights_in_msghdr="yes"
20457else
20458 echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_cv_have_accrights_in_msghdr="no"
20462
20463fi
20464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465
20466fi
20467echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
20468echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
20469if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
20470 cat >>confdefs.h <<\_ACEOF
20471#define HAVE_ACCRIGHTS_IN_MSGHDR 1
20472_ACEOF
20473
20474fi
20475
20476echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
20477echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
20478if test "${ac_cv_have_control_in_msghdr+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480else
20481
20482 cat >conftest.$ac_ext <<_ACEOF
20483
20484#include <sys/types.h>
20485#include <sys/socket.h>
20486#include <sys/uio.h>
20487int main() {
20488#ifdef msg_control
20489#error "msg_control is a macro"
20490exit(1);
20491#endif
20492struct msghdr m;
20493m.msg_control = 0;
20494exit(0);
20495}
20496
20497_ACEOF
20498rm -f conftest.$ac_objext
20499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500 (eval $ac_compile) 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
20507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_have_control_in_msghdr="yes"
20521else
20522 echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ac_cv_have_control_in_msghdr="no"
20526
20527fi
20528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529
20530fi
20531echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
20532echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
20533if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
20534 cat >>confdefs.h <<\_ACEOF
20535#define HAVE_CONTROL_IN_MSGHDR 1
20536_ACEOF
20537
20538fi
20539
20540echo "$as_me:$LINENO: checking if libc defines __progname" >&5
20541echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
20542if test "${ac_cv_libc_defines___progname+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544else
20545
20546 cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552
20553int
20554main ()
20555{
20556 extern char *__progname; printf("%s", __progname);
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext conftest$ac_exeext
20562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest$ac_exeext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_libc_defines___progname="yes"
20584else
20585 echo "$as_me: failed program was:" >&5
20586sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_cv_libc_defines___progname="no"
20589
20590fi
20591rm -f conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20593
20594fi
20595echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
20596echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
20597if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
20598 cat >>confdefs.h <<\_ACEOF
20599#define HAVE___PROGNAME 1
20600_ACEOF
20601
20602fi
20603
20604echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
20605echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
20606if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20608else
20609
20610 cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616
20617#include <stdio.h>
20618
20619int
20620main ()
20621{
20622 printf("%s", __FUNCTION__);
20623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest.$ac_objext conftest$ac_exeext
20628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20629 (eval $ac_link) 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_c_werror_flag"
20637 || test ! -s conftest.err'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_cv_cc_implements___FUNCTION__="yes"
20650else
20651 echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ac_cv_cc_implements___FUNCTION__="no"
20655
20656fi
20657rm -f conftest.err conftest.$ac_objext \
20658 conftest$ac_exeext conftest.$ac_ext
20659
20660fi
20661echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
20662echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
20663if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
20664 cat >>confdefs.h <<\_ACEOF
20665#define HAVE___FUNCTION__ 1
20666_ACEOF
20667
20668fi
20669
20670echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
20671echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
20672if test "${ac_cv_cc_implements___func__+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675
20676 cat >conftest.$ac_ext <<_ACEOF
20677/* confdefs.h. */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h. */
20682
20683#include <stdio.h>
20684
20685int
20686main ()
20687{
20688 printf("%s", __func__);
20689 ;
20690 return 0;
20691}
20692_ACEOF
20693rm -f conftest.$ac_objext conftest$ac_exeext
20694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_cc_implements___func__="yes"
20716else
20717 echo "$as_me: failed program was:" >&5
20718sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 ac_cv_cc_implements___func__="no"
20721
20722fi
20723rm -f conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20725
20726fi
20727echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
20728echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
20729if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
20730 cat >>confdefs.h <<\_ACEOF
20731#define HAVE___func__ 1
20732_ACEOF
20733
20734fi
20735
20736echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
20737echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
20738if test "${ac_cv_have_getopt_optreset+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740else
20741
20742 cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748
20749#include <getopt.h>
20750
20751int
20752main ()
20753{
20754 extern int optreset; optreset = 0;
20755 ;
20756 return 0;
20757}
20758_ACEOF
20759rm -f conftest.$ac_objext conftest$ac_exeext
20760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761 (eval $ac_link) 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try='test -z "$ac_c_werror_flag"
20769 || test ! -s conftest.err'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; } &&
20775 { ac_try='test -s conftest$ac_exeext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 ac_cv_have_getopt_optreset="yes"
20782else
20783 echo "$as_me: failed program was:" >&5
20784sed 's/^/| /' conftest.$ac_ext >&5
20785
20786 ac_cv_have_getopt_optreset="no"
20787
20788fi
20789rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791
20792fi
20793echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
20794echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
20795if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
20796 cat >>confdefs.h <<\_ACEOF
20797#define HAVE_GETOPT_OPTRESET 1
20798_ACEOF
20799
20800fi
20801
20802echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
20803echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
20804if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20806else
20807
20808 cat >conftest.$ac_ext <<_ACEOF
20809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
20814
20815int
20816main ()
20817{
20818 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823rm -f conftest.$ac_objext conftest$ac_exeext
20824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20825 (eval $ac_link) 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; } &&
20839 { ac_try='test -s conftest$ac_exeext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 ac_cv_libc_defines_sys_errlist="yes"
20846else
20847 echo "$as_me: failed program was:" >&5
20848sed 's/^/| /' conftest.$ac_ext >&5
20849
20850 ac_cv_libc_defines_sys_errlist="no"
20851
20852fi
20853rm -f conftest.err conftest.$ac_objext \
20854 conftest$ac_exeext conftest.$ac_ext
20855
20856fi
20857echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
20858echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
20859if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
20860 cat >>confdefs.h <<\_ACEOF
20861#define HAVE_SYS_ERRLIST 1
20862_ACEOF
20863
20864fi
20865
20866
20867echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
20868echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
20869if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871else
20872
20873 cat >conftest.$ac_ext <<_ACEOF
20874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
20879
20880int
20881main ()
20882{
20883 extern int sys_nerr; printf("%i", sys_nerr);
20884 ;
20885 return 0;
20886}
20887_ACEOF
20888rm -f conftest.$ac_objext conftest$ac_exeext
20889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890 (eval $ac_link) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest$ac_exeext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_libc_defines_sys_nerr="yes"
20911else
20912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 ac_cv_libc_defines_sys_nerr="no"
20916
20917fi
20918rm -f conftest.err conftest.$ac_objext \
20919 conftest$ac_exeext conftest.$ac_ext
20920
20921fi
20922echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
20923echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
20924if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
20925 cat >>confdefs.h <<\_ACEOF
20926#define HAVE_SYS_NERR 1
20927_ACEOF
20928
20929fi
20930
20931SCARD_MSG="no"
20932# Check whether user wants sectok support
20933
20934# Check whether --with-sectok or --without-sectok was given.
20935if test "${with_sectok+set}" = set; then
20936 withval="$with_sectok"
20937
20938 if test "x$withval" != "xno" ; then
20939 if test "x$withval" != "xyes" ; then
20940 CPPFLAGS="$CPPFLAGS -I${withval}"
20941 LDFLAGS="$LDFLAGS -L${withval}"
20942 if test ! -z "$need_dash_r" ; then
20943 LDFLAGS="$LDFLAGS -R${withval}"
20944 fi
20945 if test ! -z "$blibpath" ; then
20946 blibpath="$blibpath:${withval}"
20947 fi
20948 fi
20949
20950for ac_header in sectok.h
20951do
20952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20953if eval "test \"\${$as_ac_Header+set}\" = set"; then
20954 echo "$as_me:$LINENO: checking for $ac_header" >&5
20955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20956if eval "test \"\${$as_ac_Header+set}\" = set"; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958fi
20959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20961else
20962 # Is the header compilable?
20963echo "$as_me:$LINENO: checking $ac_header usability" >&5
20964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20965cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
20971$ac_includes_default
20972#include <$ac_header>
20973_ACEOF
20974rm -f conftest.$ac_objext
20975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -z "$ac_c_werror_flag"
20984 || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_header_compiler=yes
20997else
20998 echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5
21000
21001ac_header_compiler=no
21002fi
21003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21005echo "${ECHO_T}$ac_header_compiler" >&6
21006
21007# Is the header present?
21008echo "$as_me:$LINENO: checking $ac_header presence" >&5
21009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21010cat >conftest.$ac_ext <<_ACEOF
21011/* confdefs.h. */
21012_ACEOF
21013cat confdefs.h >>conftest.$ac_ext
21014cat >>conftest.$ac_ext <<_ACEOF
21015/* end confdefs.h. */
21016#include <$ac_header>
21017_ACEOF
21018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21020 ac_status=$?
21021 grep -v '^ *+' conftest.er1 >conftest.err
21022 rm -f conftest.er1
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } >/dev/null; then
21026 if test -s conftest.err; then
21027 ac_cpp_err=$ac_c_preproc_warn_flag
21028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21029 else
21030 ac_cpp_err=
21031 fi
21032else
21033 ac_cpp_err=yes
21034fi
21035if test -z "$ac_cpp_err"; then
21036 ac_header_preproc=yes
21037else
21038 echo "$as_me: failed program was:" >&5
21039sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ac_header_preproc=no
21042fi
21043rm -f conftest.err conftest.$ac_ext
21044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21045echo "${ECHO_T}$ac_header_preproc" >&6
21046
21047# So? What about this header?
21048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21049 yes:no: )
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21054 ac_header_preproc=yes
21055 ;;
21056 no:yes:* )
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21069 (
21070 cat <<\_ASBOX
21071## ---------------------------------- ##
21072## Report this to the OpenSSH lists. ##
21073## ---------------------------------- ##
21074_ASBOX
21075 ) |
21076 sed "s/^/$as_me: WARNING: /" >&2
21077 ;;
21078esac
21079echo "$as_me:$LINENO: checking for $ac_header" >&5
21080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21081if eval "test \"\${$as_ac_Header+set}\" = set"; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21083else
21084 eval "$as_ac_Header=\$ac_header_preproc"
21085fi
21086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21088
21089fi
21090if test `eval echo '${'$as_ac_Header'}'` = yes; then
21091 cat >>confdefs.h <<_ACEOF
21092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21093_ACEOF
21094
21095fi
21096
21097done
21098
21099 if test "$ac_cv_header_sectok_h" != yes; then
21100 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
21101echo "$as_me: error: Can't find sectok.h" >&2;}
21102 { (exit 1); exit 1; }; }
21103 fi
21104
21105echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
21106echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
21107if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109else
21110 ac_check_lib_save_LIBS=$LIBS
21111LIBS="-lsectok $LIBS"
21112cat >conftest.$ac_ext <<_ACEOF
21113/* confdefs.h. */
21114_ACEOF
21115cat confdefs.h >>conftest.$ac_ext
21116cat >>conftest.$ac_ext <<_ACEOF
21117/* end confdefs.h. */
21118
21119/* Override any gcc2 internal prototype to avoid an error. */
21120#ifdef __cplusplus
21121extern "C"
21122#endif
21123/* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21125char sectok_open ();
21126int
21127main ()
21128{
21129sectok_open ();
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext conftest$ac_exeext
21135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21136 (eval $ac_link) 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
21143 { ac_try='test -z "$ac_c_werror_flag"
21144 || test ! -s conftest.err'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest$ac_exeext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_lib_sectok_sectok_open=yes
21157else
21158 echo "$as_me: failed program was:" >&5
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
21161ac_cv_lib_sectok_sectok_open=no
21162fi
21163rm -f conftest.err conftest.$ac_objext \
21164 conftest$ac_exeext conftest.$ac_ext
21165LIBS=$ac_check_lib_save_LIBS
21166fi
21167echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
21168echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
21169if test $ac_cv_lib_sectok_sectok_open = yes; then
21170 cat >>confdefs.h <<_ACEOF
21171#define HAVE_LIBSECTOK 1
21172_ACEOF
21173
21174 LIBS="-lsectok $LIBS"
21175
21176fi
21177
21178 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
21179 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
21180echo "$as_me: error: Can't find libsectok" >&2;}
21181 { (exit 1); exit 1; }; }
21182 fi
21183 cat >>confdefs.h <<\_ACEOF
21184#define SMARTCARD 1
21185_ACEOF
21186
21187 cat >>confdefs.h <<\_ACEOF
21188#define USE_SECTOK 1
21189_ACEOF
21190
21191 SCARD_MSG="yes, using sectok"
21192 fi
21193
21194
21195fi;
21196
21197# Check whether user wants OpenSC support
21198
21199# Check whether --with-opensc or --without-opensc was given.
21200if test "${with_opensc+set}" = set; then
21201 withval="$with_opensc"
21202 opensc_config_prefix="$withval"
21203else
21204 opensc_config_prefix=""
21205fi;
21206if test x$opensc_config_prefix != x ; then
21207 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
21208 # Extract the first word of "opensc-config", so it can be a program name with args.
21209set dummy opensc-config; ac_word=$2
21210echo "$as_me:$LINENO: checking for $ac_word" >&5
21211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21212if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21214else
21215 case $OPENSC_CONFIG in
21216 [\\/]* | ?:[\\/]*)
21217 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
21218 ;;
21219 *)
21220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21221for as_dir in $PATH
21222do
21223 IFS=$as_save_IFS
21224 test -z "$as_dir" && as_dir=.
21225 for ac_exec_ext in '' $ac_executable_extensions; do
21226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21227 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21229 break 2
21230 fi
21231done
21232done
21233
21234 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
21235 ;;
21236esac
21237fi
21238OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
21239
21240if test -n "$OPENSC_CONFIG"; then
21241 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
21242echo "${ECHO_T}$OPENSC_CONFIG" >&6
21243else
21244 echo "$as_me:$LINENO: result: no" >&5
21245echo "${ECHO_T}no" >&6
21246fi
21247
21248 if test "$OPENSC_CONFIG" != "no"; then
21249 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
21250 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
21251 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
21252 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
21253 cat >>confdefs.h <<\_ACEOF
21254#define SMARTCARD 1
21255_ACEOF
21256
21257 cat >>confdefs.h <<\_ACEOF
21258#define USE_OPENSC 1
21259_ACEOF
21260
21261 SCARD_MSG="yes, using OpenSC"
21262 fi
21263fi
21264
21265# Check libraries needed by DNS fingerprint support
21266echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
21267echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
21268if test "${ac_cv_search_getrrsetbyname+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270else
21271 ac_func_search_save_LIBS=$LIBS
21272ac_cv_search_getrrsetbyname=no
21273cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h. */
21275_ACEOF
21276cat confdefs.h >>conftest.$ac_ext
21277cat >>conftest.$ac_ext <<_ACEOF
21278/* end confdefs.h. */
21279
21280/* Override any gcc2 internal prototype to avoid an error. */
21281#ifdef __cplusplus
21282extern "C"
21283#endif
21284/* We use char because int might match the return type of a gcc2
21285 builtin and then its argument prototype would still apply. */
21286char getrrsetbyname ();
21287int
21288main ()
21289{
21290getrrsetbyname ();
21291 ;
21292 return 0;
21293}
21294_ACEOF
21295rm -f conftest.$ac_objext conftest$ac_exeext
21296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21297 (eval $ac_link) 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } &&
21304 { ac_try='test -z "$ac_c_werror_flag"
21305 || test ! -s conftest.err'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; } &&
21311 { ac_try='test -s conftest$ac_exeext'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_cv_search_getrrsetbyname="none required"
21318else
21319 echo "$as_me: failed program was:" >&5
21320sed 's/^/| /' conftest.$ac_ext >&5
21321
21322fi
21323rm -f conftest.err conftest.$ac_objext \
21324 conftest$ac_exeext conftest.$ac_ext
21325if test "$ac_cv_search_getrrsetbyname" = no; then
21326 for ac_lib in resolv; do
21327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21328 cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
21334
21335/* Override any gcc2 internal prototype to avoid an error. */
21336#ifdef __cplusplus
21337extern "C"
21338#endif
21339/* We use char because int might match the return type of a gcc2
21340 builtin and then its argument prototype would still apply. */
21341char getrrsetbyname ();
21342int
21343main ()
21344{
21345getrrsetbyname ();
21346 ;
21347 return 0;
21348}
21349_ACEOF
21350rm -f conftest.$ac_objext conftest$ac_exeext
21351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21352 (eval $ac_link) 2>conftest.er1
21353 ac_status=$?
21354 grep -v '^ *+' conftest.er1 >conftest.err
21355 rm -f conftest.er1
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } &&
21359 { ac_try='test -z "$ac_c_werror_flag"
21360 || test ! -s conftest.err'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; } &&
21366 { ac_try='test -s conftest$ac_exeext'
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; }; then
21372 ac_cv_search_getrrsetbyname="-l$ac_lib"
21373break
21374else
21375 echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378fi
21379rm -f conftest.err conftest.$ac_objext \
21380 conftest$ac_exeext conftest.$ac_ext
21381 done
21382fi
21383LIBS=$ac_func_search_save_LIBS
21384fi
21385echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
21386echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
21387if test "$ac_cv_search_getrrsetbyname" != no; then
21388 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
21389 cat >>confdefs.h <<\_ACEOF
21390#define HAVE_GETRRSETBYNAME 1
21391_ACEOF
21392
21393else
21394
21395 # Needed by our getrrsetbyname()
21396 echo "$as_me:$LINENO: checking for library containing res_query" >&5
21397echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
21398if test "${ac_cv_search_res_query+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21400else
21401 ac_func_search_save_LIBS=$LIBS
21402ac_cv_search_res_query=no
21403cat >conftest.$ac_ext <<_ACEOF
21404/* confdefs.h. */
21405_ACEOF
21406cat confdefs.h >>conftest.$ac_ext
21407cat >>conftest.$ac_ext <<_ACEOF
21408/* end confdefs.h. */
21409
21410/* Override any gcc2 internal prototype to avoid an error. */
21411#ifdef __cplusplus
21412extern "C"
21413#endif
21414/* We use char because int might match the return type of a gcc2
21415 builtin and then its argument prototype would still apply. */
21416char res_query ();
21417int
21418main ()
21419{
21420res_query ();
21421 ;
21422 return 0;
21423}
21424_ACEOF
21425rm -f conftest.$ac_objext conftest$ac_exeext
21426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21427 (eval $ac_link) 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } &&
21434 { ac_try='test -z "$ac_c_werror_flag"
21435 || test ! -s conftest.err'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } &&
21441 { ac_try='test -s conftest$ac_exeext'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ac_cv_search_res_query="none required"
21448else
21449 echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452fi
21453rm -f conftest.err conftest.$ac_objext \
21454 conftest$ac_exeext conftest.$ac_ext
21455if test "$ac_cv_search_res_query" = no; then
21456 for ac_lib in resolv; do
21457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21459/* confdefs.h. */
21460_ACEOF
21461cat confdefs.h >>conftest.$ac_ext
21462cat >>conftest.$ac_ext <<_ACEOF
21463/* end confdefs.h. */
21464
21465/* Override any gcc2 internal prototype to avoid an error. */
21466#ifdef __cplusplus
21467extern "C"
21468#endif
21469/* We use char because int might match the return type of a gcc2
21470 builtin and then its argument prototype would still apply. */
21471char res_query ();
21472int
21473main ()
21474{
21475res_query ();
21476 ;
21477 return 0;
21478}
21479_ACEOF
21480rm -f conftest.$ac_objext conftest$ac_exeext
21481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482 (eval $ac_link) 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_c_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_search_res_query="-l$ac_lib"
21503break
21504else
21505 echo "$as_me: failed program was:" >&5
21506sed 's/^/| /' conftest.$ac_ext >&5
21507
21508fi
21509rm -f conftest.err conftest.$ac_objext \
21510 conftest$ac_exeext conftest.$ac_ext
21511 done
21512fi
21513LIBS=$ac_func_search_save_LIBS
21514fi
21515echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
21516echo "${ECHO_T}$ac_cv_search_res_query" >&6
21517if test "$ac_cv_search_res_query" != no; then
21518 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
21519
21520fi
21521
21522 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
21523echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
21524if test "${ac_cv_search_dn_expand+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526else
21527 ac_func_search_save_LIBS=$LIBS
21528ac_cv_search_dn_expand=no
21529cat >conftest.$ac_ext <<_ACEOF
21530/* confdefs.h. */
21531_ACEOF
21532cat confdefs.h >>conftest.$ac_ext
21533cat >>conftest.$ac_ext <<_ACEOF
21534/* end confdefs.h. */
21535
21536/* Override any gcc2 internal prototype to avoid an error. */
21537#ifdef __cplusplus
21538extern "C"
21539#endif
21540/* We use char because int might match the return type of a gcc2
21541 builtin and then its argument prototype would still apply. */
21542char dn_expand ();
21543int
21544main ()
21545{
21546dn_expand ();
21547 ;
21548 return 0;
21549}
21550_ACEOF
21551rm -f conftest.$ac_objext conftest$ac_exeext
21552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21553 (eval $ac_link) 2>conftest.er1
21554 ac_status=$?
21555 grep -v '^ *+' conftest.er1 >conftest.err
21556 rm -f conftest.er1
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try='test -z "$ac_c_werror_flag"
21561 || test ! -s conftest.err'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; } &&
21567 { ac_try='test -s conftest$ac_exeext'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; }; then
21573 ac_cv_search_dn_expand="none required"
21574else
21575 echo "$as_me: failed program was:" >&5
21576sed 's/^/| /' conftest.$ac_ext >&5
21577
21578fi
21579rm -f conftest.err conftest.$ac_objext \
21580 conftest$ac_exeext conftest.$ac_ext
21581if test "$ac_cv_search_dn_expand" = no; then
21582 for ac_lib in resolv; do
21583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21584 cat >conftest.$ac_ext <<_ACEOF
21585/* confdefs.h. */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h. */
21590
21591/* Override any gcc2 internal prototype to avoid an error. */
21592#ifdef __cplusplus
21593extern "C"
21594#endif
21595/* We use char because int might match the return type of a gcc2
21596 builtin and then its argument prototype would still apply. */
21597char dn_expand ();
21598int
21599main ()
21600{
21601dn_expand ();
21602 ;
21603 return 0;
21604}
21605_ACEOF
21606rm -f conftest.$ac_objext conftest$ac_exeext
21607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21608 (eval $ac_link) 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
21615 { ac_try='test -z "$ac_c_werror_flag"
21616 || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest$ac_exeext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 ac_cv_search_dn_expand="-l$ac_lib"
21629break
21630else
21631 echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634fi
21635rm -f conftest.err conftest.$ac_objext \
21636 conftest$ac_exeext conftest.$ac_ext
21637 done
21638fi
21639LIBS=$ac_func_search_save_LIBS
21640fi
21641echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
21642echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
21643if test "$ac_cv_search_dn_expand" != no; then
21644 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
21645
21646fi
21647
21648 echo "$as_me:$LINENO: checking if res_query will link" >&5
21649echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6
21650 cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
21656
21657/* Override any gcc2 internal prototype to avoid an error. */
21658#ifdef __cplusplus
21659extern "C"
21660#endif
21661/* We use char because int might match the return type of a gcc2
21662 builtin and then its argument prototype would still apply. */
21663char res_query ();
21664int
21665main ()
21666{
21667res_query ();
21668 ;
21669 return 0;
21670}
21671_ACEOF
21672rm -f conftest.$ac_objext conftest$ac_exeext
21673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21674 (eval $ac_link) 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -z "$ac_c_werror_flag"
21682 || test ! -s conftest.err'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest$ac_exeext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 echo "$as_me:$LINENO: result: yes" >&5
21695echo "${ECHO_T}yes" >&6
21696else
21697 echo "$as_me: failed program was:" >&5
21698sed 's/^/| /' conftest.$ac_ext >&5
21699
21700echo "$as_me:$LINENO: result: no" >&5
21701echo "${ECHO_T}no" >&6
21702 saved_LIBS="$LIBS"
21703 LIBS="$LIBS -lresolv"
21704 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
21705echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
21706 cat >conftest.$ac_ext <<_ACEOF
21707
21708#include <resolv.h>
21709int main()
21710{
21711 res_query (0, 0, 0, 0, 0);
21712 return 0;
21713}
21714
21715_ACEOF
21716rm -f conftest.$ac_objext conftest$ac_exeext
21717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21718 (eval $ac_link) 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag"
21726 || test ! -s conftest.err'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest$ac_exeext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 LIBS="$LIBS -lresolv"
21739 echo "$as_me:$LINENO: result: yes" >&5
21740echo "${ECHO_T}yes" >&6
21741else
21742 echo "$as_me: failed program was:" >&5
21743sed 's/^/| /' conftest.$ac_ext >&5
21744
21745LIBS="$saved_LIBS"
21746 echo "$as_me:$LINENO: result: no" >&5
21747echo "${ECHO_T}no" >&6
21748fi
21749rm -f conftest.err conftest.$ac_objext \
21750 conftest$ac_exeext conftest.$ac_ext
21751
21752fi
21753rm -f conftest.err conftest.$ac_objext \
21754 conftest$ac_exeext conftest.$ac_ext
21755
21756
21757for ac_func in _getshort _getlong
21758do
21759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21760echo "$as_me:$LINENO: checking for $ac_func" >&5
21761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21762if eval "test \"\${$as_ac_var+set}\" = set"; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21764else
21765 cat >conftest.$ac_ext <<_ACEOF
21766/* confdefs.h. */
21767_ACEOF
21768cat confdefs.h >>conftest.$ac_ext
21769cat >>conftest.$ac_ext <<_ACEOF
21770/* end confdefs.h. */
21771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21773#define $ac_func innocuous_$ac_func
21774
21775/* System header to define __stub macros and hopefully few prototypes,
21776 which can conflict with char $ac_func (); below.
21777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21778 <limits.h> exists even on freestanding compilers. */
21779
21780#ifdef __STDC__
21781# include <limits.h>
21782#else
21783# include <assert.h>
21784#endif
21785
21786#undef $ac_func
21787
21788/* Override any gcc2 internal prototype to avoid an error. */
21789#ifdef __cplusplus
21790extern "C"
21791{
21792#endif
21793/* We use char because int might match the return type of a gcc2
21794 builtin and then its argument prototype would still apply. */
21795char $ac_func ();
21796/* The GNU C library defines this for functions which it implements
21797 to always fail with ENOSYS. Some functions are actually named
21798 something starting with __ and the normal name is an alias. */
21799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21800choke me
21801#else
21802char (*f) () = $ac_func;
21803#endif
21804#ifdef __cplusplus
21805}
21806#endif
21807
21808int
21809main ()
21810{
21811return f != $ac_func;
21812 ;
21813 return 0;
21814}
21815_ACEOF
21816rm -f conftest.$ac_objext conftest$ac_exeext
21817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818 (eval $ac_link) 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
21825 { ac_try='test -z "$ac_c_werror_flag"
21826 || test ! -s conftest.err'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; } &&
21832 { ac_try='test -s conftest$ac_exeext'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; }; then
21838 eval "$as_ac_var=yes"
21839else
21840 echo "$as_me: failed program was:" >&5
21841sed 's/^/| /' conftest.$ac_ext >&5
21842
21843eval "$as_ac_var=no"
21844fi
21845rm -f conftest.err conftest.$ac_objext \
21846 conftest$ac_exeext conftest.$ac_ext
21847fi
21848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21849echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21850if test `eval echo '${'$as_ac_var'}'` = yes; then
21851 cat >>confdefs.h <<_ACEOF
21852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21853_ACEOF
21854
21855fi
21856done
21857
21858 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
21859echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
21860if test "${ac_cv_member_HEADER_ad+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862else
21863 cat >conftest.$ac_ext <<_ACEOF
21864/* confdefs.h. */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h. */
21869#include <arpa/nameser.h>
21870
21871int
21872main ()
21873{
21874static HEADER ac_aggr;
21875if (ac_aggr.ad)
21876return 0;
21877 ;
21878 return 0;
21879}
21880_ACEOF
21881rm -f conftest.$ac_objext
21882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883 (eval $ac_compile) 2>conftest.er1
21884 ac_status=$?
21885 grep -v '^ *+' conftest.er1 >conftest.err
21886 rm -f conftest.er1
21887 cat conftest.err >&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
21890 { ac_try='test -z "$ac_c_werror_flag"
21891 || test ! -s conftest.err'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ac_cv_member_HEADER_ad=yes
21904else
21905 echo "$as_me: failed program was:" >&5
21906sed 's/^/| /' conftest.$ac_ext >&5
21907
21908cat >conftest.$ac_ext <<_ACEOF
21909/* confdefs.h. */
21910_ACEOF
21911cat confdefs.h >>conftest.$ac_ext
21912cat >>conftest.$ac_ext <<_ACEOF
21913/* end confdefs.h. */
21914#include <arpa/nameser.h>
21915
21916int
21917main ()
21918{
21919static HEADER ac_aggr;
21920if (sizeof ac_aggr.ad)
21921return 0;
21922 ;
21923 return 0;
21924}
21925_ACEOF
21926rm -f conftest.$ac_objext
21927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928 (eval $ac_compile) 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
21935 { ac_try='test -z "$ac_c_werror_flag"
21936 || test ! -s conftest.err'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest.$ac_objext'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
21948 ac_cv_member_HEADER_ad=yes
21949else
21950 echo "$as_me: failed program was:" >&5
21951sed 's/^/| /' conftest.$ac_ext >&5
21952
21953ac_cv_member_HEADER_ad=no
21954fi
21955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21956fi
21957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21958fi
21959echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
21960echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
21961if test $ac_cv_member_HEADER_ad = yes; then
21962 cat >>confdefs.h <<\_ACEOF
21963#define HAVE_HEADER_AD 1
21964_ACEOF
21965
21966fi
21967
21968
21969fi
21970
21971
21972# Check whether user wants Kerberos 5 support
21973KRB5_MSG="no"
21974
21975# Check whether --with-kerberos5 or --without-kerberos5 was given.
21976if test "${with_kerberos5+set}" = set; then
21977 withval="$with_kerberos5"
21978 if test "x$withval" != "xno" ; then
21979 if test "x$withval" = "xyes" ; then
21980 KRB5ROOT="/usr/local"
21981 else
21982 KRB5ROOT=${withval}
21983 fi
21984
21985 cat >>confdefs.h <<\_ACEOF
21986#define KRB5 1
21987_ACEOF
21988
21989 KRB5_MSG="yes"
21990
21991 echo "$as_me:$LINENO: checking for krb5-config" >&5
21992echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
21993 if test -x $KRB5ROOT/bin/krb5-config ; then
21994 KRB5CONF=$KRB5ROOT/bin/krb5-config
21995 echo "$as_me:$LINENO: result: $KRB5CONF" >&5
21996echo "${ECHO_T}$KRB5CONF" >&6
21997
21998 echo "$as_me:$LINENO: checking for gssapi support" >&5
21999echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
22000 if $KRB5CONF | grep gssapi >/dev/null ; then
22001 echo "$as_me:$LINENO: result: yes" >&5
22002echo "${ECHO_T}yes" >&6
22003 cat >>confdefs.h <<\_ACEOF
22004#define GSSAPI 1
22005_ACEOF
22006
22007 k5confopts=gssapi
22008 else
22009 echo "$as_me:$LINENO: result: no" >&5
22010echo "${ECHO_T}no" >&6
22011 k5confopts=""
22012 fi
22013 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
22014 K5LIBS="`$KRB5CONF --libs $k5confopts`"
22015 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
22016 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
22017echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
22018 cat >conftest.$ac_ext <<_ACEOF
22019/* confdefs.h. */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h. */
22024 #include <krb5.h>
22025int
22026main ()
22027{
22028 char *tmp = heimdal_version;
22029 ;
22030 return 0;
22031}
22032_ACEOF
22033rm -f conftest.$ac_objext
22034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22035 (eval $ac_compile) 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_c_werror_flag"
22043 || test ! -s conftest.err'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest.$ac_objext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 echo "$as_me:$LINENO: result: yes" >&5
22056echo "${ECHO_T}yes" >&6
22057 cat >>confdefs.h <<\_ACEOF
22058#define HEIMDAL 1
22059_ACEOF
22060
22061else
22062 echo "$as_me: failed program was:" >&5
22063sed 's/^/| /' conftest.$ac_ext >&5
22064
22065echo "$as_me:$LINENO: result: no" >&5
22066echo "${ECHO_T}no" >&6
22067
22068fi
22069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22070 else
22071 echo "$as_me:$LINENO: result: no" >&5
22072echo "${ECHO_T}no" >&6
22073 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
22074 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
22075 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
22076echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
22077 cat >conftest.$ac_ext <<_ACEOF
22078/* confdefs.h. */
22079_ACEOF
22080cat confdefs.h >>conftest.$ac_ext
22081cat >>conftest.$ac_ext <<_ACEOF
22082/* end confdefs.h. */
22083 #include <krb5.h>
22084int
22085main ()
22086{
22087 char *tmp = heimdal_version;
22088 ;
22089 return 0;
22090}
22091_ACEOF
22092rm -f conftest.$ac_objext
22093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22094 (eval $ac_compile) 2>conftest.er1
22095 ac_status=$?
22096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_c_werror_flag"
22102 || test ! -s conftest.err'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; } &&
22108 { ac_try='test -s conftest.$ac_objext'
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; }; then
22114 echo "$as_me:$LINENO: result: yes" >&5
22115echo "${ECHO_T}yes" >&6
22116 cat >>confdefs.h <<\_ACEOF
22117#define HEIMDAL 1
22118_ACEOF
22119
22120 K5LIBS="-lkrb5 -ldes"
22121 K5LIBS="$K5LIBS -lcom_err -lasn1"
22122 echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
22123echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6
22124if test "${ac_cv_lib_roken_net_write+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126else
22127 ac_check_lib_save_LIBS=$LIBS
22128LIBS="-lroken $LIBS"
22129cat >conftest.$ac_ext <<_ACEOF
22130/* confdefs.h. */
22131_ACEOF
22132cat confdefs.h >>conftest.$ac_ext
22133cat >>conftest.$ac_ext <<_ACEOF
22134/* end confdefs.h. */
22135
22136/* Override any gcc2 internal prototype to avoid an error. */
22137#ifdef __cplusplus
22138extern "C"
22139#endif
22140/* We use char because int might match the return type of a gcc2
22141 builtin and then its argument prototype would still apply. */
22142char net_write ();
22143int
22144main ()
22145{
22146net_write ();
22147 ;
22148 return 0;
22149}
22150_ACEOF
22151rm -f conftest.$ac_objext conftest$ac_exeext
22152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest$ac_exeext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 ac_cv_lib_roken_net_write=yes
22174else
22175 echo "$as_me: failed program was:" >&5
22176sed 's/^/| /' conftest.$ac_ext >&5
22177
22178ac_cv_lib_roken_net_write=no
22179fi
22180rm -f conftest.err conftest.$ac_objext \
22181 conftest$ac_exeext conftest.$ac_ext
22182LIBS=$ac_check_lib_save_LIBS
22183fi
22184echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
22185echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6
22186if test $ac_cv_lib_roken_net_write = yes; then
22187 K5LIBS="$K5LIBS -lroken"
22188fi
22189
22190
22191else
22192 echo "$as_me: failed program was:" >&5
22193sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 echo "$as_me:$LINENO: result: no" >&5
22196echo "${ECHO_T}no" >&6
22197 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
22198
22199
22200fi
22201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22202 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
22203echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
22204if test "${ac_cv_search_dn_expand+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206else
22207 ac_func_search_save_LIBS=$LIBS
22208ac_cv_search_dn_expand=no
22209cat >conftest.$ac_ext <<_ACEOF
22210/* confdefs.h. */
22211_ACEOF
22212cat confdefs.h >>conftest.$ac_ext
22213cat >>conftest.$ac_ext <<_ACEOF
22214/* end confdefs.h. */
22215
22216/* Override any gcc2 internal prototype to avoid an error. */
22217#ifdef __cplusplus
22218extern "C"
22219#endif
22220/* We use char because int might match the return type of a gcc2
22221 builtin and then its argument prototype would still apply. */
22222char dn_expand ();
22223int
22224main ()
22225{
22226dn_expand ();
22227 ;
22228 return 0;
22229}
22230_ACEOF
22231rm -f conftest.$ac_objext conftest$ac_exeext
22232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22233 (eval $ac_link) 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -z "$ac_c_werror_flag"
22241 || test ! -s conftest.err'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; } &&
22247 { ac_try='test -s conftest$ac_exeext'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22253 ac_cv_search_dn_expand="none required"
22254else
22255 echo "$as_me: failed program was:" >&5
22256sed 's/^/| /' conftest.$ac_ext >&5
22257
22258fi
22259rm -f conftest.err conftest.$ac_objext \
22260 conftest$ac_exeext conftest.$ac_ext
22261if test "$ac_cv_search_dn_expand" = no; then
22262 for ac_lib in resolv; do
22263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22264 cat >conftest.$ac_ext <<_ACEOF
22265/* confdefs.h. */
22266_ACEOF
22267cat confdefs.h >>conftest.$ac_ext
22268cat >>conftest.$ac_ext <<_ACEOF
22269/* end confdefs.h. */
22270
22271/* Override any gcc2 internal prototype to avoid an error. */
22272#ifdef __cplusplus
22273extern "C"
22274#endif
22275/* We use char because int might match the return type of a gcc2
22276 builtin and then its argument prototype would still apply. */
22277char dn_expand ();
22278int
22279main ()
22280{
22281dn_expand ();
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286rm -f conftest.$ac_objext conftest$ac_exeext
22287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>conftest.er1
22289 ac_status=$?
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
22295 { ac_try='test -z "$ac_c_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest$ac_exeext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_search_dn_expand="-l$ac_lib"
22309break
22310else
22311 echo "$as_me: failed program was:" >&5
22312sed 's/^/| /' conftest.$ac_ext >&5
22313
22314fi
22315rm -f conftest.err conftest.$ac_objext \
22316 conftest$ac_exeext conftest.$ac_ext
22317 done
22318fi
22319LIBS=$ac_func_search_save_LIBS
22320fi
22321echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
22322echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
22323if test "$ac_cv_search_dn_expand" != no; then
22324 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
22325
22326fi
22327
22328
22329 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
22330echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
22331if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333else
22334 ac_check_lib_save_LIBS=$LIBS
22335LIBS="-lgssapi $K5LIBS $LIBS"
22336cat >conftest.$ac_ext <<_ACEOF
22337/* confdefs.h. */
22338_ACEOF
22339cat confdefs.h >>conftest.$ac_ext
22340cat >>conftest.$ac_ext <<_ACEOF
22341/* end confdefs.h. */
22342
22343/* Override any gcc2 internal prototype to avoid an error. */
22344#ifdef __cplusplus
22345extern "C"
22346#endif
22347/* We use char because int might match the return type of a gcc2
22348 builtin and then its argument prototype would still apply. */
22349char gss_init_sec_context ();
22350int
22351main ()
22352{
22353gss_init_sec_context ();
22354 ;
22355 return 0;
22356}
22357_ACEOF
22358rm -f conftest.$ac_objext conftest$ac_exeext
22359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22360 (eval $ac_link) 2>conftest.er1
22361 ac_status=$?
22362 grep -v '^ *+' conftest.er1 >conftest.err
22363 rm -f conftest.er1
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
22367 { ac_try='test -z "$ac_c_werror_flag"
22368 || test ! -s conftest.err'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest$ac_exeext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_lib_gssapi_gss_init_sec_context=yes
22381else
22382 echo "$as_me: failed program was:" >&5
22383sed 's/^/| /' conftest.$ac_ext >&5
22384
22385ac_cv_lib_gssapi_gss_init_sec_context=no
22386fi
22387rm -f conftest.err conftest.$ac_objext \
22388 conftest$ac_exeext conftest.$ac_ext
22389LIBS=$ac_check_lib_save_LIBS
22390fi
22391echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
22392echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
22393if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
22394 cat >>confdefs.h <<\_ACEOF
22395#define GSSAPI 1
22396_ACEOF
22397
22398 K5LIBS="-lgssapi $K5LIBS"
22399else
22400 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
22401echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
22402if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404else
22405 ac_check_lib_save_LIBS=$LIBS
22406LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
22407cat >conftest.$ac_ext <<_ACEOF
22408/* confdefs.h. */
22409_ACEOF
22410cat confdefs.h >>conftest.$ac_ext
22411cat >>conftest.$ac_ext <<_ACEOF
22412/* end confdefs.h. */
22413
22414/* Override any gcc2 internal prototype to avoid an error. */
22415#ifdef __cplusplus
22416extern "C"
22417#endif
22418/* We use char because int might match the return type of a gcc2
22419 builtin and then its argument prototype would still apply. */
22420char gss_init_sec_context ();
22421int
22422main ()
22423{
22424gss_init_sec_context ();
22425 ;
22426 return 0;
22427}
22428_ACEOF
22429rm -f conftest.$ac_objext conftest$ac_exeext
22430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431 (eval $ac_link) 2>conftest.er1
22432 ac_status=$?
22433 grep -v '^ *+' conftest.er1 >conftest.err
22434 rm -f conftest.er1
22435 cat conftest.err >&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } &&
22438 { ac_try='test -z "$ac_c_werror_flag"
22439 || test ! -s conftest.err'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; } &&
22445 { ac_try='test -s conftest$ac_exeext'
22446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447 (eval $ac_try) 2>&5
22448 ac_status=$?
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); }; }; then
22451 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
22452else
22453 echo "$as_me: failed program was:" >&5
22454sed 's/^/| /' conftest.$ac_ext >&5
22455
22456ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
22457fi
22458rm -f conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22460LIBS=$ac_check_lib_save_LIBS
22461fi
22462echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
22463echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
22464if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
22465 cat >>confdefs.h <<\_ACEOF
22466#define GSSAPI 1
22467_ACEOF
22468
22469 K5LIBS="-lgssapi_krb5 $K5LIBS"
22470else
22471 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
22472echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
22473fi
22474
22475
22476fi
22477
22478
22479 if test "${ac_cv_header_gssapi_h+set}" = set; then
22480 echo "$as_me:$LINENO: checking for gssapi.h" >&5
22481echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
22482if test "${ac_cv_header_gssapi_h+set}" = set; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22484fi
22485echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
22486echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
22487else
22488 # Is the header compilable?
22489echo "$as_me:$LINENO: checking gssapi.h usability" >&5
22490echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
22491cat >conftest.$ac_ext <<_ACEOF
22492/* confdefs.h. */
22493_ACEOF
22494cat confdefs.h >>conftest.$ac_ext
22495cat >>conftest.$ac_ext <<_ACEOF
22496/* end confdefs.h. */
22497$ac_includes_default
22498#include <gssapi.h>
22499_ACEOF
22500rm -f conftest.$ac_objext
22501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22502 (eval $ac_compile) 2>conftest.er1
22503 ac_status=$?
22504 grep -v '^ *+' conftest.er1 >conftest.err
22505 rm -f conftest.er1
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } &&
22509 { ac_try='test -z "$ac_c_werror_flag"
22510 || test ! -s conftest.err'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ac_header_compiler=yes
22523else
22524 echo "$as_me: failed program was:" >&5
22525sed 's/^/| /' conftest.$ac_ext >&5
22526
22527ac_header_compiler=no
22528fi
22529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22531echo "${ECHO_T}$ac_header_compiler" >&6
22532
22533# Is the header present?
22534echo "$as_me:$LINENO: checking gssapi.h presence" >&5
22535echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
22536cat >conftest.$ac_ext <<_ACEOF
22537/* confdefs.h. */
22538_ACEOF
22539cat confdefs.h >>conftest.$ac_ext
22540cat >>conftest.$ac_ext <<_ACEOF
22541/* end confdefs.h. */
22542#include <gssapi.h>
22543_ACEOF
22544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } >/dev/null; then
22552 if test -s conftest.err; then
22553 ac_cpp_err=$ac_c_preproc_warn_flag
22554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22555 else
22556 ac_cpp_err=
22557 fi
22558else
22559 ac_cpp_err=yes
22560fi
22561if test -z "$ac_cpp_err"; then
22562 ac_header_preproc=yes
22563else
22564 echo "$as_me: failed program was:" >&5
22565sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 ac_header_preproc=no
22568fi
22569rm -f conftest.err conftest.$ac_ext
22570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22571echo "${ECHO_T}$ac_header_preproc" >&6
22572
22573# So? What about this header?
22574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22575 yes:no: )
22576 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
22577echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22578 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
22579echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
22580 ac_header_preproc=yes
22581 ;;
22582 no:yes:* )
22583 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
22584echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
22585 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
22586echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
22587 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
22588echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
22590echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
22591 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
22592echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
22593 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
22594echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
22595 (
22596 cat <<\_ASBOX
22597## ---------------------------------- ##
22598## Report this to the OpenSSH lists. ##
22599## ---------------------------------- ##
22600_ASBOX
22601 ) |
22602 sed "s/^/$as_me: WARNING: /" >&2
22603 ;;
22604esac
22605echo "$as_me:$LINENO: checking for gssapi.h" >&5
22606echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
22607if test "${ac_cv_header_gssapi_h+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22609else
22610 ac_cv_header_gssapi_h=$ac_header_preproc
22611fi
22612echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
22613echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
22614
22615fi
22616if test $ac_cv_header_gssapi_h = yes; then
22617 :
22618else
22619 unset ac_cv_header_gssapi_h
22620 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
22621
22622for ac_header in gssapi.h
22623do
22624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22625if eval "test \"\${$as_ac_Header+set}\" = set"; then
22626 echo "$as_me:$LINENO: checking for $ac_header" >&5
22627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22628if eval "test \"\${$as_ac_Header+set}\" = set"; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22630fi
22631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22633else
22634 # Is the header compilable?
22635echo "$as_me:$LINENO: checking $ac_header usability" >&5
22636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22637cat >conftest.$ac_ext <<_ACEOF
22638/* confdefs.h. */
22639_ACEOF
22640cat confdefs.h >>conftest.$ac_ext
22641cat >>conftest.$ac_ext <<_ACEOF
22642/* end confdefs.h. */
22643$ac_includes_default
22644#include <$ac_header>
22645_ACEOF
22646rm -f conftest.$ac_objext
22647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22648 (eval $ac_compile) 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } &&
22655 { ac_try='test -z "$ac_c_werror_flag"
22656 || test ! -s conftest.err'
22657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658 (eval $ac_try) 2>&5
22659 ac_status=$?
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); }; } &&
22662 { ac_try='test -s conftest.$ac_objext'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; }; then
22668 ac_header_compiler=yes
22669else
22670 echo "$as_me: failed program was:" >&5
22671sed 's/^/| /' conftest.$ac_ext >&5
22672
22673ac_header_compiler=no
22674fi
22675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22676echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22677echo "${ECHO_T}$ac_header_compiler" >&6
22678
22679# Is the header present?
22680echo "$as_me:$LINENO: checking $ac_header presence" >&5
22681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22682cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
22688#include <$ac_header>
22689_ACEOF
22690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } >/dev/null; then
22698 if test -s conftest.err; then
22699 ac_cpp_err=$ac_c_preproc_warn_flag
22700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22701 else
22702 ac_cpp_err=
22703 fi
22704else
22705 ac_cpp_err=yes
22706fi
22707if test -z "$ac_cpp_err"; then
22708 ac_header_preproc=yes
22709else
22710 echo "$as_me: failed program was:" >&5
22711sed 's/^/| /' conftest.$ac_ext >&5
22712
22713 ac_header_preproc=no
22714fi
22715rm -f conftest.err conftest.$ac_ext
22716echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22717echo "${ECHO_T}$ac_header_preproc" >&6
22718
22719# So? What about this header?
22720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22721 yes:no: )
22722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22725echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22726 ac_header_preproc=yes
22727 ;;
22728 no:yes:* )
22729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22732echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22734echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22736echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22741 (
22742 cat <<\_ASBOX
22743## ---------------------------------- ##
22744## Report this to the OpenSSH lists. ##
22745## ---------------------------------- ##
22746_ASBOX
22747 ) |
22748 sed "s/^/$as_me: WARNING: /" >&2
22749 ;;
22750esac
22751echo "$as_me:$LINENO: checking for $ac_header" >&5
22752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22753if eval "test \"\${$as_ac_Header+set}\" = set"; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22755else
22756 eval "$as_ac_Header=\$ac_header_preproc"
22757fi
22758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22760
22761fi
22762if test `eval echo '${'$as_ac_Header'}'` = yes; then
22763 cat >>confdefs.h <<_ACEOF
22764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22765_ACEOF
22766
22767else
22768 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
22769echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
22770
22771fi
22772
22773done
22774
22775
22776
22777fi
22778
22779
22780
22781 oldCPP="$CPPFLAGS"
22782 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
22783 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
22784 echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
22785echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
22786if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788fi
22789echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
22790echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
22791else
22792 # Is the header compilable?
22793echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
22794echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6
22795cat >conftest.$ac_ext <<_ACEOF
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801$ac_includes_default
22802#include <gssapi_krb5.h>
22803_ACEOF
22804rm -f conftest.$ac_objext
22805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>conftest.er1
22807 ac_status=$?
22808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_c_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_header_compiler=yes
22827else
22828 echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831ac_header_compiler=no
22832fi
22833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22835echo "${ECHO_T}$ac_header_compiler" >&6
22836
22837# Is the header present?
22838echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
22839echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6
22840cat >conftest.$ac_ext <<_ACEOF
22841/* confdefs.h. */
22842_ACEOF
22843cat confdefs.h >>conftest.$ac_ext
22844cat >>conftest.$ac_ext <<_ACEOF
22845/* end confdefs.h. */
22846#include <gssapi_krb5.h>
22847_ACEOF
22848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } >/dev/null; then
22856 if test -s conftest.err; then
22857 ac_cpp_err=$ac_c_preproc_warn_flag
22858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22859 else
22860 ac_cpp_err=
22861 fi
22862else
22863 ac_cpp_err=yes
22864fi
22865if test -z "$ac_cpp_err"; then
22866 ac_header_preproc=yes
22867else
22868 echo "$as_me: failed program was:" >&5
22869sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 ac_header_preproc=no
22872fi
22873rm -f conftest.err conftest.$ac_ext
22874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22875echo "${ECHO_T}$ac_header_preproc" >&6
22876
22877# So? What about this header?
22878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22879 yes:no: )
22880 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
22881echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
22883echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
22884 ac_header_preproc=yes
22885 ;;
22886 no:yes:* )
22887 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
22888echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
22889 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
22890echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
22891 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
22892echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
22894echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
22896echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
22898echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
22899 (
22900 cat <<\_ASBOX
22901## ---------------------------------- ##
22902## Report this to the OpenSSH lists. ##
22903## ---------------------------------- ##
22904_ASBOX
22905 ) |
22906 sed "s/^/$as_me: WARNING: /" >&2
22907 ;;
22908esac
22909echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
22910echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
22911if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913else
22914 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
22915fi
22916echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
22917echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
22918
22919fi
22920if test $ac_cv_header_gssapi_krb5_h = yes; then
22921 :
22922else
22923 CPPFLAGS="$oldCPP"
22924fi
22925
22926
22927
22928 fi
22929 if test ! -z "$need_dash_r" ; then
22930 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
22931 fi
22932 if test ! -z "$blibpath" ; then
22933 blibpath="$blibpath:${KRB5ROOT}/lib"
22934 fi
22935 fi
22936
22937
22938
22939for ac_header in gssapi.h gssapi/gssapi.h
22940do
22941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22942if eval "test \"\${$as_ac_Header+set}\" = set"; then
22943 echo "$as_me:$LINENO: checking for $ac_header" >&5
22944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22945if eval "test \"\${$as_ac_Header+set}\" = set"; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22947fi
22948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22950else
22951 # Is the header compilable?
22952echo "$as_me:$LINENO: checking $ac_header usability" >&5
22953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22954cat >conftest.$ac_ext <<_ACEOF
22955/* confdefs.h. */
22956_ACEOF
22957cat confdefs.h >>conftest.$ac_ext
22958cat >>conftest.$ac_ext <<_ACEOF
22959/* end confdefs.h. */
22960$ac_includes_default
22961#include <$ac_header>
22962_ACEOF
22963rm -f conftest.$ac_objext
22964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22965 (eval $ac_compile) 2>conftest.er1
22966 ac_status=$?
22967 grep -v '^ *+' conftest.er1 >conftest.err
22968 rm -f conftest.er1
22969 cat conftest.err >&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } &&
22972 { ac_try='test -z "$ac_c_werror_flag"
22973 || test ! -s conftest.err'
22974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975 (eval $ac_try) 2>&5
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; } &&
22979 { ac_try='test -s conftest.$ac_objext'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; }; then
22985 ac_header_compiler=yes
22986else
22987 echo "$as_me: failed program was:" >&5
22988sed 's/^/| /' conftest.$ac_ext >&5
22989
22990ac_header_compiler=no
22991fi
22992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22994echo "${ECHO_T}$ac_header_compiler" >&6
22995
22996# Is the header present?
22997echo "$as_me:$LINENO: checking $ac_header presence" >&5
22998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22999cat >conftest.$ac_ext <<_ACEOF
23000/* confdefs.h. */
23001_ACEOF
23002cat confdefs.h >>conftest.$ac_ext
23003cat >>conftest.$ac_ext <<_ACEOF
23004/* end confdefs.h. */
23005#include <$ac_header>
23006_ACEOF
23007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23009 ac_status=$?
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } >/dev/null; then
23015 if test -s conftest.err; then
23016 ac_cpp_err=$ac_c_preproc_warn_flag
23017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23018 else
23019 ac_cpp_err=
23020 fi
23021else
23022 ac_cpp_err=yes
23023fi
23024if test -z "$ac_cpp_err"; then
23025 ac_header_preproc=yes
23026else
23027 echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ac_header_preproc=no
23031fi
23032rm -f conftest.err conftest.$ac_ext
23033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23034echo "${ECHO_T}$ac_header_preproc" >&6
23035
23036# So? What about this header?
23037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23038 yes:no: )
23039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23043 ac_header_preproc=yes
23044 ;;
23045 no:yes:* )
23046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23058 (
23059 cat <<\_ASBOX
23060## ---------------------------------- ##
23061## Report this to the OpenSSH lists. ##
23062## ---------------------------------- ##
23063_ASBOX
23064 ) |
23065 sed "s/^/$as_me: WARNING: /" >&2
23066 ;;
23067esac
23068echo "$as_me:$LINENO: checking for $ac_header" >&5
23069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23070if eval "test \"\${$as_ac_Header+set}\" = set"; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23072else
23073 eval "$as_ac_Header=\$ac_header_preproc"
23074fi
23075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23077
23078fi
23079if test `eval echo '${'$as_ac_Header'}'` = yes; then
23080 cat >>confdefs.h <<_ACEOF
23081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23082_ACEOF
23083
23084fi
23085
23086done
23087
23088
23089
23090for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
23091do
23092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23093if eval "test \"\${$as_ac_Header+set}\" = set"; then
23094 echo "$as_me:$LINENO: checking for $ac_header" >&5
23095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23096if eval "test \"\${$as_ac_Header+set}\" = set"; then
23097 echo $ECHO_N "(cached) $ECHO_C" >&6
23098fi
23099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23101else
23102 # Is the header compilable?
23103echo "$as_me:$LINENO: checking $ac_header usability" >&5
23104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23105cat >conftest.$ac_ext <<_ACEOF
23106/* confdefs.h. */
23107_ACEOF
23108cat confdefs.h >>conftest.$ac_ext
23109cat >>conftest.$ac_ext <<_ACEOF
23110/* end confdefs.h. */
23111$ac_includes_default
23112#include <$ac_header>
23113_ACEOF
23114rm -f conftest.$ac_objext
23115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23116 (eval $ac_compile) 2>conftest.er1
23117 ac_status=$?
23118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } &&
23123 { ac_try='test -z "$ac_c_werror_flag"
23124 || test ! -s conftest.err'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; } &&
23130 { ac_try='test -s conftest.$ac_objext'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 ac_header_compiler=yes
23137else
23138 echo "$as_me: failed program was:" >&5
23139sed 's/^/| /' conftest.$ac_ext >&5
23140
23141ac_header_compiler=no
23142fi
23143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23145echo "${ECHO_T}$ac_header_compiler" >&6
23146
23147# Is the header present?
23148echo "$as_me:$LINENO: checking $ac_header presence" >&5
23149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23150cat >conftest.$ac_ext <<_ACEOF
23151/* confdefs.h. */
23152_ACEOF
23153cat confdefs.h >>conftest.$ac_ext
23154cat >>conftest.$ac_ext <<_ACEOF
23155/* end confdefs.h. */
23156#include <$ac_header>
23157_ACEOF
23158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23160 ac_status=$?
23161 grep -v '^ *+' conftest.er1 >conftest.err
23162 rm -f conftest.er1
23163 cat conftest.err >&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); } >/dev/null; then
23166 if test -s conftest.err; then
23167 ac_cpp_err=$ac_c_preproc_warn_flag
23168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23169 else
23170 ac_cpp_err=
23171 fi
23172else
23173 ac_cpp_err=yes
23174fi
23175if test -z "$ac_cpp_err"; then
23176 ac_header_preproc=yes
23177else
23178 echo "$as_me: failed program was:" >&5
23179sed 's/^/| /' conftest.$ac_ext >&5
23180
23181 ac_header_preproc=no
23182fi
23183rm -f conftest.err conftest.$ac_ext
23184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23185echo "${ECHO_T}$ac_header_preproc" >&6
23186
23187# So? What about this header?
23188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23189 yes:no: )
23190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23194 ac_header_preproc=yes
23195 ;;
23196 no:yes:* )
23197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23209 (
23210 cat <<\_ASBOX
23211## ---------------------------------- ##
23212## Report this to the OpenSSH lists. ##
23213## ---------------------------------- ##
23214_ASBOX
23215 ) |
23216 sed "s/^/$as_me: WARNING: /" >&2
23217 ;;
23218esac
23219echo "$as_me:$LINENO: checking for $ac_header" >&5
23220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23221if eval "test \"\${$as_ac_Header+set}\" = set"; then
23222 echo $ECHO_N "(cached) $ECHO_C" >&6
23223else
23224 eval "$as_ac_Header=\$ac_header_preproc"
23225fi
23226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23228
23229fi
23230if test `eval echo '${'$as_ac_Header'}'` = yes; then
23231 cat >>confdefs.h <<_ACEOF
23232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23233_ACEOF
23234
23235fi
23236
23237done
23238
23239
23240
23241for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
23242do
23243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23244if eval "test \"\${$as_ac_Header+set}\" = set"; then
23245 echo "$as_me:$LINENO: checking for $ac_header" >&5
23246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23247if eval "test \"\${$as_ac_Header+set}\" = set"; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23249fi
23250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23252else
23253 # Is the header compilable?
23254echo "$as_me:$LINENO: checking $ac_header usability" >&5
23255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23256cat >conftest.$ac_ext <<_ACEOF
23257/* confdefs.h. */
23258_ACEOF
23259cat confdefs.h >>conftest.$ac_ext
23260cat >>conftest.$ac_ext <<_ACEOF
23261/* end confdefs.h. */
23262$ac_includes_default
23263#include <$ac_header>
23264_ACEOF
23265rm -f conftest.$ac_objext
23266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23267 (eval $ac_compile) 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest.$ac_objext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_header_compiler=yes
23288else
23289 echo "$as_me: failed program was:" >&5
23290sed 's/^/| /' conftest.$ac_ext >&5
23291
23292ac_header_compiler=no
23293fi
23294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23296echo "${ECHO_T}$ac_header_compiler" >&6
23297
23298# Is the header present?
23299echo "$as_me:$LINENO: checking $ac_header presence" >&5
23300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23301cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
23307#include <$ac_header>
23308_ACEOF
23309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23311 ac_status=$?
23312 grep -v '^ *+' conftest.er1 >conftest.err
23313 rm -f conftest.er1
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } >/dev/null; then
23317 if test -s conftest.err; then
23318 ac_cpp_err=$ac_c_preproc_warn_flag
23319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23320 else
23321 ac_cpp_err=
23322 fi
23323else
23324 ac_cpp_err=yes
23325fi
23326if test -z "$ac_cpp_err"; then
23327 ac_header_preproc=yes
23328else
23329 echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
23332 ac_header_preproc=no
23333fi
23334rm -f conftest.err conftest.$ac_ext
23335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23336echo "${ECHO_T}$ac_header_preproc" >&6
23337
23338# So? What about this header?
23339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23340 yes:no: )
23341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23345 ac_header_preproc=yes
23346 ;;
23347 no:yes:* )
23348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23360 (
23361 cat <<\_ASBOX
23362## ---------------------------------- ##
23363## Report this to the OpenSSH lists. ##
23364## ---------------------------------- ##
23365_ASBOX
23366 ) |
23367 sed "s/^/$as_me: WARNING: /" >&2
23368 ;;
23369esac
23370echo "$as_me:$LINENO: checking for $ac_header" >&5
23371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23372if eval "test \"\${$as_ac_Header+set}\" = set"; then
23373 echo $ECHO_N "(cached) $ECHO_C" >&6
23374else
23375 eval "$as_ac_Header=\$ac_header_preproc"
23376fi
23377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23379
23380fi
23381if test `eval echo '${'$as_ac_Header'}'` = yes; then
23382 cat >>confdefs.h <<_ACEOF
23383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23384_ACEOF
23385
23386fi
23387
23388done
23389
23390
23391 LIBS="$LIBS $K5LIBS"
23392 echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
23393echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
23394if test "${ac_cv_search_k_hasafs+set}" = set; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23396else
23397 ac_func_search_save_LIBS=$LIBS
23398ac_cv_search_k_hasafs=no
23399cat >conftest.$ac_ext <<_ACEOF
23400/* confdefs.h. */
23401_ACEOF
23402cat confdefs.h >>conftest.$ac_ext
23403cat >>conftest.$ac_ext <<_ACEOF
23404/* end confdefs.h. */
23405
23406/* Override any gcc2 internal prototype to avoid an error. */
23407#ifdef __cplusplus
23408extern "C"
23409#endif
23410/* We use char because int might match the return type of a gcc2
23411 builtin and then its argument prototype would still apply. */
23412char k_hasafs ();
23413int
23414main ()
23415{
23416k_hasafs ();
23417 ;
23418 return 0;
23419}
23420_ACEOF
23421rm -f conftest.$ac_objext conftest$ac_exeext
23422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23423 (eval $ac_link) 2>conftest.er1
23424 ac_status=$?
23425 grep -v '^ *+' conftest.er1 >conftest.err
23426 rm -f conftest.er1
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } &&
23430 { ac_try='test -z "$ac_c_werror_flag"
23431 || test ! -s conftest.err'
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; } &&
23437 { ac_try='test -s conftest$ac_exeext'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
23443 ac_cv_search_k_hasafs="none required"
23444else
23445 echo "$as_me: failed program was:" >&5
23446sed 's/^/| /' conftest.$ac_ext >&5
23447
23448fi
23449rm -f conftest.err conftest.$ac_objext \
23450 conftest$ac_exeext conftest.$ac_ext
23451if test "$ac_cv_search_k_hasafs" = no; then
23452 for ac_lib in kafs; do
23453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460
23461/* Override any gcc2 internal prototype to avoid an error. */
23462#ifdef __cplusplus
23463extern "C"
23464#endif
23465/* We use char because int might match the return type of a gcc2
23466 builtin and then its argument prototype would still apply. */
23467char k_hasafs ();
23468int
23469main ()
23470{
23471k_hasafs ();
23472 ;
23473 return 0;
23474}
23475_ACEOF
23476rm -f conftest.$ac_objext conftest$ac_exeext
23477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23478 (eval $ac_link) 2>conftest.er1
23479 ac_status=$?
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
23485 { ac_try='test -z "$ac_c_werror_flag"
23486 || test ! -s conftest.err'
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; } &&
23492 { ac_try='test -s conftest$ac_exeext'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ac_cv_search_k_hasafs="-l$ac_lib"
23499break
23500else
23501 echo "$as_me: failed program was:" >&5
23502sed 's/^/| /' conftest.$ac_ext >&5
23503
23504fi
23505rm -f conftest.err conftest.$ac_objext \
23506 conftest$ac_exeext conftest.$ac_ext
23507 done
23508fi
23509LIBS=$ac_func_search_save_LIBS
23510fi
23511echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
23512echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
23513if test "$ac_cv_search_k_hasafs" != no; then
23514 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
23515 cat >>confdefs.h <<\_ACEOF
23516#define USE_AFS 1
23517_ACEOF
23518
23519fi
23520
23521 echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5
23522echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6
23523if test "${ac_cv_search_krb5_init_ets+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23525else
23526 ac_func_search_save_LIBS=$LIBS
23527ac_cv_search_krb5_init_ets=no
23528cat >conftest.$ac_ext <<_ACEOF
23529/* confdefs.h. */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h. */
23534
23535/* Override any gcc2 internal prototype to avoid an error. */
23536#ifdef __cplusplus
23537extern "C"
23538#endif
23539/* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23541char krb5_init_ets ();
23542int
23543main ()
23544{
23545krb5_init_ets ();
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
23559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_search_krb5_init_ets="none required"
23573else
23574 echo "$as_me: failed program was:" >&5
23575sed 's/^/| /' conftest.$ac_ext >&5
23576
23577fi
23578rm -f conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
23580if test "$ac_cv_search_krb5_init_ets" = no; then
23581 for ac_lib in $K5LIBS; do
23582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23583 cat >conftest.$ac_ext <<_ACEOF
23584/* confdefs.h. */
23585_ACEOF
23586cat confdefs.h >>conftest.$ac_ext
23587cat >>conftest.$ac_ext <<_ACEOF
23588/* end confdefs.h. */
23589
23590/* Override any gcc2 internal prototype to avoid an error. */
23591#ifdef __cplusplus
23592extern "C"
23593#endif
23594/* We use char because int might match the return type of a gcc2
23595 builtin and then its argument prototype would still apply. */
23596char krb5_init_ets ();
23597int
23598main ()
23599{
23600krb5_init_ets ();
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext conftest$ac_exeext
23606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
23614 { ac_try='test -z "$ac_c_werror_flag"
23615 || test ! -s conftest.err'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest$ac_exeext'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_search_krb5_init_ets="-l$ac_lib"
23628break
23629else
23630 echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633fi
23634rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
23636 done
23637fi
23638LIBS=$ac_func_search_save_LIBS
23639fi
23640echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5
23641echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6
23642if test "$ac_cv_search_krb5_init_ets" != no; then
23643 test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS"
23644 cat >>confdefs.h <<\_ACEOF
23645#define KRB5_INIT_ETS 1
23646_ACEOF
23647
23648fi
23649
23650
23651
23652fi;
23653
23654# Looking for programs, paths and files
23655
23656PRIVSEP_PATH=/var/empty
23657
23658# Check whether --with-privsep-path or --without-privsep-path was given.
23659if test "${with_privsep_path+set}" = set; then
23660 withval="$with_privsep_path"
23661
23662 if test "x$withval" != "$no" ; then
23663 PRIVSEP_PATH=$withval
23664 fi
23665
23666
23667fi;
23668
23669
23670
23671# Check whether --with-xauth or --without-xauth was given.
23672if test "${with_xauth+set}" = set; then
23673 withval="$with_xauth"
23674
23675 if test "x$withval" != "xno" ; then
23676 xauth_path=$withval
23677 fi
23678
23679else
23680
23681 TestPath="$PATH"
23682 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
23683 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
23684 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
23685 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
23686 # Extract the first word of "xauth", so it can be a program name with args.
23687set dummy xauth; ac_word=$2
23688echo "$as_me:$LINENO: checking for $ac_word" >&5
23689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23690if test "${ac_cv_path_xauth_path+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23692else
23693 case $xauth_path in
23694 [\\/]* | ?:[\\/]*)
23695 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
23696 ;;
23697 *)
23698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23699for as_dir in $TestPath
23700do
23701 IFS=$as_save_IFS
23702 test -z "$as_dir" && as_dir=.
23703 for ac_exec_ext in '' $ac_executable_extensions; do
23704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23705 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
23706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23707 break 2
23708 fi
23709done
23710done
23711
23712 ;;
23713esac
23714fi
23715xauth_path=$ac_cv_path_xauth_path
23716
23717if test -n "$xauth_path"; then
23718 echo "$as_me:$LINENO: result: $xauth_path" >&5
23719echo "${ECHO_T}$xauth_path" >&6
23720else
23721 echo "$as_me:$LINENO: result: no" >&5
23722echo "${ECHO_T}no" >&6
23723fi
23724
23725 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
23726 xauth_path="/usr/openwin/bin/xauth"
23727 fi
23728
23729
23730fi;
23731
23732STRIP_OPT=-s
23733# Check whether --enable-strip or --disable-strip was given.
23734if test "${enable_strip+set}" = set; then
23735 enableval="$enable_strip"
23736
23737 if test "x$enableval" = "xno" ; then
23738 STRIP_OPT=
23739 fi
23740
23741
23742fi;
23743
23744
23745if test -z "$xauth_path" ; then
23746 XAUTH_PATH="undefined"
23747
23748else
23749 cat >>confdefs.h <<_ACEOF
23750#define XAUTH_PATH "$xauth_path"
23751_ACEOF
23752
23753 XAUTH_PATH=$xauth_path
23754
23755fi
23756
23757# Check for mail directory (last resort if we cannot get it from headers)
23758if test ! -z "$MAIL" ; then
23759 maildir=`dirname $MAIL`
23760 cat >>confdefs.h <<_ACEOF
23761#define MAIL_DIRECTORY "$maildir"
23762_ACEOF
23763
23764fi
23765
23766if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
23767 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
23768echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
23769 disable_ptmx_check=yes
23770fi
23771if test -z "$no_dev_ptmx" ; then
23772 if test "x$disable_ptmx_check" != "xyes" ; then
23773 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
23774echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
23775if test "${ac_cv_file___dev_ptmx_+set}" = set; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23777else
23778 test "$cross_compiling" = yes &&
23779 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23780echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23781 { (exit 1); exit 1; }; }
23782if test -r ""/dev/ptmx""; then
23783 ac_cv_file___dev_ptmx_=yes
23784else
23785 ac_cv_file___dev_ptmx_=no
23786fi
23787fi
23788echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
23789echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
23790if test $ac_cv_file___dev_ptmx_ = yes; then
23791
23792 cat >>confdefs.h <<_ACEOF
23793#define HAVE_DEV_PTMX 1
23794_ACEOF
23795
23796 have_dev_ptmx=1
23797
23798
23799fi
23800
23801 fi
23802fi
23803
23804if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
23805 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
23806echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
23807if test "${ac_cv_file___dev_ptc_+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23809else
23810 test "$cross_compiling" = yes &&
23811 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23812echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23813 { (exit 1); exit 1; }; }
23814if test -r ""/dev/ptc""; then
23815 ac_cv_file___dev_ptc_=yes
23816else
23817 ac_cv_file___dev_ptc_=no
23818fi
23819fi
23820echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
23821echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
23822if test $ac_cv_file___dev_ptc_ = yes; then
23823
23824 cat >>confdefs.h <<_ACEOF
23825#define HAVE_DEV_PTS_AND_PTC 1
23826_ACEOF
23827
23828 have_dev_ptc=1
23829
23830
23831fi
23832
23833else
23834 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
23835echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
23836fi
23837
23838# Options from here on. Some of these are preset by platform above
23839
23840# Check whether --with-mantype or --without-mantype was given.
23841if test "${with_mantype+set}" = set; then
23842 withval="$with_mantype"
23843
23844 case "$withval" in
23845 man|cat|doc)
23846 MANTYPE=$withval
23847 ;;
23848 *)
23849 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
23850echo "$as_me: error: invalid man type: $withval" >&2;}
23851 { (exit 1); exit 1; }; }
23852 ;;
23853 esac
23854
23855
23856fi;
23857if test -z "$MANTYPE"; then
23858 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
23859 for ac_prog in nroff awf
23860do
23861 # Extract the first word of "$ac_prog", so it can be a program name with args.
23862set dummy $ac_prog; ac_word=$2
23863echo "$as_me:$LINENO: checking for $ac_word" >&5
23864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23865if test "${ac_cv_path_NROFF+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867else
23868 case $NROFF in
23869 [\\/]* | ?:[\\/]*)
23870 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
23871 ;;
23872 *)
23873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23874for as_dir in $TestPath
23875do
23876 IFS=$as_save_IFS
23877 test -z "$as_dir" && as_dir=.
23878 for ac_exec_ext in '' $ac_executable_extensions; do
23879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23880 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
23881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23882 break 2
23883 fi
23884done
23885done
23886
23887 ;;
23888esac
23889fi
23890NROFF=$ac_cv_path_NROFF
23891
23892if test -n "$NROFF"; then
23893 echo "$as_me:$LINENO: result: $NROFF" >&5
23894echo "${ECHO_T}$NROFF" >&6
23895else
23896 echo "$as_me:$LINENO: result: no" >&5
23897echo "${ECHO_T}no" >&6
23898fi
23899
23900 test -n "$NROFF" && break
23901done
23902test -n "$NROFF" || NROFF="/bin/false"
23903
23904 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
23905 MANTYPE=doc
23906 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
23907 MANTYPE=man
23908 else
23909 MANTYPE=cat
23910 fi
23911fi
23912
23913if test "$MANTYPE" = "doc"; then
23914 mansubdir=man;
23915else
23916 mansubdir=$MANTYPE;
23917fi
23918
23919
23920# Check whether to enable MD5 passwords
23921MD5_MSG="no"
23922
23923# Check whether --with-md5-passwords or --without-md5-passwords was given.
23924if test "${with_md5_passwords+set}" = set; then
23925 withval="$with_md5_passwords"
23926
23927 if test "x$withval" != "xno" ; then
23928 cat >>confdefs.h <<\_ACEOF
23929#define HAVE_MD5_PASSWORDS 1
23930_ACEOF
23931
23932 MD5_MSG="yes"
23933 fi
23934
23935
23936fi;
23937
23938# Whether to disable shadow password support
23939
23940# Check whether --with-shadow or --without-shadow was given.
23941if test "${with_shadow+set}" = set; then
23942 withval="$with_shadow"
23943
23944 if test "x$withval" = "xno" ; then
23945 cat >>confdefs.h <<\_ACEOF
23946#define DISABLE_SHADOW 1
23947_ACEOF
23948
23949 disable_shadow=yes
23950 fi
23951
23952
23953fi;
23954
23955if test -z "$disable_shadow" ; then
23956 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
23957echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
23958 cat >conftest.$ac_ext <<_ACEOF
23959/* confdefs.h. */
23960_ACEOF
23961cat confdefs.h >>conftest.$ac_ext
23962cat >>conftest.$ac_ext <<_ACEOF
23963/* end confdefs.h. */
23964
23965#include <sys/types.h>
23966#include <shadow.h>
23967 struct spwd sp;
23968
23969int
23970main ()
23971{
23972 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
23973 ;
23974 return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext
23978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23979 (eval $ac_compile) 2>conftest.er1
23980 ac_status=$?
23981 grep -v '^ *+' conftest.er1 >conftest.err
23982 rm -f conftest.er1
23983 cat conftest.err >&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } &&
23986 { ac_try='test -z "$ac_c_werror_flag"
23987 || test ! -s conftest.err'
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; } &&
23993 { ac_try='test -s conftest.$ac_objext'
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; }; then
23999 sp_expire_available=yes
24000else
24001 echo "$as_me: failed program was:" >&5
24002sed 's/^/| /' conftest.$ac_ext >&5
24003
24004
24005
24006fi
24007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24008
24009 if test "x$sp_expire_available" = "xyes" ; then
24010 echo "$as_me:$LINENO: result: yes" >&5
24011echo "${ECHO_T}yes" >&6
24012 cat >>confdefs.h <<\_ACEOF
24013#define HAS_SHADOW_EXPIRE 1
24014_ACEOF
24015
24016 else
24017 echo "$as_me:$LINENO: result: no" >&5
24018echo "${ECHO_T}no" >&6
24019 fi
24020fi
24021
24022# Use ip address instead of hostname in $DISPLAY
24023if test ! -z "$IPADDR_IN_DISPLAY" ; then
24024 DISPLAY_HACK_MSG="yes"
24025 cat >>confdefs.h <<\_ACEOF
24026#define IPADDR_IN_DISPLAY 1
24027_ACEOF
24028
24029else
24030 DISPLAY_HACK_MSG="no"
24031
24032# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
24033if test "${with_ipaddr_display+set}" = set; then
24034 withval="$with_ipaddr_display"
24035
24036 if test "x$withval" != "xno" ; then
24037 cat >>confdefs.h <<\_ACEOF
24038#define IPADDR_IN_DISPLAY 1
24039_ACEOF
24040
24041 DISPLAY_HACK_MSG="yes"
24042 fi
24043
24044
24045fi;
24046fi
24047
24048# check for /etc/default/login and use it if present.
24049# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
24050if test "${enable_etc_default_login+set}" = set; then
24051 enableval="$enable_etc_default_login"
24052 if test "x$enableval" = "xno"; then
24053 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
24054echo "$as_me: /etc/default/login handling disabled" >&6;}
24055 etc_default_login=no
24056 else
24057 etc_default_login=yes
24058 fi
24059else
24060 etc_default_login=yes
24061
24062fi;
24063
24064if test "x$etc_default_login" != "xno"; then
24065 echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
24066echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
24067if test "${ac_cv_file___etc_default_login_+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24069else
24070 test "$cross_compiling" = yes &&
24071 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24072echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24073 { (exit 1); exit 1; }; }
24074if test -r ""/etc/default/login""; then
24075 ac_cv_file___etc_default_login_=yes
24076else
24077 ac_cv_file___etc_default_login_=no
24078fi
24079fi
24080echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
24081echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
24082if test $ac_cv_file___etc_default_login_ = yes; then
24083 external_path_file=/etc/default/login
24084fi
24085
24086 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
24087 then
24088 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /etc/default/login test" >&5
24089echo "$as_me: WARNING: cross compiling: Disabling /etc/default/login test" >&2;}
24090 elif test "x$external_path_file" = "x/etc/default/login"; then
24091 cat >>confdefs.h <<\_ACEOF
24092#define HAVE_ETC_DEFAULT_LOGIN 1
24093_ACEOF
24094
24095 fi
24096fi
24097
24098if test $ac_cv_func_login_getcapbool = "yes" -a \
24099 $ac_cv_header_login_cap_h = "yes" ; then
24100 external_path_file=/etc/login.conf
24101fi
24102
24103# Whether to mess with the default path
24104SERVER_PATH_MSG="(default)"
24105
24106# Check whether --with-default-path or --without-default-path was given.
24107if test "${with_default_path+set}" = set; then
24108 withval="$with_default_path"
24109
24110 if test "x$external_path_file" = "x/etc/login.conf" ; then
24111 { echo "$as_me:$LINENO: WARNING:
24112--with-default-path=PATH has no effect on this system.
24113Edit /etc/login.conf instead." >&5
24114echo "$as_me: WARNING:
24115--with-default-path=PATH has no effect on this system.
24116Edit /etc/login.conf instead." >&2;}
24117 elif test "x$withval" != "xno" ; then
24118 if test ! -z "$external_path_file" ; then
24119 { echo "$as_me:$LINENO: WARNING:
24120--with-default-path=PATH will only be used if PATH is not defined in
24121$external_path_file ." >&5
24122echo "$as_me: WARNING:
24123--with-default-path=PATH will only be used if PATH is not defined in
24124$external_path_file ." >&2;}
24125 fi
24126 user_path="$withval"
24127 SERVER_PATH_MSG="$withval"
24128 fi
24129
24130else
24131 if test "x$external_path_file" = "x/etc/login.conf" ; then
24132 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
24133echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
24134 else
24135 if test ! -z "$external_path_file" ; then
24136 { echo "$as_me:$LINENO: WARNING:
24137If PATH is defined in $external_path_file, ensure the path to scp is included,
24138otherwise scp will not work." >&5
24139echo "$as_me: WARNING:
24140If PATH is defined in $external_path_file, ensure the path to scp is included,
24141otherwise scp will not work." >&2;}
24142 fi
24143 if test "$cross_compiling" = yes; then
24144 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
24145
24146else
24147 cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153
24154/* find out what STDPATH is */
24155#include <stdio.h>
24156#ifdef HAVE_PATHS_H
24157# include <paths.h>
24158#endif
24159#ifndef _PATH_STDPATH
24160# ifdef _PATH_USERPATH /* Irix */
24161# define _PATH_STDPATH _PATH_USERPATH
24162# else
24163# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
24164# endif
24165#endif
24166#include <sys/types.h>
24167#include <sys/stat.h>
24168#include <fcntl.h>
24169#define DATA "conftest.stdpath"
24170
24171main()
24172{
24173 FILE *fd;
24174 int rc;
24175
24176 fd = fopen(DATA,"w");
24177 if(fd == NULL)
24178 exit(1);
24179
24180 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
24181 exit(1);
24182
24183 exit(0);
24184}
24185
24186_ACEOF
24187rm -f conftest$ac_exeext
24188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24189 (eval $ac_link) 2>&5
24190 ac_status=$?
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 user_path=`cat conftest.stdpath`
24199else
24200 echo "$as_me: program exited with status $ac_status" >&5
24201echo "$as_me: failed program was:" >&5
24202sed 's/^/| /' conftest.$ac_ext >&5
24203
24204( exit $ac_status )
24205 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
24206fi
24207rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24208fi
24209# make sure $bindir is in USER_PATH so scp will work
24210 t_bindir=`eval echo ${bindir}`
24211 case $t_bindir in
24212 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
24213 esac
24214 case $t_bindir in
24215 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
24216 esac
24217 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
24218 if test $? -ne 0 ; then
24219 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
24220 if test $? -ne 0 ; then
24221 user_path=$user_path:$t_bindir
24222 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
24223echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
24224 fi
24225 fi
24226 fi
24227
24228fi;
24229if test "x$external_path_file" != "x/etc/login.conf" ; then
24230 cat >>confdefs.h <<_ACEOF
24231#define USER_PATH "$user_path"
24232_ACEOF
24233
24234
24235fi
24236
24237# Set superuser path separately to user path
24238
24239# Check whether --with-superuser-path or --without-superuser-path was given.
24240if test "${with_superuser_path+set}" = set; then
24241 withval="$with_superuser_path"
24242
24243 if test "x$withval" != "xno" ; then
24244 cat >>confdefs.h <<_ACEOF
24245#define SUPERUSER_PATH "$withval"
24246_ACEOF
24247
24248 superuser_path=$withval
24249 fi
24250
24251
24252fi;
24253
24254
24255echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
24256echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
24257IPV4_IN6_HACK_MSG="no"
24258
24259# Check whether --with-4in6 or --without-4in6 was given.
24260if test "${with_4in6+set}" = set; then
24261 withval="$with_4in6"
24262
24263 if test "x$withval" != "xno" ; then
24264 echo "$as_me:$LINENO: result: yes" >&5
24265echo "${ECHO_T}yes" >&6
24266 cat >>confdefs.h <<\_ACEOF
24267#define IPV4_IN_IPV6 1
24268_ACEOF
24269
24270 IPV4_IN6_HACK_MSG="yes"
24271 else
24272 echo "$as_me:$LINENO: result: no" >&5
24273echo "${ECHO_T}no" >&6
24274 fi
24275
24276else
24277
24278 if test "x$inet6_default_4in6" = "xyes"; then
24279 echo "$as_me:$LINENO: result: yes (default)" >&5
24280echo "${ECHO_T}yes (default)" >&6
24281 cat >>confdefs.h <<\_ACEOF
24282#define IPV4_IN_IPV6 1
24283_ACEOF
24284
24285 IPV4_IN6_HACK_MSG="yes"
24286 else
24287 echo "$as_me:$LINENO: result: no (default)" >&5
24288echo "${ECHO_T}no (default)" >&6
24289 fi
24290
24291
24292fi;
24293
24294# Whether to enable BSD auth support
24295BSD_AUTH_MSG=no
24296
24297# Check whether --with-bsd-auth or --without-bsd-auth was given.
24298if test "${with_bsd_auth+set}" = set; then
24299 withval="$with_bsd_auth"
24300
24301 if test "x$withval" != "xno" ; then
24302 cat >>confdefs.h <<\_ACEOF
24303#define BSD_AUTH 1
24304_ACEOF
24305
24306 BSD_AUTH_MSG=yes
24307 fi
24308
24309
24310fi;
24311
24312# Where to place sshd.pid
24313piddir=/var/run
24314# make sure the directory exists
24315if test ! -d $piddir ; then
24316 piddir=`eval echo ${sysconfdir}`
24317 case $piddir in
24318 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
24319 esac
24320fi
24321
24322
24323# Check whether --with-pid-dir or --without-pid-dir was given.
24324if test "${with_pid_dir+set}" = set; then
24325 withval="$with_pid_dir"
24326
24327 if test "x$withval" != "xno" ; then
24328 piddir=$withval
24329 if test ! -d $piddir ; then
24330 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
24331echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
24332 fi
24333 fi
24334
24335
24336fi;
24337
24338cat >>confdefs.h <<_ACEOF
24339#define _PATH_SSH_PIDDIR "$piddir"
24340_ACEOF
24341
24342
24343
24344# Check whether --enable-lastlog or --disable-lastlog was given.
24345if test "${enable_lastlog+set}" = set; then
24346 enableval="$enable_lastlog"
24347
24348 if test "x$enableval" = "xno" ; then
24349 cat >>confdefs.h <<\_ACEOF
24350#define DISABLE_LASTLOG 1
24351_ACEOF
24352
24353 fi
24354
24355
24356fi;
24357# Check whether --enable-utmp or --disable-utmp was given.
24358if test "${enable_utmp+set}" = set; then
24359 enableval="$enable_utmp"
24360
24361 if test "x$enableval" = "xno" ; then
24362 cat >>confdefs.h <<\_ACEOF
24363#define DISABLE_UTMP 1
24364_ACEOF
24365
24366 fi
24367
24368
24369fi;
24370# Check whether --enable-utmpx or --disable-utmpx was given.
24371if test "${enable_utmpx+set}" = set; then
24372 enableval="$enable_utmpx"
24373
24374 if test "x$enableval" = "xno" ; then
24375 cat >>confdefs.h <<\_ACEOF
24376#define DISABLE_UTMPX 1
24377_ACEOF
24378
24379 fi
24380
24381
24382fi;
24383# Check whether --enable-wtmp or --disable-wtmp was given.
24384if test "${enable_wtmp+set}" = set; then
24385 enableval="$enable_wtmp"
24386
24387 if test "x$enableval" = "xno" ; then
24388 cat >>confdefs.h <<\_ACEOF
24389#define DISABLE_WTMP 1
24390_ACEOF
24391
24392 fi
24393
24394
24395fi;
24396# Check whether --enable-wtmpx or --disable-wtmpx was given.
24397if test "${enable_wtmpx+set}" = set; then
24398 enableval="$enable_wtmpx"
24399
24400 if test "x$enableval" = "xno" ; then
24401 cat >>confdefs.h <<\_ACEOF
24402#define DISABLE_WTMPX 1
24403_ACEOF
24404
24405 fi
24406
24407
24408fi;
24409# Check whether --enable-libutil or --disable-libutil was given.
24410if test "${enable_libutil+set}" = set; then
24411 enableval="$enable_libutil"
24412
24413 if test "x$enableval" = "xno" ; then
24414 cat >>confdefs.h <<\_ACEOF
24415#define DISABLE_LOGIN 1
24416_ACEOF
24417
24418 fi
24419
24420
24421fi;
24422# Check whether --enable-pututline or --disable-pututline was given.
24423if test "${enable_pututline+set}" = set; then
24424 enableval="$enable_pututline"
24425
24426 if test "x$enableval" = "xno" ; then
24427 cat >>confdefs.h <<\_ACEOF
24428#define DISABLE_PUTUTLINE 1
24429_ACEOF
24430
24431 fi
24432
24433
24434fi;
24435# Check whether --enable-pututxline or --disable-pututxline was given.
24436if test "${enable_pututxline+set}" = set; then
24437 enableval="$enable_pututxline"
24438
24439 if test "x$enableval" = "xno" ; then
24440 cat >>confdefs.h <<\_ACEOF
24441#define DISABLE_PUTUTXLINE 1
24442_ACEOF
24443
24444 fi
24445
24446
24447fi;
24448
24449# Check whether --with-lastlog or --without-lastlog was given.
24450if test "${with_lastlog+set}" = set; then
24451 withval="$with_lastlog"
24452
24453 if test "x$withval" = "xno" ; then
24454 cat >>confdefs.h <<\_ACEOF
24455#define DISABLE_LASTLOG 1
24456_ACEOF
24457
24458 else
24459 conf_lastlog_location=$withval
24460 fi
24461
24462
24463fi;
24464
24465
24466echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
24467echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
24468cat >conftest.$ac_ext <<_ACEOF
24469/* confdefs.h. */
24470_ACEOF
24471cat confdefs.h >>conftest.$ac_ext
24472cat >>conftest.$ac_ext <<_ACEOF
24473/* end confdefs.h. */
24474
24475#include <sys/types.h>
24476#include <utmp.h>
24477#ifdef HAVE_LASTLOG_H
24478# include <lastlog.h>
24479#endif
24480#ifdef HAVE_PATHS_H
24481# include <paths.h>
24482#endif
24483#ifdef HAVE_LOGIN_H
24484# include <login.h>
24485#endif
24486
24487int
24488main ()
24489{
24490 char *lastlog = LASTLOG_FILE;
24491 ;
24492 return 0;
24493}
24494_ACEOF
24495rm -f conftest.$ac_objext
24496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24497 (eval $ac_compile) 2>conftest.er1
24498 ac_status=$?
24499 grep -v '^ *+' conftest.er1 >conftest.err
24500 rm -f conftest.er1
24501 cat conftest.err >&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } &&
24504 { ac_try='test -z "$ac_c_werror_flag"
24505 || test ! -s conftest.err'
24506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24507 (eval $ac_try) 2>&5
24508 ac_status=$?
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); }; } &&
24511 { ac_try='test -s conftest.$ac_objext'
24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513 (eval $ac_try) 2>&5
24514 ac_status=$?
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; }; then
24517 echo "$as_me:$LINENO: result: yes" >&5
24518echo "${ECHO_T}yes" >&6
24519else
24520 echo "$as_me: failed program was:" >&5
24521sed 's/^/| /' conftest.$ac_ext >&5
24522
24523
24524 echo "$as_me:$LINENO: result: no" >&5
24525echo "${ECHO_T}no" >&6
24526 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
24527echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
24528 cat >conftest.$ac_ext <<_ACEOF
24529/* confdefs.h. */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h. */
24534
24535#include <sys/types.h>
24536#include <utmp.h>
24537#ifdef HAVE_LASTLOG_H
24538# include <lastlog.h>
24539#endif
24540#ifdef HAVE_PATHS_H
24541# include <paths.h>
24542#endif
24543
24544int
24545main ()
24546{
24547 char *lastlog = _PATH_LASTLOG;
24548 ;
24549 return 0;
24550}
24551_ACEOF
24552rm -f conftest.$ac_objext
24553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24554 (eval $ac_compile) 2>conftest.er1
24555 ac_status=$?
24556 grep -v '^ *+' conftest.er1 >conftest.err
24557 rm -f conftest.er1
24558 cat conftest.err >&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } &&
24561 { ac_try='test -z "$ac_c_werror_flag"
24562 || test ! -s conftest.err'
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; } &&
24568 { ac_try='test -s conftest.$ac_objext'
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; }; then
24574 echo "$as_me:$LINENO: result: yes" >&5
24575echo "${ECHO_T}yes" >&6
24576else
24577 echo "$as_me: failed program was:" >&5
24578sed 's/^/| /' conftest.$ac_ext >&5
24579
24580
24581 echo "$as_me:$LINENO: result: no" >&5
24582echo "${ECHO_T}no" >&6
24583 system_lastlog_path=no
24584
24585fi
24586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24587
24588
24589fi
24590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24591
24592if test -z "$conf_lastlog_location"; then
24593 if test x"$system_lastlog_path" = x"no" ; then
24594 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
24595 if (test -d "$f" || test -f "$f") ; then
24596 conf_lastlog_location=$f
24597 fi
24598 done
24599 if test -z "$conf_lastlog_location"; then
24600 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
24601echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
24602 fi
24603 fi
24604fi
24605
24606if test -n "$conf_lastlog_location"; then
24607 cat >>confdefs.h <<_ACEOF
24608#define CONF_LASTLOG_FILE "$conf_lastlog_location"
24609_ACEOF
24610
24611fi
24612
24613echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
24614echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
24615cat >conftest.$ac_ext <<_ACEOF
24616/* confdefs.h. */
24617_ACEOF
24618cat confdefs.h >>conftest.$ac_ext
24619cat >>conftest.$ac_ext <<_ACEOF
24620/* end confdefs.h. */
24621
24622#include <sys/types.h>
24623#include <utmp.h>
24624#ifdef HAVE_PATHS_H
24625# include <paths.h>
24626#endif
24627
24628int
24629main ()
24630{
24631 char *utmp = UTMP_FILE;
24632 ;
24633 return 0;
24634}
24635_ACEOF
24636rm -f conftest.$ac_objext
24637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24638 (eval $ac_compile) 2>conftest.er1
24639 ac_status=$?
24640 grep -v '^ *+' conftest.er1 >conftest.err
24641 rm -f conftest.er1
24642 cat conftest.err >&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } &&
24645 { ac_try='test -z "$ac_c_werror_flag"
24646 || test ! -s conftest.err'
24647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
24652 { ac_try='test -s conftest.$ac_objext'
24653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; }; then
24658 echo "$as_me:$LINENO: result: yes" >&5
24659echo "${ECHO_T}yes" >&6
24660else
24661 echo "$as_me: failed program was:" >&5
24662sed 's/^/| /' conftest.$ac_ext >&5
24663
24664 echo "$as_me:$LINENO: result: no" >&5
24665echo "${ECHO_T}no" >&6
24666 system_utmp_path=no
24667
24668fi
24669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24670if test -z "$conf_utmp_location"; then
24671 if test x"$system_utmp_path" = x"no" ; then
24672 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
24673 if test -f $f ; then
24674 conf_utmp_location=$f
24675 fi
24676 done
24677 if test -z "$conf_utmp_location"; then
24678 cat >>confdefs.h <<\_ACEOF
24679#define DISABLE_UTMP 1
24680_ACEOF
24681
24682 fi
24683 fi
24684fi
24685if test -n "$conf_utmp_location"; then
24686 cat >>confdefs.h <<_ACEOF
24687#define CONF_UTMP_FILE "$conf_utmp_location"
24688_ACEOF
24689
24690fi
24691
24692echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
24693echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
24694cat >conftest.$ac_ext <<_ACEOF
24695/* confdefs.h. */
24696_ACEOF
24697cat confdefs.h >>conftest.$ac_ext
24698cat >>conftest.$ac_ext <<_ACEOF
24699/* end confdefs.h. */
24700
24701#include <sys/types.h>
24702#include <utmp.h>
24703#ifdef HAVE_PATHS_H
24704# include <paths.h>
24705#endif
24706
24707int
24708main ()
24709{
24710 char *wtmp = WTMP_FILE;
24711 ;
24712 return 0;
24713}
24714_ACEOF
24715rm -f conftest.$ac_objext
24716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24717 (eval $ac_compile) 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
24724 { ac_try='test -z "$ac_c_werror_flag"
24725 || test ! -s conftest.err'
24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; } &&
24731 { ac_try='test -s conftest.$ac_objext'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; }; then
24737 echo "$as_me:$LINENO: result: yes" >&5
24738echo "${ECHO_T}yes" >&6
24739else
24740 echo "$as_me: failed program was:" >&5
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 echo "$as_me:$LINENO: result: no" >&5
24744echo "${ECHO_T}no" >&6
24745 system_wtmp_path=no
24746
24747fi
24748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24749if test -z "$conf_wtmp_location"; then
24750 if test x"$system_wtmp_path" = x"no" ; then
24751 for f in /usr/adm/wtmp /var/log/wtmp; do
24752 if test -f $f ; then
24753 conf_wtmp_location=$f
24754 fi
24755 done
24756 if test -z "$conf_wtmp_location"; then
24757 cat >>confdefs.h <<\_ACEOF
24758#define DISABLE_WTMP 1
24759_ACEOF
24760
24761 fi
24762 fi
24763fi
24764if test -n "$conf_wtmp_location"; then
24765 cat >>confdefs.h <<_ACEOF
24766#define CONF_WTMP_FILE "$conf_wtmp_location"
24767_ACEOF
24768
24769fi
24770
24771
24772echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
24773echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
24774cat >conftest.$ac_ext <<_ACEOF
24775/* confdefs.h. */
24776_ACEOF
24777cat confdefs.h >>conftest.$ac_ext
24778cat >>conftest.$ac_ext <<_ACEOF
24779/* end confdefs.h. */
24780
24781#include <sys/types.h>
24782#include <utmp.h>
24783#ifdef HAVE_UTMPX_H
24784#include <utmpx.h>
24785#endif
24786#ifdef HAVE_PATHS_H
24787# include <paths.h>
24788#endif
24789
24790int
24791main ()
24792{
24793 char *utmpx = UTMPX_FILE;
24794 ;
24795 return 0;
24796}
24797_ACEOF
24798rm -f conftest.$ac_objext
24799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24800 (eval $ac_compile) 2>conftest.er1
24801 ac_status=$?
24802 grep -v '^ *+' conftest.er1 >conftest.err
24803 rm -f conftest.er1
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } &&
24807 { ac_try='test -z "$ac_c_werror_flag"
24808 || test ! -s conftest.err'
24809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; } &&
24814 { ac_try='test -s conftest.$ac_objext'
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
24820 echo "$as_me:$LINENO: result: yes" >&5
24821echo "${ECHO_T}yes" >&6
24822else
24823 echo "$as_me: failed program was:" >&5
24824sed 's/^/| /' conftest.$ac_ext >&5
24825
24826 echo "$as_me:$LINENO: result: no" >&5
24827echo "${ECHO_T}no" >&6
24828 system_utmpx_path=no
24829
24830fi
24831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24832if test -z "$conf_utmpx_location"; then
24833 if test x"$system_utmpx_path" = x"no" ; then
24834 cat >>confdefs.h <<\_ACEOF
24835#define DISABLE_UTMPX 1
24836_ACEOF
24837
24838 fi
24839else
24840 cat >>confdefs.h <<_ACEOF
24841#define CONF_UTMPX_FILE "$conf_utmpx_location"
24842_ACEOF
24843
24844fi
24845
24846echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
24847echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
24848cat >conftest.$ac_ext <<_ACEOF
24849/* confdefs.h. */
24850_ACEOF
24851cat confdefs.h >>conftest.$ac_ext
24852cat >>conftest.$ac_ext <<_ACEOF
24853/* end confdefs.h. */
24854
24855#include <sys/types.h>
24856#include <utmp.h>
24857#ifdef HAVE_UTMPX_H
24858#include <utmpx.h>
24859#endif
24860#ifdef HAVE_PATHS_H
24861# include <paths.h>
24862#endif
24863
24864int
24865main ()
24866{
24867 char *wtmpx = WTMPX_FILE;
24868 ;
24869 return 0;
24870}
24871_ACEOF
24872rm -f conftest.$ac_objext
24873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24874 (eval $ac_compile) 2>conftest.er1
24875 ac_status=$?
24876 grep -v '^ *+' conftest.er1 >conftest.err
24877 rm -f conftest.er1
24878 cat conftest.err >&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } &&
24881 { ac_try='test -z "$ac_c_werror_flag"
24882 || test ! -s conftest.err'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; } &&
24888 { ac_try='test -s conftest.$ac_objext'
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; }; then
24894 echo "$as_me:$LINENO: result: yes" >&5
24895echo "${ECHO_T}yes" >&6
24896else
24897 echo "$as_me: failed program was:" >&5
24898sed 's/^/| /' conftest.$ac_ext >&5
24899
24900 echo "$as_me:$LINENO: result: no" >&5
24901echo "${ECHO_T}no" >&6
24902 system_wtmpx_path=no
24903
24904fi
24905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24906if test -z "$conf_wtmpx_location"; then
24907 if test x"$system_wtmpx_path" = x"no" ; then
24908 cat >>confdefs.h <<\_ACEOF
24909#define DISABLE_WTMPX 1
24910_ACEOF
24911
24912 fi
24913else
24914 cat >>confdefs.h <<_ACEOF
24915#define CONF_WTMPX_FILE "$conf_wtmpx_location"
24916_ACEOF
24917
24918fi
24919
24920
24921if test ! -z "$blibpath" ; then
24922 LDFLAGS="$LDFLAGS $blibflags$blibpath"
24923 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
24924echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
24925fi
24926
24927if test "$PAM_MSG" = yes ; then
24928 LIBS=`echo $LIBS | sed 's/-lpam //'`
24929fi
24930if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
24931 LIBS=`echo $LIBS | sed 's/-ldl //'`
24932fi
24933
24934
24935 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh"
24936
24937cat >confcache <<\_ACEOF
24938# This file is a shell script that caches the results of configure
24939# tests run on this system so they can be shared between configure
24940# scripts and configure runs, see configure's option --config-cache.
24941# It is not useful on other systems. If it contains results you don't
24942# want to keep, you may remove or edit it.
24943#
24944# config.status only pays attention to the cache file if you give it
24945# the --recheck option to rerun configure.
24946#
24947# `ac_cv_env_foo' variables (set or unset) will be overridden when
24948# loading this file, other *unset* `ac_cv_foo' will be assigned the
24949# following values.
24950
24951_ACEOF
24952
24953# The following way of writing the cache mishandles newlines in values,
24954# but we know of no workaround that is simple, portable, and efficient.
24955# So, don't put newlines in cache variables' values.
24956# Ultrix sh set writes to stderr and can't be redirected directly,
24957# and sets the high bit in the cache file unless we assign to the vars.
24958{
24959 (set) 2>&1 |
24960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24961 *ac_space=\ *)
24962 # `set' does not quote correctly, so add quotes (double-quote
24963 # substitution turns \\\\ into \\, and sed turns \\ into \).
24964 sed -n \
24965 "s/'/'\\\\''/g;
24966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24967 ;;
24968 *)
24969 # `set' quotes correctly as required by POSIX, so do not add quotes.
24970 sed -n \
24971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24972 ;;
24973 esac;
24974} |
24975 sed '
24976 t clear
24977 : clear
24978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24979 t end
24980 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24981 : end' >>confcache
24982if diff $cache_file confcache >/dev/null 2>&1; then :; else
24983 if test -w $cache_file; then
24984 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24985 cat confcache >$cache_file
24986 else
24987 echo "not updating unwritable cache $cache_file"
24988 fi
24989fi
24990rm -f confcache
24991
24992test "x$prefix" = xNONE && prefix=$ac_default_prefix
24993# Let make expand exec_prefix.
24994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24995
24996# VPATH may cause trouble with some makes, so we remove $(srcdir),
24997# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24998# trailing colons and then remove the whole line if VPATH becomes empty
24999# (actually we leave an empty line to preserve line numbers).
25000if test "x$srcdir" = x.; then
25001 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25002s/:*\$(srcdir):*/:/;
25003s/:*\${srcdir}:*/:/;
25004s/:*@srcdir@:*/:/;
25005s/^\([^=]*=[ ]*\):*/\1/;
25006s/:*$//;
25007s/^[^=]*=[ ]*$//;
25008}'
25009fi
25010
25011DEFS=-DHAVE_CONFIG_H
25012
25013ac_libobjs=
25014ac_ltlibobjs=
25015for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25016 # 1. Remove the extension, and $U if already installed.
25017 ac_i=`echo "$ac_i" |
25018 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25019 # 2. Add them.
25020 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25021 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25022done
25023LIBOBJS=$ac_libobjs
25024
25025LTLIBOBJS=$ac_ltlibobjs
25026
25027
25028
25029: ${CONFIG_STATUS=./config.status}
25030ac_clean_files_save=$ac_clean_files
25031ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25032{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25033echo "$as_me: creating $CONFIG_STATUS" >&6;}
25034cat >$CONFIG_STATUS <<_ACEOF
25035#! $SHELL
25036# Generated by $as_me.
25037# Run this file to recreate the current configuration.
25038# Compiler output produced by configure, useful for debugging
25039# configure, is in config.log if it exists.
25040
25041debug=false
25042ac_cs_recheck=false
25043ac_cs_silent=false
25044SHELL=\${CONFIG_SHELL-$SHELL}
25045_ACEOF
25046
25047cat >>$CONFIG_STATUS <<\_ACEOF
25048## --------------------- ##
25049## M4sh Initialization. ##
25050## --------------------- ##
25051
25052# Be Bourne compatible
25053if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25054 emulate sh
25055 NULLCMD=:
25056 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25057 # is contrary to our usage. Disable this feature.
25058 alias -g '${1+"$@"}'='"$@"'
25059elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25060 set -o posix
25061fi
25062DUALCASE=1; export DUALCASE # for MKS sh
25063
25064# Support unset when possible.
25065if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25066 as_unset=unset
25067else
25068 as_unset=false
25069fi
25070
25071
25072# Work around bugs in pre-3.0 UWIN ksh.
25073$as_unset ENV MAIL MAILPATH
25074PS1='$ '
25075PS2='> '
25076PS4='+ '
25077
25078# NLS nuisances.
25079for as_var in \
25080 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25081 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25082 LC_TELEPHONE LC_TIME
25083do
25084 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25085 eval $as_var=C; export $as_var
25086 else
25087 $as_unset $as_var
25088 fi
25089done
25090
25091# Required to use basename.
25092if expr a : '\(a\)' >/dev/null 2>&1; then
25093 as_expr=expr
25094else
25095 as_expr=false
25096fi
25097
25098if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25099 as_basename=basename
25100else
25101 as_basename=false
25102fi
25103
25104
25105# Name of the executable.
25106as_me=`$as_basename "$0" ||
25107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25108 X"$0" : 'X\(//\)$' \| \
25109 X"$0" : 'X\(/\)$' \| \
25110 . : '\(.\)' 2>/dev/null ||
25111echo X/"$0" |
25112 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25113 /^X\/\(\/\/\)$/{ s//\1/; q; }
25114 /^X\/\(\/\).*/{ s//\1/; q; }
25115 s/.*/./; q'`
25116
25117
25118# PATH needs CR, and LINENO needs CR and PATH.
25119# Avoid depending upon Character Ranges.
25120as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25121as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25122as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25123as_cr_digits='0123456789'
25124as_cr_alnum=$as_cr_Letters$as_cr_digits
25125
25126# The user is always right.
25127if test "${PATH_SEPARATOR+set}" != set; then
25128 echo "#! /bin/sh" >conf$$.sh
25129 echo "exit 0" >>conf$$.sh
25130 chmod +x conf$$.sh
25131 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25132 PATH_SEPARATOR=';'
25133 else
25134 PATH_SEPARATOR=:
25135 fi
25136 rm -f conf$$.sh
25137fi
25138
25139
25140 as_lineno_1=$LINENO
25141 as_lineno_2=$LINENO
25142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25143 test "x$as_lineno_1" != "x$as_lineno_2" &&
25144 test "x$as_lineno_3" = "x$as_lineno_2" || {
25145 # Find who we are. Look in the path if we contain no path at all
25146 # relative or not.
25147 case $0 in
25148 *[\\/]* ) as_myself=$0 ;;
25149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25150for as_dir in $PATH
25151do
25152 IFS=$as_save_IFS
25153 test -z "$as_dir" && as_dir=.
25154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25155done
25156
25157 ;;
25158 esac
25159 # We did not find ourselves, most probably we were run as `sh COMMAND'
25160 # in which case we are not to be found in the path.
25161 if test "x$as_myself" = x; then
25162 as_myself=$0
25163 fi
25164 if test ! -f "$as_myself"; then
25165 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25166echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25167 { (exit 1); exit 1; }; }
25168 fi
25169 case $CONFIG_SHELL in
25170 '')
25171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25172for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25173do
25174 IFS=$as_save_IFS
25175 test -z "$as_dir" && as_dir=.
25176 for as_base in sh bash ksh sh5; do
25177 case $as_dir in
25178 /*)
25179 if ("$as_dir/$as_base" -c '
25180 as_lineno_1=$LINENO
25181 as_lineno_2=$LINENO
25182 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25183 test "x$as_lineno_1" != "x$as_lineno_2" &&
25184 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25185 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25186 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25187 CONFIG_SHELL=$as_dir/$as_base
25188 export CONFIG_SHELL
25189 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25190 fi;;
25191 esac
25192 done
25193done
25194;;
25195 esac
25196
25197 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25198 # uniformly replaced by the line number. The first 'sed' inserts a
25199 # line-number line before each line; the second 'sed' does the real
25200 # work. The second script uses 'N' to pair each line-number line
25201 # with the numbered line, and appends trailing '-' during
25202 # substitution so that $LINENO is not a special case at line end.
25203 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25204 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25205 sed '=' <$as_myself |
25206 sed '
25207 N
25208 s,$,-,
25209 : loop
25210 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25211 t loop
25212 s,-$,,
25213 s,^['$as_cr_digits']*\n,,
25214 ' >$as_me.lineno &&
25215 chmod +x $as_me.lineno ||
25216 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25217echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25218 { (exit 1); exit 1; }; }
25219
25220 # Don't try to exec as it changes $[0], causing all sort of problems
25221 # (the dirname of $[0] is not the place where we might find the
25222 # original and so on. Autoconf is especially sensible to this).
25223 . ./$as_me.lineno
25224 # Exit status is that of the last command.
25225 exit
25226}
25227
25228
25229case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25230 *c*,-n*) ECHO_N= ECHO_C='
25231' ECHO_T=' ' ;;
25232 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25233 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25234esac
25235
25236if expr a : '\(a\)' >/dev/null 2>&1; then
25237 as_expr=expr
25238else
25239 as_expr=false
25240fi
25241
25242rm -f conf$$ conf$$.exe conf$$.file
25243echo >conf$$.file
25244if ln -s conf$$.file conf$$ 2>/dev/null; then
25245 # We could just check for DJGPP; but this test a) works b) is more generic
25246 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25247 if test -f conf$$.exe; then
25248 # Don't use ln at all; we don't have any links
25249 as_ln_s='cp -p'
25250 else
25251 as_ln_s='ln -s'
25252 fi
25253elif ln conf$$.file conf$$ 2>/dev/null; then
25254 as_ln_s=ln
25255else
25256 as_ln_s='cp -p'
25257fi
25258rm -f conf$$ conf$$.exe conf$$.file
25259
25260if mkdir -p . 2>/dev/null; then
25261 as_mkdir_p=:
25262else
25263 test -d ./-p && rmdir ./-p
25264 as_mkdir_p=false
25265fi
25266
25267as_executable_p="test -f"
25268
25269# Sed expression to map a string onto a valid CPP name.
25270as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25271
25272# Sed expression to map a string onto a valid variable name.
25273as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25274
25275
25276# IFS
25277# We need space, tab and new line, in precisely that order.
25278as_nl='
25279'
25280IFS=" $as_nl"
25281
25282# CDPATH.
25283$as_unset CDPATH
25284
25285exec 6>&1
25286
25287# Open the log real soon, to keep \$[0] and so on meaningful, and to
25288# report actual input values of CONFIG_FILES etc. instead of their
25289# values after options handling. Logging --version etc. is OK.
25290exec 5>>config.log
25291{
25292 echo
25293 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF
25294## Running $as_me. ##
25295BOXI_EOF
25296} >&5
25297cat >&5 <<_CSEOF
25298
25299This file was extended by OpenSSH $as_me Portable, which was
25300generated by GNU Autoconf 2.59. Invocation command line was
25301
25302 CONFIG_FILES = $CONFIG_FILES
25303 CONFIG_HEADERS = $CONFIG_HEADERS
25304 CONFIG_LINKS = $CONFIG_LINKS
25305 CONFIG_COMMANDS = $CONFIG_COMMANDS
25306 $ $0 $@
25307
25308_CSEOF
25309echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25310echo >&5
25311_ACEOF
25312
25313# Files that config.status was made for.
25314if test -n "$ac_config_files"; then
25315 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25316fi
25317
25318if test -n "$ac_config_headers"; then
25319 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25320fi
25321
25322if test -n "$ac_config_links"; then
25323 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25324fi
25325
25326if test -n "$ac_config_commands"; then
25327 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25328fi
25329
25330cat >>$CONFIG_STATUS <<\_ACEOF
25331
25332ac_cs_usage="\
25333\`$as_me' instantiates files from templates according to the
25334current configuration.
25335
25336Usage: $0 [OPTIONS] [FILE]...
25337
25338 -h, --help print this help, then exit
25339 -V, --version print version number, then exit
25340 -q, --quiet do not print progress messages
25341 -d, --debug don't remove temporary files
25342 --recheck update $as_me by reconfiguring in the same conditions
25343 --file=FILE[:TEMPLATE]
25344 instantiate the configuration file FILE
25345 --header=FILE[:TEMPLATE]
25346 instantiate the configuration header FILE
25347
25348Configuration files:
25349$config_files
25350
25351Configuration headers:
25352$config_headers
25353
25354Report bugs to <bug-autoconf@gnu.org>."
25355_ACEOF
25356
25357cat >>$CONFIG_STATUS <<_ACEOF
25358ac_cs_version="\\
25359OpenSSH config.status Portable
25360configured by $0, generated by GNU Autoconf 2.59,
25361 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25362
25363Copyright (C) 2003 Free Software Foundation, Inc.
25364This config.status script is free software; the Free Software Foundation
25365gives unlimited permission to copy, distribute and modify it."
25366srcdir=$srcdir
25367INSTALL="$INSTALL"
25368_ACEOF
25369
25370cat >>$CONFIG_STATUS <<\_ACEOF
25371# If no file are specified by the user, then we need to provide default
25372# value. By we need to know if files were specified by the user.
25373ac_need_defaults=:
25374while test $# != 0
25375do
25376 case $1 in
25377 --*=*)
25378 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25379 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25380 ac_shift=:
25381 ;;
25382 -*)
25383 ac_option=$1
25384 ac_optarg=$2
25385 ac_shift=shift
25386 ;;
25387 *) # This is not an option, so the user has probably given explicit
25388 # arguments.
25389 ac_option=$1
25390 ac_need_defaults=false;;
25391 esac
25392
25393 case $ac_option in
25394 # Handling of the options.
25395_ACEOF
25396cat >>$CONFIG_STATUS <<\_ACEOF
25397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25398 ac_cs_recheck=: ;;
25399 --version | --vers* | -V )
25400 echo "$ac_cs_version"; exit 0 ;;
25401 --he | --h)
25402 # Conflict between --help and --header
25403 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25404Try \`$0 --help' for more information." >&5
25405echo "$as_me: error: ambiguous option: $1
25406Try \`$0 --help' for more information." >&2;}
25407 { (exit 1); exit 1; }; };;
25408 --help | --hel | -h )
25409 echo "$ac_cs_usage"; exit 0 ;;
25410 --debug | --d* | -d )
25411 debug=: ;;
25412 --file | --fil | --fi | --f )
25413 $ac_shift
25414 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25415 ac_need_defaults=false;;
25416 --header | --heade | --head | --hea )
25417 $ac_shift
25418 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25419 ac_need_defaults=false;;
25420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25421 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25422 ac_cs_silent=: ;;
25423
25424 # This is an error.
25425 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25426Try \`$0 --help' for more information." >&5
25427echo "$as_me: error: unrecognized option: $1
25428Try \`$0 --help' for more information." >&2;}
25429 { (exit 1); exit 1; }; } ;;
25430
25431 *) ac_config_targets="$ac_config_targets $1" ;;
25432
25433 esac
25434 shift
25435done
25436
25437ac_configure_extra_args=
25438
25439if $ac_cs_silent; then
25440 exec 6>/dev/null
25441 ac_configure_extra_args="$ac_configure_extra_args --silent"
25442fi
25443
25444_ACEOF
25445cat >>$CONFIG_STATUS <<_ACEOF
25446if \$ac_cs_recheck; then
25447 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25448 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25449fi
25450
25451_ACEOF
25452
25453
25454
25455
25456
25457cat >>$CONFIG_STATUS <<\_ACEOF
25458for ac_config_target in $ac_config_targets
25459do
25460 case "$ac_config_target" in
25461 # Handling of arguments.
25462 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25463 "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
25464 "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
25465 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
25466 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
25467 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
25468 "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
25469 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25471echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25472 { (exit 1); exit 1; }; };;
25473 esac
25474done
25475
25476# If the user did not use the arguments to specify the items to instantiate,
25477# then the envvar interface is used. Set only those that are not.
25478# We use the long form for the default assignment because of an extremely
25479# bizarre bug on SunOS 4.1.3.
25480if $ac_need_defaults; then
25481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25483fi
25484
25485# Have a temporary directory for convenience. Make it in the build tree
25486# simply because there is no reason to put it here, and in addition,
25487# creating and moving files from /tmp can sometimes cause problems.
25488# Create a temporary directory, and hook for its removal unless debugging.
25489$debug ||
25490{
25491 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25492 trap '{ (exit 1); exit 1; }' 1 2 13 15
25493}
25494
25495# Create a (secure) tmp directory for tmp files.
25496
25497{
25498 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25499 test -n "$tmp" && test -d "$tmp"
25500} ||
25501{
25502 tmp=./confstat$$-$RANDOM
25503 (umask 077 && mkdir $tmp)
25504} ||
25505{
25506 echo "$me: cannot create a temporary directory in ." >&2
25507 { (exit 1); exit 1; }
25508}
25509
25510_ACEOF
25511
25512cat >>$CONFIG_STATUS <<_ACEOF
25513
25514#
25515# CONFIG_FILES section.
25516#
25517
25518# No need to generate the scripts if there are no CONFIG_FILES.
25519# This happens for instance when ./config.status config.h
25520if test -n "\$CONFIG_FILES"; then
25521 # Protect against being on the right side of a sed subst in config.status.
25522 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25523 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25524s,@SHELL@,$SHELL,;t t
25525s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25526s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25527s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25528s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25529s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25530s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25531s,@exec_prefix@,$exec_prefix,;t t
25532s,@prefix@,$prefix,;t t
25533s,@program_transform_name@,$program_transform_name,;t t
25534s,@bindir@,$bindir,;t t
25535s,@sbindir@,$sbindir,;t t
25536s,@libexecdir@,$libexecdir,;t t
25537s,@datadir@,$datadir,;t t
25538s,@sysconfdir@,$sysconfdir,;t t
25539s,@sharedstatedir@,$sharedstatedir,;t t
25540s,@localstatedir@,$localstatedir,;t t
25541s,@libdir@,$libdir,;t t
25542s,@includedir@,$includedir,;t t
25543s,@oldincludedir@,$oldincludedir,;t t
25544s,@infodir@,$infodir,;t t
25545s,@mandir@,$mandir,;t t
25546s,@build_alias@,$build_alias,;t t
25547s,@host_alias@,$host_alias,;t t
25548s,@target_alias@,$target_alias,;t t
25549s,@DEFS@,$DEFS,;t t
25550s,@ECHO_C@,$ECHO_C,;t t
25551s,@ECHO_N@,$ECHO_N,;t t
25552s,@ECHO_T@,$ECHO_T,;t t
25553s,@LIBS@,$LIBS,;t t
25554s,@CC@,$CC,;t t
25555s,@CFLAGS@,$CFLAGS,;t t
25556s,@LDFLAGS@,$LDFLAGS,;t t
25557s,@CPPFLAGS@,$CPPFLAGS,;t t
25558s,@ac_ct_CC@,$ac_ct_CC,;t t
25559s,@EXEEXT@,$EXEEXT,;t t
25560s,@OBJEXT@,$OBJEXT,;t t
25561s,@build@,$build,;t t
25562s,@build_cpu@,$build_cpu,;t t
25563s,@build_vendor@,$build_vendor,;t t
25564s,@build_os@,$build_os,;t t
25565s,@host@,$host,;t t
25566s,@host_cpu@,$host_cpu,;t t
25567s,@host_vendor@,$host_vendor,;t t
25568s,@host_os@,$host_os,;t t
25569s,@AWK@,$AWK,;t t
25570s,@CPP@,$CPP,;t t
25571s,@RANLIB@,$RANLIB,;t t
25572s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25573s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25574s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25575s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25576s,@AR@,$AR,;t t
25577s,@CAT@,$CAT,;t t
25578s,@KILL@,$KILL,;t t
25579s,@PERL@,$PERL,;t t
25580s,@SED@,$SED,;t t
25581s,@ENT@,$ENT,;t t
25582s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
25583s,@SH@,$SH,;t t
25584s,@TEST_SHELL@,$TEST_SHELL,;t t
25585s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t
25586s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t
25587s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t
25588s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
25589s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
25590s,@LD@,$LD,;t t
25591s,@EGREP@,$EGREP,;t t
25592s,@LIBWRAP@,$LIBWRAP,;t t
25593s,@LIBEDIT@,$LIBEDIT,;t t
25594s,@LIBPAM@,$LIBPAM,;t t
25595s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
25596s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
25597s,@PROG_LS@,$PROG_LS,;t t
25598s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
25599s,@PROG_ARP@,$PROG_ARP,;t t
25600s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
25601s,@PROG_JSTAT@,$PROG_JSTAT,;t t
25602s,@PROG_PS@,$PROG_PS,;t t
25603s,@PROG_SAR@,$PROG_SAR,;t t
25604s,@PROG_W@,$PROG_W,;t t
25605s,@PROG_WHO@,$PROG_WHO,;t t
25606s,@PROG_LAST@,$PROG_LAST,;t t
25607s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
25608s,@PROG_DF@,$PROG_DF,;t t
25609s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
25610s,@PROG_UPTIME@,$PROG_UPTIME,;t t
25611s,@PROG_IPCS@,$PROG_IPCS,;t t
25612s,@PROG_TAIL@,$PROG_TAIL,;t t
25613s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
25614s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
25615s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
25616s,@xauth_path@,$xauth_path,;t t
25617s,@STRIP_OPT@,$STRIP_OPT,;t t
25618s,@XAUTH_PATH@,$XAUTH_PATH,;t t
25619s,@NROFF@,$NROFF,;t t
25620s,@MANTYPE@,$MANTYPE,;t t
25621s,@mansubdir@,$mansubdir,;t t
25622s,@user_path@,$user_path,;t t
25623s,@piddir@,$piddir,;t t
25624s,@LIBOBJS@,$LIBOBJS,;t t
25625s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25626CEOF
25627
25628_ACEOF
25629
25630 cat >>$CONFIG_STATUS <<\_ACEOF
25631 # Split the substitutions into bite-sized pieces for seds with
25632 # small command number limits, like on Digital OSF/1 and HP-UX.
25633 ac_max_sed_lines=48
25634 ac_sed_frag=1 # Number of current file.
25635 ac_beg=1 # First line for current file.
25636 ac_end=$ac_max_sed_lines # Line after last line for current file.
25637 ac_more_lines=:
25638 ac_sed_cmds=
25639 while $ac_more_lines; do
25640 if test $ac_beg -gt 1; then
25641 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25642 else
25643 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25644 fi
25645 if test ! -s $tmp/subs.frag; then
25646 ac_more_lines=false
25647 else
25648 # The purpose of the label and of the branching condition is to
25649 # speed up the sed processing (if there are no `@' at all, there
25650 # is no need to browse any of the substitutions).
25651 # These are the two extra sed commands mentioned above.
25652 (echo ':t
25653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25654 if test -z "$ac_sed_cmds"; then
25655 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25656 else
25657 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25658 fi
25659 ac_sed_frag=`expr $ac_sed_frag + 1`
25660 ac_beg=$ac_end
25661 ac_end=`expr $ac_end + $ac_max_sed_lines`
25662 fi
25663 done
25664 if test -z "$ac_sed_cmds"; then
25665 ac_sed_cmds=cat
25666 fi
25667fi # test -n "$CONFIG_FILES"
25668
25669_ACEOF
25670cat >>$CONFIG_STATUS <<\_ACEOF
25671for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25673 case $ac_file in
25674 - | *:- | *:-:* ) # input from stdin
25675 cat >$tmp/stdin
25676 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25678 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25680 * ) ac_file_in=$ac_file.in ;;
25681 esac
25682
25683 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25684 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25686 X"$ac_file" : 'X\(//\)[^/]' \| \
25687 X"$ac_file" : 'X\(//\)$' \| \
25688 X"$ac_file" : 'X\(/\)' \| \
25689 . : '\(.\)' 2>/dev/null ||
25690echo X"$ac_file" |
25691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25693 /^X\(\/\/\)$/{ s//\1/; q; }
25694 /^X\(\/\).*/{ s//\1/; q; }
25695 s/.*/./; q'`
25696 { if $as_mkdir_p; then
25697 mkdir -p "$ac_dir"
25698 else
25699 as_dir="$ac_dir"
25700 as_dirs=
25701 while test ! -d "$as_dir"; do
25702 as_dirs="$as_dir $as_dirs"
25703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25705 X"$as_dir" : 'X\(//\)[^/]' \| \
25706 X"$as_dir" : 'X\(//\)$' \| \
25707 X"$as_dir" : 'X\(/\)' \| \
25708 . : '\(.\)' 2>/dev/null ||
25709echo X"$as_dir" |
25710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25712 /^X\(\/\/\)$/{ s//\1/; q; }
25713 /^X\(\/\).*/{ s//\1/; q; }
25714 s/.*/./; q'`
25715 done
25716 test ! -n "$as_dirs" || mkdir $as_dirs
25717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25718echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25719 { (exit 1); exit 1; }; }; }
25720
25721 ac_builddir=.
25722
25723if test "$ac_dir" != .; then
25724 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25725 # A "../" for each directory in $ac_dir_suffix.
25726 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25727else
25728 ac_dir_suffix= ac_top_builddir=
25729fi
25730
25731case $srcdir in
25732 .) # No --srcdir option. We are building in place.
25733 ac_srcdir=.
25734 if test -z "$ac_top_builddir"; then
25735 ac_top_srcdir=.
25736 else
25737 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25738 fi ;;
25739 [\\/]* | ?:[\\/]* ) # Absolute path.
25740 ac_srcdir=$srcdir$ac_dir_suffix;
25741 ac_top_srcdir=$srcdir ;;
25742 *) # Relative path.
25743 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25744 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25745esac
25746
25747# Do not use `cd foo && pwd` to compute absolute paths, because
25748# the directories may not exist.
25749case `pwd` in
25750.) ac_abs_builddir="$ac_dir";;
25751*)
25752 case "$ac_dir" in
25753 .) ac_abs_builddir=`pwd`;;
25754 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25755 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25756 esac;;
25757esac
25758case $ac_abs_builddir in
25759.) ac_abs_top_builddir=${ac_top_builddir}.;;
25760*)
25761 case ${ac_top_builddir}. in
25762 .) ac_abs_top_builddir=$ac_abs_builddir;;
25763 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25764 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25765 esac;;
25766esac
25767case $ac_abs_builddir in
25768.) ac_abs_srcdir=$ac_srcdir;;
25769*)
25770 case $ac_srcdir in
25771 .) ac_abs_srcdir=$ac_abs_builddir;;
25772 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25773 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25774 esac;;
25775esac
25776case $ac_abs_builddir in
25777.) ac_abs_top_srcdir=$ac_top_srcdir;;
25778*)
25779 case $ac_top_srcdir in
25780 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25781 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25782 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25783 esac;;
25784esac
25785
25786
25787 case $INSTALL in
25788 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25789 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25790 esac
25791
25792 if test x"$ac_file" != x-; then
25793 { echo "$as_me:$LINENO: creating $ac_file" >&5
25794echo "$as_me: creating $ac_file" >&6;}
25795 rm -f "$ac_file"
25796 fi
25797 # Let's still pretend it is `configure' which instantiates (i.e., don't
25798 # use $as_me), people would be surprised to read:
25799 # /* config.h. Generated by config.status. */
25800 if test x"$ac_file" = x-; then
25801 configure_input=
25802 else
25803 configure_input="$ac_file. "
25804 fi
25805 configure_input=$configure_input"Generated from `echo $ac_file_in |
25806 sed 's,.*/,,'` by configure."
25807
25808 # First look for the input files in the build tree, otherwise in the
25809 # src tree.
25810 ac_file_inputs=`IFS=:
25811 for f in $ac_file_in; do
25812 case $f in
25813 -) echo $tmp/stdin ;;
25814 [\\/$]*)
25815 # Absolute (can't be DOS-style, as IFS=:)
25816 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25817echo "$as_me: error: cannot find input file: $f" >&2;}
25818 { (exit 1); exit 1; }; }
25819 echo "$f";;
25820 *) # Relative
25821 if test -f "$f"; then
25822 # Build tree
25823 echo "$f"
25824 elif test -f "$srcdir/$f"; then
25825 # Source tree
25826 echo "$srcdir/$f"
25827 else
25828 # /dev/null tree
25829 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25830echo "$as_me: error: cannot find input file: $f" >&2;}
25831 { (exit 1); exit 1; }; }
25832 fi;;
25833 esac
25834 done` || { (exit 1); exit 1; }
25835_ACEOF
25836cat >>$CONFIG_STATUS <<_ACEOF
25837 sed "$ac_vpsub
25838$extrasub
25839_ACEOF
25840cat >>$CONFIG_STATUS <<\_ACEOF
25841:t
25842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25843s,@configure_input@,$configure_input,;t t
25844s,@srcdir@,$ac_srcdir,;t t
25845s,@abs_srcdir@,$ac_abs_srcdir,;t t
25846s,@top_srcdir@,$ac_top_srcdir,;t t
25847s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25848s,@builddir@,$ac_builddir,;t t
25849s,@abs_builddir@,$ac_abs_builddir,;t t
25850s,@top_builddir@,$ac_top_builddir,;t t
25851s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25852s,@INSTALL@,$ac_INSTALL,;t t
25853" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25854 rm -f $tmp/stdin
25855 if test x"$ac_file" != x-; then
25856 mv $tmp/out $ac_file
25857 else
25858 cat $tmp/out
25859 rm -f $tmp/out
25860 fi
25861
25862done
25863_ACEOF
25864cat >>$CONFIG_STATUS <<\_ACEOF
25865
25866#
25867# CONFIG_HEADER section.
25868#
25869
25870# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25871# NAME is the cpp macro being defined and VALUE is the value it is being given.
25872#
25873# ac_d sets the value in "#define NAME VALUE" lines.
25874ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25875ac_dB='[ ].*$,\1#\2'
25876ac_dC=' '
25877ac_dD=',;t'
25878# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25879ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25880ac_uB='$,\1#\2define\3'
25881ac_uC=' '
25882ac_uD=',;t'
25883
25884for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25885 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25886 case $ac_file in
25887 - | *:- | *:-:* ) # input from stdin
25888 cat >$tmp/stdin
25889 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25890 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25891 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25893 * ) ac_file_in=$ac_file.in ;;
25894 esac
25895
25896 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25897echo "$as_me: creating $ac_file" >&6;}
25898
25899 # First look for the input files in the build tree, otherwise in the
25900 # src tree.
25901 ac_file_inputs=`IFS=:
25902 for f in $ac_file_in; do
25903 case $f in
25904 -) echo $tmp/stdin ;;
25905 [\\/$]*)
25906 # Absolute (can't be DOS-style, as IFS=:)
25907 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25908echo "$as_me: error: cannot find input file: $f" >&2;}
25909 { (exit 1); exit 1; }; }
25910 # Do quote $f, to prevent DOS paths from being IFS'd.
25911 echo "$f";;
25912 *) # Relative
25913 if test -f "$f"; then
25914 # Build tree
25915 echo "$f"
25916 elif test -f "$srcdir/$f"; then
25917 # Source tree
25918 echo "$srcdir/$f"
25919 else
25920 # /dev/null tree
25921 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25922echo "$as_me: error: cannot find input file: $f" >&2;}
25923 { (exit 1); exit 1; }; }
25924 fi;;
25925 esac
25926 done` || { (exit 1); exit 1; }
25927 # Remove the trailing spaces.
25928 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25929
25930_ACEOF
25931
25932# Transform confdefs.h into two sed scripts, `conftest.defines' and
25933# `conftest.undefs', that substitutes the proper values into
25934# config.h.in to produce config.h. The first handles `#define'
25935# templates, and the second `#undef' templates.
25936# And first: Protect against being on the right side of a sed subst in
25937# config.status. Protect against being in an unquoted here document
25938# in config.status.
25939rm -f conftest.defines conftest.undefs
25940# Using a here document instead of a string reduces the quoting nightmare.
25941# Putting comments in sed scripts is not portable.
25942#
25943# `end' is used to avoid that the second main sed command (meant for
25944# 0-ary CPP macros) applies to n-ary macro definitions.
25945# See the Autoconf documentation for `clear'.
25946cat >confdef2sed.sed <<\_ACEOF
25947s/[\\&,]/\\&/g
25948s,[\\$`],\\&,g
25949t clear
25950: clear
25951s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25952t end
25953s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25954: end
25955_ACEOF
25956# If some macros were called several times there might be several times
25957# the same #defines, which is useless. Nevertheless, we may not want to
25958# sort them, since we want the *last* AC-DEFINE to be honored.
25959uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25960sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25961rm -f confdef2sed.sed
25962
25963# This sed command replaces #undef with comments. This is necessary, for
25964# example, in the case of _POSIX_SOURCE, which is predefined and required
25965# on some systems where configure will not decide to define it.
25966cat >>conftest.undefs <<\_ACEOF
25967s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25968_ACEOF
25969
25970# Break up conftest.defines because some shells have a limit on the size
25971# of here documents, and old seds have small limits too (100 cmds).
25972echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25973echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25974echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25975echo ' :' >>$CONFIG_STATUS
25976rm -f conftest.tail
25977while grep . conftest.defines >/dev/null
25978do
25979 # Write a limited-size here document to $tmp/defines.sed.
25980 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25981 # Speed up: don't consider the non `#define' lines.
25982 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25983 # Work around the forget-to-reset-the-flag bug.
25984 echo 't clr' >>$CONFIG_STATUS
25985 echo ': clr' >>$CONFIG_STATUS
25986 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25987 echo 'CEOF
25988 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25989 rm -f $tmp/in
25990 mv $tmp/out $tmp/in
25991' >>$CONFIG_STATUS
25992 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25993 rm -f conftest.defines
25994 mv conftest.tail conftest.defines
25995done
25996rm -f conftest.defines
25997echo ' fi # grep' >>$CONFIG_STATUS
25998echo >>$CONFIG_STATUS
25999
26000# Break up conftest.undefs because some shells have a limit on the size
26001# of here documents, and old seds have small limits too (100 cmds).
26002echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26003rm -f conftest.tail
26004while grep . conftest.undefs >/dev/null
26005do
26006 # Write a limited-size here document to $tmp/undefs.sed.
26007 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26008 # Speed up: don't consider the non `#undef'
26009 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26010 # Work around the forget-to-reset-the-flag bug.
26011 echo 't clr' >>$CONFIG_STATUS
26012 echo ': clr' >>$CONFIG_STATUS
26013 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26014 echo 'CEOF
26015 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26016 rm -f $tmp/in
26017 mv $tmp/out $tmp/in
26018' >>$CONFIG_STATUS
26019 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26020 rm -f conftest.undefs
26021 mv conftest.tail conftest.undefs
26022done
26023rm -f conftest.undefs
26024
26025cat >>$CONFIG_STATUS <<\_ACEOF
26026 # Let's still pretend it is `configure' which instantiates (i.e., don't
26027 # use $as_me), people would be surprised to read:
26028 # /* config.h. Generated by config.status. */
26029 if test x"$ac_file" = x-; then
26030 echo "/* Generated by configure. */" >$tmp/config.h
26031 else
26032 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26033 fi
26034 cat $tmp/in >>$tmp/config.h
26035 rm -f $tmp/in
26036 if test x"$ac_file" != x-; then
26037 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26038 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26039echo "$as_me: $ac_file is unchanged" >&6;}
26040 else
26041 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26042$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26043 X"$ac_file" : 'X\(//\)[^/]' \| \
26044 X"$ac_file" : 'X\(//\)$' \| \
26045 X"$ac_file" : 'X\(/\)' \| \
26046 . : '\(.\)' 2>/dev/null ||
26047echo X"$ac_file" |
26048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26050 /^X\(\/\/\)$/{ s//\1/; q; }
26051 /^X\(\/\).*/{ s//\1/; q; }
26052 s/.*/./; q'`
26053 { if $as_mkdir_p; then
26054 mkdir -p "$ac_dir"
26055 else
26056 as_dir="$ac_dir"
26057 as_dirs=
26058 while test ! -d "$as_dir"; do
26059 as_dirs="$as_dir $as_dirs"
26060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26062 X"$as_dir" : 'X\(//\)[^/]' \| \
26063 X"$as_dir" : 'X\(//\)$' \| \
26064 X"$as_dir" : 'X\(/\)' \| \
26065 . : '\(.\)' 2>/dev/null ||
26066echo X"$as_dir" |
26067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26069 /^X\(\/\/\)$/{ s//\1/; q; }
26070 /^X\(\/\).*/{ s//\1/; q; }
26071 s/.*/./; q'`
26072 done
26073 test ! -n "$as_dirs" || mkdir $as_dirs
26074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26075echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26076 { (exit 1); exit 1; }; }; }
26077
26078 rm -f $ac_file
26079 mv $tmp/config.h $ac_file
26080 fi
26081 else
26082 cat $tmp/config.h
26083 rm -f $tmp/config.h
26084 fi
26085done
26086_ACEOF
26087
26088cat >>$CONFIG_STATUS <<\_ACEOF
26089
26090{ (exit 0); exit 0; }
26091_ACEOF
26092chmod +x $CONFIG_STATUS
26093ac_clean_files=$ac_clean_files_save
26094
26095
26096# configure is writing to config.log, and then calls config.status.
26097# config.status does its own redirection, appending to config.log.
26098# Unfortunately, on DOS this fails, as config.log is still kept open
26099# by configure, so config.status won't be able to write to it; its
26100# output is simply discarded. So we exec the FD to /dev/null,
26101# effectively closing config.log, so it can be properly (re)opened and
26102# appended to by config.status. When coming back to configure, we
26103# need to make the FD available again.
26104if test "$no_create" != yes; then
26105 ac_cs_success=:
26106 ac_config_status_args=
26107 test "$silent" = yes &&
26108 ac_config_status_args="$ac_config_status_args --quiet"
26109 exec 5>/dev/null
26110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26111 exec 5>>config.log
26112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26113 # would make configure fail if this is the last instruction.
26114 $ac_cs_success || { (exit 1); exit 1; }
26115fi
26116
26117
26118# Print summary of options
26119
26120# Someone please show me a better way :)
26121A=`eval echo ${prefix}` ; A=`eval echo ${A}`
26122B=`eval echo ${bindir}` ; B=`eval echo ${B}`
26123C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
26124D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
26125E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
26126F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
26127G=`eval echo ${piddir}` ; G=`eval echo ${G}`
26128H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
26129I=`eval echo ${user_path}` ; I=`eval echo ${I}`
26130J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
26131
26132echo ""
26133echo "OpenSSH has been configured with the following options:"
26134echo " User binaries: $B"
26135echo " System binaries: $C"
26136echo " Configuration files: $D"
26137echo " Askpass program: $E"
26138echo " Manual pages: $F"
26139echo " PID file: $G"
26140echo " Privilege separation chroot path: $H"
26141if test "x$external_path_file" = "x/etc/login.conf" ; then
26142echo " At runtime, sshd will use the path defined in $external_path_file"
26143echo " Make sure the path to scp is present, otherwise scp will not work"
26144else
26145echo " sshd default user PATH: $I"
26146 if test ! -z "$external_path_file"; then
26147echo " (If PATH is set in $external_path_file it will be used instead. If"
26148echo " used, ensure the path to scp is present, otherwise scp will not work.)"
26149 fi
26150fi
26151if test ! -z "$superuser_path" ; then
26152echo " sshd superuser user PATH: $J"
26153fi
26154echo " Manpage format: $MANTYPE"
26155echo " PAM support: $PAM_MSG"
26156echo " KerberosV support: $KRB5_MSG"
26157echo " Smartcard support: $SCARD_MSG"
26158echo " S/KEY support: $SKEY_MSG"
26159echo " TCP Wrappers support: $TCPW_MSG"
26160echo " MD5 password support: $MD5_MSG"
26161echo " libedit support: $LIBEDIT_MSG"
26162echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
26163echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
26164echo " BSD Auth support: $BSD_AUTH_MSG"
26165echo " Random number source: $RAND_MSG"
26166if test ! -z "$USE_RAND_HELPER" ; then
26167echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
26168fi
26169
26170echo ""
26171
26172echo " Host: ${host}"
26173echo " Compiler: ${CC}"
26174echo " Compiler flags: ${CFLAGS}"
26175echo "Preprocessor flags: ${CPPFLAGS}"
26176echo " Linker flags: ${LDFLAGS}"
26177echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
26178
26179echo ""
26180
26181if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
26182 echo "SVR4 style packages are supported with \"make package\""
26183 echo ""
26184fi
26185
26186if test "x$PAM_MSG" = "xyes" ; then
26187 echo "PAM is enabled. You may need to install a PAM control file "
26188 echo "for sshd, otherwise password authentication may fail. "
26189 echo "Example PAM control files can be found in the contrib/ "
26190 echo "subdirectory"
26191 echo ""
26192fi
26193
26194if test ! -z "$RAND_HELPER_CMDHASH" ; then
26195 echo "WARNING: you are using the builtin random number collection "
26196 echo "service. Please read WARNING.RNG and request that your OS "
26197 echo "vendor includes kernel-based random number collection in "
26198 echo "future versions of your OS."
26199 echo ""
26200fi
26201
26202if test ! -z "$NO_PEERCHECK" ; then
26203 echo "WARNING: the operating system that you are using does not "
26204 echo "appear to support either the getpeereid() API nor the "
26205 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
26206 echo "enforce security checks to prevent unauthorised connections to "
26207 echo "ssh-agent. Their absence increases the risk that a malicious "
26208 echo "user can connect to your agent. "
26209 echo ""
26210fi
26211
26212if test "$AUDIT_MODULE" = "bsm" ; then
26213 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
26214 echo "See the Solaris section in README.platform for details."
26215fi