summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-01-04 12:58:23 +0000
committerColin Watson <cjwatson@debian.org>2005-01-04 12:58:23 +0000
commitebd2ce335af5861020c79fddb1ae35c03bf036cf (patch)
treeec008b93c62e3241ab611d8c949ebc92905c66b4 /configure
parente17cc75fe35f62ba52928b5889b5e7aadb62bedb (diff)
parent16f1d21ea191deaaeeba719d01c0ad82aa044653 (diff)
Import OpenSSH 3.9p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25166
1 files changed, 25166 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..0c85e42ad
--- /dev/null
+++ b/configure
@@ -0,0 +1,25166 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
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=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
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 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 this package 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
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-largefile omit support for large files
848 --disable-strip Disable calling strip(1) on install
849 --disable-etc-default-login Disable using PATH from /etc/default/login no
850 --disable-lastlog disable use of lastlog even if detected no
851 --disable-utmp disable use of utmp even if detected no
852 --disable-utmpx disable use of utmpx even if detected no
853 --disable-wtmp disable use of wtmp even if detected no
854 --disable-wtmpx disable use of wtmpx even if detected no
855 --disable-libutil disable use of libutil (login() etc.) no
856 --disable-pututline disable use of pututline() etc. (uwtmp) no
857 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
858
859Optional Packages:
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --without-rpath Disable auto-added -R linker paths
863 --with-osfsia Enable Digital Unix SIA
864 --with-cflags Specify additional flags to pass to compiler
865 --with-cppflags Specify additional flags to pass to preprocessor
866 --with-ldflags Specify additional flags to pass to linker
867 --with-libs Specify additional libraries to link with
868 --with-zlib=PATH Use zlib in PATH
869 --without-zlib-version-check Disable zlib version check
870 --with-skey[=PATH] Enable S/Key support
871 (optionally in PATH)
872 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
873 (optionally in PATH)
874 --with-pam Enable PAM support
875 --with-ssl-dir=PATH Specify path to OpenSSL installation
876 --with-rand-helper Use subprocess to gather strong randomness
877 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
878 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
879 --with-entropy-timeout Specify entropy gathering command timeout (msec)
880 --with-privsep-user=user Specify non-privileged user for privilege separation
881 --with-sectok Enable smartcard support using libsectok
882 --with-opensc=PFX Enable smartcard support using OpenSC
883 --with-kerberos5=PATH Enable Kerberos 5 support
884 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
885 --with-xauth=PATH Specify path to xauth program
886 --with-mantype=man|cat|doc Set man page type
887 --with-md5-passwords Enable use of MD5 passwords
888 --without-shadow Disable shadow password support
889 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
890 --with-default-path= Specify default \$PATH environment for server
891 --with-superuser-path= Specify different path for super-user
892 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
893 --with-bsd-auth Enable BSD auth support
894 --with-pid-dir=PATH Specify location of ssh.pid file
895 --with-lastlog=FILE|DIR specify lastlog location common locations
896
897Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
904 CPP C preprocessor
905
906Use these variables to override the choices made by `configure' or to help
907it to find libraries and programs with nonstandard names/locations.
908
909_ACEOF
910fi
911
912if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
914 ac_popdir=`pwd`
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
917 ac_builddir=.
918
919if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923else
924 ac_dir_suffix= ac_top_builddir=
925fi
926
927case $srcdir in
928 .) # No --srcdir option. We are building in place.
929 ac_srcdir=.
930 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=.
932 else
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 fi ;;
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
938 *) # Relative path.
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941esac
942
943# Do not use `cd foo && pwd` to compute absolute paths, because
944# the directories may not exist.
945case `pwd` in
946.) ac_abs_builddir="$ac_dir";;
947*)
948 case "$ac_dir" in
949 .) ac_abs_builddir=`pwd`;;
950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_builddir=${ac_top_builddir}.;;
956*)
957 case ${ac_top_builddir}. in
958 .) ac_abs_top_builddir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_srcdir=$ac_srcdir;;
965*)
966 case $ac_srcdir in
967 .) ac_abs_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 esac;;
971esac
972case $ac_abs_builddir in
973.) ac_abs_top_srcdir=$ac_top_srcdir;;
974*)
975 case $ac_top_srcdir in
976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 esac;;
980esac
981
982 cd $ac_dir
983 # Check for guested configure; otherwise get Cygnus style configure.
984 if test -f $ac_srcdir/configure.gnu; then
985 echo
986 $SHELL $ac_srcdir/configure.gnu --help=recursive
987 elif test -f $ac_srcdir/configure; then
988 echo
989 $SHELL $ac_srcdir/configure --help=recursive
990 elif test -f $ac_srcdir/configure.ac ||
991 test -f $ac_srcdir/configure.in; then
992 echo
993 $ac_configure --help
994 else
995 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
996 fi
997 cd $ac_popdir
998 done
999fi
1000
1001test -n "$ac_init_help" && exit 0
1002if $ac_init_version; then
1003 cat <<\_ACEOF
1004
1005Copyright (C) 2003 Free Software Foundation, Inc.
1006This configure script is free software; the Free Software Foundation
1007gives unlimited permission to copy, distribute and modify it.
1008_ACEOF
1009 exit 0
1010fi
1011exec 5>config.log
1012cat >&5 <<_ACEOF
1013This file contains any messages produced by compilers while
1014running configure, to aid debugging if configure makes a mistake.
1015
1016It was created by $as_me, which was
1017generated by GNU Autoconf 2.59. Invocation command line was
1018
1019 $ $0 $@
1020
1021_ACEOF
1022{
1023cat <<_ASUNAME
1024## --------- ##
1025## Platform. ##
1026## --------- ##
1027
1028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033
1034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036
1037/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1038/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1040hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1041/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1042/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1043/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044
1045_ASUNAME
1046
1047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048for as_dir in $PATH
1049do
1050 IFS=$as_save_IFS
1051 test -z "$as_dir" && as_dir=.
1052 echo "PATH: $as_dir"
1053done
1054
1055} >&5
1056
1057cat >&5 <<_ACEOF
1058
1059
1060## ----------- ##
1061## Core tests. ##
1062## ----------- ##
1063
1064_ACEOF
1065
1066
1067# Keep a trace of the command line.
1068# Strip out --no-create and --no-recursion so they do not pile up.
1069# Strip out --silent because we don't want to record it for future runs.
1070# Also quote any args containing shell meta-characters.
1071# Make two passes to allow for proper duplicate-argument suppression.
1072ac_configure_args=
1073ac_configure_args0=
1074ac_configure_args1=
1075ac_sep=
1076ac_must_keep_next=false
1077for ac_pass in 1 2
1078do
1079 for ac_arg
1080 do
1081 case $ac_arg in
1082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 continue ;;
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 esac
1089 case $ac_pass in
1090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 2)
1092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093 if test $ac_must_keep_next = true; then
1094 ac_must_keep_next=false # Got value, back to normal.
1095 else
1096 case $ac_arg in
1097 *=* | --config-cache | -C | -disable-* | --disable-* \
1098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100 | -with-* | --with-* | -without-* | --without-* | --x)
1101 case "$ac_configure_args0 " in
1102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 esac
1104 ;;
1105 -* ) ac_must_keep_next=true ;;
1106 esac
1107 fi
1108 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109 # Get rid of the leading space.
1110 ac_sep=" "
1111 ;;
1112 esac
1113 done
1114done
1115$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117
1118# When interrupted or exit'd, cleanup temporary files, and complete
1119# config.log. We remove comments because anyway the quotes in there
1120# would cause problems or look ugly.
1121# WARNING: Be sure not to use single quotes in there, as some shells,
1122# such as our DU 5.0 friend, will then `close' the trap.
1123trap 'exit_status=$?
1124 # Save into config.log some information that might help in debugging.
1125 {
1126 echo
1127
1128 cat <<\_ASBOX
1129## ---------------- ##
1130## Cache variables. ##
1131## ---------------- ##
1132_ASBOX
1133 echo
1134 # The following way of writing the cache mishandles newlines in values,
1135{
1136 (set) 2>&1 |
1137 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 *ac_space=\ *)
1139 sed -n \
1140 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 ;;
1143 *)
1144 sed -n \
1145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ;;
1147 esac;
1148}
1149 echo
1150
1151 cat <<\_ASBOX
1152## ----------------- ##
1153## Output variables. ##
1154## ----------------- ##
1155_ASBOX
1156 echo
1157 for ac_var in $ac_subst_vars
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163
1164 if test -n "$ac_subst_files"; then
1165 cat <<\_ASBOX
1166## ------------- ##
1167## Output files. ##
1168## ------------- ##
1169_ASBOX
1170 echo
1171 for ac_var in $ac_subst_files
1172 do
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
1175 done | sort
1176 echo
1177 fi
1178
1179 if test -s confdefs.h; then
1180 cat <<\_ASBOX
1181## ----------- ##
1182## confdefs.h. ##
1183## ----------- ##
1184_ASBOX
1185 echo
1186 sed "/^$/d" confdefs.h | sort
1187 echo
1188 fi
1189 test "$ac_signal" != 0 &&
1190 echo "$as_me: caught signal $ac_signal"
1191 echo "$as_me: exit $exit_status"
1192 } >&5
1193 rm -f core *.core &&
1194 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195 exit $exit_status
1196 ' 0
1197for ac_signal in 1 2 13 15; do
1198 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199done
1200ac_signal=0
1201
1202# confdefs.h avoids OS command line length limits that DEFS can exceed.
1203rm -rf conftest* confdefs.h
1204# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205echo >confdefs.h
1206
1207# Predefined preprocessor variables.
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_NAME "$PACKAGE_NAME"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_VERSION "$PACKAGE_VERSION"
1221_ACEOF
1222
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_STRING "$PACKAGE_STRING"
1226_ACEOF
1227
1228
1229cat >>confdefs.h <<_ACEOF
1230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231_ACEOF
1232
1233
1234# Let the site file select an alternate cache file if it wants to.
1235# Prefer explicitly selected file to automatically selected ones.
1236if test -z "$CONFIG_SITE"; then
1237 if test "x$prefix" != xNONE; then
1238 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 else
1240 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 fi
1242fi
1243for ac_site_file in $CONFIG_SITE; do
1244 if test -r "$ac_site_file"; then
1245 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246echo "$as_me: loading site script $ac_site_file" >&6;}
1247 sed 's/^/| /' "$ac_site_file" >&5
1248 . "$ac_site_file"
1249 fi
1250done
1251
1252if test -r "$cache_file"; then
1253 # Some versions of bash will fail to source /dev/null (special
1254 # files actually), so we avoid doing that.
1255 if test -f "$cache_file"; then
1256 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257echo "$as_me: loading cache $cache_file" >&6;}
1258 case $cache_file in
1259 [\\/]* | ?:[\\/]* ) . $cache_file;;
1260 *) . ./$cache_file;;
1261 esac
1262 fi
1263else
1264 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265echo "$as_me: creating cache $cache_file" >&6;}
1266 >$cache_file
1267fi
1268
1269# Check that the precious variables saved in the cache have kept the same
1270# value.
1271ac_cache_corrupted=false
1272for ac_var in `(set) 2>&1 |
1273 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275 eval ac_new_set=\$ac_env_${ac_var}_set
1276 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277 eval ac_new_val="\$ac_env_${ac_var}_value"
1278 case $ac_old_set,$ac_new_set in
1279 set,)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,set)
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1287 ,);;
1288 *)
1289 if test "x$ac_old_val" != "x$ac_new_val"; then
1290 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1293echo "$as_me: former value: $ac_old_val" >&2;}
1294 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1295echo "$as_me: current value: $ac_new_val" >&2;}
1296 ac_cache_corrupted=:
1297 fi;;
1298 esac
1299 # Pass precious variables to config.status.
1300 if test "$ac_new_set" = set; then
1301 case $ac_new_val in
1302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1304 *) ac_arg=$ac_var=$ac_new_val ;;
1305 esac
1306 case " $ac_configure_args " in
1307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1308 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 esac
1310 fi
1311done
1312if $ac_cache_corrupted; then
1313 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317 { (exit 1); exit 1; }; }
1318fi
1319
1320ac_ext=c
1321ac_cpp='$CPP $CPPFLAGS'
1322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 ac_config_headers="$ac_config_headers config.h"
1347
1348ac_ext=c
1349ac_cpp='$CPP $CPPFLAGS'
1350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353if test -n "$ac_tool_prefix"; then
1354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1355set dummy ${ac_tool_prefix}gcc; ac_word=$2
1356echo "$as_me:$LINENO: checking for $ac_word" >&5
1357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358if test "${ac_cv_prog_CC+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 if test -n "$CC"; then
1362 ac_cv_prog_CC="$CC" # Let the user override the test.
1363else
1364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365for as_dir in $PATH
1366do
1367 IFS=$as_save_IFS
1368 test -z "$as_dir" && as_dir=.
1369 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1373 break 2
1374 fi
1375done
1376done
1377
1378fi
1379fi
1380CC=$ac_cv_prog_CC
1381if test -n "$CC"; then
1382 echo "$as_me:$LINENO: result: $CC" >&5
1383echo "${ECHO_T}$CC" >&6
1384else
1385 echo "$as_me:$LINENO: result: no" >&5
1386echo "${ECHO_T}no" >&6
1387fi
1388
1389fi
1390if test -z "$ac_cv_prog_CC"; then
1391 ac_ct_CC=$CC
1392 # Extract the first word of "gcc", so it can be a program name with args.
1393set dummy gcc; ac_word=$2
1394echo "$as_me:$LINENO: checking for $ac_word" >&5
1395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398else
1399 if test -n "$ac_ct_CC"; then
1400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1401else
1402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403for as_dir in $PATH
1404do
1405 IFS=$as_save_IFS
1406 test -z "$as_dir" && as_dir=.
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409 ac_cv_prog_ac_ct_CC="gcc"
1410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411 break 2
1412 fi
1413done
1414done
1415
1416fi
1417fi
1418ac_ct_CC=$ac_cv_prog_ac_ct_CC
1419if test -n "$ac_ct_CC"; then
1420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1421echo "${ECHO_T}$ac_ct_CC" >&6
1422else
1423 echo "$as_me:$LINENO: result: no" >&5
1424echo "${ECHO_T}no" >&6
1425fi
1426
1427 CC=$ac_ct_CC
1428else
1429 CC="$ac_cv_prog_CC"
1430fi
1431
1432if test -z "$CC"; then
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1435set dummy ${ac_tool_prefix}cc; ac_word=$2
1436echo "$as_me:$LINENO: checking for $ac_word" >&5
1437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443else
1444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445for as_dir in $PATH
1446do
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}cc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1454 fi
1455done
1456done
1457
1458fi
1459fi
1460CC=$ac_cv_prog_CC
1461if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463echo "${ECHO_T}$CC" >&6
1464else
1465 echo "$as_me:$LINENO: result: no" >&5
1466echo "${ECHO_T}no" >&6
1467fi
1468
1469fi
1470if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "cc", so it can be a program name with args.
1473set dummy cc; ac_word=$2
1474echo "$as_me:$LINENO: checking for $ac_word" >&5
1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481else
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="cc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493done
1494done
1495
1496fi
1497fi
1498ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501echo "${ECHO_T}$ac_ct_CC" >&6
1502else
1503 echo "$as_me:$LINENO: result: no" >&5
1504echo "${ECHO_T}no" >&6
1505fi
1506
1507 CC=$ac_ct_CC
1508else
1509 CC="$ac_cv_prog_CC"
1510fi
1511
1512fi
1513if test -z "$CC"; then
1514 # Extract the first word of "cc", so it can be a program name with args.
1515set dummy cc; ac_word=$2
1516echo "$as_me:$LINENO: checking for $ac_word" >&5
1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523else
1524 ac_prog_rejected=no
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1533 ac_prog_rejected=yes
1534 continue
1535 fi
1536 ac_cv_prog_CC="cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543if test $ac_prog_rejected = yes; then
1544 # We found a bogon in the path, so make sure we never use it.
1545 set dummy $ac_cv_prog_CC
1546 shift
1547 if test $# != 0; then
1548 # We chose a different compiler from the bogus one.
1549 # However, it has the same basename, so the bogon will be chosen
1550 # first if we set CC to just the basename; use the full file name.
1551 shift
1552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1553 fi
1554fi
1555fi
1556fi
1557CC=$ac_cv_prog_CC
1558if test -n "$CC"; then
1559 echo "$as_me:$LINENO: result: $CC" >&5
1560echo "${ECHO_T}$CC" >&6
1561else
1562 echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566fi
1567if test -z "$CC"; then
1568 if test -n "$ac_tool_prefix"; then
1569 for ac_prog in cl
1570 do
1571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1572set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1573echo "$as_me:$LINENO: checking for $ac_word" >&5
1574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575if test "${ac_cv_prog_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 if test -n "$CC"; then
1579 ac_cv_prog_CC="$CC" # Let the user override the test.
1580else
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1591 fi
1592done
1593done
1594
1595fi
1596fi
1597CC=$ac_cv_prog_CC
1598if test -n "$CC"; then
1599 echo "$as_me:$LINENO: result: $CC" >&5
1600echo "${ECHO_T}$CC" >&6
1601else
1602 echo "$as_me:$LINENO: result: no" >&5
1603echo "${ECHO_T}no" >&6
1604fi
1605
1606 test -n "$CC" && break
1607 done
1608fi
1609if test -z "$CC"; then
1610 ac_ct_CC=$CC
1611 for ac_prog in cl
1612do
1613 # Extract the first word of "$ac_prog", so it can be a program name with args.
1614set dummy $ac_prog; ac_word=$2
1615echo "$as_me:$LINENO: checking for $ac_word" >&5
1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619else
1620 if test -n "$ac_ct_CC"; then
1621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622else
1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624for as_dir in $PATH
1625do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_ac_ct_CC="$ac_prog"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1633 fi
1634done
1635done
1636
1637fi
1638fi
1639ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640if test -n "$ac_ct_CC"; then
1641 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642echo "${ECHO_T}$ac_ct_CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648 test -n "$ac_ct_CC" && break
1649done
1650
1651 CC=$ac_ct_CC
1652fi
1653
1654fi
1655
1656
1657test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1658See \`config.log' for more details." >&5
1659echo "$as_me: error: no acceptable C compiler found in \$PATH
1660See \`config.log' for more details." >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663# Provide some information about the compiler.
1664echo "$as_me:$LINENO:" \
1665 "checking for C compiler version" >&5
1666ac_compiler=`set X $ac_compile; echo $2`
1667{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1668 (eval $ac_compiler --version </dev/null >&5) 2>&5
1669 ac_status=$?
1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671 (exit $ac_status); }
1672{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1673 (eval $ac_compiler -v </dev/null >&5) 2>&5
1674 ac_status=$?
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }
1677{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1678 (eval $ac_compiler -V </dev/null >&5) 2>&5
1679 ac_status=$?
1680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681 (exit $ac_status); }
1682
1683cat >conftest.$ac_ext <<_ACEOF
1684/* confdefs.h. */
1685_ACEOF
1686cat confdefs.h >>conftest.$ac_ext
1687cat >>conftest.$ac_ext <<_ACEOF
1688/* end confdefs.h. */
1689
1690int
1691main ()
1692{
1693
1694 ;
1695 return 0;
1696}
1697_ACEOF
1698ac_clean_files_save=$ac_clean_files
1699ac_clean_files="$ac_clean_files a.out a.exe b.out"
1700# Try to create an executable without -o first, disregard a.out.
1701# It will help us diagnose broken compilers, and finding out an intuition
1702# of exeext.
1703echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1704echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1705ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1706if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1707 (eval $ac_link_default) 2>&5
1708 ac_status=$?
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }; then
1711 # Find the output, starting from the most likely. This scheme is
1712# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1713# resort.
1714
1715# Be careful to initialize this variable, since it used to be cached.
1716# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1717ac_cv_exeext=
1718# b.out is created by i960 compilers.
1719for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1720do
1721 test -f "$ac_file" || continue
1722 case $ac_file in
1723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1724 ;;
1725 conftest.$ac_ext )
1726 # This is the source file.
1727 ;;
1728 [ab].out )
1729 # We found the default executable, but exeext='' is most
1730 # certainly right.
1731 break;;
1732 *.* )
1733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1734 # FIXME: I believe we export ac_cv_exeext for Libtool,
1735 # but it would be cool to find out if it's true. Does anybody
1736 # maintain Libtool? --akim.
1737 export ac_cv_exeext
1738 break;;
1739 * )
1740 break;;
1741 esac
1742done
1743else
1744 echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1748See \`config.log' for more details." >&5
1749echo "$as_me: error: C compiler cannot create executables
1750See \`config.log' for more details." >&2;}
1751 { (exit 77); exit 77; }; }
1752fi
1753
1754ac_exeext=$ac_cv_exeext
1755echo "$as_me:$LINENO: result: $ac_file" >&5
1756echo "${ECHO_T}$ac_file" >&6
1757
1758# Check the compiler produces executables we can run. If not, either
1759# the compiler is broken, or we cross compile.
1760echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1761echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1762# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1763# If not cross compiling, check that we can run a simple program.
1764if test "$cross_compiling" != yes; then
1765 if { ac_try='./$ac_file'
1766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1767 (eval $ac_try) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }; }; then
1771 cross_compiling=no
1772 else
1773 if test "$cross_compiling" = maybe; then
1774 cross_compiling=yes
1775 else
1776 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1777If you meant to cross compile, use \`--host'.
1778See \`config.log' for more details." >&5
1779echo "$as_me: error: cannot run C compiled programs.
1780If you meant to cross compile, use \`--host'.
1781See \`config.log' for more details." >&2;}
1782 { (exit 1); exit 1; }; }
1783 fi
1784 fi
1785fi
1786echo "$as_me:$LINENO: result: yes" >&5
1787echo "${ECHO_T}yes" >&6
1788
1789rm -f a.out a.exe conftest$ac_cv_exeext b.out
1790ac_clean_files=$ac_clean_files_save
1791# Check the compiler produces executables we can run. If not, either
1792# the compiler is broken, or we cross compile.
1793echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1794echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795echo "$as_me:$LINENO: result: $cross_compiling" >&5
1796echo "${ECHO_T}$cross_compiling" >&6
1797
1798echo "$as_me:$LINENO: checking for suffix of executables" >&5
1799echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1801 (eval $ac_link) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1807# work properly (i.e., refer to `conftest.exe'), while it won't with
1808# `rm'.
1809for ac_file in conftest.exe conftest conftest.*; do
1810 test -f "$ac_file" || continue
1811 case $ac_file in
1812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 export ac_cv_exeext
1815 break;;
1816 * ) break;;
1817 esac
1818done
1819else
1820 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1821See \`config.log' for more details." >&5
1822echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1823See \`config.log' for more details." >&2;}
1824 { (exit 1); exit 1; }; }
1825fi
1826
1827rm -f conftest$ac_cv_exeext
1828echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1829echo "${ECHO_T}$ac_cv_exeext" >&6
1830
1831rm -f conftest.$ac_ext
1832EXEEXT=$ac_cv_exeext
1833ac_exeext=$EXEEXT
1834echo "$as_me:$LINENO: checking for suffix of object files" >&5
1835echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1836if test "${ac_cv_objext+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 cat >conftest.$ac_ext <<_ACEOF
1840/* confdefs.h. */
1841_ACEOF
1842cat confdefs.h >>conftest.$ac_ext
1843cat >>conftest.$ac_ext <<_ACEOF
1844/* end confdefs.h. */
1845
1846int
1847main ()
1848{
1849
1850 ;
1851 return 0;
1852}
1853_ACEOF
1854rm -f conftest.o conftest.obj
1855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1861 case $ac_file in
1862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1864 break;;
1865 esac
1866done
1867else
1868 echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1872See \`config.log' for more details." >&5
1873echo "$as_me: error: cannot compute suffix of object files: cannot compile
1874See \`config.log' for more details." >&2;}
1875 { (exit 1); exit 1; }; }
1876fi
1877
1878rm -f conftest.$ac_cv_objext conftest.$ac_ext
1879fi
1880echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1881echo "${ECHO_T}$ac_cv_objext" >&6
1882OBJEXT=$ac_cv_objext
1883ac_objext=$OBJEXT
1884echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1885echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1886if test "${ac_cv_c_compiler_gnu+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889 cat >conftest.$ac_ext <<_ACEOF
1890/* confdefs.h. */
1891_ACEOF
1892cat confdefs.h >>conftest.$ac_ext
1893cat >>conftest.$ac_ext <<_ACEOF
1894/* end confdefs.h. */
1895
1896int
1897main ()
1898{
1899#ifndef __GNUC__
1900 choke me
1901#endif
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907rm -f conftest.$ac_objext
1908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>conftest.er1
1910 ac_status=$?
1911 grep -v '^ *+' conftest.er1 >conftest.err
1912 rm -f conftest.er1
1913 cat conftest.err >&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -z "$ac_c_werror_flag"
1917 || test ! -s conftest.err'
1918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919 (eval $ac_try) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; } &&
1923 { ac_try='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925 (eval $ac_try) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1929 ac_compiler_gnu=yes
1930else
1931 echo "$as_me: failed program was:" >&5
1932sed 's/^/| /' conftest.$ac_ext >&5
1933
1934ac_compiler_gnu=no
1935fi
1936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1937ac_cv_c_compiler_gnu=$ac_compiler_gnu
1938
1939fi
1940echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1941echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1942GCC=`test $ac_compiler_gnu = yes && echo yes`
1943ac_test_CFLAGS=${CFLAGS+set}
1944ac_save_CFLAGS=$CFLAGS
1945CFLAGS="-g"
1946echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1947echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1948if test "${ac_cv_prog_cc_g+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951 cat >conftest.$ac_ext <<_ACEOF
1952/* confdefs.h. */
1953_ACEOF
1954cat confdefs.h >>conftest.$ac_ext
1955cat >>conftest.$ac_ext <<_ACEOF
1956/* end confdefs.h. */
1957
1958int
1959main ()
1960{
1961
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966rm -f conftest.$ac_objext
1967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1969 ac_status=$?
1970 grep -v '^ *+' conftest.er1 >conftest.err
1971 rm -f conftest.er1
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978 (eval $ac_try) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 ac_cv_prog_cc_g=yes
1989else
1990 echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993ac_cv_prog_cc_g=no
1994fi
1995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1998echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1999if test "$ac_test_CFLAGS" = set; then
2000 CFLAGS=$ac_save_CFLAGS
2001elif test $ac_cv_prog_cc_g = yes; then
2002 if test "$GCC" = yes; then
2003 CFLAGS="-g -O2"
2004 else
2005 CFLAGS="-g"
2006 fi
2007else
2008 if test "$GCC" = yes; then
2009 CFLAGS="-O2"
2010 else
2011 CFLAGS=
2012 fi
2013fi
2014echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2015echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2016if test "${ac_cv_prog_cc_stdc+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018else
2019 ac_cv_prog_cc_stdc=no
2020ac_save_CC=$CC
2021cat >conftest.$ac_ext <<_ACEOF
2022/* confdefs.h. */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h. */
2027#include <stdarg.h>
2028#include <stdio.h>
2029#include <sys/types.h>
2030#include <sys/stat.h>
2031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2032struct buf { int x; };
2033FILE * (*rcsopen) (struct buf *, struct stat *, int);
2034static char *e (p, i)
2035 char **p;
2036 int i;
2037{
2038 return p[i];
2039}
2040static char *f (char * (*g) (char **, int), char **p, ...)
2041{
2042 char *s;
2043 va_list v;
2044 va_start (v,p);
2045 s = g (p, va_arg (v,int));
2046 va_end (v);
2047 return s;
2048}
2049
2050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2051 function prototypes and stuff, but not '\xHH' hex character constants.
2052 These don't provoke an error unfortunately, instead are silently treated
2053 as 'x'. The following induces an error, until -std1 is added to get
2054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2055 array size at least. It's necessary to write '\x00'==0 to get something
2056 that's true only with -std1. */
2057int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2058
2059int test (int i, double x);
2060struct s1 {int (*f) (int a);};
2061struct s2 {int (*f) (double a);};
2062int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2063int argc;
2064char **argv;
2065int
2066main ()
2067{
2068return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2069 ;
2070 return 0;
2071}
2072_ACEOF
2073# Don't try gcc -ansi; that turns off useful extensions and
2074# breaks some systems' header files.
2075# AIX -qlanglvl=ansi
2076# Ultrix and OSF/1 -std1
2077# HP-UX 10.20 and later -Ae
2078# HP-UX older versions -Aa -D_HPUX_SOURCE
2079# SVR4 -Xc -D__EXTENSIONS__
2080for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2081do
2082 CC="$ac_save_CC $ac_arg"
2083 rm -f conftest.$ac_objext
2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>conftest.er1
2086 ac_status=$?
2087 grep -v '^ *+' conftest.er1 >conftest.err
2088 rm -f conftest.er1
2089 cat conftest.err >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_cv_prog_cc_stdc=$ac_arg
2106break
2107else
2108 echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111fi
2112rm -f conftest.err conftest.$ac_objext
2113done
2114rm -f conftest.$ac_ext conftest.$ac_objext
2115CC=$ac_save_CC
2116
2117fi
2118
2119case "x$ac_cv_prog_cc_stdc" in
2120 x|xno)
2121 echo "$as_me:$LINENO: result: none needed" >&5
2122echo "${ECHO_T}none needed" >&6 ;;
2123 *)
2124 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2125echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2126 CC="$CC $ac_cv_prog_cc_stdc" ;;
2127esac
2128
2129# Some people use a C++ compiler to compile C. Since we use `exit',
2130# in C++ we need to declare it. In case someone uses the same compiler
2131# for both compiling C and C++ we need to have the C++ compiler decide
2132# the declaration of exit, since it's the most demanding environment.
2133cat >conftest.$ac_ext <<_ACEOF
2134#ifndef __cplusplus
2135 choke me
2136#endif
2137_ACEOF
2138rm -f conftest.$ac_objext
2139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2141 ac_status=$?
2142 grep -v '^ *+' conftest.er1 >conftest.err
2143 rm -f conftest.er1
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -z "$ac_c_werror_flag"
2148 || test ! -s conftest.err'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 (eval $ac_try) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2160 for ac_declaration in \
2161 '' \
2162 'extern "C" void std::exit (int) throw (); using std::exit;' \
2163 'extern "C" void std::exit (int); using std::exit;' \
2164 'extern "C" void exit (int) throw ();' \
2165 'extern "C" void exit (int);' \
2166 'void exit (int);'
2167do
2168 cat >conftest.$ac_ext <<_ACEOF
2169/* confdefs.h. */
2170_ACEOF
2171cat confdefs.h >>conftest.$ac_ext
2172cat >>conftest.$ac_ext <<_ACEOF
2173/* end confdefs.h. */
2174$ac_declaration
2175#include <stdlib.h>
2176int
2177main ()
2178{
2179exit (42);
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184rm -f conftest.$ac_objext
2185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>conftest.er1
2187 ac_status=$?
2188 grep -v '^ *+' conftest.er1 >conftest.err
2189 rm -f conftest.er1
2190 cat conftest.err >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } &&
2193 { ac_try='test -z "$ac_c_werror_flag"
2194 || test ! -s conftest.err'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; } &&
2200 { ac_try='test -s conftest.$ac_objext'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 :
2207else
2208 echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211continue
2212fi
2213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214 cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h. */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h. */
2220$ac_declaration
2221int
2222main ()
2223{
2224exit (42);
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -z "$ac_c_werror_flag"
2239 || test ! -s conftest.err'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 break
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256fi
2257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258done
2259rm -f conftest*
2260if test -n "$ac_declaration"; then
2261 echo '#ifdef __cplusplus' >>confdefs.h
2262 echo $ac_declaration >>confdefs.h
2263 echo '#endif' >>confdefs.h
2264fi
2265
2266else
2267 echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270fi
2271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272ac_ext=c
2273ac_cpp='$CPP $CPPFLAGS'
2274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278ac_aux_dir=
2279for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2280 if test -f $ac_dir/install-sh; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install-sh -c"
2283 break
2284 elif test -f $ac_dir/install.sh; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install.sh -c"
2287 break
2288 elif test -f $ac_dir/shtool; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/shtool install -c"
2291 break
2292 fi
2293done
2294if test -z "$ac_aux_dir"; then
2295 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2296echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2297 { (exit 1); exit 1; }; }
2298fi
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2301ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2302
2303# Make sure we can run config.sub.
2304$ac_config_sub sun4 >/dev/null 2>&1 ||
2305 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2306echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2307 { (exit 1); exit 1; }; }
2308
2309echo "$as_me:$LINENO: checking build system type" >&5
2310echo $ECHO_N "checking build system type... $ECHO_C" >&6
2311if test "${ac_cv_build+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 ac_cv_build_alias=$build_alias
2315test -z "$ac_cv_build_alias" &&
2316 ac_cv_build_alias=`$ac_config_guess`
2317test -z "$ac_cv_build_alias" &&
2318 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2319echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2320 { (exit 1); exit 1; }; }
2321ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2322 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2323echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2324 { (exit 1); exit 1; }; }
2325
2326fi
2327echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2328echo "${ECHO_T}$ac_cv_build" >&6
2329build=$ac_cv_build
2330build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2331build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2332build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2333
2334
2335echo "$as_me:$LINENO: checking host system type" >&5
2336echo $ECHO_N "checking host system type... $ECHO_C" >&6
2337if test "${ac_cv_host+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340 ac_cv_host_alias=$host_alias
2341test -z "$ac_cv_host_alias" &&
2342 ac_cv_host_alias=$ac_cv_build_alias
2343ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2344 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2345echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2346 { (exit 1); exit 1; }; }
2347
2348fi
2349echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2350echo "${ECHO_T}$ac_cv_host" >&6
2351host=$ac_cv_host
2352host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2353host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2354host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2355
2356
2357
2358echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2359echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2360if test "${ac_cv_c_bigendian+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363 # See if sys/param.h defines the BYTE_ORDER macro.
2364cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
2370#include <sys/types.h>
2371#include <sys/param.h>
2372
2373int
2374main ()
2375{
2376#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2377 bogus endian macros
2378#endif
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 # It does; now see whether it defined to BIG_ENDIAN or not.
2407cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h. */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h. */
2413#include <sys/types.h>
2414#include <sys/param.h>
2415
2416int
2417main ()
2418{
2419#if BYTE_ORDER != BIG_ENDIAN
2420 not big endian
2421#endif
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2430 ac_status=$?
2431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 ac_cv_c_bigendian=yes
2450else
2451 echo "$as_me: failed program was:" >&5
2452sed 's/^/| /' conftest.$ac_ext >&5
2453
2454ac_cv_c_bigendian=no
2455fi
2456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457else
2458 echo "$as_me: failed program was:" >&5
2459sed 's/^/| /' conftest.$ac_ext >&5
2460
2461# It does not; compile a test program.
2462if test "$cross_compiling" = yes; then
2463 # try to guess the endianness by grepping values into an object file
2464 ac_cv_c_bigendian=unknown
2465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h. */
2471short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2472short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2473void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2474short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2475short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2476void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2477int
2478main ()
2479{
2480 _ascii (); _ebcdic ();
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2508 ac_cv_c_bigendian=yes
2509fi
2510if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2511 if test "$ac_cv_c_bigendian" = unknown; then
2512 ac_cv_c_bigendian=no
2513 else
2514 # finding both strings is unlikely to happen, but who knows?
2515 ac_cv_c_bigendian=unknown
2516 fi
2517fi
2518else
2519 echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522fi
2523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524else
2525 cat >conftest.$ac_ext <<_ACEOF
2526/* confdefs.h. */
2527_ACEOF
2528cat confdefs.h >>conftest.$ac_ext
2529cat >>conftest.$ac_ext <<_ACEOF
2530/* end confdefs.h. */
2531int
2532main ()
2533{
2534 /* Are we little or big endian? From Harbison&Steele. */
2535 union
2536 {
2537 long l;
2538 char c[sizeof (long)];
2539 } u;
2540 u.l = 1;
2541 exit (u.c[sizeof (long) - 1] == 1);
2542}
2543_ACEOF
2544rm -f conftest$ac_exeext
2545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_c_bigendian=no
2556else
2557 echo "$as_me: program exited with status $ac_status" >&5
2558echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561( exit $ac_status )
2562ac_cv_c_bigendian=yes
2563fi
2564rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2565fi
2566fi
2567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568fi
2569echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2570echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2571case $ac_cv_c_bigendian in
2572 yes)
2573
2574cat >>confdefs.h <<\_ACEOF
2575#define WORDS_BIGENDIAN 1
2576_ACEOF
2577 ;;
2578 no)
2579 ;;
2580 *)
2581 { { echo "$as_me:$LINENO: error: unknown endianness
2582presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2583echo "$as_me: error: unknown endianness
2584presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2585 { (exit 1); exit 1; }; } ;;
2586esac
2587
2588
2589# Checks for programs.
2590for ac_prog in gawk mawk nawk awk
2591do
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593set dummy $ac_prog; ac_word=$2
2594echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596if test "${ac_cv_prog_AWK+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 if test -n "$AWK"; then
2600 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_AWK="$ac_prog"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614done
2615
2616fi
2617fi
2618AWK=$ac_cv_prog_AWK
2619if test -n "$AWK"; then
2620 echo "$as_me:$LINENO: result: $AWK" >&5
2621echo "${ECHO_T}$AWK" >&6
2622else
2623 echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6
2625fi
2626
2627 test -n "$AWK" && break
2628done
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2636echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2637# On Suns, sometimes $CPP names a directory.
2638if test -n "$CPP" && test -d "$CPP"; then
2639 CPP=
2640fi
2641if test -z "$CPP"; then
2642 if test "${ac_cv_prog_CPP+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 # Double quotes because CPP needs to be expanded
2646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2647 do
2648 ac_preproc_ok=false
2649for ac_c_preproc_warn_flag in '' yes
2650do
2651 # Use a header file that comes with gcc, so configuring glibc
2652 # with a fresh cross-compiler works.
2653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 # <limits.h> exists even on freestanding compilers.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.$ac_ext <<_ACEOF
2658/* confdefs.h. */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h. */
2663#ifdef __STDC__
2664# include <limits.h>
2665#else
2666# include <assert.h>
2667#endif
2668 Syntax error
2669_ACEOF
2670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } >/dev/null; then
2678 if test -s conftest.err; then
2679 ac_cpp_err=$ac_c_preproc_warn_flag
2680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2681 else
2682 ac_cpp_err=
2683 fi
2684else
2685 ac_cpp_err=yes
2686fi
2687if test -z "$ac_cpp_err"; then
2688 :
2689else
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 # Broken: fails on valid input.
2694continue
2695fi
2696rm -f conftest.err conftest.$ac_ext
2697
2698 # OK, works on sane cases. Now check whether non-existent headers
2699 # can be detected and how.
2700 cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706#include <ac_nonexistent.h>
2707_ACEOF
2708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } >/dev/null; then
2716 if test -s conftest.err; then
2717 ac_cpp_err=$ac_c_preproc_warn_flag
2718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2719 else
2720 ac_cpp_err=
2721 fi
2722else
2723 ac_cpp_err=yes
2724fi
2725if test -z "$ac_cpp_err"; then
2726 # Broken: success on invalid input.
2727continue
2728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 # Passes both tests.
2733ac_preproc_ok=:
2734break
2735fi
2736rm -f conftest.err conftest.$ac_ext
2737
2738done
2739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740rm -f conftest.err conftest.$ac_ext
2741if $ac_preproc_ok; then
2742 break
2743fi
2744
2745 done
2746 ac_cv_prog_CPP=$CPP
2747
2748fi
2749 CPP=$ac_cv_prog_CPP
2750else
2751 ac_cv_prog_CPP=$CPP
2752fi
2753echo "$as_me:$LINENO: result: $CPP" >&5
2754echo "${ECHO_T}$CPP" >&6
2755ac_preproc_ok=false
2756for ac_c_preproc_warn_flag in '' yes
2757do
2758 # Use a header file that comes with gcc, so configuring glibc
2759 # with a fresh cross-compiler works.
2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 # <limits.h> exists even on freestanding compilers.
2762 # On the NeXT, cc -E runs the code through the compiler's parser,
2763 # not just through cpp. "Syntax error" is here to catch this case.
2764 cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h. */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h. */
2770#ifdef __STDC__
2771# include <limits.h>
2772#else
2773# include <assert.h>
2774#endif
2775 Syntax error
2776_ACEOF
2777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } >/dev/null; then
2785 if test -s conftest.err; then
2786 ac_cpp_err=$ac_c_preproc_warn_flag
2787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2788 else
2789 ac_cpp_err=
2790 fi
2791else
2792 ac_cpp_err=yes
2793fi
2794if test -z "$ac_cpp_err"; then
2795 :
2796else
2797 echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 # Broken: fails on valid input.
2801continue
2802fi
2803rm -f conftest.err conftest.$ac_ext
2804
2805 # OK, works on sane cases. Now check whether non-existent headers
2806 # can be detected and how.
2807 cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h. */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h. */
2813#include <ac_nonexistent.h>
2814_ACEOF
2815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } >/dev/null; then
2823 if test -s conftest.err; then
2824 ac_cpp_err=$ac_c_preproc_warn_flag
2825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2826 else
2827 ac_cpp_err=
2828 fi
2829else
2830 ac_cpp_err=yes
2831fi
2832if test -z "$ac_cpp_err"; then
2833 # Broken: success on invalid input.
2834continue
2835else
2836 echo "$as_me: failed program was:" >&5
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 # Passes both tests.
2840ac_preproc_ok=:
2841break
2842fi
2843rm -f conftest.err conftest.$ac_ext
2844
2845done
2846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847rm -f conftest.err conftest.$ac_ext
2848if $ac_preproc_ok; then
2849 :
2850else
2851 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2852See \`config.log' for more details." >&5
2853echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2854See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2856fi
2857
2858ac_ext=c
2859ac_cpp='$CPP $CPPFLAGS'
2860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863
2864if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2867echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869if test "${ac_cv_prog_RANLIB+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872 if test -n "$RANLIB"; then
2873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887done
2888
2889fi
2890fi
2891RANLIB=$ac_cv_prog_RANLIB
2892if test -n "$RANLIB"; then
2893 echo "$as_me:$LINENO: result: $RANLIB" >&5
2894echo "${ECHO_T}$RANLIB" >&6
2895else
2896 echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899
2900fi
2901if test -z "$ac_cv_prog_RANLIB"; then
2902 ac_ct_RANLIB=$RANLIB
2903 # Extract the first word of "ranlib", so it can be a program name with args.
2904set dummy ranlib; ac_word=$2
2905echo "$as_me:$LINENO: checking for $ac_word" >&5
2906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 if test -n "$ac_ct_RANLIB"; then
2911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_RANLIB="ranlib"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924done
2925done
2926
2927 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2928fi
2929fi
2930ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2931if test -n "$ac_ct_RANLIB"; then
2932 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2933echo "${ECHO_T}$ac_ct_RANLIB" >&6
2934else
2935 echo "$as_me:$LINENO: result: no" >&5
2936echo "${ECHO_T}no" >&6
2937fi
2938
2939 RANLIB=$ac_ct_RANLIB
2940else
2941 RANLIB="$ac_cv_prog_RANLIB"
2942fi
2943
2944# Find a good install program. We prefer a C program (faster),
2945# so one script is as good as another. But avoid the broken or
2946# incompatible versions:
2947# SysV /etc/install, /usr/sbin/install
2948# SunOS /usr/etc/install
2949# IRIX /sbin/install
2950# AIX /bin/install
2951# AmigaOS /C/install, which installs bootblocks on floppy discs
2952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955# OS/2's system install, which has a completely different semantic
2956# ./install, which can be erroneously created by make from ./install.sh.
2957echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2958echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2959if test -z "$INSTALL"; then
2960if test "${ac_cv_path_install+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 # Account for people who put trailing slashes in PATH elements.
2969case $as_dir/ in
2970 ./ | .// | /cC/* | \
2971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2972 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2973 /usr/ucb/* ) ;;
2974 *)
2975 # OSF1 and SCO ODT 3.0 have their own names for install.
2976 # Don't use installbsd from OSF since it installs stuff as root
2977 # by default.
2978 for ac_prog in ginstall scoinst install; do
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2981 if test $ac_prog = install &&
2982 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983 # AIX install. It has an incompatible calling convention.
2984 :
2985 elif test $ac_prog = install &&
2986 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # program-specific install script used by HP pwplus--don't use.
2988 :
2989 else
2990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991 break 3
2992 fi
2993 fi
2994 done
2995 done
2996 ;;
2997esac
2998done
2999
3000
3001fi
3002 if test "${ac_cv_path_install+set}" = set; then
3003 INSTALL=$ac_cv_path_install
3004 else
3005 # As a last resort, use the slow shell script. We don't cache a
3006 # path for INSTALL within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the path is relative.
3009 INSTALL=$ac_install_sh
3010 fi
3011fi
3012echo "$as_me:$LINENO: result: $INSTALL" >&5
3013echo "${ECHO_T}$INSTALL" >&6
3014
3015# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016# It thinks the first close brace ends the variable substitution.
3017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
3019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
3021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
3023# Extract the first word of "ar", so it can be a program name with args.
3024set dummy ar; ac_word=$2
3025echo "$as_me:$LINENO: checking for $ac_word" >&5
3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027if test "${ac_cv_path_AR+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030 case $AR in
3031 [\\/]* | ?:[\\/]*)
3032 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3033 ;;
3034 *)
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047done
3048
3049 ;;
3050esac
3051fi
3052AR=$ac_cv_path_AR
3053
3054if test -n "$AR"; then
3055 echo "$as_me:$LINENO: result: $AR" >&5
3056echo "${ECHO_T}$AR" >&6
3057else
3058 echo "$as_me:$LINENO: result: no" >&5
3059echo "${ECHO_T}no" >&6
3060fi
3061
3062# Extract the first word of "cat", so it can be a program name with args.
3063set dummy cat; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_path_CAT+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 case $CAT in
3070 [\\/]* | ?:[\\/]*)
3071 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3072 ;;
3073 *)
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086done
3087
3088 ;;
3089esac
3090fi
3091CAT=$ac_cv_path_CAT
3092
3093if test -n "$CAT"; then
3094 echo "$as_me:$LINENO: result: $CAT" >&5
3095echo "${ECHO_T}$CAT" >&6
3096else
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
3101# Extract the first word of "kill", so it can be a program name with args.
3102set dummy kill; ac_word=$2
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105if test "${ac_cv_path_KILL+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108 case $KILL in
3109 [\\/]* | ?:[\\/]*)
3110 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
3111 ;;
3112 *)
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125done
3126
3127 ;;
3128esac
3129fi
3130KILL=$ac_cv_path_KILL
3131
3132if test -n "$KILL"; then
3133 echo "$as_me:$LINENO: result: $KILL" >&5
3134echo "${ECHO_T}$KILL" >&6
3135else
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
3138fi
3139
3140for ac_prog in perl5 perl
3141do
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143set dummy $ac_prog; ac_word=$2
3144echo "$as_me:$LINENO: checking for $ac_word" >&5
3145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146if test "${ac_cv_path_PERL+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149 case $PERL in
3150 [\\/]* | ?:[\\/]*)
3151 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3152 ;;
3153 *)
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165done
3166done
3167
3168 ;;
3169esac
3170fi
3171PERL=$ac_cv_path_PERL
3172
3173if test -n "$PERL"; then
3174 echo "$as_me:$LINENO: result: $PERL" >&5
3175echo "${ECHO_T}$PERL" >&6
3176else
3177 echo "$as_me:$LINENO: result: no" >&5
3178echo "${ECHO_T}no" >&6
3179fi
3180
3181 test -n "$PERL" && break
3182done
3183
3184# Extract the first word of "sed", so it can be a program name with args.
3185set dummy sed; ac_word=$2
3186echo "$as_me:$LINENO: checking for $ac_word" >&5
3187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188if test "${ac_cv_path_SED+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191 case $SED in
3192 [\\/]* | ?:[\\/]*)
3193 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3194 ;;
3195 *)
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207done
3208done
3209
3210 ;;
3211esac
3212fi
3213SED=$ac_cv_path_SED
3214
3215if test -n "$SED"; then
3216 echo "$as_me:$LINENO: result: $SED" >&5
3217echo "${ECHO_T}$SED" >&6
3218else
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
3221fi
3222
3223
3224# Extract the first word of "ent", so it can be a program name with args.
3225set dummy ent; ac_word=$2
3226echo "$as_me:$LINENO: checking for $ac_word" >&5
3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228if test "${ac_cv_path_ENT+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231 case $ENT in
3232 [\\/]* | ?:[\\/]*)
3233 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
3234 ;;
3235 *)
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247done
3248done
3249
3250 ;;
3251esac
3252fi
3253ENT=$ac_cv_path_ENT
3254
3255if test -n "$ENT"; then
3256 echo "$as_me:$LINENO: result: $ENT" >&5
3257echo "${ECHO_T}$ENT" >&6
3258else
3259 echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263
3264# Extract the first word of "bash", so it can be a program name with args.
3265set dummy bash; ac_word=$2
3266echo "$as_me:$LINENO: checking for $ac_word" >&5
3267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
3271 case $TEST_MINUS_S_SH in
3272 [\\/]* | ?:[\\/]*)
3273 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3274 ;;
3275 *)
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287done
3288done
3289
3290 ;;
3291esac
3292fi
3293TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3294
3295if test -n "$TEST_MINUS_S_SH"; then
3296 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3297echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3298else
3299 echo "$as_me:$LINENO: result: no" >&5
3300echo "${ECHO_T}no" >&6
3301fi
3302
3303# Extract the first word of "ksh", so it can be a program name with args.
3304set dummy ksh; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310 case $TEST_MINUS_S_SH in
3311 [\\/]* | ?:[\\/]*)
3312 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3313 ;;
3314 *)
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326done
3327done
3328
3329 ;;
3330esac
3331fi
3332TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3333
3334if test -n "$TEST_MINUS_S_SH"; then
3335 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3336echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3337else
3338 echo "$as_me:$LINENO: result: no" >&5
3339echo "${ECHO_T}no" >&6
3340fi
3341
3342# Extract the first word of "sh", so it can be a program name with args.
3343set dummy sh; ac_word=$2
3344echo "$as_me:$LINENO: checking for $ac_word" >&5
3345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349 case $TEST_MINUS_S_SH in
3350 [\\/]* | ?:[\\/]*)
3351 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3352 ;;
3353 *)
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365done
3366done
3367
3368 ;;
3369esac
3370fi
3371TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3372
3373if test -n "$TEST_MINUS_S_SH"; then
3374 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3375echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3376else
3377 echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380
3381# Extract the first word of "sh", so it can be a program name with args.
3382set dummy sh; ac_word=$2
3383echo "$as_me:$LINENO: checking for $ac_word" >&5
3384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385if test "${ac_cv_path_SH+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388 case $SH in
3389 [\\/]* | ?:[\\/]*)
3390 ac_cv_path_SH="$SH" # Let the user override the test with a path.
3391 ;;
3392 *)
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
3401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405done
3406
3407 ;;
3408esac
3409fi
3410SH=$ac_cv_path_SH
3411
3412if test -n "$SH"; then
3413 echo "$as_me:$LINENO: result: $SH" >&5
3414echo "${ECHO_T}$SH" >&6
3415else
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
3418fi
3419
3420TEST_SHELL=sh
3421
3422
3423# Extract the first word of "groupadd", so it can be a program name with args.
3424set dummy groupadd; ac_word=$2
3425echo "$as_me:$LINENO: checking for $ac_word" >&5
3426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 case $PATH_GROUPADD_PROG in
3431 [\\/]* | ?:[\\/]*)
3432 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
3433 ;;
3434 *)
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446done
3447done
3448
3449 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
3450 ;;
3451esac
3452fi
3453PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
3454
3455if test -n "$PATH_GROUPADD_PROG"; then
3456 echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
3457echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6
3458else
3459 echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6
3461fi
3462
3463# Extract the first word of "useradd", so it can be a program name with args.
3464set dummy useradd; ac_word=$2
3465echo "$as_me:$LINENO: checking for $ac_word" >&5
3466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 case $PATH_USERADD_PROG in
3471 [\\/]* | ?:[\\/]*)
3472 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
3473 ;;
3474 *)
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486done
3487done
3488
3489 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
3490 ;;
3491esac
3492fi
3493PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
3494
3495if test -n "$PATH_USERADD_PROG"; then
3496 echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
3497echo "${ECHO_T}$PATH_USERADD_PROG" >&6
3498else
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501fi
3502
3503# Extract the first word of "pkgmk", so it can be a program name with args.
3504set dummy pkgmk; ac_word=$2
3505echo "$as_me:$LINENO: checking for $ac_word" >&5
3506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3511 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
3512else
3513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH
3515do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524done
3525done
3526
3527 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
3528fi
3529fi
3530MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
3531if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3532 echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
3533echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6
3534else
3535 echo "$as_me:$LINENO: result: no" >&5
3536echo "${ECHO_T}no" >&6
3537fi
3538
3539
3540# System features
3541# Check whether --enable-largefile or --disable-largefile was given.
3542if test "${enable_largefile+set}" = set; then
3543 enableval="$enable_largefile"
3544
3545fi;
3546if test "$enable_largefile" != no; then
3547
3548 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3549echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3550if test "${ac_cv_sys_largefile_CC+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 ac_cv_sys_largefile_CC=no
3554 if test "$GCC" != yes; then
3555 ac_save_CC=$CC
3556 while :; do
3557 # IRIX 6.2 and later do not support large files by default,
3558 # so use the C compiler's -n32 option if that helps.
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565#include <sys/types.h>
3566 /* Check that off_t can represent 2**63 - 1 correctly.
3567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3568 since some C++ compilers masquerading as C compilers
3569 incorrectly reject 9223372036854775807. */
3570#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3572 && LARGE_OFF_T % 2147483647 == 1)
3573 ? 1 : -1];
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582 rm -f conftest.$ac_objext
3583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag"
3592 || test ! -s conftest.err'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 break
3605else
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609fi
3610rm -f conftest.err conftest.$ac_objext
3611 CC="$CC -n32"
3612 rm -f conftest.$ac_objext
3613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_cv_sys_largefile_CC=' -n32'; break
3635else
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639fi
3640rm -f conftest.err conftest.$ac_objext
3641 break
3642 done
3643 CC=$ac_save_CC
3644 rm -f conftest.$ac_ext
3645 fi
3646fi
3647echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3648echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3649 if test "$ac_cv_sys_largefile_CC" != no; then
3650 CC=$CC$ac_cv_sys_largefile_CC
3651 fi
3652
3653 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3654echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3655if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 while :; do
3659 ac_cv_sys_file_offset_bits=no
3660 cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666#include <sys/types.h>
3667 /* Check that off_t can represent 2**63 - 1 correctly.
3668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3669 since some C++ compilers masquerading as C compilers
3670 incorrectly reject 9223372036854775807. */
3671#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3673 && LARGE_OFF_T % 2147483647 == 1)
3674 ? 1 : -1];
3675int
3676main ()
3677{
3678
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683rm -f conftest.$ac_objext
3684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_c_werror_flag"
3693 || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest.$ac_objext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 break
3706else
3707 echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710fi
3711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 cat >conftest.$ac_ext <<_ACEOF
3713/* confdefs.h. */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h. */
3718#define _FILE_OFFSET_BITS 64
3719#include <sys/types.h>
3720 /* Check that off_t can represent 2**63 - 1 correctly.
3721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3722 since some C++ compilers masquerading as C compilers
3723 incorrectly reject 9223372036854775807. */
3724#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3726 && LARGE_OFF_T % 2147483647 == 1)
3727 ? 1 : -1];
3728int
3729main ()
3730{
3731
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag"
3746 || test ! -s conftest.err'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_cv_sys_file_offset_bits=64; break
3759else
3760 echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763fi
3764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 break
3766done
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3769echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3770if test "$ac_cv_sys_file_offset_bits" != no; then
3771
3772cat >>confdefs.h <<_ACEOF
3773#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3774_ACEOF
3775
3776fi
3777rm -f conftest*
3778 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3779echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3780if test "${ac_cv_sys_large_files+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 while :; do
3784 ac_cv_sys_large_files=no
3785 cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h. */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h. */
3791#include <sys/types.h>
3792 /* Check that off_t can represent 2**63 - 1 correctly.
3793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3794 since some C++ compilers masquerading as C compilers
3795 incorrectly reject 9223372036854775807. */
3796#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3798 && LARGE_OFF_T % 2147483647 == 1)
3799 ? 1 : -1];
3800int
3801main ()
3802{
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808rm -f conftest.$ac_objext
3809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 break
3831else
3832 echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835fi
3836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#define _LARGE_FILES 1
3844#include <sys/types.h>
3845 /* Check that off_t can represent 2**63 - 1 correctly.
3846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3847 since some C++ compilers masquerading as C compilers
3848 incorrectly reject 9223372036854775807. */
3849#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3851 && LARGE_OFF_T % 2147483647 == 1)
3852 ? 1 : -1];
3853int
3854main ()
3855{
3856
3857 ;
3858 return 0;
3859}
3860_ACEOF
3861rm -f conftest.$ac_objext
3862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_sys_large_files=1; break
3884else
3885 echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888fi
3889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3890 break
3891done
3892fi
3893echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3894echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3895if test "$ac_cv_sys_large_files" != no; then
3896
3897cat >>confdefs.h <<_ACEOF
3898#define _LARGE_FILES $ac_cv_sys_large_files
3899_ACEOF
3900
3901fi
3902rm -f conftest*
3903fi
3904
3905
3906if test -z "$AR" ; then
3907 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3908echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3909 { (exit 1); exit 1; }; }
3910fi
3911
3912# Use LOGIN_PROGRAM from environment if possible
3913if test ! -z "$LOGIN_PROGRAM" ; then
3914 cat >>confdefs.h <<_ACEOF
3915#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3916_ACEOF
3917
3918else
3919 # Search for login
3920 # Extract the first word of "login", so it can be a program name with args.
3921set dummy login; ac_word=$2
3922echo "$as_me:$LINENO: checking for $ac_word" >&5
3923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 case $LOGIN_PROGRAM_FALLBACK in
3928 [\\/]* | ?:[\\/]*)
3929 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3930 ;;
3931 *)
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944done
3945
3946 ;;
3947esac
3948fi
3949LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3950
3951if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3952 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3953echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3954else
3955 echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6
3957fi
3958
3959 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3960 cat >>confdefs.h <<_ACEOF
3961#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3962_ACEOF
3963
3964 fi
3965fi
3966
3967# Extract the first word of "passwd", so it can be a program name with args.
3968set dummy passwd; ac_word=$2
3969echo "$as_me:$LINENO: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 case $PATH_PASSWD_PROG in
3975 [\\/]* | ?:[\\/]*)
3976 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
3977 ;;
3978 *)
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991done
3992
3993 ;;
3994esac
3995fi
3996PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
3997
3998if test -n "$PATH_PASSWD_PROG"; then
3999 echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
4000echo "${ECHO_T}$PATH_PASSWD_PROG" >&6
4001else
4002 echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004fi
4005
4006if test ! -z "$PATH_PASSWD_PROG" ; then
4007 cat >>confdefs.h <<_ACEOF
4008#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
4009_ACEOF
4010
4011fi
4012
4013if test -z "$LD" ; then
4014 LD=$CC
4015fi
4016
4017
4018echo "$as_me:$LINENO: checking for inline" >&5
4019echo $ECHO_N "checking for inline... $ECHO_C" >&6
4020if test "${ac_cv_c_inline+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 ac_cv_c_inline=no
4024for ac_kw in inline __inline__ __inline; do
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031#ifndef __cplusplus
4032typedef int foo_t;
4033static $ac_kw foo_t static_foo () {return 0; }
4034$ac_kw foo_t foo () {return 0; }
4035#endif
4036
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_c_inline=$ac_kw; break
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065fi
4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067done
4068
4069fi
4070echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4071echo "${ECHO_T}$ac_cv_c_inline" >&6
4072
4073
4074case $ac_cv_c_inline in
4075 inline | yes) ;;
4076 *)
4077 case $ac_cv_c_inline in
4078 no) ac_val=;;
4079 *) ac_val=$ac_cv_c_inline;;
4080 esac
4081 cat >>confdefs.h <<_ACEOF
4082#ifndef __cplusplus
4083#define inline $ac_val
4084#endif
4085_ACEOF
4086 ;;
4087esac
4088
4089if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
4090 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
4091fi
4092
4093
4094# Check whether --with-rpath or --without-rpath was given.
4095if test "${with_rpath+set}" = set; then
4096 withval="$with_rpath"
4097
4098 if test "x$withval" = "xno" ; then
4099 need_dash_r=""
4100 fi
4101 if test "x$withval" = "xyes" ; then
4102 need_dash_r=1
4103 fi
4104
4105
4106fi;
4107
4108# Check for some target-specific stuff
4109case "$host" in
4110*-*-aix*)
4111 echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
4112echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
4113 if (test -z "$blibpath"); then
4114 blibpath="/usr/lib:/lib"
4115 fi
4116 saved_LDFLAGS="$LDFLAGS"
4117 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
4118 if (test -z "$blibflags"); then
4119 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126
4127int
4128main ()
4129{
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135rm -f conftest.$ac_objext conftest$ac_exeext
4136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4137 (eval $ac_link) 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest$ac_exeext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 blibflags=$tryflags
4158else
4159 echo "$as_me: failed program was:" >&5
4160sed 's/^/| /' conftest.$ac_ext >&5
4161
4162fi
4163rm -f conftest.err conftest.$ac_objext \
4164 conftest$ac_exeext conftest.$ac_ext
4165 fi
4166 done
4167 if (test -z "$blibflags"); then
4168 echo "$as_me:$LINENO: result: not found" >&5
4169echo "${ECHO_T}not found" >&6
4170 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
4171echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
4172 { (exit 1); exit 1; }; }
4173 else
4174 echo "$as_me:$LINENO: result: $blibflags" >&5
4175echo "${ECHO_T}$blibflags" >&6
4176 fi
4177 LDFLAGS="$saved_LDFLAGS"
4178 echo "$as_me:$LINENO: checking for authenticate" >&5
4179echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
4180if test "${ac_cv_func_authenticate+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
4190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4191#define authenticate innocuous_authenticate
4192
4193/* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char authenticate (); below.
4195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 <limits.h> exists even on freestanding compilers. */
4197
4198#ifdef __STDC__
4199# include <limits.h>
4200#else
4201# include <assert.h>
4202#endif
4203
4204#undef authenticate
4205
4206/* Override any gcc2 internal prototype to avoid an error. */
4207#ifdef __cplusplus
4208extern "C"
4209{
4210#endif
4211/* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213char authenticate ();
4214/* The GNU C library defines this for functions which it implements
4215 to always fail with ENOSYS. Some functions are actually named
4216 something starting with __ and the normal name is an alias. */
4217#if defined (__stub_authenticate) || defined (__stub___authenticate)
4218choke me
4219#else
4220char (*f) () = authenticate;
4221#endif
4222#ifdef __cplusplus
4223}
4224#endif
4225
4226int
4227main ()
4228{
4229return f != authenticate;
4230 ;
4231 return 0;
4232}
4233_ACEOF
4234rm -f conftest.$ac_objext conftest$ac_exeext
4235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag"
4244 || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest$ac_exeext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_func_authenticate=yes
4257else
4258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261ac_cv_func_authenticate=no
4262fi
4263rm -f conftest.err conftest.$ac_objext \
4264 conftest$ac_exeext conftest.$ac_ext
4265fi
4266echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
4267echo "${ECHO_T}$ac_cv_func_authenticate" >&6
4268if test $ac_cv_func_authenticate = yes; then
4269 cat >>confdefs.h <<\_ACEOF
4270#define WITH_AIXAUTHENTICATE 1
4271_ACEOF
4272
4273else
4274 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
4275echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
4276if test "${ac_cv_lib_s_authenticate+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 ac_check_lib_save_LIBS=$LIBS
4280LIBS="-ls $LIBS"
4281cat >conftest.$ac_ext <<_ACEOF
4282/* confdefs.h. */
4283_ACEOF
4284cat confdefs.h >>conftest.$ac_ext
4285cat >>conftest.$ac_ext <<_ACEOF
4286/* end confdefs.h. */
4287
4288/* Override any gcc2 internal prototype to avoid an error. */
4289#ifdef __cplusplus
4290extern "C"
4291#endif
4292/* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4294char authenticate ();
4295int
4296main ()
4297{
4298authenticate ();
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_lib_s_authenticate=yes
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330ac_cv_lib_s_authenticate=no
4331fi
4332rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334LIBS=$ac_check_lib_save_LIBS
4335fi
4336echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
4337echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
4338if test $ac_cv_lib_s_authenticate = yes; then
4339 cat >>confdefs.h <<\_ACEOF
4340#define WITH_AIXAUTHENTICATE 1
4341_ACEOF
4342
4343 LIBS="$LIBS -ls"
4344
4345fi
4346
4347
4348fi
4349
4350 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
4351echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
4352if test "${ac_cv_have_decl_loginfailed+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355 cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361#include <usersec.h>
4362
4363
4364int
4365main ()
4366{
4367#ifndef loginfailed
4368 char *p = (char *) loginfailed;
4369#endif
4370
4371 ;
4372 return 0;
4373}
4374_ACEOF
4375rm -f conftest.$ac_objext
4376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_have_decl_loginfailed=yes
4398else
4399 echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402ac_cv_have_decl_loginfailed=no
4403fi
4404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405fi
4406echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
4407echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
4408if test $ac_cv_have_decl_loginfailed = yes; then
4409 echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
4410echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
4411 cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417#include <usersec.h>
4418int
4419main ()
4420{
4421(void)loginfailed("user","host","tty",0);
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426rm -f conftest.$ac_objext
4427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 echo "$as_me:$LINENO: result: yes" >&5
4449echo "${ECHO_T}yes" >&6
4450 cat >>confdefs.h <<\_ACEOF
4451#define AIX_LOGINFAILED_4ARG 1
4452_ACEOF
4453
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460
4461fi
4462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463fi
4464
4465
4466for ac_func in setauthdb
4467do
4468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4469echo "$as_me:$LINENO: checking for $ac_func" >&5
4470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4471if eval "test \"\${$as_ac_var+set}\" = set"; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4482#define $ac_func innocuous_$ac_func
4483
4484/* System header to define __stub macros and hopefully few prototypes,
4485 which can conflict with char $ac_func (); below.
4486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 <limits.h> exists even on freestanding compilers. */
4488
4489#ifdef __STDC__
4490# include <limits.h>
4491#else
4492# include <assert.h>
4493#endif
4494
4495#undef $ac_func
4496
4497/* Override any gcc2 internal prototype to avoid an error. */
4498#ifdef __cplusplus
4499extern "C"
4500{
4501#endif
4502/* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4504char $ac_func ();
4505/* The GNU C library defines this for functions which it implements
4506 to always fail with ENOSYS. Some functions are actually named
4507 something starting with __ and the normal name is an alias. */
4508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4509choke me
4510#else
4511char (*f) () = $ac_func;
4512#endif
4513#ifdef __cplusplus
4514}
4515#endif
4516
4517int
4518main ()
4519{
4520return f != $ac_func;
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525rm -f conftest.$ac_objext conftest$ac_exeext
4526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 eval "$as_ac_var=yes"
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552eval "$as_ac_var=no"
4553fi
4554rm -f conftest.err conftest.$ac_objext \
4555 conftest$ac_exeext conftest.$ac_ext
4556fi
4557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4559if test `eval echo '${'$as_ac_var'}'` = yes; then
4560 cat >>confdefs.h <<_ACEOF
4561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4562_ACEOF
4563
4564fi
4565done
4566
4567 cat >>confdefs.h <<\_ACEOF
4568#define BROKEN_GETADDRINFO 1
4569_ACEOF
4570
4571 cat >>confdefs.h <<\_ACEOF
4572#define BROKEN_REALPATH 1
4573_ACEOF
4574
4575 cat >>confdefs.h <<\_ACEOF
4576#define SETEUID_BREAKS_SETUID 1
4577_ACEOF
4578
4579 cat >>confdefs.h <<\_ACEOF
4580#define BROKEN_SETREUID 1
4581_ACEOF
4582
4583 cat >>confdefs.h <<\_ACEOF
4584#define BROKEN_SETREGID 1
4585_ACEOF
4586
4587 cat >>confdefs.h <<\_ACEOF
4588#define DISABLE_LASTLOG 1
4589_ACEOF
4590
4591 cat >>confdefs.h <<\_ACEOF
4592#define LOGIN_NEEDS_UTMPX 1
4593_ACEOF
4594
4595 cat >>confdefs.h <<\_ACEOF
4596#define SPT_TYPE SPT_REUSEARGV
4597_ACEOF
4598
4599 ;;
4600*-*-cygwin*)
4601 check_for_libcrypt_later=1
4602 LIBS="$LIBS /usr/lib/textmode.o"
4603 cat >>confdefs.h <<\_ACEOF
4604#define HAVE_CYGWIN 1
4605_ACEOF
4606
4607 cat >>confdefs.h <<\_ACEOF
4608#define USE_PIPES 1
4609_ACEOF
4610
4611 cat >>confdefs.h <<\_ACEOF
4612#define DISABLE_SHADOW 1
4613_ACEOF
4614
4615 cat >>confdefs.h <<\_ACEOF
4616#define IP_TOS_IS_BROKEN 1
4617_ACEOF
4618
4619 cat >>confdefs.h <<\_ACEOF
4620#define NO_X11_UNIX_SOCKETS 1
4621_ACEOF
4622
4623 cat >>confdefs.h <<\_ACEOF
4624#define NO_IPPORT_RESERVED_CONCEPT 1
4625_ACEOF
4626
4627 cat >>confdefs.h <<\_ACEOF
4628#define DISABLE_FD_PASSING 1
4629_ACEOF
4630
4631 cat >>confdefs.h <<\_ACEOF
4632#define SETGROUPS_NOOP 1
4633_ACEOF
4634
4635 ;;
4636*-*-dgux*)
4637 cat >>confdefs.h <<\_ACEOF
4638#define IP_TOS_IS_BROKEN 1
4639_ACEOF
4640
4641 cat >>confdefs.h <<\_ACEOF
4642#define SETEUID_BREAKS_SETUID 1
4643_ACEOF
4644
4645 cat >>confdefs.h <<\_ACEOF
4646#define BROKEN_SETREUID 1
4647_ACEOF
4648
4649 cat >>confdefs.h <<\_ACEOF
4650#define BROKEN_SETREGID 1
4651_ACEOF
4652
4653 ;;
4654*-*-darwin*)
4655 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
4656echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
4657 if test "$cross_compiling" = yes; then
4658 echo "$as_me:$LINENO: result: assume it is working" >&5
4659echo "${ECHO_T}assume it is working" >&6
4660else
4661 cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h. */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h. */
4667#include <mach-o/dyld.h>
4668main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
4669 exit(0);
4670 else
4671 exit(1);
4672}
4673_ACEOF
4674rm -f conftest$ac_exeext
4675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676 (eval $ac_link) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 echo "$as_me:$LINENO: result: working" >&5
4686echo "${ECHO_T}working" >&6
4687else
4688 echo "$as_me: program exited with status $ac_status" >&5
4689echo "$as_me: failed program was:" >&5
4690sed 's/^/| /' conftest.$ac_ext >&5
4691
4692( exit $ac_status )
4693echo "$as_me:$LINENO: result: buggy" >&5
4694echo "${ECHO_T}buggy" >&6
4695 cat >>confdefs.h <<\_ACEOF
4696#define BROKEN_GETADDRINFO 1
4697_ACEOF
4698
4699fi
4700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4701fi
4702 cat >>confdefs.h <<\_ACEOF
4703#define SETEUID_BREAKS_SETUID 1
4704_ACEOF
4705
4706 cat >>confdefs.h <<\_ACEOF
4707#define BROKEN_SETREUID 1
4708_ACEOF
4709
4710 cat >>confdefs.h <<\_ACEOF
4711#define BROKEN_SETREGID 1
4712_ACEOF
4713
4714 cat >>confdefs.h <<_ACEOF
4715#define BIND_8_COMPAT 1
4716_ACEOF
4717
4718 ;;
4719*-*-hpux10.26)
4720 if test -z "$GCC"; then
4721 CFLAGS="$CFLAGS -Ae"
4722 fi
4723 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
4724 IPADDR_IN_DISPLAY=yes
4725 cat >>confdefs.h <<\_ACEOF
4726#define HAVE_SECUREWARE 1
4727_ACEOF
4728
4729 cat >>confdefs.h <<\_ACEOF
4730#define USE_PIPES 1
4731_ACEOF
4732
4733 cat >>confdefs.h <<\_ACEOF
4734#define LOGIN_NO_ENDOPT 1
4735_ACEOF
4736
4737 cat >>confdefs.h <<\_ACEOF
4738#define LOGIN_NEEDS_UTMPX 1
4739_ACEOF
4740
4741 cat >>confdefs.h <<\_ACEOF
4742#define LOCKED_PASSWD_STRING "*"
4743_ACEOF
4744
4745 cat >>confdefs.h <<\_ACEOF
4746#define SPT_TYPE SPT_PSTAT
4747_ACEOF
4748
4749 LIBS="$LIBS -lsec -lsecpw"
4750
4751echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
4752echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
4753if test "${ac_cv_lib_xnet_t_error+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756 ac_check_lib_save_LIBS=$LIBS
4757LIBS="-lxnet $LIBS"
4758cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764
4765/* Override any gcc2 internal prototype to avoid an error. */
4766#ifdef __cplusplus
4767extern "C"
4768#endif
4769/* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4771char t_error ();
4772int
4773main ()
4774{
4775t_error ();
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780rm -f conftest.$ac_objext conftest$ac_exeext
4781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782 (eval $ac_link) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest$ac_exeext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_lib_xnet_t_error=yes
4803else
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807ac_cv_lib_xnet_t_error=no
4808fi
4809rm -f conftest.err conftest.$ac_objext \
4810 conftest$ac_exeext conftest.$ac_ext
4811LIBS=$ac_check_lib_save_LIBS
4812fi
4813echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4814echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4815if test $ac_cv_lib_xnet_t_error = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817#define HAVE_LIBXNET 1
4818_ACEOF
4819
4820 LIBS="-lxnet $LIBS"
4821
4822else
4823 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4824echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4825 { (exit 1); exit 1; }; }
4826fi
4827
4828 disable_ptmx_check=yes
4829 ;;
4830*-*-hpux10*)
4831 if test -z "$GCC"; then
4832 CFLAGS="$CFLAGS -Ae"
4833 fi
4834 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
4835 IPADDR_IN_DISPLAY=yes
4836 cat >>confdefs.h <<\_ACEOF
4837#define USE_PIPES 1
4838_ACEOF
4839
4840 cat >>confdefs.h <<\_ACEOF
4841#define LOGIN_NO_ENDOPT 1
4842_ACEOF
4843
4844 cat >>confdefs.h <<\_ACEOF
4845#define LOGIN_NEEDS_UTMPX 1
4846_ACEOF
4847
4848 cat >>confdefs.h <<\_ACEOF
4849#define LOCKED_PASSWD_STRING "*"
4850_ACEOF
4851
4852 cat >>confdefs.h <<\_ACEOF
4853#define SPT_TYPE SPT_PSTAT
4854_ACEOF
4855
4856 LIBS="$LIBS -lsec"
4857
4858echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
4859echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
4860if test "${ac_cv_lib_xnet_t_error+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 ac_check_lib_save_LIBS=$LIBS
4864LIBS="-lxnet $LIBS"
4865cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871
4872/* Override any gcc2 internal prototype to avoid an error. */
4873#ifdef __cplusplus
4874extern "C"
4875#endif
4876/* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4878char t_error ();
4879int
4880main ()
4881{
4882t_error ();
4883 ;
4884 return 0;
4885}
4886_ACEOF
4887rm -f conftest.$ac_objext conftest$ac_exeext
4888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889 (eval $ac_link) 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest$ac_exeext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 ac_cv_lib_xnet_t_error=yes
4910else
4911 echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914ac_cv_lib_xnet_t_error=no
4915fi
4916rm -f conftest.err conftest.$ac_objext \
4917 conftest$ac_exeext conftest.$ac_ext
4918LIBS=$ac_check_lib_save_LIBS
4919fi
4920echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4921echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4922if test $ac_cv_lib_xnet_t_error = yes; then
4923 cat >>confdefs.h <<_ACEOF
4924#define HAVE_LIBXNET 1
4925_ACEOF
4926
4927 LIBS="-lxnet $LIBS"
4928
4929else
4930 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4931echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4932 { (exit 1); exit 1; }; }
4933fi
4934
4935 ;;
4936*-*-hpux11*)
4937 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
4938 IPADDR_IN_DISPLAY=yes
4939 cat >>confdefs.h <<\_ACEOF
4940#define PAM_SUN_CODEBASE 1
4941_ACEOF
4942
4943 cat >>confdefs.h <<\_ACEOF
4944#define USE_PIPES 1
4945_ACEOF
4946
4947 cat >>confdefs.h <<\_ACEOF
4948#define LOGIN_NO_ENDOPT 1
4949_ACEOF
4950
4951 cat >>confdefs.h <<\_ACEOF
4952#define LOGIN_NEEDS_UTMPX 1
4953_ACEOF
4954
4955 cat >>confdefs.h <<\_ACEOF
4956#define DISABLE_UTMP 1
4957_ACEOF
4958
4959 cat >>confdefs.h <<\_ACEOF
4960#define LOCKED_PASSWD_STRING "*"
4961_ACEOF
4962
4963 cat >>confdefs.h <<\_ACEOF
4964#define SPT_TYPE SPT_PSTAT
4965_ACEOF
4966
4967 check_for_hpux_broken_getaddrinfo=1
4968 LIBS="$LIBS -lsec"
4969
4970echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
4971echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
4972if test "${ac_cv_lib_xnet_t_error+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 ac_check_lib_save_LIBS=$LIBS
4976LIBS="-lxnet $LIBS"
4977cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983
4984/* Override any gcc2 internal prototype to avoid an error. */
4985#ifdef __cplusplus
4986extern "C"
4987#endif
4988/* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4990char t_error ();
4991int
4992main ()
4993{
4994t_error ();
4995 ;
4996 return 0;
4997}
4998_ACEOF
4999rm -f conftest.$ac_objext conftest$ac_exeext
5000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5001 (eval $ac_link) 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -z "$ac_c_werror_flag"
5009 || test ! -s conftest.err'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; } &&
5015 { ac_try='test -s conftest$ac_exeext'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 ac_cv_lib_xnet_t_error=yes
5022else
5023 echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026ac_cv_lib_xnet_t_error=no
5027fi
5028rm -f conftest.err conftest.$ac_objext \
5029 conftest$ac_exeext conftest.$ac_ext
5030LIBS=$ac_check_lib_save_LIBS
5031fi
5032echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5033echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5034if test $ac_cv_lib_xnet_t_error = yes; then
5035 cat >>confdefs.h <<_ACEOF
5036#define HAVE_LIBXNET 1
5037_ACEOF
5038
5039 LIBS="-lxnet $LIBS"
5040
5041else
5042 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5043echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5044 { (exit 1); exit 1; }; }
5045fi
5046
5047 ;;
5048*-*-irix5*)
5049 PATH="$PATH:/usr/etc"
5050 cat >>confdefs.h <<\_ACEOF
5051#define BROKEN_INET_NTOA 1
5052_ACEOF
5053
5054 cat >>confdefs.h <<\_ACEOF
5055#define SETEUID_BREAKS_SETUID 1
5056_ACEOF
5057
5058 cat >>confdefs.h <<\_ACEOF
5059#define BROKEN_SETREUID 1
5060_ACEOF
5061
5062 cat >>confdefs.h <<\_ACEOF
5063#define BROKEN_SETREGID 1
5064_ACEOF
5065
5066 cat >>confdefs.h <<\_ACEOF
5067#define WITH_ABBREV_NO_TTY 1
5068_ACEOF
5069
5070 cat >>confdefs.h <<\_ACEOF
5071#define LOCKED_PASSWD_STRING "*LK*"
5072_ACEOF
5073
5074 ;;
5075*-*-irix6*)
5076 PATH="$PATH:/usr/etc"
5077 cat >>confdefs.h <<\_ACEOF
5078#define WITH_IRIX_ARRAY 1
5079_ACEOF
5080
5081 cat >>confdefs.h <<\_ACEOF
5082#define WITH_IRIX_PROJECT 1
5083_ACEOF
5084
5085 cat >>confdefs.h <<\_ACEOF
5086#define WITH_IRIX_AUDIT 1
5087_ACEOF
5088
5089 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
5090echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
5091if test "${ac_cv_func_jlimit_startjob+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
5101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5102#define jlimit_startjob innocuous_jlimit_startjob
5103
5104/* System header to define __stub macros and hopefully few prototypes,
5105 which can conflict with char jlimit_startjob (); below.
5106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 <limits.h> exists even on freestanding compilers. */
5108
5109#ifdef __STDC__
5110# include <limits.h>
5111#else
5112# include <assert.h>
5113#endif
5114
5115#undef jlimit_startjob
5116
5117/* Override any gcc2 internal prototype to avoid an error. */
5118#ifdef __cplusplus
5119extern "C"
5120{
5121#endif
5122/* We use char because int might match the return type of a gcc2
5123 builtin and then its argument prototype would still apply. */
5124char jlimit_startjob ();
5125/* The GNU C library defines this for functions which it implements
5126 to always fail with ENOSYS. Some functions are actually named
5127 something starting with __ and the normal name is an alias. */
5128#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
5129choke me
5130#else
5131char (*f) () = jlimit_startjob;
5132#endif
5133#ifdef __cplusplus
5134}
5135#endif
5136
5137int
5138main ()
5139{
5140return f != jlimit_startjob;
5141 ;
5142 return 0;
5143}
5144_ACEOF
5145rm -f conftest.$ac_objext conftest$ac_exeext
5146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5147 (eval $ac_link) 2>conftest.er1
5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -z "$ac_c_werror_flag"
5155 || test ! -s conftest.err'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; } &&
5161 { ac_try='test -s conftest$ac_exeext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_cv_func_jlimit_startjob=yes
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172ac_cv_func_jlimit_startjob=no
5173fi
5174rm -f conftest.err conftest.$ac_objext \
5175 conftest$ac_exeext conftest.$ac_ext
5176fi
5177echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
5178echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
5179if test $ac_cv_func_jlimit_startjob = yes; then
5180 cat >>confdefs.h <<\_ACEOF
5181#define WITH_IRIX_JOBS 1
5182_ACEOF
5183
5184fi
5185
5186 cat >>confdefs.h <<\_ACEOF
5187#define BROKEN_INET_NTOA 1
5188_ACEOF
5189
5190 cat >>confdefs.h <<\_ACEOF
5191#define SETEUID_BREAKS_SETUID 1
5192_ACEOF
5193
5194 cat >>confdefs.h <<\_ACEOF
5195#define BROKEN_SETREUID 1
5196_ACEOF
5197
5198 cat >>confdefs.h <<\_ACEOF
5199#define BROKEN_SETREGID 1
5200_ACEOF
5201
5202 cat >>confdefs.h <<\_ACEOF
5203#define BROKEN_UPDWTMPX 1
5204_ACEOF
5205
5206 cat >>confdefs.h <<\_ACEOF
5207#define WITH_ABBREV_NO_TTY 1
5208_ACEOF
5209
5210 cat >>confdefs.h <<\_ACEOF
5211#define LOCKED_PASSWD_STRING "*LK*"
5212_ACEOF
5213
5214 ;;
5215*-*-linux*)
5216 no_dev_ptmx=1
5217 check_for_libcrypt_later=1
5218 check_for_openpty_ctty_bug=1
5219 cat >>confdefs.h <<\_ACEOF
5220#define DONT_TRY_OTHER_AF 1
5221_ACEOF
5222
5223 cat >>confdefs.h <<\_ACEOF
5224#define PAM_TTY_KLUDGE 1
5225_ACEOF
5226
5227 cat >>confdefs.h <<\_ACEOF
5228#define LOCKED_PASSWD_PREFIX "!"
5229_ACEOF
5230
5231 cat >>confdefs.h <<\_ACEOF
5232#define SPT_TYPE SPT_REUSEARGV
5233_ACEOF
5234
5235 cat >>confdefs.h <<\_ACEOF
5236#define LINK_OPNOTSUPP_ERRNO EPERM
5237_ACEOF
5238
5239 inet6_default_4in6=yes
5240 case `uname -r` in
5241 1.*|2.0.*)
5242 cat >>confdefs.h <<\_ACEOF
5243#define BROKEN_CMSG_TYPE 1
5244_ACEOF
5245
5246 ;;
5247 esac
5248 ;;
5249mips-sony-bsd|mips-sony-newsos4)
5250 cat >>confdefs.h <<\_ACEOF
5251#define HAVE_NEWS4 1
5252_ACEOF
5253
5254 SONY=1
5255 ;;
5256*-*-netbsd*)
5257 check_for_libcrypt_before=1
5258 if test "x$withval" != "xno" ; then
5259 need_dash_r=1
5260 fi
5261 ;;
5262*-*-freebsd*)
5263 check_for_libcrypt_later=1
5264 ;;
5265*-*-bsdi*)
5266 cat >>confdefs.h <<\_ACEOF
5267#define SETEUID_BREAKS_SETUID 1
5268_ACEOF
5269
5270 cat >>confdefs.h <<\_ACEOF
5271#define BROKEN_SETREUID 1
5272_ACEOF
5273
5274 cat >>confdefs.h <<\_ACEOF
5275#define BROKEN_SETREGID 1
5276_ACEOF
5277
5278 ;;
5279*-next-*)
5280 conf_lastlog_location="/usr/adm/lastlog"
5281 conf_utmp_location=/etc/utmp
5282 conf_wtmp_location=/usr/adm/wtmp
5283 MAIL=/usr/spool/mail
5284 cat >>confdefs.h <<\_ACEOF
5285#define HAVE_NEXT 1
5286_ACEOF
5287
5288 cat >>confdefs.h <<\_ACEOF
5289#define BROKEN_REALPATH 1
5290_ACEOF
5291
5292 cat >>confdefs.h <<\_ACEOF
5293#define USE_PIPES 1
5294_ACEOF
5295
5296 cat >>confdefs.h <<\_ACEOF
5297#define BROKEN_SAVED_UIDS 1
5298_ACEOF
5299
5300 ;;
5301*-*-solaris*)
5302 if test "x$withval" != "xno" ; then
5303 need_dash_r=1
5304 fi
5305 cat >>confdefs.h <<\_ACEOF
5306#define PAM_SUN_CODEBASE 1
5307_ACEOF
5308
5309 cat >>confdefs.h <<\_ACEOF
5310#define LOGIN_NEEDS_UTMPX 1
5311_ACEOF
5312
5313 cat >>confdefs.h <<\_ACEOF
5314#define LOGIN_NEEDS_TERM 1
5315_ACEOF
5316
5317 cat >>confdefs.h <<\_ACEOF
5318#define PAM_TTY_KLUDGE 1
5319_ACEOF
5320
5321 cat >>confdefs.h <<\_ACEOF
5322#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
5323_ACEOF
5324
5325 cat >>confdefs.h <<\_ACEOF
5326#define LOCKED_PASSWD_STRING "*LK*"
5327_ACEOF
5328
5329 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
5330 cat >>confdefs.h <<\_ACEOF
5331#define SSHD_ACQUIRES_CTTY 1
5332_ACEOF
5333
5334 external_path_file=/etc/default/login
5335 # hardwire lastlog location (can't detect it on some versions)
5336 conf_lastlog_location="/var/adm/lastlog"
5337 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
5338echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
5339 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
5340 if test "$sol2ver" -ge 8; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342echo "${ECHO_T}yes" >&6
5343 cat >>confdefs.h <<\_ACEOF
5344#define DISABLE_UTMP 1
5345_ACEOF
5346
5347 cat >>confdefs.h <<\_ACEOF
5348#define DISABLE_WTMP 1
5349_ACEOF
5350
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354 fi
5355 ;;
5356*-*-sunos4*)
5357 CPPFLAGS="$CPPFLAGS -DSUNOS4"
5358
5359for ac_func in getpwanam
5360do
5361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5362echo "$as_me:$LINENO: checking for $ac_func" >&5
5363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5364if eval "test \"\${$as_ac_var+set}\" = set"; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5375#define $ac_func innocuous_$ac_func
5376
5377/* System header to define __stub macros and hopefully few prototypes,
5378 which can conflict with char $ac_func (); below.
5379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 <limits.h> exists even on freestanding compilers. */
5381
5382#ifdef __STDC__
5383# include <limits.h>
5384#else
5385# include <assert.h>
5386#endif
5387
5388#undef $ac_func
5389
5390/* Override any gcc2 internal prototype to avoid an error. */
5391#ifdef __cplusplus
5392extern "C"
5393{
5394#endif
5395/* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5397char $ac_func ();
5398/* The GNU C library defines this for functions which it implements
5399 to always fail with ENOSYS. Some functions are actually named
5400 something starting with __ and the normal name is an alias. */
5401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5402choke me
5403#else
5404char (*f) () = $ac_func;
5405#endif
5406#ifdef __cplusplus
5407}
5408#endif
5409
5410int
5411main ()
5412{
5413return f != $ac_func;
5414 ;
5415 return 0;
5416}
5417_ACEOF
5418rm -f conftest.$ac_objext conftest$ac_exeext
5419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420 (eval $ac_link) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest$ac_exeext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 eval "$as_ac_var=yes"
5441else
5442 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445eval "$as_ac_var=no"
5446fi
5447rm -f conftest.err conftest.$ac_objext \
5448 conftest$ac_exeext conftest.$ac_ext
5449fi
5450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5452if test `eval echo '${'$as_ac_var'}'` = yes; then
5453 cat >>confdefs.h <<_ACEOF
5454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5455_ACEOF
5456
5457fi
5458done
5459
5460 cat >>confdefs.h <<\_ACEOF
5461#define PAM_SUN_CODEBASE 1
5462_ACEOF
5463
5464 conf_utmp_location=/etc/utmp
5465 conf_wtmp_location=/var/adm/wtmp
5466 conf_lastlog_location=/var/adm/lastlog
5467 cat >>confdefs.h <<\_ACEOF
5468#define USE_PIPES 1
5469_ACEOF
5470
5471 ;;
5472*-ncr-sysv*)
5473 LIBS="$LIBS -lc89"
5474 cat >>confdefs.h <<\_ACEOF
5475#define USE_PIPES 1
5476_ACEOF
5477
5478 cat >>confdefs.h <<\_ACEOF
5479#define SSHD_ACQUIRES_CTTY 1
5480_ACEOF
5481
5482 cat >>confdefs.h <<\_ACEOF
5483#define SETEUID_BREAKS_SETUID 1
5484_ACEOF
5485
5486 cat >>confdefs.h <<\_ACEOF
5487#define BROKEN_SETREUID 1
5488_ACEOF
5489
5490 cat >>confdefs.h <<\_ACEOF
5491#define BROKEN_SETREGID 1
5492_ACEOF
5493
5494 ;;
5495*-sni-sysv*)
5496 # /usr/ucblib MUST NOT be searched on ReliantUNIX
5497
5498echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
5499echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5500if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 ac_check_lib_save_LIBS=$LIBS
5504LIBS="-ldl $LIBS"
5505cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511
5512/* Override any gcc2 internal prototype to avoid an error. */
5513#ifdef __cplusplus
5514extern "C"
5515#endif
5516/* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5518char dlsym ();
5519int
5520main ()
5521{
5522dlsym ();
5523 ;
5524 return 0;
5525}
5526_ACEOF
5527rm -f conftest.$ac_objext conftest$ac_exeext
5528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_lib_dl_dlsym=yes
5550else
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554ac_cv_lib_dl_dlsym=no
5555fi
5556rm -f conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558LIBS=$ac_check_lib_save_LIBS
5559fi
5560echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
5561echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5562if test $ac_cv_lib_dl_dlsym = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564#define HAVE_LIBDL 1
5565_ACEOF
5566
5567 LIBS="-ldl $LIBS"
5568
5569fi
5570
5571 IPADDR_IN_DISPLAY=yes
5572 cat >>confdefs.h <<\_ACEOF
5573#define USE_PIPES 1
5574_ACEOF
5575
5576 cat >>confdefs.h <<\_ACEOF
5577#define IP_TOS_IS_BROKEN 1
5578_ACEOF
5579
5580 cat >>confdefs.h <<\_ACEOF
5581#define SETEUID_BREAKS_SETUID 1
5582_ACEOF
5583
5584 cat >>confdefs.h <<\_ACEOF
5585#define BROKEN_SETREUID 1
5586_ACEOF
5587
5588 cat >>confdefs.h <<\_ACEOF
5589#define BROKEN_SETREGID 1
5590_ACEOF
5591
5592 cat >>confdefs.h <<\_ACEOF
5593#define SSHD_ACQUIRES_CTTY 1
5594_ACEOF
5595
5596 external_path_file=/etc/default/login
5597 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
5598 # Attention: always take care to bind libsocket and libnsl before libc,
5599 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
5600 ;;
5601*-*-sysv4.2*)
5602 cat >>confdefs.h <<\_ACEOF
5603#define USE_PIPES 1
5604_ACEOF
5605
5606 cat >>confdefs.h <<\_ACEOF
5607#define SETEUID_BREAKS_SETUID 1
5608_ACEOF
5609
5610 cat >>confdefs.h <<\_ACEOF
5611#define BROKEN_SETREUID 1
5612_ACEOF
5613
5614 cat >>confdefs.h <<\_ACEOF
5615#define BROKEN_SETREGID 1
5616_ACEOF
5617
5618 ;;
5619*-*-sysv5*)
5620 cat >>confdefs.h <<\_ACEOF
5621#define USE_PIPES 1
5622_ACEOF
5623
5624 cat >>confdefs.h <<\_ACEOF
5625#define SETEUID_BREAKS_SETUID 1
5626_ACEOF
5627
5628 cat >>confdefs.h <<\_ACEOF
5629#define BROKEN_SETREUID 1
5630_ACEOF
5631
5632 cat >>confdefs.h <<\_ACEOF
5633#define BROKEN_SETREGID 1
5634_ACEOF
5635
5636 ;;
5637*-*-sysv*)
5638 ;;
5639*-*-sco3.2v4*)
5640 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize"
5641 LIBS="$LIBS -los -lprot -lcrypt_i -lx -ltinfo -lm"
5642 RANLIB=true
5643 no_dev_ptmx=1
5644 cat >>confdefs.h <<\_ACEOF
5645#define BROKEN_SYS_TERMIO_H 1
5646_ACEOF
5647
5648 cat >>confdefs.h <<\_ACEOF
5649#define USE_PIPES 1
5650_ACEOF
5651
5652 cat >>confdefs.h <<\_ACEOF
5653#define HAVE_SECUREWARE 1
5654_ACEOF
5655
5656 cat >>confdefs.h <<\_ACEOF
5657#define DISABLE_SHADOW 1
5658_ACEOF
5659
5660 cat >>confdefs.h <<\_ACEOF
5661#define BROKEN_SAVED_UIDS 1
5662_ACEOF
5663
5664 cat >>confdefs.h <<\_ACEOF
5665#define SETEUID_BREAKS_SETUID 1
5666_ACEOF
5667
5668 cat >>confdefs.h <<\_ACEOF
5669#define BROKEN_SETREUID 1
5670_ACEOF
5671
5672 cat >>confdefs.h <<\_ACEOF
5673#define BROKEN_SETREGID 1
5674_ACEOF
5675
5676 cat >>confdefs.h <<\_ACEOF
5677#define WITH_ABBREV_NO_TTY 1
5678_ACEOF
5679
5680
5681
5682for ac_func in getluid setluid
5683do
5684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5685echo "$as_me:$LINENO: checking for $ac_func" >&5
5686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5687if eval "test \"\${$as_ac_var+set}\" = set"; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689else
5690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5698#define $ac_func innocuous_$ac_func
5699
5700/* System header to define __stub macros and hopefully few prototypes,
5701 which can conflict with char $ac_func (); below.
5702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 <limits.h> exists even on freestanding compilers. */
5704
5705#ifdef __STDC__
5706# include <limits.h>
5707#else
5708# include <assert.h>
5709#endif
5710
5711#undef $ac_func
5712
5713/* Override any gcc2 internal prototype to avoid an error. */
5714#ifdef __cplusplus
5715extern "C"
5716{
5717#endif
5718/* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5720char $ac_func ();
5721/* The GNU C library defines this for functions which it implements
5722 to always fail with ENOSYS. Some functions are actually named
5723 something starting with __ and the normal name is an alias. */
5724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5725choke me
5726#else
5727char (*f) () = $ac_func;
5728#endif
5729#ifdef __cplusplus
5730}
5731#endif
5732
5733int
5734main ()
5735{
5736return f != $ac_func;
5737 ;
5738 return 0;
5739}
5740_ACEOF
5741rm -f conftest.$ac_objext conftest$ac_exeext
5742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743 (eval $ac_link) 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -z "$ac_c_werror_flag"
5751 || test ! -s conftest.err'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; } &&
5757 { ac_try='test -s conftest$ac_exeext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 eval "$as_ac_var=yes"
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768eval "$as_ac_var=no"
5769fi
5770rm -f conftest.err conftest.$ac_objext \
5771 conftest$ac_exeext conftest.$ac_ext
5772fi
5773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5775if test `eval echo '${'$as_ac_var'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5778_ACEOF
5779
5780fi
5781done
5782
5783 MANTYPE=man
5784 do_sco3_extra_lib_check=yes
5785 TEST_SHELL=ksh
5786 ;;
5787*-*-sco3.2v5*)
5788 if test -z "$GCC"; then
5789 CFLAGS="$CFLAGS -belf"
5790 fi
5791 LIBS="$LIBS -lprot -lx -ltinfo -lm"
5792 no_dev_ptmx=1
5793 cat >>confdefs.h <<\_ACEOF
5794#define USE_PIPES 1
5795_ACEOF
5796
5797 cat >>confdefs.h <<\_ACEOF
5798#define HAVE_SECUREWARE 1
5799_ACEOF
5800
5801 cat >>confdefs.h <<\_ACEOF
5802#define DISABLE_SHADOW 1
5803_ACEOF
5804
5805 cat >>confdefs.h <<\_ACEOF
5806#define DISABLE_FD_PASSING 1
5807_ACEOF
5808
5809 cat >>confdefs.h <<\_ACEOF
5810#define SETEUID_BREAKS_SETUID 1
5811_ACEOF
5812
5813 cat >>confdefs.h <<\_ACEOF
5814#define BROKEN_SETREUID 1
5815_ACEOF
5816
5817 cat >>confdefs.h <<\_ACEOF
5818#define BROKEN_SETREGID 1
5819_ACEOF
5820
5821 cat >>confdefs.h <<\_ACEOF
5822#define WITH_ABBREV_NO_TTY 1
5823_ACEOF
5824
5825 cat >>confdefs.h <<\_ACEOF
5826#define BROKEN_UPDWTMPX 1
5827_ACEOF
5828
5829
5830
5831for ac_func in getluid setluid
5832do
5833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5834echo "$as_me:$LINENO: checking for $ac_func" >&5
5835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5836if eval "test \"\${$as_ac_var+set}\" = set"; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5847#define $ac_func innocuous_$ac_func
5848
5849/* System header to define __stub macros and hopefully few prototypes,
5850 which can conflict with char $ac_func (); below.
5851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852 <limits.h> exists even on freestanding compilers. */
5853
5854#ifdef __STDC__
5855# include <limits.h>
5856#else
5857# include <assert.h>
5858#endif
5859
5860#undef $ac_func
5861
5862/* Override any gcc2 internal prototype to avoid an error. */
5863#ifdef __cplusplus
5864extern "C"
5865{
5866#endif
5867/* We use char because int might match the return type of a gcc2
5868 builtin and then its argument prototype would still apply. */
5869char $ac_func ();
5870/* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
5873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5874choke me
5875#else
5876char (*f) () = $ac_func;
5877#endif
5878#ifdef __cplusplus
5879}
5880#endif
5881
5882int
5883main ()
5884{
5885return f != $ac_func;
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext conftest$ac_exeext
5891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892 (eval $ac_link) 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try='test -z "$ac_c_werror_flag"
5900 || test ! -s conftest.err'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest$ac_exeext'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5912 eval "$as_ac_var=yes"
5913else
5914 echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917eval "$as_ac_var=no"
5918fi
5919rm -f conftest.err conftest.$ac_objext \
5920 conftest$ac_exeext conftest.$ac_ext
5921fi
5922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5924if test `eval echo '${'$as_ac_var'}'` = yes; then
5925 cat >>confdefs.h <<_ACEOF
5926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5927_ACEOF
5928
5929fi
5930done
5931
5932 MANTYPE=man
5933 TEST_SHELL=ksh
5934 ;;
5935*-*-unicosmk*)
5936 cat >>confdefs.h <<\_ACEOF
5937#define NO_SSH_LASTLOG 1
5938_ACEOF
5939
5940 cat >>confdefs.h <<\_ACEOF
5941#define SETEUID_BREAKS_SETUID 1
5942_ACEOF
5943
5944 cat >>confdefs.h <<\_ACEOF
5945#define BROKEN_SETREUID 1
5946_ACEOF
5947
5948 cat >>confdefs.h <<\_ACEOF
5949#define BROKEN_SETREGID 1
5950_ACEOF
5951
5952 cat >>confdefs.h <<\_ACEOF
5953#define USE_PIPES 1
5954_ACEOF
5955
5956 cat >>confdefs.h <<\_ACEOF
5957#define DISABLE_FD_PASSING 1
5958_ACEOF
5959
5960 LDFLAGS="$LDFLAGS"
5961 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
5962 MANTYPE=cat
5963 ;;
5964*-*-unicosmp*)
5965 cat >>confdefs.h <<\_ACEOF
5966#define SETEUID_BREAKS_SETUID 1
5967_ACEOF
5968
5969 cat >>confdefs.h <<\_ACEOF
5970#define BROKEN_SETREUID 1
5971_ACEOF
5972
5973 cat >>confdefs.h <<\_ACEOF
5974#define BROKEN_SETREGID 1
5975_ACEOF
5976
5977 cat >>confdefs.h <<\_ACEOF
5978#define WITH_ABBREV_NO_TTY 1
5979_ACEOF
5980
5981 cat >>confdefs.h <<\_ACEOF
5982#define USE_PIPES 1
5983_ACEOF
5984
5985 cat >>confdefs.h <<\_ACEOF
5986#define DISABLE_FD_PASSING 1
5987_ACEOF
5988
5989 LDFLAGS="$LDFLAGS"
5990 LIBS="$LIBS -lgen -lacid -ldb"
5991 MANTYPE=cat
5992 ;;
5993*-*-unicos*)
5994 cat >>confdefs.h <<\_ACEOF
5995#define SETEUID_BREAKS_SETUID 1
5996_ACEOF
5997
5998 cat >>confdefs.h <<\_ACEOF
5999#define BROKEN_SETREUID 1
6000_ACEOF
6001
6002 cat >>confdefs.h <<\_ACEOF
6003#define BROKEN_SETREGID 1
6004_ACEOF
6005
6006 cat >>confdefs.h <<\_ACEOF
6007#define USE_PIPES 1
6008_ACEOF
6009
6010 cat >>confdefs.h <<\_ACEOF
6011#define DISABLE_FD_PASSING 1
6012_ACEOF
6013
6014 cat >>confdefs.h <<\_ACEOF
6015#define NO_SSH_LASTLOG 1
6016_ACEOF
6017
6018 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
6019 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6020 MANTYPE=cat
6021 ;;
6022*-dec-osf*)
6023 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
6024echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
6025 no_osfsia=""
6026
6027# Check whether --with-osfsia or --without-osfsia was given.
6028if test "${with_osfsia+set}" = set; then
6029 withval="$with_osfsia"
6030
6031 if test "x$withval" = "xno" ; then
6032 echo "$as_me:$LINENO: result: disabled" >&5
6033echo "${ECHO_T}disabled" >&6
6034 no_osfsia=1
6035 fi
6036
6037fi;
6038 if test -z "$no_osfsia" ; then
6039 if test -f /etc/sia/matrix.conf; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 cat >>confdefs.h <<\_ACEOF
6043#define HAVE_OSF_SIA 1
6044_ACEOF
6045
6046 cat >>confdefs.h <<\_ACEOF
6047#define DISABLE_LOGIN 1
6048_ACEOF
6049
6050 cat >>confdefs.h <<\_ACEOF
6051#define DISABLE_FD_PASSING 1
6052_ACEOF
6053
6054 LIBS="$LIBS -lsecurity -ldb -lm -laud"
6055 else
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058 cat >>confdefs.h <<\_ACEOF
6059#define LOCKED_PASSWD_SUBSTR "Nologin"
6060_ACEOF
6061
6062 fi
6063 fi
6064 cat >>confdefs.h <<\_ACEOF
6065#define BROKEN_GETADDRINFO 1
6066_ACEOF
6067
6068 cat >>confdefs.h <<\_ACEOF
6069#define SETEUID_BREAKS_SETUID 1
6070_ACEOF
6071
6072 cat >>confdefs.h <<\_ACEOF
6073#define BROKEN_SETREUID 1
6074_ACEOF
6075
6076 cat >>confdefs.h <<\_ACEOF
6077#define BROKEN_SETREGID 1
6078_ACEOF
6079
6080 ;;
6081
6082*-*-nto-qnx)
6083 cat >>confdefs.h <<\_ACEOF
6084#define USE_PIPES 1
6085_ACEOF
6086
6087 cat >>confdefs.h <<\_ACEOF
6088#define NO_X11_UNIX_SOCKETS 1
6089_ACEOF
6090
6091 cat >>confdefs.h <<\_ACEOF
6092#define MISSING_NFDBITS 1
6093_ACEOF
6094
6095 cat >>confdefs.h <<\_ACEOF
6096#define MISSING_HOWMANY 1
6097_ACEOF
6098
6099 cat >>confdefs.h <<\_ACEOF
6100#define MISSING_FD_MASK 1
6101_ACEOF
6102
6103 ;;
6104esac
6105
6106# Allow user to specify flags
6107
6108# Check whether --with-cflags or --without-cflags was given.
6109if test "${with_cflags+set}" = set; then
6110 withval="$with_cflags"
6111
6112 if test "x$withval" != "xno" ; then
6113 CFLAGS="$CFLAGS $withval"
6114 fi
6115
6116
6117fi;
6118
6119# Check whether --with-cppflags or --without-cppflags was given.
6120if test "${with_cppflags+set}" = set; then
6121 withval="$with_cppflags"
6122
6123 if test "x$withval" != "xno"; then
6124 CPPFLAGS="$CPPFLAGS $withval"
6125 fi
6126
6127
6128fi;
6129
6130# Check whether --with-ldflags or --without-ldflags was given.
6131if test "${with_ldflags+set}" = set; then
6132 withval="$with_ldflags"
6133
6134 if test "x$withval" != "xno" ; then
6135 LDFLAGS="$LDFLAGS $withval"
6136 fi
6137
6138
6139fi;
6140
6141# Check whether --with-libs or --without-libs was given.
6142if test "${with_libs+set}" = set; then
6143 withval="$with_libs"
6144
6145 if test "x$withval" != "xno" ; then
6146 LIBS="$LIBS $withval"
6147 fi
6148
6149
6150fi;
6151
6152echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
6153echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
6154if test "$cross_compiling" = yes; then
6155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6156See \`config.log' for more details." >&5
6157echo "$as_me: error: cannot run test program while cross compiling
6158See \`config.log' for more details." >&2;}
6159 { (exit 1); exit 1; }; }
6160else
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167
6168#include <stdio.h>
6169int main(){exit(0);}
6170
6171_ACEOF
6172rm -f conftest$ac_exeext
6173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 echo "$as_me:$LINENO: result: yes" >&5
6184echo "${ECHO_T}yes" >&6
6185else
6186 echo "$as_me: program exited with status $ac_status" >&5
6187echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190( exit $ac_status )
6191
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
6194 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
6195echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
6196 { (exit 1); exit 1; }; }
6197
6198
6199fi
6200rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6201fi
6202
6203# Checks for header files.
6204
6205echo "$as_me:$LINENO: checking for egrep" >&5
6206echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6207if test "${ac_cv_prog_egrep+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6211 then ac_cv_prog_egrep='grep -E'
6212 else ac_cv_prog_egrep='egrep'
6213 fi
6214fi
6215echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6216echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6217 EGREP=$ac_cv_prog_egrep
6218
6219
6220echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6221echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6222if test "${ac_cv_header_stdc+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231#include <stdlib.h>
6232#include <stdarg.h>
6233#include <string.h>
6234#include <float.h>
6235
6236int
6237main ()
6238{
6239
6240 ;
6241 return 0;
6242}
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag"
6254 || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_header_stdc=yes
6267else
6268 echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271ac_cv_header_stdc=no
6272fi
6273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274
6275if test $ac_cv_header_stdc = yes; then
6276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6277 cat >conftest.$ac_ext <<_ACEOF
6278/* confdefs.h. */
6279_ACEOF
6280cat confdefs.h >>conftest.$ac_ext
6281cat >>conftest.$ac_ext <<_ACEOF
6282/* end confdefs.h. */
6283#include <string.h>
6284
6285_ACEOF
6286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287 $EGREP "memchr" >/dev/null 2>&1; then
6288 :
6289else
6290 ac_cv_header_stdc=no
6291fi
6292rm -f conftest*
6293
6294fi
6295
6296if test $ac_cv_header_stdc = yes; then
6297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6298 cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304#include <stdlib.h>
6305
6306_ACEOF
6307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308 $EGREP "free" >/dev/null 2>&1; then
6309 :
6310else
6311 ac_cv_header_stdc=no
6312fi
6313rm -f conftest*
6314
6315fi
6316
6317if test $ac_cv_header_stdc = yes; then
6318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6319 if test "$cross_compiling" = yes; then
6320 :
6321else
6322 cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328#include <ctype.h>
6329#if ((' ' & 0x0FF) == 0x020)
6330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6332#else
6333# define ISLOWER(c) \
6334 (('a' <= (c) && (c) <= 'i') \
6335 || ('j' <= (c) && (c) <= 'r') \
6336 || ('s' <= (c) && (c) <= 'z'))
6337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6338#endif
6339
6340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6341int
6342main ()
6343{
6344 int i;
6345 for (i = 0; i < 256; i++)
6346 if (XOR (islower (i), ISLOWER (i))
6347 || toupper (i) != TOUPPER (i))
6348 exit(2);
6349 exit (0);
6350}
6351_ACEOF
6352rm -f conftest$ac_exeext
6353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 :
6364else
6365 echo "$as_me: program exited with status $ac_status" >&5
6366echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369( exit $ac_status )
6370ac_cv_header_stdc=no
6371fi
6372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6373fi
6374fi
6375fi
6376echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6377echo "${ECHO_T}$ac_cv_header_stdc" >&6
6378if test $ac_cv_header_stdc = yes; then
6379
6380cat >>confdefs.h <<\_ACEOF
6381#define STDC_HEADERS 1
6382_ACEOF
6383
6384fi
6385
6386# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6397 inttypes.h stdint.h unistd.h
6398do
6399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400echo "$as_me:$LINENO: checking for $ac_header" >&5
6401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h. */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h. */
6411$ac_includes_default
6412
6413#include <$ac_header>
6414_ACEOF
6415rm -f conftest.$ac_objext
6416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 eval "$as_ac_Header=yes"
6438else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442eval "$as_ac_Header=no"
6443fi
6444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445fi
6446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6448if test `eval echo '${'$as_ac_Header'}'` = yes; then
6449 cat >>confdefs.h <<_ACEOF
6450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6451_ACEOF
6452
6453fi
6454
6455done
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514for ac_header in bstring.h crypt.h dirent.h endian.h features.h \
6515 floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \
6516 login_cap.h maillock.h ndir.h netdb.h netgroup.h \
6517 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \
6518 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
6519 strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \
6520 sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \
6521 sys/pstat.h sys/ptms.h sys/select.h sys/stat.h sys/stream.h \
6522 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \
6523 time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h
6524do
6525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6526if eval "test \"\${$as_ac_Header+set}\" = set"; then
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531fi
6532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534else
6535 # Is the header compilable?
6536echo "$as_me:$LINENO: checking $ac_header usability" >&5
6537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6538cat >conftest.$ac_ext <<_ACEOF
6539/* confdefs.h. */
6540_ACEOF
6541cat confdefs.h >>conftest.$ac_ext
6542cat >>conftest.$ac_ext <<_ACEOF
6543/* end confdefs.h. */
6544$ac_includes_default
6545#include <$ac_header>
6546_ACEOF
6547rm -f conftest.$ac_objext
6548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_header_compiler=yes
6570else
6571 echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574ac_header_compiler=no
6575fi
6576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6578echo "${ECHO_T}$ac_header_compiler" >&6
6579
6580# Is the header present?
6581echo "$as_me:$LINENO: checking $ac_header presence" >&5
6582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6583cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
6589#include <$ac_header>
6590_ACEOF
6591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev/null; then
6599 if test -s conftest.err; then
6600 ac_cpp_err=$ac_c_preproc_warn_flag
6601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6602 else
6603 ac_cpp_err=
6604 fi
6605else
6606 ac_cpp_err=yes
6607fi
6608if test -z "$ac_cpp_err"; then
6609 ac_header_preproc=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_header_preproc=no
6615fi
6616rm -f conftest.err conftest.$ac_ext
6617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618echo "${ECHO_T}$ac_header_preproc" >&6
6619
6620# So? What about this header?
6621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6622 yes:no: )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627 ac_header_preproc=yes
6628 ;;
6629 no:yes:* )
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6642 (
6643 cat <<\_ASBOX
6644## ------------------------------------------ ##
6645## Report this to the AC_PACKAGE_NAME lists. ##
6646## ------------------------------------------ ##
6647_ASBOX
6648 ) |
6649 sed "s/^/$as_me: WARNING: /" >&2
6650 ;;
6651esac
6652echo "$as_me:$LINENO: checking for $ac_header" >&5
6653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6654if eval "test \"\${$as_ac_Header+set}\" = set"; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657 eval "$as_ac_Header=\$ac_header_preproc"
6658fi
6659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661
6662fi
6663if test `eval echo '${'$as_ac_Header'}'` = yes; then
6664 cat >>confdefs.h <<_ACEOF
6665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666_ACEOF
6667
6668fi
6669
6670done
6671
6672
6673# Checks for libraries.
6674echo "$as_me:$LINENO: checking for yp_match" >&5
6675echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
6676if test "${ac_cv_func_yp_match+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678else
6679 cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h. */
6685/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
6686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6687#define yp_match innocuous_yp_match
6688
6689/* System header to define __stub macros and hopefully few prototypes,
6690 which can conflict with char yp_match (); below.
6691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6692 <limits.h> exists even on freestanding compilers. */
6693
6694#ifdef __STDC__
6695# include <limits.h>
6696#else
6697# include <assert.h>
6698#endif
6699
6700#undef yp_match
6701
6702/* Override any gcc2 internal prototype to avoid an error. */
6703#ifdef __cplusplus
6704extern "C"
6705{
6706#endif
6707/* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709char yp_match ();
6710/* The GNU C library defines this for functions which it implements
6711 to always fail with ENOSYS. Some functions are actually named
6712 something starting with __ and the normal name is an alias. */
6713#if defined (__stub_yp_match) || defined (__stub___yp_match)
6714choke me
6715#else
6716char (*f) () = yp_match;
6717#endif
6718#ifdef __cplusplus
6719}
6720#endif
6721
6722int
6723main ()
6724{
6725return f != yp_match;
6726 ;
6727 return 0;
6728}
6729_ACEOF
6730rm -f conftest.$ac_objext conftest$ac_exeext
6731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732 (eval $ac_link) 2>conftest.er1
6733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_c_werror_flag"
6740 || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_func_yp_match=yes
6753else
6754 echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
6756
6757ac_cv_func_yp_match=no
6758fi
6759rm -f conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761fi
6762echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
6763echo "${ECHO_T}$ac_cv_func_yp_match" >&6
6764if test $ac_cv_func_yp_match = yes; then
6765 :
6766else
6767
6768echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
6769echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
6770if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 ac_check_lib_save_LIBS=$LIBS
6774LIBS="-lnsl $LIBS"
6775cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781
6782/* Override any gcc2 internal prototype to avoid an error. */
6783#ifdef __cplusplus
6784extern "C"
6785#endif
6786/* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6788char yp_match ();
6789int
6790main ()
6791{
6792yp_match ();
6793 ;
6794 return 0;
6795}
6796_ACEOF
6797rm -f conftest.$ac_objext conftest$ac_exeext
6798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 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_exeext'
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_cv_lib_nsl_yp_match=yes
6820else
6821 echo "$as_me: failed program was:" >&5
6822sed 's/^/| /' conftest.$ac_ext >&5
6823
6824ac_cv_lib_nsl_yp_match=no
6825fi
6826rm -f conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828LIBS=$ac_check_lib_save_LIBS
6829fi
6830echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
6831echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
6832if test $ac_cv_lib_nsl_yp_match = yes; then
6833 cat >>confdefs.h <<_ACEOF
6834#define HAVE_LIBNSL 1
6835_ACEOF
6836
6837 LIBS="-lnsl $LIBS"
6838
6839fi
6840
6841fi
6842
6843echo "$as_me:$LINENO: checking for setsockopt" >&5
6844echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
6845if test "${ac_cv_func_setsockopt+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 cat >conftest.$ac_ext <<_ACEOF
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
6855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6856#define setsockopt innocuous_setsockopt
6857
6858/* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char setsockopt (); below.
6860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 <limits.h> exists even on freestanding compilers. */
6862
6863#ifdef __STDC__
6864# include <limits.h>
6865#else
6866# include <assert.h>
6867#endif
6868
6869#undef setsockopt
6870
6871/* Override any gcc2 internal prototype to avoid an error. */
6872#ifdef __cplusplus
6873extern "C"
6874{
6875#endif
6876/* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6878char setsockopt ();
6879/* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
6883choke me
6884#else
6885char (*f) () = setsockopt;
6886#endif
6887#ifdef __cplusplus
6888}
6889#endif
6890
6891int
6892main ()
6893{
6894return f != setsockopt;
6895 ;
6896 return 0;
6897}
6898_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext
6900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_func_setsockopt=yes
6922else
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926ac_cv_func_setsockopt=no
6927fi
6928rm -f conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930fi
6931echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
6932echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
6933if test $ac_cv_func_setsockopt = yes; then
6934 :
6935else
6936
6937echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
6938echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
6939if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942 ac_check_lib_save_LIBS=$LIBS
6943LIBS="-lsocket $LIBS"
6944cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950
6951/* Override any gcc2 internal prototype to avoid an error. */
6952#ifdef __cplusplus
6953extern "C"
6954#endif
6955/* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957char setsockopt ();
6958int
6959main ()
6960{
6961setsockopt ();
6962 ;
6963 return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext conftest$ac_exeext
6967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -z "$ac_c_werror_flag"
6976 || test ! -s conftest.err'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; } &&
6982 { ac_try='test -s conftest$ac_exeext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 ac_cv_lib_socket_setsockopt=yes
6989else
6990 echo "$as_me: failed program was:" >&5
6991sed 's/^/| /' conftest.$ac_ext >&5
6992
6993ac_cv_lib_socket_setsockopt=no
6994fi
6995rm -f conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6997LIBS=$ac_check_lib_save_LIBS
6998fi
6999echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
7000echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
7001if test $ac_cv_lib_socket_setsockopt = yes; then
7002 cat >>confdefs.h <<_ACEOF
7003#define HAVE_LIBSOCKET 1
7004_ACEOF
7005
7006 LIBS="-lsocket $LIBS"
7007
7008fi
7009
7010fi
7011
7012
7013if test "x$with_tcp_wrappers" != "xno" ; then
7014 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
7015 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
7016echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
7017if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020 ac_check_lib_save_LIBS=$LIBS
7021LIBS="-lrpc -lyp -lrpc $LIBS"
7022cat >conftest.$ac_ext <<_ACEOF
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
7028
7029/* Override any gcc2 internal prototype to avoid an error. */
7030#ifdef __cplusplus
7031extern "C"
7032#endif
7033/* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035char innetgr ();
7036int
7037main ()
7038{
7039innetgr ();
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext conftest$ac_exeext
7045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag"
7054 || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest$ac_exeext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_cv_lib_rpc_innetgr=yes
7067else
7068 echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071ac_cv_lib_rpc_innetgr=no
7072fi
7073rm -f conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075LIBS=$ac_check_lib_save_LIBS
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
7078echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
7079if test $ac_cv_lib_rpc_innetgr = yes; then
7080 LIBS="-lrpc -lyp -lrpc $LIBS"
7081fi
7082
7083 fi
7084fi
7085
7086
7087for ac_func in dirname
7088do
7089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7090echo "$as_me:$LINENO: checking for $ac_func" >&5
7091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7092if eval "test \"\${$as_ac_var+set}\" = set"; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095 cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h. */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h. */
7101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7103#define $ac_func innocuous_$ac_func
7104
7105/* System header to define __stub macros and hopefully few prototypes,
7106 which can conflict with char $ac_func (); below.
7107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108 <limits.h> exists even on freestanding compilers. */
7109
7110#ifdef __STDC__
7111# include <limits.h>
7112#else
7113# include <assert.h>
7114#endif
7115
7116#undef $ac_func
7117
7118/* Override any gcc2 internal prototype to avoid an error. */
7119#ifdef __cplusplus
7120extern "C"
7121{
7122#endif
7123/* We use char because int might match the return type of a gcc2
7124 builtin and then its argument prototype would still apply. */
7125char $ac_func ();
7126/* The GNU C library defines this for functions which it implements
7127 to always fail with ENOSYS. Some functions are actually named
7128 something starting with __ and the normal name is an alias. */
7129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7130choke me
7131#else
7132char (*f) () = $ac_func;
7133#endif
7134#ifdef __cplusplus
7135}
7136#endif
7137
7138int
7139main ()
7140{
7141return f != $ac_func;
7142 ;
7143 return 0;
7144}
7145_ACEOF
7146rm -f conftest.$ac_objext conftest$ac_exeext
7147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -z "$ac_c_werror_flag"
7156 || test ! -s conftest.err'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; } &&
7162 { ac_try='test -s conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 eval "$as_ac_var=yes"
7169else
7170 echo "$as_me: failed program was:" >&5
7171sed 's/^/| /' conftest.$ac_ext >&5
7172
7173eval "$as_ac_var=no"
7174fi
7175rm -f conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177fi
7178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7180if test `eval echo '${'$as_ac_var'}'` = yes; then
7181 cat >>confdefs.h <<_ACEOF
7182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7183_ACEOF
7184
7185for ac_header in libgen.h
7186do
7187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189 echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193fi
7194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196else
7197 # Is the header compilable?
7198echo "$as_me:$LINENO: checking $ac_header usability" >&5
7199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7200cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206$ac_includes_default
7207#include <$ac_header>
7208_ACEOF
7209rm -f conftest.$ac_objext
7210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 ac_header_compiler=yes
7232else
7233 echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236ac_header_compiler=no
7237fi
7238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7240echo "${ECHO_T}$ac_header_compiler" >&6
7241
7242# Is the header present?
7243echo "$as_me:$LINENO: checking $ac_header presence" >&5
7244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7245cat >conftest.$ac_ext <<_ACEOF
7246/* confdefs.h. */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h. */
7251#include <$ac_header>
7252_ACEOF
7253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } >/dev/null; then
7261 if test -s conftest.err; then
7262 ac_cpp_err=$ac_c_preproc_warn_flag
7263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7264 else
7265 ac_cpp_err=
7266 fi
7267else
7268 ac_cpp_err=yes
7269fi
7270if test -z "$ac_cpp_err"; then
7271 ac_header_preproc=yes
7272else
7273 echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 ac_header_preproc=no
7277fi
7278rm -f conftest.err conftest.$ac_ext
7279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7280echo "${ECHO_T}$ac_header_preproc" >&6
7281
7282# So? What about this header?
7283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7284 yes:no: )
7285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7289 ac_header_preproc=yes
7290 ;;
7291 no:yes:* )
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7304 (
7305 cat <<\_ASBOX
7306## ------------------------------------------ ##
7307## Report this to the AC_PACKAGE_NAME lists. ##
7308## ------------------------------------------ ##
7309_ASBOX
7310 ) |
7311 sed "s/^/$as_me: WARNING: /" >&2
7312 ;;
7313esac
7314echo "$as_me:$LINENO: checking for $ac_header" >&5
7315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7316if eval "test \"\${$as_ac_Header+set}\" = set"; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 eval "$as_ac_Header=\$ac_header_preproc"
7320fi
7321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323
7324fi
7325if test `eval echo '${'$as_ac_Header'}'` = yes; then
7326 cat >>confdefs.h <<_ACEOF
7327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328_ACEOF
7329
7330fi
7331
7332done
7333
7334else
7335
7336 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7337echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7338if test "${ac_cv_lib_gen_dirname+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341 ac_check_lib_save_LIBS=$LIBS
7342LIBS="-lgen $LIBS"
7343cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h. */
7349
7350/* Override any gcc2 internal prototype to avoid an error. */
7351#ifdef __cplusplus
7352extern "C"
7353#endif
7354/* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7356char dirname ();
7357int
7358main ()
7359{
7360dirname ();
7361 ;
7362 return 0;
7363}
7364_ACEOF
7365rm -f conftest.$ac_objext conftest$ac_exeext
7366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367 (eval $ac_link) 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try='test -z "$ac_c_werror_flag"
7375 || test ! -s conftest.err'
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 (eval $ac_try) 2>&5
7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; } &&
7381 { ac_try='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_cv_lib_gen_dirname=yes
7388else
7389 echo "$as_me: failed program was:" >&5
7390sed 's/^/| /' conftest.$ac_ext >&5
7391
7392ac_cv_lib_gen_dirname=no
7393fi
7394rm -f conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
7396LIBS=$ac_check_lib_save_LIBS
7397fi
7398echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7399echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7400if test $ac_cv_lib_gen_dirname = yes; then
7401
7402 echo "$as_me:$LINENO: checking for broken dirname" >&5
7403echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7404if test "${ac_cv_have_broken_dirname+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407
7408 save_LIBS="$LIBS"
7409 LIBS="$LIBS -lgen"
7410 if test "$cross_compiling" = yes; then
7411 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7412See \`config.log' for more details." >&5
7413echo "$as_me: error: cannot run test program while cross compiling
7414See \`config.log' for more details." >&2;}
7415 { (exit 1); exit 1; }; }
7416else
7417 cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h. */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h. */
7423
7424#include <libgen.h>
7425#include <string.h>
7426
7427int main(int argc, char **argv) {
7428 char *s, buf[32];
7429
7430 strncpy(buf,"/etc", 32);
7431 s = dirname(buf);
7432 if (!s || strncmp(s, "/", 32) != 0) {
7433 exit(1);
7434 } else {
7435 exit(0);
7436 }
7437}
7438
7439_ACEOF
7440rm -f conftest$ac_exeext
7441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7442 (eval $ac_link) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_cv_have_broken_dirname="no"
7452else
7453 echo "$as_me: program exited with status $ac_status" >&5
7454echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457( exit $ac_status )
7458 ac_cv_have_broken_dirname="yes"
7459
7460fi
7461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7462fi
7463 LIBS="$save_LIBS"
7464
7465fi
7466echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7467echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7468 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7469 LIBS="$LIBS -lgen"
7470 cat >>confdefs.h <<\_ACEOF
7471#define HAVE_DIRNAME 1
7472_ACEOF
7473
7474
7475for ac_header in libgen.h
7476do
7477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478if eval "test \"\${$as_ac_Header+set}\" = set"; then
7479 echo "$as_me:$LINENO: checking for $ac_header" >&5
7480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7481if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483fi
7484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7486else
7487 # Is the header compilable?
7488echo "$as_me:$LINENO: checking $ac_header usability" >&5
7489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7490cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h. */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h. */
7496$ac_includes_default
7497#include <$ac_header>
7498_ACEOF
7499rm -f conftest.$ac_objext
7500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest.$ac_objext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 ac_header_compiler=yes
7522else
7523 echo "$as_me: failed program was:" >&5
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7526ac_header_compiler=no
7527fi
7528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7530echo "${ECHO_T}$ac_header_compiler" >&6
7531
7532# Is the header present?
7533echo "$as_me:$LINENO: checking $ac_header presence" >&5
7534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7535cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
7541#include <$ac_header>
7542_ACEOF
7543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } >/dev/null; then
7551 if test -s conftest.err; then
7552 ac_cpp_err=$ac_c_preproc_warn_flag
7553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7554 else
7555 ac_cpp_err=
7556 fi
7557else
7558 ac_cpp_err=yes
7559fi
7560if test -z "$ac_cpp_err"; then
7561 ac_header_preproc=yes
7562else
7563 echo "$as_me: failed program was:" >&5
7564sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_header_preproc=no
7567fi
7568rm -f conftest.err conftest.$ac_ext
7569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570echo "${ECHO_T}$ac_header_preproc" >&6
7571
7572# So? What about this header?
7573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7574 yes:no: )
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7579 ac_header_preproc=yes
7580 ;;
7581 no:yes:* )
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7594 (
7595 cat <<\_ASBOX
7596## ------------------------------------------ ##
7597## Report this to the AC_PACKAGE_NAME lists. ##
7598## ------------------------------------------ ##
7599_ASBOX
7600 ) |
7601 sed "s/^/$as_me: WARNING: /" >&2
7602 ;;
7603esac
7604echo "$as_me:$LINENO: checking for $ac_header" >&5
7605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7606if eval "test \"\${$as_ac_Header+set}\" = set"; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 eval "$as_ac_Header=\$ac_header_preproc"
7610fi
7611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613
7614fi
7615if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616 cat >>confdefs.h <<_ACEOF
7617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618_ACEOF
7619
7620fi
7621
7622done
7623
7624 fi
7625
7626fi
7627
7628
7629fi
7630done
7631
7632
7633echo "$as_me:$LINENO: checking for getspnam" >&5
7634echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
7635if test "${ac_cv_func_getspnam+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
7645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7646#define getspnam innocuous_getspnam
7647
7648/* System header to define __stub macros and hopefully few prototypes,
7649 which can conflict with char getspnam (); below.
7650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7651 <limits.h> exists even on freestanding compilers. */
7652
7653#ifdef __STDC__
7654# include <limits.h>
7655#else
7656# include <assert.h>
7657#endif
7658
7659#undef getspnam
7660
7661/* Override any gcc2 internal prototype to avoid an error. */
7662#ifdef __cplusplus
7663extern "C"
7664{
7665#endif
7666/* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7668char getspnam ();
7669/* The GNU C library defines this for functions which it implements
7670 to always fail with ENOSYS. Some functions are actually named
7671 something starting with __ and the normal name is an alias. */
7672#if defined (__stub_getspnam) || defined (__stub___getspnam)
7673choke me
7674#else
7675char (*f) () = getspnam;
7676#endif
7677#ifdef __cplusplus
7678}
7679#endif
7680
7681int
7682main ()
7683{
7684return f != getspnam;
7685 ;
7686 return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext conftest$ac_exeext
7690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691 (eval $ac_link) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_func_getspnam=yes
7712else
7713 echo "$as_me: failed program was:" >&5
7714sed 's/^/| /' conftest.$ac_ext >&5
7715
7716ac_cv_func_getspnam=no
7717fi
7718rm -f conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7720fi
7721echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
7722echo "${ECHO_T}$ac_cv_func_getspnam" >&6
7723if test $ac_cv_func_getspnam = yes; then
7724 :
7725else
7726 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
7727echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
7728if test "${ac_cv_lib_gen_getspnam+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 ac_check_lib_save_LIBS=$LIBS
7732LIBS="-lgen $LIBS"
7733cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h. */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h. */
7739
7740/* Override any gcc2 internal prototype to avoid an error. */
7741#ifdef __cplusplus
7742extern "C"
7743#endif
7744/* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746char getspnam ();
7747int
7748main ()
7749{
7750getspnam ();
7751 ;
7752 return 0;
7753}
7754_ACEOF
7755rm -f conftest.$ac_objext conftest$ac_exeext
7756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_lib_gen_getspnam=yes
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782ac_cv_lib_gen_getspnam=no
7783fi
7784rm -f conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786LIBS=$ac_check_lib_save_LIBS
7787fi
7788echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
7789echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
7790if test $ac_cv_lib_gen_getspnam = yes; then
7791 LIBS="$LIBS -lgen"
7792fi
7793
7794fi
7795
7796echo "$as_me:$LINENO: checking for library containing basename" >&5
7797echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
7798if test "${ac_cv_search_basename+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801 ac_func_search_save_LIBS=$LIBS
7802ac_cv_search_basename=no
7803cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
7809
7810/* Override any gcc2 internal prototype to avoid an error. */
7811#ifdef __cplusplus
7812extern "C"
7813#endif
7814/* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816char basename ();
7817int
7818main ()
7819{
7820basename ();
7821 ;
7822 return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
7826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_search_basename="none required"
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852fi
7853rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855if test "$ac_cv_search_basename" = no; then
7856 for ac_lib in gen; do
7857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
7864
7865/* Override any gcc2 internal prototype to avoid an error. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869/* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871char basename ();
7872int
7873main ()
7874{
7875basename ();
7876 ;
7877 return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_search_basename="-l$ac_lib"
7903break
7904else
7905 echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908fi
7909rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 done
7912fi
7913LIBS=$ac_func_search_save_LIBS
7914fi
7915echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
7916echo "${ECHO_T}$ac_cv_search_basename" >&6
7917if test "$ac_cv_search_basename" != no; then
7918 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
7919 cat >>confdefs.h <<\_ACEOF
7920#define HAVE_BASENAME 1
7921_ACEOF
7922
7923fi
7924
7925
7926
7927# Check whether --with-zlib or --without-zlib was given.
7928if test "${with_zlib+set}" = set; then
7929 withval="$with_zlib"
7930
7931 if test "x$withval" = "xno" ; then
7932 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
7933echo "$as_me: error: *** zlib is required ***" >&2;}
7934 { (exit 1); exit 1; }; }
7935 fi
7936 if test -d "$withval/lib"; then
7937 if test -n "${need_dash_r}"; then
7938 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7939 else
7940 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7941 fi
7942 else
7943 if test -n "${need_dash_r}"; then
7944 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7945 else
7946 LDFLAGS="-L${withval} ${LDFLAGS}"
7947 fi
7948 fi
7949 if test -d "$withval/include"; then
7950 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7951 else
7952 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7953 fi
7954
7955
7956fi;
7957
7958
7959echo "$as_me:$LINENO: checking for deflate in -lz" >&5
7960echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
7961if test "${ac_cv_lib_z_deflate+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963else
7964 ac_check_lib_save_LIBS=$LIBS
7965LIBS="-lz $LIBS"
7966cat >conftest.$ac_ext <<_ACEOF
7967/* confdefs.h. */
7968_ACEOF
7969cat confdefs.h >>conftest.$ac_ext
7970cat >>conftest.$ac_ext <<_ACEOF
7971/* end confdefs.h. */
7972
7973/* Override any gcc2 internal prototype to avoid an error. */
7974#ifdef __cplusplus
7975extern "C"
7976#endif
7977/* We use char because int might match the return type of a gcc2
7978 builtin and then its argument prototype would still apply. */
7979char deflate ();
7980int
7981main ()
7982{
7983deflate ();
7984 ;
7985 return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext conftest$ac_exeext
7989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_cv_lib_z_deflate=yes
8011else
8012 echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014
8015ac_cv_lib_z_deflate=no
8016fi
8017rm -f conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019LIBS=$ac_check_lib_save_LIBS
8020fi
8021echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8022echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8023if test $ac_cv_lib_z_deflate = yes; then
8024 cat >>confdefs.h <<_ACEOF
8025#define HAVE_LIBZ 1
8026_ACEOF
8027
8028 LIBS="-lz $LIBS"
8029
8030else
8031
8032 saved_CPPFLAGS="$CPPFLAGS"
8033 saved_LDFLAGS="$LDFLAGS"
8034 save_LIBS="$LIBS"
8035 if test -n "${need_dash_r}"; then
8036 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8037 else
8038 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8039 fi
8040 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8041 LIBS="$LIBS -lz"
8042 cat >conftest.$ac_ext <<_ACEOF
8043/* confdefs.h. */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h. */
8048
8049/* Override any gcc2 internal prototype to avoid an error. */
8050#ifdef __cplusplus
8051extern "C"
8052#endif
8053/* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8055char deflate ();
8056int
8057main ()
8058{
8059deflate ();
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext conftest$ac_exeext
8065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066 (eval $ac_link) 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag"
8074 || test ! -s conftest.err'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 cat >>confdefs.h <<\_ACEOF
8087#define HAVE_LIBZ 1
8088_ACEOF
8089
8090else
8091 echo "$as_me: failed program was:" >&5
8092sed 's/^/| /' conftest.$ac_ext >&5
8093
8094
8095 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
8096echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
8097 { (exit 1); exit 1; }; }
8098
8099
8100fi
8101rm -f conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103
8104
8105fi
8106
8107if test "${ac_cv_header_zlib_h+set}" = set; then
8108 echo "$as_me:$LINENO: checking for zlib.h" >&5
8109echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8110if test "${ac_cv_header_zlib_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112fi
8113echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8114echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8115else
8116 # Is the header compilable?
8117echo "$as_me:$LINENO: checking zlib.h usability" >&5
8118echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8119cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125$ac_includes_default
8126#include <zlib.h>
8127_ACEOF
8128rm -f conftest.$ac_objext
8129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_header_compiler=yes
8151else
8152 echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
8155ac_header_compiler=no
8156fi
8157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159echo "${ECHO_T}$ac_header_compiler" >&6
8160
8161# Is the header present?
8162echo "$as_me:$LINENO: checking zlib.h presence" >&5
8163echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170#include <zlib.h>
8171_ACEOF
8172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null; then
8180 if test -s conftest.err; then
8181 ac_cpp_err=$ac_c_preproc_warn_flag
8182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8183 else
8184 ac_cpp_err=
8185 fi
8186else
8187 ac_cpp_err=yes
8188fi
8189if test -z "$ac_cpp_err"; then
8190 ac_header_preproc=yes
8191else
8192 echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_header_preproc=no
8196fi
8197rm -f conftest.err conftest.$ac_ext
8198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199echo "${ECHO_T}$ac_header_preproc" >&6
8200
8201# So? What about this header?
8202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203 yes:no: )
8204 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8205echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8207echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8209 ;;
8210 no:yes:* )
8211 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8212echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8214echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8216echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8218echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8220echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8222echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8223 (
8224 cat <<\_ASBOX
8225## ------------------------------------------ ##
8226## Report this to the AC_PACKAGE_NAME lists. ##
8227## ------------------------------------------ ##
8228_ASBOX
8229 ) |
8230 sed "s/^/$as_me: WARNING: /" >&2
8231 ;;
8232esac
8233echo "$as_me:$LINENO: checking for zlib.h" >&5
8234echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8235if test "${ac_cv_header_zlib_h+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238 ac_cv_header_zlib_h=$ac_header_preproc
8239fi
8240echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8241echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8242
8243fi
8244if test $ac_cv_header_zlib_h = yes; then
8245 :
8246else
8247 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
8248echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
8249 { (exit 1); exit 1; }; }
8250fi
8251
8252
8253
8254
8255# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
8256if test "${with_zlib_version_check+set}" = set; then
8257 withval="$with_zlib_version_check"
8258 if test "x$withval" = "xno" ; then
8259 zlib_check_nonfatal=1
8260 fi
8261
8262
8263fi;
8264
8265echo "$as_me:$LINENO: checking for zlib 1.1.4 or greater" >&5
8266echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6
8267if test "$cross_compiling" = yes; then
8268 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8269See \`config.log' for more details." >&5
8270echo "$as_me: error: cannot run test program while cross compiling
8271See \`config.log' for more details." >&2;}
8272 { (exit 1); exit 1; }; }
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280
8281#include <zlib.h>
8282int main()
8283{
8284 int a, b, c, v;
8285 if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3)
8286 exit(1);
8287 v = a*1000000 + b*1000 + c;
8288 if (v >= 1001004)
8289 exit(0);
8290 exit(2);
8291}
8292
8293_ACEOF
8294rm -f conftest$ac_exeext
8295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 echo "$as_me:$LINENO: result: yes" >&5
8306echo "${ECHO_T}yes" >&6
8307else
8308 echo "$as_me: program exited with status $ac_status" >&5
8309echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
8311
8312( exit $ac_status )
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 if test -z "$zlib_check_nonfatal" ; then
8316 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
8317Your reported zlib version has known security problems. It's possible your
8318vendor has fixed these problems without changing the version number. If you
8319are sure this is the case, you can disable the check by running
8320\"./configure --without-zlib-version-check\".
8321If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5
8322echo "$as_me: error: *** zlib too old - check config.log ***
8323Your reported zlib version has known security problems. It's possible your
8324vendor has fixed these problems without changing the version number. If you
8325are sure this is the case, you can disable the check by running
8326\"./configure --without-zlib-version-check\".
8327If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;}
8328 { (exit 1); exit 1; }; }
8329 else
8330 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
8331echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8332 fi
8333
8334
8335fi
8336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8337fi
8338
8339echo "$as_me:$LINENO: checking for strcasecmp" >&5
8340echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
8341if test "${ac_cv_func_strcasecmp+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343else
8344 cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
8350/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352#define strcasecmp innocuous_strcasecmp
8353
8354/* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char strcasecmp (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8358
8359#ifdef __STDC__
8360# include <limits.h>
8361#else
8362# include <assert.h>
8363#endif
8364
8365#undef strcasecmp
8366
8367/* Override any gcc2 internal prototype to avoid an error. */
8368#ifdef __cplusplus
8369extern "C"
8370{
8371#endif
8372/* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374char strcasecmp ();
8375/* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
8379choke me
8380#else
8381char (*f) () = strcasecmp;
8382#endif
8383#ifdef __cplusplus
8384}
8385#endif
8386
8387int
8388main ()
8389{
8390return f != strcasecmp;
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext conftest$ac_exeext
8396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag"
8405 || test ! -s conftest.err'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest$ac_exeext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_func_strcasecmp=yes
8418else
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422ac_cv_func_strcasecmp=no
8423fi
8424rm -f conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
8426fi
8427echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
8428echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
8429if test $ac_cv_func_strcasecmp = yes; then
8430 :
8431else
8432 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
8433echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
8434if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 ac_check_lib_save_LIBS=$LIBS
8438LIBS="-lresolv $LIBS"
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445
8446/* Override any gcc2 internal prototype to avoid an error. */
8447#ifdef __cplusplus
8448extern "C"
8449#endif
8450/* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8452char strcasecmp ();
8453int
8454main ()
8455{
8456strcasecmp ();
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_lib_resolv_strcasecmp=yes
8484else
8485 echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488ac_cv_lib_resolv_strcasecmp=no
8489fi
8490rm -f conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
8492LIBS=$ac_check_lib_save_LIBS
8493fi
8494echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
8495echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
8496if test $ac_cv_lib_resolv_strcasecmp = yes; then
8497 LIBS="$LIBS -lresolv"
8498fi
8499
8500
8501fi
8502
8503echo "$as_me:$LINENO: checking for utimes" >&5
8504echo $ECHO_N "checking for utimes... $ECHO_C" >&6
8505if test "${ac_cv_func_utimes+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8507else
8508 cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514/* Define utimes to an innocuous variant, in case <limits.h> declares utimes.
8515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8516#define utimes innocuous_utimes
8517
8518/* System header to define __stub macros and hopefully few prototypes,
8519 which can conflict with char utimes (); below.
8520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521 <limits.h> exists even on freestanding compilers. */
8522
8523#ifdef __STDC__
8524# include <limits.h>
8525#else
8526# include <assert.h>
8527#endif
8528
8529#undef utimes
8530
8531/* Override any gcc2 internal prototype to avoid an error. */
8532#ifdef __cplusplus
8533extern "C"
8534{
8535#endif
8536/* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538char utimes ();
8539/* The GNU C library defines this for functions which it implements
8540 to always fail with ENOSYS. Some functions are actually named
8541 something starting with __ and the normal name is an alias. */
8542#if defined (__stub_utimes) || defined (__stub___utimes)
8543choke me
8544#else
8545char (*f) () = utimes;
8546#endif
8547#ifdef __cplusplus
8548}
8549#endif
8550
8551int
8552main ()
8553{
8554return f != utimes;
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext conftest$ac_exeext
8560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561 (eval $ac_link) 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -z "$ac_c_werror_flag"
8569 || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_func_utimes=yes
8582else
8583 echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586ac_cv_func_utimes=no
8587fi
8588rm -f conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590fi
8591echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
8592echo "${ECHO_T}$ac_cv_func_utimes" >&6
8593if test $ac_cv_func_utimes = yes; then
8594 :
8595else
8596 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
8597echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
8598if test "${ac_cv_lib_c89_utimes+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600else
8601 ac_check_lib_save_LIBS=$LIBS
8602LIBS="-lc89 $LIBS"
8603cat >conftest.$ac_ext <<_ACEOF
8604/* confdefs.h. */
8605_ACEOF
8606cat confdefs.h >>conftest.$ac_ext
8607cat >>conftest.$ac_ext <<_ACEOF
8608/* end confdefs.h. */
8609
8610/* Override any gcc2 internal prototype to avoid an error. */
8611#ifdef __cplusplus
8612extern "C"
8613#endif
8614/* We use char because int might match the return type of a gcc2
8615 builtin and then its argument prototype would still apply. */
8616char utimes ();
8617int
8618main ()
8619{
8620utimes ();
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625rm -f conftest.$ac_objext conftest$ac_exeext
8626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_lib_c89_utimes=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652ac_cv_lib_c89_utimes=no
8653fi
8654rm -f conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656LIBS=$ac_check_lib_save_LIBS
8657fi
8658echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
8659echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
8660if test $ac_cv_lib_c89_utimes = yes; then
8661 cat >>confdefs.h <<\_ACEOF
8662#define HAVE_UTIMES 1
8663_ACEOF
8664
8665 LIBS="$LIBS -lc89"
8666fi
8667
8668
8669fi
8670
8671
8672
8673for ac_header in libutil.h
8674do
8675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8676if eval "test \"\${$as_ac_Header+set}\" = set"; then
8677 echo "$as_me:$LINENO: checking for $ac_header" >&5
8678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8679if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681fi
8682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8684else
8685 # Is the header compilable?
8686echo "$as_me:$LINENO: checking $ac_header usability" >&5
8687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8688cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h. */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
8693/* end confdefs.h. */
8694$ac_includes_default
8695#include <$ac_header>
8696_ACEOF
8697rm -f conftest.$ac_objext
8698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699 (eval $ac_compile) 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag"
8707 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest.$ac_objext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_header_compiler=yes
8720else
8721 echo "$as_me: failed program was:" >&5
8722sed 's/^/| /' conftest.$ac_ext >&5
8723
8724ac_header_compiler=no
8725fi
8726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728echo "${ECHO_T}$ac_header_compiler" >&6
8729
8730# Is the header present?
8731echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8733cat >conftest.$ac_ext <<_ACEOF
8734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
8739#include <$ac_header>
8740_ACEOF
8741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null; then
8749 if test -s conftest.err; then
8750 ac_cpp_err=$ac_c_preproc_warn_flag
8751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8752 else
8753 ac_cpp_err=
8754 fi
8755else
8756 ac_cpp_err=yes
8757fi
8758if test -z "$ac_cpp_err"; then
8759 ac_header_preproc=yes
8760else
8761 echo "$as_me: failed program was:" >&5
8762sed 's/^/| /' conftest.$ac_ext >&5
8763
8764 ac_header_preproc=no
8765fi
8766rm -f conftest.err conftest.$ac_ext
8767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8768echo "${ECHO_T}$ac_header_preproc" >&6
8769
8770# So? What about this header?
8771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8772 yes:no: )
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8776echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8777 ac_header_preproc=yes
8778 ;;
8779 no:yes:* )
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8783echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8785echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8787echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8791echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8792 (
8793 cat <<\_ASBOX
8794## ------------------------------------------ ##
8795## Report this to the AC_PACKAGE_NAME lists. ##
8796## ------------------------------------------ ##
8797_ASBOX
8798 ) |
8799 sed "s/^/$as_me: WARNING: /" >&2
8800 ;;
8801esac
8802echo "$as_me:$LINENO: checking for $ac_header" >&5
8803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8804if eval "test \"\${$as_ac_Header+set}\" = set"; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807 eval "$as_ac_Header=\$ac_header_preproc"
8808fi
8809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8811
8812fi
8813if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8816_ACEOF
8817
8818fi
8819
8820done
8821
8822echo "$as_me:$LINENO: checking for library containing login" >&5
8823echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
8824if test "${ac_cv_search_login+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826else
8827 ac_func_search_save_LIBS=$LIBS
8828ac_cv_search_login=no
8829cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
8835
8836/* Override any gcc2 internal prototype to avoid an error. */
8837#ifdef __cplusplus
8838extern "C"
8839#endif
8840/* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */
8842char login ();
8843int
8844main ()
8845{
8846login ();
8847 ;
8848 return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_search_login="none required"
8874else
8875 echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878fi
8879rm -f conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881if test "$ac_cv_search_login" = no; then
8882 for ac_lib in util bsd; do
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8884 cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h. */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h. */
8890
8891/* Override any gcc2 internal prototype to avoid an error. */
8892#ifdef __cplusplus
8893extern "C"
8894#endif
8895/* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8897char login ();
8898int
8899main ()
8900{
8901login ();
8902 ;
8903 return 0;
8904}
8905_ACEOF
8906rm -f conftest.$ac_objext conftest$ac_exeext
8907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>conftest.er1
8909 ac_status=$?
8910 grep -v '^ *+' conftest.er1 >conftest.err
8911 rm -f conftest.er1
8912 cat conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -z "$ac_c_werror_flag"
8916 || test ! -s conftest.err'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; } &&
8922 { ac_try='test -s conftest$ac_exeext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928 ac_cv_search_login="-l$ac_lib"
8929break
8930else
8931 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934fi
8935rm -f conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 done
8938fi
8939LIBS=$ac_func_search_save_LIBS
8940fi
8941echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
8942echo "${ECHO_T}$ac_cv_search_login" >&6
8943if test "$ac_cv_search_login" != no; then
8944 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
8945 cat >>confdefs.h <<\_ACEOF
8946#define HAVE_LOGIN 1
8947_ACEOF
8948
8949fi
8950
8951
8952
8953
8954for ac_func in logout updwtmp logwtmp
8955do
8956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8957echo "$as_me:$LINENO: checking for $ac_func" >&5
8958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8959if eval "test \"\${$as_ac_var+set}\" = set"; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962 cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
8968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8970#define $ac_func innocuous_$ac_func
8971
8972/* System header to define __stub macros and hopefully few prototypes,
8973 which can conflict with char $ac_func (); below.
8974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8975 <limits.h> exists even on freestanding compilers. */
8976
8977#ifdef __STDC__
8978# include <limits.h>
8979#else
8980# include <assert.h>
8981#endif
8982
8983#undef $ac_func
8984
8985/* Override any gcc2 internal prototype to avoid an error. */
8986#ifdef __cplusplus
8987extern "C"
8988{
8989#endif
8990/* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8992char $ac_func ();
8993/* The GNU C library defines this for functions which it implements
8994 to always fail with ENOSYS. Some functions are actually named
8995 something starting with __ and the normal name is an alias. */
8996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8997choke me
8998#else
8999char (*f) () = $ac_func;
9000#endif
9001#ifdef __cplusplus
9002}
9003#endif
9004
9005int
9006main ()
9007{
9008return f != $ac_func;
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
9014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -z "$ac_c_werror_flag"
9023 || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest$ac_exeext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 eval "$as_ac_var=yes"
9036else
9037 echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040eval "$as_ac_var=no"
9041fi
9042rm -f conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044fi
9045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9047if test `eval echo '${'$as_ac_var'}'` = yes; then
9048 cat >>confdefs.h <<_ACEOF
9049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9050_ACEOF
9051
9052fi
9053done
9054
9055
9056
9057for ac_func in strftime
9058do
9059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9060echo "$as_me:$LINENO: checking for $ac_func" >&5
9061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9062if eval "test \"\${$as_ac_var+set}\" = set"; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
9065 cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9073#define $ac_func innocuous_$ac_func
9074
9075/* System header to define __stub macros and hopefully few prototypes,
9076 which can conflict with char $ac_func (); below.
9077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9078 <limits.h> exists even on freestanding compilers. */
9079
9080#ifdef __STDC__
9081# include <limits.h>
9082#else
9083# include <assert.h>
9084#endif
9085
9086#undef $ac_func
9087
9088/* Override any gcc2 internal prototype to avoid an error. */
9089#ifdef __cplusplus
9090extern "C"
9091{
9092#endif
9093/* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9095char $ac_func ();
9096/* The GNU C library defines this for functions which it implements
9097 to always fail with ENOSYS. Some functions are actually named
9098 something starting with __ and the normal name is an alias. */
9099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9100choke me
9101#else
9102char (*f) () = $ac_func;
9103#endif
9104#ifdef __cplusplus
9105}
9106#endif
9107
9108int
9109main ()
9110{
9111return f != $ac_func;
9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext conftest$ac_exeext
9117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 eval "$as_ac_var=yes"
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143eval "$as_ac_var=no"
9144fi
9145rm -f conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147fi
9148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9150if test `eval echo '${'$as_ac_var'}'` = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9153_ACEOF
9154
9155else
9156 # strftime is in -lintl on SCO UNIX.
9157echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9158echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9159if test "${ac_cv_lib_intl_strftime+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162 ac_check_lib_save_LIBS=$LIBS
9163LIBS="-lintl $LIBS"
9164cat >conftest.$ac_ext <<_ACEOF
9165/* confdefs.h. */
9166_ACEOF
9167cat confdefs.h >>conftest.$ac_ext
9168cat >>conftest.$ac_ext <<_ACEOF
9169/* end confdefs.h. */
9170
9171/* Override any gcc2 internal prototype to avoid an error. */
9172#ifdef __cplusplus
9173extern "C"
9174#endif
9175/* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9177char strftime ();
9178int
9179main ()
9180{
9181strftime ();
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186rm -f conftest.$ac_objext conftest$ac_exeext
9187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag"
9196 || test ! -s conftest.err'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; } &&
9202 { ac_try='test -s conftest$ac_exeext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_lib_intl_strftime=yes
9209else
9210 echo "$as_me: failed program was:" >&5
9211sed 's/^/| /' conftest.$ac_ext >&5
9212
9213ac_cv_lib_intl_strftime=no
9214fi
9215rm -f conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217LIBS=$ac_check_lib_save_LIBS
9218fi
9219echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9220echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9221if test $ac_cv_lib_intl_strftime = yes; then
9222 cat >>confdefs.h <<\_ACEOF
9223#define HAVE_STRFTIME 1
9224_ACEOF
9225
9226LIBS="-lintl $LIBS"
9227fi
9228
9229fi
9230done
9231
9232
9233# Check for ALTDIRFUNC glob() extension
9234echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
9235echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
9236cat >conftest.$ac_ext <<_ACEOF
9237/* confdefs.h. */
9238_ACEOF
9239cat confdefs.h >>conftest.$ac_ext
9240cat >>conftest.$ac_ext <<_ACEOF
9241/* end confdefs.h. */
9242
9243 #include <glob.h>
9244 #ifdef GLOB_ALTDIRFUNC
9245 FOUNDIT
9246 #endif
9247
9248_ACEOF
9249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9251
9252 cat >>confdefs.h <<\_ACEOF
9253#define GLOB_HAS_ALTDIRFUNC 1
9254_ACEOF
9255
9256 echo "$as_me:$LINENO: result: yes" >&5
9257echo "${ECHO_T}yes" >&6
9258
9259else
9260
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263
9264
9265fi
9266rm -f conftest*
9267
9268
9269# Check for g.gl_matchc glob() extension
9270echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
9271echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
9272cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h. */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h. */
9278
9279 #include <glob.h>
9280 int main(void){glob_t g; g.gl_matchc = 1;}
9281
9282_ACEOF
9283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9284 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9285
9286 cat >>confdefs.h <<\_ACEOF
9287#define GLOB_HAS_GL_MATCHC 1
9288_ACEOF
9289
9290 echo "$as_me:$LINENO: result: yes" >&5
9291echo "${ECHO_T}yes" >&6
9292
9293else
9294
9295 echo "$as_me:$LINENO: result: no" >&5
9296echo "${ECHO_T}no" >&6
9297
9298
9299fi
9300rm -f conftest*
9301
9302
9303echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
9304echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
9305if test "$cross_compiling" = yes; then
9306 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9307See \`config.log' for more details." >&5
9308echo "$as_me: error: cannot run test program while cross compiling
9309See \`config.log' for more details." >&2;}
9310 { (exit 1); exit 1; }; }
9311else
9312 cat >conftest.$ac_ext <<_ACEOF
9313/* confdefs.h. */
9314_ACEOF
9315cat confdefs.h >>conftest.$ac_ext
9316cat >>conftest.$ac_ext <<_ACEOF
9317/* end confdefs.h. */
9318
9319#include <sys/types.h>
9320#include <dirent.h>
9321int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
9322
9323_ACEOF
9324rm -f conftest$ac_exeext
9325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 (eval $ac_try) 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6
9337else
9338 echo "$as_me: program exited with status $ac_status" >&5
9339echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342( exit $ac_status )
9343
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 cat >>confdefs.h <<\_ACEOF
9347#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9348_ACEOF
9349
9350
9351
9352fi
9353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9354fi
9355
9356echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
9357echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6
9358if test -d "/proc/$$/fd" ; then
9359 cat >>confdefs.h <<\_ACEOF
9360#define HAVE_PROC_PID 1
9361_ACEOF
9362
9363 echo "$as_me:$LINENO: result: yes" >&5
9364echo "${ECHO_T}yes" >&6
9365else
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
9368fi
9369
9370# Check whether user wants S/Key support
9371SKEY_MSG="no"
9372
9373# Check whether --with-skey or --without-skey was given.
9374if test "${with_skey+set}" = set; then
9375 withval="$with_skey"
9376
9377 if test "x$withval" != "xno" ; then
9378
9379 if test "x$withval" != "xyes" ; then
9380 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9381 LDFLAGS="$LDFLAGS -L${withval}/lib"
9382 fi
9383
9384 cat >>confdefs.h <<\_ACEOF
9385#define SKEY 1
9386_ACEOF
9387
9388 LIBS="-lskey $LIBS"
9389 SKEY_MSG="yes"
9390
9391 echo "$as_me:$LINENO: checking for s/key support" >&5
9392echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
9393 if test "$cross_compiling" = yes; then
9394 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9395See \`config.log' for more details." >&5
9396echo "$as_me: error: cannot run test program while cross compiling
9397See \`config.log' for more details." >&2;}
9398 { (exit 1); exit 1; }; }
9399else
9400 cat >conftest.$ac_ext <<_ACEOF
9401/* confdefs.h. */
9402_ACEOF
9403cat confdefs.h >>conftest.$ac_ext
9404cat >>conftest.$ac_ext <<_ACEOF
9405/* end confdefs.h. */
9406
9407#include <stdio.h>
9408#include <skey.h>
9409int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
9410
9411_ACEOF
9412rm -f conftest$ac_exeext
9413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425else
9426 echo "$as_me: program exited with status $ac_status" >&5
9427echo "$as_me: failed program was:" >&5
9428sed 's/^/| /' conftest.$ac_ext >&5
9429
9430( exit $ac_status )
9431
9432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
9435echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
9436 { (exit 1); exit 1; }; }
9437
9438fi
9439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9440fi
9441 echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
9442echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6
9443 cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449#include <stdio.h>
9450 #include <skey.h>
9451int
9452main ()
9453{
9454(void)skeychallenge(NULL,"name","",0);
9455 ;
9456 return 0;
9457}
9458_ACEOF
9459rm -f conftest.$ac_objext
9460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461 (eval $ac_compile) 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -z "$ac_c_werror_flag"
9469 || test ! -s conftest.err'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 (eval $ac_try) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; } &&
9475 { ac_try='test -s conftest.$ac_objext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 echo "$as_me:$LINENO: result: yes" >&5
9482echo "${ECHO_T}yes" >&6
9483 cat >>confdefs.h <<\_ACEOF
9484#define SKEYCHALLENGE_4ARG 1
9485_ACEOF
9486
9487else
9488 echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
9491echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
9493
9494fi
9495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9496 fi
9497
9498
9499fi;
9500
9501# Check whether user wants TCP wrappers support
9502TCPW_MSG="no"
9503
9504# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9505if test "${with_tcp_wrappers+set}" = set; then
9506 withval="$with_tcp_wrappers"
9507
9508 if test "x$withval" != "xno" ; then
9509 saved_LIBS="$LIBS"
9510 saved_LDFLAGS="$LDFLAGS"
9511 saved_CPPFLAGS="$CPPFLAGS"
9512 if test -n "${withval}" -a "${withval}" != "yes"; then
9513 if test -d "${withval}/lib"; then
9514 if test -n "${need_dash_r}"; then
9515 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9516 else
9517 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9518 fi
9519 else
9520 if test -n "${need_dash_r}"; then
9521 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9522 else
9523 LDFLAGS="-L${withval} ${LDFLAGS}"
9524 fi
9525 fi
9526 if test -d "${withval}/include"; then
9527 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9528 else
9529 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9530 fi
9531 fi
9532 LIBWRAP="-lwrap"
9533 LIBS="$LIBWRAP $LIBS"
9534 echo "$as_me:$LINENO: checking for libwrap" >&5
9535echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9536 cat >conftest.$ac_ext <<_ACEOF
9537/* confdefs.h. */
9538_ACEOF
9539cat confdefs.h >>conftest.$ac_ext
9540cat >>conftest.$ac_ext <<_ACEOF
9541/* end confdefs.h. */
9542
9543#include <sys/types.h>
9544#include <sys/socket.h>
9545#include <netinet/in.h>
9546#include <tcpd.h>
9547 int deny_severity = 0, allow_severity = 0;
9548
9549int
9550main ()
9551{
9552hosts_access(0);
9553 ;
9554 return 0;
9555}
9556_ACEOF
9557rm -f conftest.$ac_objext conftest$ac_exeext
9558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579
9580 echo "$as_me:$LINENO: result: yes" >&5
9581echo "${ECHO_T}yes" >&6
9582 cat >>confdefs.h <<\_ACEOF
9583#define LIBWRAP 1
9584_ACEOF
9585
9586
9587 TCPW_MSG="yes"
9588
9589else
9590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
9593
9594 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9595echo "$as_me: error: *** libwrap missing" >&2;}
9596 { (exit 1); exit 1; }; }
9597
9598
9599fi
9600rm -f conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602 LIBS="$saved_LIBS"
9603 fi
9604
9605
9606fi;
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685for ac_func in \
9686 arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \
9687 bindresvport_sa clock closefrom dirfd fchmod fchown freeaddrinfo \
9688 futimes getaddrinfo getcwd getgrouplist getnameinfo getopt \
9689 getpeereid _getpty getrlimit getttyent glob inet_aton \
9690 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
9691 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \
9692 pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \
9693 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
9694 setproctitle setregid setreuid setrlimit \
9695 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
9696 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \
9697 truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \
9698
9699do
9700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9701echo "$as_me:$LINENO: checking for $ac_func" >&5
9702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9703if eval "test \"\${$as_ac_var+set}\" = set"; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
9706 cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9714#define $ac_func innocuous_$ac_func
9715
9716/* System header to define __stub macros and hopefully few prototypes,
9717 which can conflict with char $ac_func (); below.
9718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719 <limits.h> exists even on freestanding compilers. */
9720
9721#ifdef __STDC__
9722# include <limits.h>
9723#else
9724# include <assert.h>
9725#endif
9726
9727#undef $ac_func
9728
9729/* Override any gcc2 internal prototype to avoid an error. */
9730#ifdef __cplusplus
9731extern "C"
9732{
9733#endif
9734/* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736char $ac_func ();
9737/* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9741choke me
9742#else
9743char (*f) () = $ac_func;
9744#endif
9745#ifdef __cplusplus
9746}
9747#endif
9748
9749int
9750main ()
9751{
9752return f != $ac_func;
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757rm -f conftest.$ac_objext conftest$ac_exeext
9758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 eval "$as_ac_var=yes"
9780else
9781 echo "$as_me: failed program was:" >&5
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
9784eval "$as_ac_var=no"
9785fi
9786rm -f conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788fi
9789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9791if test `eval echo '${'$as_ac_var'}'` = yes; then
9792 cat >>confdefs.h <<_ACEOF
9793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9794_ACEOF
9795
9796fi
9797done
9798
9799
9800# IRIX has a const char return value for gai_strerror()
9801
9802for ac_func in gai_strerror
9803do
9804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9805echo "$as_me:$LINENO: checking for $ac_func" >&5
9806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9807if eval "test \"\${$as_ac_var+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810 cat >conftest.$ac_ext <<_ACEOF
9811/* confdefs.h. */
9812_ACEOF
9813cat confdefs.h >>conftest.$ac_ext
9814cat >>conftest.$ac_ext <<_ACEOF
9815/* end confdefs.h. */
9816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818#define $ac_func innocuous_$ac_func
9819
9820/* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char $ac_func (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9824
9825#ifdef __STDC__
9826# include <limits.h>
9827#else
9828# include <assert.h>
9829#endif
9830
9831#undef $ac_func
9832
9833/* Override any gcc2 internal prototype to avoid an error. */
9834#ifdef __cplusplus
9835extern "C"
9836{
9837#endif
9838/* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */
9840char $ac_func ();
9841/* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9845choke me
9846#else
9847char (*f) () = $ac_func;
9848#endif
9849#ifdef __cplusplus
9850}
9851#endif
9852
9853int
9854main ()
9855{
9856return f != $ac_func;
9857 ;
9858 return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
9862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863 (eval $ac_link) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag"
9871 || test ! -s conftest.err'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 eval "$as_ac_var=yes"
9884else
9885 echo "$as_me: failed program was:" >&5
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
9888eval "$as_ac_var=no"
9889fi
9890rm -f conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892fi
9893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9895if test `eval echo '${'$as_ac_var'}'` = yes; then
9896 cat >>confdefs.h <<_ACEOF
9897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9898_ACEOF
9899
9900 cat >>confdefs.h <<\_ACEOF
9901#define HAVE_GAI_STRERROR 1
9902_ACEOF
9903
9904 cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910
9911#include <sys/types.h>
9912#include <sys/socket.h>
9913#include <netdb.h>
9914
9915const char *gai_strerror(int);
9916int
9917main ()
9918{
9919
9920char *str;
9921
9922str = gai_strerror(0);
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext
9928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest.$ac_objext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949
9950
9951cat >>confdefs.h <<\_ACEOF
9952#define HAVE_CONST_GAI_STRERROR_PROTO 1
9953_ACEOF
9954
9955else
9956 echo "$as_me: failed program was:" >&5
9957sed 's/^/| /' conftest.$ac_ext >&5
9958
9959fi
9960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9961fi
9962done
9963
9964
9965echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
9966echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
9967if test "${ac_cv_search_nanosleep+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970 ac_func_search_save_LIBS=$LIBS
9971ac_cv_search_nanosleep=no
9972cat >conftest.$ac_ext <<_ACEOF
9973/* confdefs.h. */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h. */
9978
9979/* Override any gcc2 internal prototype to avoid an error. */
9980#ifdef __cplusplus
9981extern "C"
9982#endif
9983/* We use char because int might match the return type of a gcc2
9984 builtin and then its argument prototype would still apply. */
9985char nanosleep ();
9986int
9987main ()
9988{
9989nanosleep ();
9990 ;
9991 return 0;
9992}
9993_ACEOF
9994rm -f conftest.$ac_objext conftest$ac_exeext
9995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_cv_search_nanosleep="none required"
10017else
10018 echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021fi
10022rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024if test "$ac_cv_search_nanosleep" = no; then
10025 for ac_lib in rt posix4; do
10026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033
10034/* Override any gcc2 internal prototype to avoid an error. */
10035#ifdef __cplusplus
10036extern "C"
10037#endif
10038/* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040char nanosleep ();
10041int
10042main ()
10043{
10044nanosleep ();
10045 ;
10046 return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
10050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_search_nanosleep="-l$ac_lib"
10072break
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077fi
10078rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 done
10081fi
10082LIBS=$ac_func_search_save_LIBS
10083fi
10084echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
10085echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
10086if test "$ac_cv_search_nanosleep" != no; then
10087 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
10088 cat >>confdefs.h <<\_ACEOF
10089#define HAVE_NANOSLEEP 1
10090_ACEOF
10091
10092fi
10093
10094
10095echo "$as_me:$LINENO: checking whether strsep is declared" >&5
10096echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
10097if test "${ac_cv_have_decl_strsep+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 cat >conftest.$ac_ext <<_ACEOF
10101/* confdefs.h. */
10102_ACEOF
10103cat confdefs.h >>conftest.$ac_ext
10104cat >>conftest.$ac_ext <<_ACEOF
10105/* end confdefs.h. */
10106$ac_includes_default
10107int
10108main ()
10109{
10110#ifndef strsep
10111 char *p = (char *) strsep;
10112#endif
10113
10114 ;
10115 return 0;
10116}
10117_ACEOF
10118rm -f conftest.$ac_objext
10119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10120 (eval $ac_compile) 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag"
10128 || test ! -s conftest.err'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest.$ac_objext'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_have_decl_strsep=yes
10141else
10142 echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
10145ac_cv_have_decl_strsep=no
10146fi
10147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10148fi
10149echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
10150echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
10151if test $ac_cv_have_decl_strsep = yes; then
10152
10153for ac_func in strsep
10154do
10155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10156echo "$as_me:$LINENO: checking for $ac_func" >&5
10157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10158if eval "test \"\${$as_ac_var+set}\" = set"; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h. */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h. */
10167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10169#define $ac_func innocuous_$ac_func
10170
10171/* System header to define __stub macros and hopefully few prototypes,
10172 which can conflict with char $ac_func (); below.
10173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174 <limits.h> exists even on freestanding compilers. */
10175
10176#ifdef __STDC__
10177# include <limits.h>
10178#else
10179# include <assert.h>
10180#endif
10181
10182#undef $ac_func
10183
10184/* Override any gcc2 internal prototype to avoid an error. */
10185#ifdef __cplusplus
10186extern "C"
10187{
10188#endif
10189/* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10191char $ac_func ();
10192/* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10196choke me
10197#else
10198char (*f) () = $ac_func;
10199#endif
10200#ifdef __cplusplus
10201}
10202#endif
10203
10204int
10205main ()
10206{
10207return f != $ac_func;
10208 ;
10209 return 0;
10210}
10211_ACEOF
10212rm -f conftest.$ac_objext conftest$ac_exeext
10213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 eval "$as_ac_var=yes"
10235else
10236 echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239eval "$as_ac_var=no"
10240fi
10241rm -f conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243fi
10244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10245echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10246if test `eval echo '${'$as_ac_var'}'` = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10249_ACEOF
10250
10251fi
10252done
10253
10254fi
10255
10256echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
10257echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
10258if test "${ac_cv_have_decl_getrusage+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261 cat >conftest.$ac_ext <<_ACEOF
10262/* confdefs.h. */
10263_ACEOF
10264cat confdefs.h >>conftest.$ac_ext
10265cat >>conftest.$ac_ext <<_ACEOF
10266/* end confdefs.h. */
10267$ac_includes_default
10268int
10269main ()
10270{
10271#ifndef getrusage
10272 char *p = (char *) getrusage;
10273#endif
10274
10275 ;
10276 return 0;
10277}
10278_ACEOF
10279rm -f conftest.$ac_objext
10280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10281 (eval $ac_compile) 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } &&
10288 { ac_try='test -z "$ac_c_werror_flag"
10289 || test ! -s conftest.err'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest.$ac_objext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_have_decl_getrusage=yes
10302else
10303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306ac_cv_have_decl_getrusage=no
10307fi
10308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309fi
10310echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
10311echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
10312if test $ac_cv_have_decl_getrusage = yes; then
10313
10314for ac_func in getrusage
10315do
10316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10317echo "$as_me:$LINENO: checking for $ac_func" >&5
10318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10319if eval "test \"\${$as_ac_var+set}\" = set"; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322 cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
10328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10330#define $ac_func innocuous_$ac_func
10331
10332/* System header to define __stub macros and hopefully few prototypes,
10333 which can conflict with char $ac_func (); below.
10334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10335 <limits.h> exists even on freestanding compilers. */
10336
10337#ifdef __STDC__
10338# include <limits.h>
10339#else
10340# include <assert.h>
10341#endif
10342
10343#undef $ac_func
10344
10345/* Override any gcc2 internal prototype to avoid an error. */
10346#ifdef __cplusplus
10347extern "C"
10348{
10349#endif
10350/* We use char because int might match the return type of a gcc2
10351 builtin and then its argument prototype would still apply. */
10352char $ac_func ();
10353/* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
10356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10357choke me
10358#else
10359char (*f) () = $ac_func;
10360#endif
10361#ifdef __cplusplus
10362}
10363#endif
10364
10365int
10366main ()
10367{
10368return f != $ac_func;
10369 ;
10370 return 0;
10371}
10372_ACEOF
10373rm -f conftest.$ac_objext conftest$ac_exeext
10374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag"
10383 || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 eval "$as_ac_var=yes"
10396else
10397 echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
10400eval "$as_ac_var=no"
10401fi
10402rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404fi
10405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10407if test `eval echo '${'$as_ac_var'}'` = yes; then
10408 cat >>confdefs.h <<_ACEOF
10409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10410_ACEOF
10411
10412fi
10413done
10414
10415fi
10416
10417
10418echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
10419echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
10420if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423 cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h. */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h. */
10429#include <termios.h>
10430
10431
10432int
10433main ()
10434{
10435#ifndef tcsendbreak
10436 char *p = (char *) tcsendbreak;
10437#endif
10438
10439 ;
10440 return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext
10444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag"
10453 || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest.$ac_objext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_have_decl_tcsendbreak=yes
10466else
10467 echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
10470ac_cv_have_decl_tcsendbreak=no
10471fi
10472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473fi
10474echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
10475echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
10476if test $ac_cv_have_decl_tcsendbreak = yes; then
10477 cat >>confdefs.h <<\_ACEOF
10478#define HAVE_TCSENDBREAK 1
10479_ACEOF
10480
10481else
10482
10483for ac_func in tcsendbreak
10484do
10485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10486echo "$as_me:$LINENO: checking for $ac_func" >&5
10487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10488if eval "test \"\${$as_ac_var+set}\" = set"; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490else
10491 cat >conftest.$ac_ext <<_ACEOF
10492/* confdefs.h. */
10493_ACEOF
10494cat confdefs.h >>conftest.$ac_ext
10495cat >>conftest.$ac_ext <<_ACEOF
10496/* end confdefs.h. */
10497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10499#define $ac_func innocuous_$ac_func
10500
10501/* System header to define __stub macros and hopefully few prototypes,
10502 which can conflict with char $ac_func (); below.
10503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10504 <limits.h> exists even on freestanding compilers. */
10505
10506#ifdef __STDC__
10507# include <limits.h>
10508#else
10509# include <assert.h>
10510#endif
10511
10512#undef $ac_func
10513
10514/* Override any gcc2 internal prototype to avoid an error. */
10515#ifdef __cplusplus
10516extern "C"
10517{
10518#endif
10519/* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10521char $ac_func ();
10522/* The GNU C library defines this for functions which it implements
10523 to always fail with ENOSYS. Some functions are actually named
10524 something starting with __ and the normal name is an alias. */
10525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10526choke me
10527#else
10528char (*f) () = $ac_func;
10529#endif
10530#ifdef __cplusplus
10531}
10532#endif
10533
10534int
10535main ()
10536{
10537return f != $ac_func;
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542rm -f conftest.$ac_objext conftest$ac_exeext
10543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 eval "$as_ac_var=yes"
10565else
10566 echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569eval "$as_ac_var=no"
10570fi
10571rm -f conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573fi
10574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10575echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10576if test `eval echo '${'$as_ac_var'}'` = yes; then
10577 cat >>confdefs.h <<_ACEOF
10578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10579_ACEOF
10580
10581fi
10582done
10583
10584fi
10585
10586
10587echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
10588echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6
10589if test "${ac_cv_have_decl_h_errno+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591else
10592 cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h. */
10598#include <netdb.h>
10599
10600int
10601main ()
10602{
10603#ifndef h_errno
10604 char *p = (char *) h_errno;
10605#endif
10606
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext
10612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest.$ac_objext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 ac_cv_have_decl_h_errno=yes
10634else
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638ac_cv_have_decl_h_errno=no
10639fi
10640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10641fi
10642echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
10643echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6
10644if test $ac_cv_have_decl_h_errno = yes; then
10645
10646cat >>confdefs.h <<_ACEOF
10647#define HAVE_DECL_H_ERRNO 1
10648_ACEOF
10649
10650
10651else
10652 cat >>confdefs.h <<_ACEOF
10653#define HAVE_DECL_H_ERRNO 0
10654_ACEOF
10655
10656
10657fi
10658
10659
10660
10661
10662for ac_func in setresuid
10663do
10664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10665echo "$as_me:$LINENO: checking for $ac_func" >&5
10666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10667if eval "test \"\${$as_ac_var+set}\" = set"; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
10676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10678#define $ac_func innocuous_$ac_func
10679
10680/* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char $ac_func (); below.
10682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10683 <limits.h> exists even on freestanding compilers. */
10684
10685#ifdef __STDC__
10686# include <limits.h>
10687#else
10688# include <assert.h>
10689#endif
10690
10691#undef $ac_func
10692
10693/* Override any gcc2 internal prototype to avoid an error. */
10694#ifdef __cplusplus
10695extern "C"
10696{
10697#endif
10698/* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700char $ac_func ();
10701/* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
10704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10705choke me
10706#else
10707char (*f) () = $ac_func;
10708#endif
10709#ifdef __cplusplus
10710}
10711#endif
10712
10713int
10714main ()
10715{
10716return f != $ac_func;
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721rm -f conftest.$ac_objext conftest$ac_exeext
10722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723 (eval $ac_link) 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag"
10731 || test ! -s conftest.err'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 eval "$as_ac_var=yes"
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748eval "$as_ac_var=no"
10749fi
10750rm -f conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752fi
10753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10755if test `eval echo '${'$as_ac_var'}'` = yes; then
10756 cat >>confdefs.h <<_ACEOF
10757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10758_ACEOF
10759
10760 echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
10761echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
10762 if test "$cross_compiling" = yes; then
10763 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10764See \`config.log' for more details." >&5
10765echo "$as_me: error: cannot run test program while cross compiling
10766See \`config.log' for more details." >&2;}
10767 { (exit 1); exit 1; }; }
10768else
10769 cat >conftest.$ac_ext <<_ACEOF
10770/* confdefs.h. */
10771_ACEOF
10772cat confdefs.h >>conftest.$ac_ext
10773cat >>conftest.$ac_ext <<_ACEOF
10774/* end confdefs.h. */
10775
10776#include <stdlib.h>
10777#include <errno.h>
10778int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
10779
10780_ACEOF
10781rm -f conftest$ac_exeext
10782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 echo "$as_me:$LINENO: result: yes" >&5
10793echo "${ECHO_T}yes" >&6
10794else
10795 echo "$as_me: program exited with status $ac_status" >&5
10796echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5
10798
10799( exit $ac_status )
10800cat >>confdefs.h <<\_ACEOF
10801#define BROKEN_SETRESUID 1
10802_ACEOF
10803
10804 echo "$as_me:$LINENO: result: not implemented" >&5
10805echo "${ECHO_T}not implemented" >&6
10806
10807fi
10808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10809fi
10810
10811fi
10812done
10813
10814
10815
10816for ac_func in setresgid
10817do
10818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10819echo "$as_me:$LINENO: checking for $ac_func" >&5
10820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10821if eval "test \"\${$as_ac_var+set}\" = set"; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823else
10824 cat >conftest.$ac_ext <<_ACEOF
10825/* confdefs.h. */
10826_ACEOF
10827cat confdefs.h >>conftest.$ac_ext
10828cat >>conftest.$ac_ext <<_ACEOF
10829/* end confdefs.h. */
10830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10832#define $ac_func innocuous_$ac_func
10833
10834/* System header to define __stub macros and hopefully few prototypes,
10835 which can conflict with char $ac_func (); below.
10836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10837 <limits.h> exists even on freestanding compilers. */
10838
10839#ifdef __STDC__
10840# include <limits.h>
10841#else
10842# include <assert.h>
10843#endif
10844
10845#undef $ac_func
10846
10847/* Override any gcc2 internal prototype to avoid an error. */
10848#ifdef __cplusplus
10849extern "C"
10850{
10851#endif
10852/* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854char $ac_func ();
10855/* The GNU C library defines this for functions which it implements
10856 to always fail with ENOSYS. Some functions are actually named
10857 something starting with __ and the normal name is an alias. */
10858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10859choke me
10860#else
10861char (*f) () = $ac_func;
10862#endif
10863#ifdef __cplusplus
10864}
10865#endif
10866
10867int
10868main ()
10869{
10870return f != $ac_func;
10871 ;
10872 return 0;
10873}
10874_ACEOF
10875rm -f conftest.$ac_objext conftest$ac_exeext
10876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877 (eval $ac_link) 2>conftest.er1
10878 ac_status=$?
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag"
10885 || test ! -s conftest.err'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest$ac_exeext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 eval "$as_ac_var=yes"
10898else
10899 echo "$as_me: failed program was:" >&5
10900sed 's/^/| /' conftest.$ac_ext >&5
10901
10902eval "$as_ac_var=no"
10903fi
10904rm -f conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906fi
10907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10909if test `eval echo '${'$as_ac_var'}'` = yes; then
10910 cat >>confdefs.h <<_ACEOF
10911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10912_ACEOF
10913
10914 echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
10915echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
10916 if test "$cross_compiling" = yes; then
10917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10918See \`config.log' for more details." >&5
10919echo "$as_me: error: cannot run test program while cross compiling
10920See \`config.log' for more details." >&2;}
10921 { (exit 1); exit 1; }; }
10922else
10923 cat >conftest.$ac_ext <<_ACEOF
10924/* confdefs.h. */
10925_ACEOF
10926cat confdefs.h >>conftest.$ac_ext
10927cat >>conftest.$ac_ext <<_ACEOF
10928/* end confdefs.h. */
10929
10930#include <stdlib.h>
10931#include <errno.h>
10932int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
10933
10934_ACEOF
10935rm -f conftest$ac_exeext
10936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10946 echo "$as_me:$LINENO: result: yes" >&5
10947echo "${ECHO_T}yes" >&6
10948else
10949 echo "$as_me: program exited with status $ac_status" >&5
10950echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953( exit $ac_status )
10954cat >>confdefs.h <<\_ACEOF
10955#define BROKEN_SETRESGID 1
10956_ACEOF
10957
10958 echo "$as_me:$LINENO: result: not implemented" >&5
10959echo "${ECHO_T}not implemented" >&6
10960
10961fi
10962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10963fi
10964
10965fi
10966done
10967
10968
10969
10970
10971for ac_func in gettimeofday time
10972do
10973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974echo "$as_me:$LINENO: checking for $ac_func" >&5
10975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10976if eval "test \"\${$as_ac_var+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979 cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
10985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10987#define $ac_func innocuous_$ac_func
10988
10989/* System header to define __stub macros and hopefully few prototypes,
10990 which can conflict with char $ac_func (); below.
10991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10992 <limits.h> exists even on freestanding compilers. */
10993
10994#ifdef __STDC__
10995# include <limits.h>
10996#else
10997# include <assert.h>
10998#endif
10999
11000#undef $ac_func
11001
11002/* Override any gcc2 internal prototype to avoid an error. */
11003#ifdef __cplusplus
11004extern "C"
11005{
11006#endif
11007/* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11009char $ac_func ();
11010/* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014choke me
11015#else
11016char (*f) () = $ac_func;
11017#endif
11018#ifdef __cplusplus
11019}
11020#endif
11021
11022int
11023main ()
11024{
11025return f != $ac_func;
11026 ;
11027 return 0;
11028}
11029_ACEOF
11030rm -f conftest.$ac_objext conftest$ac_exeext
11031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
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); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 eval "$as_ac_var=yes"
11053else
11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057eval "$as_ac_var=no"
11058fi
11059rm -f conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061fi
11062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11064if test `eval echo '${'$as_ac_var'}'` = yes; then
11065 cat >>confdefs.h <<_ACEOF
11066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11067_ACEOF
11068
11069fi
11070done
11071
11072
11073
11074
11075
11076
11077
11078for ac_func in endutent getutent getutid getutline pututline setutent
11079do
11080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081echo "$as_me:$LINENO: checking for $ac_func" >&5
11082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11083if eval "test \"\${$as_ac_var+set}\" = set"; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 cat >conftest.$ac_ext <<_ACEOF
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
11091/* end confdefs.h. */
11092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11094#define $ac_func innocuous_$ac_func
11095
11096/* System header to define __stub macros and hopefully few prototypes,
11097 which can conflict with char $ac_func (); below.
11098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11099 <limits.h> exists even on freestanding compilers. */
11100
11101#ifdef __STDC__
11102# include <limits.h>
11103#else
11104# include <assert.h>
11105#endif
11106
11107#undef $ac_func
11108
11109/* Override any gcc2 internal prototype to avoid an error. */
11110#ifdef __cplusplus
11111extern "C"
11112{
11113#endif
11114/* We use char because int might match the return type of a gcc2
11115 builtin and then its argument prototype would still apply. */
11116char $ac_func ();
11117/* The GNU C library defines this for functions which it implements
11118 to always fail with ENOSYS. Some functions are actually named
11119 something starting with __ and the normal name is an alias. */
11120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11121choke me
11122#else
11123char (*f) () = $ac_func;
11124#endif
11125#ifdef __cplusplus
11126}
11127#endif
11128
11129int
11130main ()
11131{
11132return f != $ac_func;
11133 ;
11134 return 0;
11135}
11136_ACEOF
11137rm -f conftest.$ac_objext conftest$ac_exeext
11138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139 (eval $ac_link) 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag"
11147 || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 eval "$as_ac_var=yes"
11160else
11161 echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
11164eval "$as_ac_var=no"
11165fi
11166rm -f conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168fi
11169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11171if test `eval echo '${'$as_ac_var'}'` = yes; then
11172 cat >>confdefs.h <<_ACEOF
11173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11174_ACEOF
11175
11176fi
11177done
11178
11179
11180for ac_func in utmpname
11181do
11182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11183echo "$as_me:$LINENO: checking for $ac_func" >&5
11184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11185if eval "test \"\${$as_ac_var+set}\" = set"; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11196#define $ac_func innocuous_$ac_func
11197
11198/* System header to define __stub macros and hopefully few prototypes,
11199 which can conflict with char $ac_func (); below.
11200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11201 <limits.h> exists even on freestanding compilers. */
11202
11203#ifdef __STDC__
11204# include <limits.h>
11205#else
11206# include <assert.h>
11207#endif
11208
11209#undef $ac_func
11210
11211/* Override any gcc2 internal prototype to avoid an error. */
11212#ifdef __cplusplus
11213extern "C"
11214{
11215#endif
11216/* We use char because int might match the return type of a gcc2
11217 builtin and then its argument prototype would still apply. */
11218char $ac_func ();
11219/* The GNU C library defines this for functions which it implements
11220 to always fail with ENOSYS. Some functions are actually named
11221 something starting with __ and the normal name is an alias. */
11222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223choke me
11224#else
11225char (*f) () = $ac_func;
11226#endif
11227#ifdef __cplusplus
11228}
11229#endif
11230
11231int
11232main ()
11233{
11234return f != $ac_func;
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext conftest$ac_exeext
11240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 eval "$as_ac_var=yes"
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266eval "$as_ac_var=no"
11267fi
11268rm -f conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270fi
11271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11273if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276_ACEOF
11277
11278fi
11279done
11280
11281
11282
11283
11284
11285
11286for ac_func in endutxent getutxent getutxid getutxline pututxline
11287do
11288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11289echo "$as_me:$LINENO: checking for $ac_func" >&5
11290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11291if eval "test \"\${$as_ac_var+set}\" = set"; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293else
11294 cat >conftest.$ac_ext <<_ACEOF
11295/* confdefs.h. */
11296_ACEOF
11297cat confdefs.h >>conftest.$ac_ext
11298cat >>conftest.$ac_ext <<_ACEOF
11299/* end confdefs.h. */
11300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11302#define $ac_func innocuous_$ac_func
11303
11304/* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func (); below.
11306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307 <limits.h> exists even on freestanding compilers. */
11308
11309#ifdef __STDC__
11310# include <limits.h>
11311#else
11312# include <assert.h>
11313#endif
11314
11315#undef $ac_func
11316
11317/* Override any gcc2 internal prototype to avoid an error. */
11318#ifdef __cplusplus
11319extern "C"
11320{
11321#endif
11322/* We use char because int might match the return type of a gcc2
11323 builtin and then its argument prototype would still apply. */
11324char $ac_func ();
11325/* The GNU C library defines this for functions which it implements
11326 to always fail with ENOSYS. Some functions are actually named
11327 something starting with __ and the normal name is an alias. */
11328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11329choke me
11330#else
11331char (*f) () = $ac_func;
11332#endif
11333#ifdef __cplusplus
11334}
11335#endif
11336
11337int
11338main ()
11339{
11340return f != $ac_func;
11341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext conftest$ac_exeext
11346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 eval "$as_ac_var=yes"
11368else
11369 echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372eval "$as_ac_var=no"
11373fi
11374rm -f conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376fi
11377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11378echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11379if test `eval echo '${'$as_ac_var'}'` = yes; then
11380 cat >>confdefs.h <<_ACEOF
11381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11382_ACEOF
11383
11384fi
11385done
11386
11387
11388
11389for ac_func in setutxent utmpxname
11390do
11391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11392echo "$as_me:$LINENO: checking for $ac_func" >&5
11393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11394if eval "test \"\${$as_ac_var+set}\" = set"; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11396else
11397 cat >conftest.$ac_ext <<_ACEOF
11398/* confdefs.h. */
11399_ACEOF
11400cat confdefs.h >>conftest.$ac_ext
11401cat >>conftest.$ac_ext <<_ACEOF
11402/* end confdefs.h. */
11403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11405#define $ac_func innocuous_$ac_func
11406
11407/* System header to define __stub macros and hopefully few prototypes,
11408 which can conflict with char $ac_func (); below.
11409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11410 <limits.h> exists even on freestanding compilers. */
11411
11412#ifdef __STDC__
11413# include <limits.h>
11414#else
11415# include <assert.h>
11416#endif
11417
11418#undef $ac_func
11419
11420/* Override any gcc2 internal prototype to avoid an error. */
11421#ifdef __cplusplus
11422extern "C"
11423{
11424#endif
11425/* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11427char $ac_func ();
11428/* The GNU C library defines this for functions which it implements
11429 to always fail with ENOSYS. Some functions are actually named
11430 something starting with __ and the normal name is an alias. */
11431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11432choke me
11433#else
11434char (*f) () = $ac_func;
11435#endif
11436#ifdef __cplusplus
11437}
11438#endif
11439
11440int
11441main ()
11442{
11443return f != $ac_func;
11444 ;
11445 return 0;
11446}
11447_ACEOF
11448rm -f conftest.$ac_objext conftest$ac_exeext
11449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450 (eval $ac_link) 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest$ac_exeext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 eval "$as_ac_var=yes"
11471else
11472 echo "$as_me: failed program was:" >&5
11473sed 's/^/| /' conftest.$ac_ext >&5
11474
11475eval "$as_ac_var=no"
11476fi
11477rm -f conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479fi
11480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11482if test `eval echo '${'$as_ac_var'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11485_ACEOF
11486
11487fi
11488done
11489
11490
11491echo "$as_me:$LINENO: checking for daemon" >&5
11492echo $ECHO_N "checking for daemon... $ECHO_C" >&6
11493if test "${ac_cv_func_daemon+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
11496 cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h. */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h. */
11502/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
11503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11504#define daemon innocuous_daemon
11505
11506/* System header to define __stub macros and hopefully few prototypes,
11507 which can conflict with char daemon (); below.
11508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11509 <limits.h> exists even on freestanding compilers. */
11510
11511#ifdef __STDC__
11512# include <limits.h>
11513#else
11514# include <assert.h>
11515#endif
11516
11517#undef daemon
11518
11519/* Override any gcc2 internal prototype to avoid an error. */
11520#ifdef __cplusplus
11521extern "C"
11522{
11523#endif
11524/* We use char because int might match the return type of a gcc2
11525 builtin and then its argument prototype would still apply. */
11526char daemon ();
11527/* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530#if defined (__stub_daemon) || defined (__stub___daemon)
11531choke me
11532#else
11533char (*f) () = daemon;
11534#endif
11535#ifdef __cplusplus
11536}
11537#endif
11538
11539int
11540main ()
11541{
11542return f != daemon;
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547rm -f conftest.$ac_objext conftest$ac_exeext
11548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549 (eval $ac_link) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest$ac_exeext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_cv_func_daemon=yes
11570else
11571 echo "$as_me: failed program was:" >&5
11572sed 's/^/| /' conftest.$ac_ext >&5
11573
11574ac_cv_func_daemon=no
11575fi
11576rm -f conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578fi
11579echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
11580echo "${ECHO_T}$ac_cv_func_daemon" >&6
11581if test $ac_cv_func_daemon = yes; then
11582 cat >>confdefs.h <<\_ACEOF
11583#define HAVE_DAEMON 1
11584_ACEOF
11585
11586else
11587 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
11588echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
11589if test "${ac_cv_lib_bsd_daemon+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 ac_check_lib_save_LIBS=$LIBS
11593LIBS="-lbsd $LIBS"
11594cat >conftest.$ac_ext <<_ACEOF
11595/* confdefs.h. */
11596_ACEOF
11597cat confdefs.h >>conftest.$ac_ext
11598cat >>conftest.$ac_ext <<_ACEOF
11599/* end confdefs.h. */
11600
11601/* Override any gcc2 internal prototype to avoid an error. */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605/* We use char because int might match the return type of a gcc2
11606 builtin and then its argument prototype would still apply. */
11607char daemon ();
11608int
11609main ()
11610{
11611daemon ();
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext conftest$ac_exeext
11617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag"
11626 || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest$ac_exeext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_lib_bsd_daemon=yes
11639else
11640 echo "$as_me: failed program was:" >&5
11641sed 's/^/| /' conftest.$ac_ext >&5
11642
11643ac_cv_lib_bsd_daemon=no
11644fi
11645rm -f conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647LIBS=$ac_check_lib_save_LIBS
11648fi
11649echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
11650echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
11651if test $ac_cv_lib_bsd_daemon = yes; then
11652 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
11653#define HAVE_DAEMON 1
11654_ACEOF
11655
11656fi
11657
11658
11659fi
11660
11661
11662echo "$as_me:$LINENO: checking for getpagesize" >&5
11663echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
11664if test "${ac_cv_func_getpagesize+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666else
11667 cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
11674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11675#define getpagesize innocuous_getpagesize
11676
11677/* System header to define __stub macros and hopefully few prototypes,
11678 which can conflict with char getpagesize (); below.
11679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680 <limits.h> exists even on freestanding compilers. */
11681
11682#ifdef __STDC__
11683# include <limits.h>
11684#else
11685# include <assert.h>
11686#endif
11687
11688#undef getpagesize
11689
11690/* Override any gcc2 internal prototype to avoid an error. */
11691#ifdef __cplusplus
11692extern "C"
11693{
11694#endif
11695/* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697char getpagesize ();
11698/* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
11702choke me
11703#else
11704char (*f) () = getpagesize;
11705#endif
11706#ifdef __cplusplus
11707}
11708#endif
11709
11710int
11711main ()
11712{
11713return f != getpagesize;
11714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_func_getpagesize=yes
11741else
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745ac_cv_func_getpagesize=no
11746fi
11747rm -f conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749fi
11750echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
11751echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
11752if test $ac_cv_func_getpagesize = yes; then
11753 cat >>confdefs.h <<\_ACEOF
11754#define HAVE_GETPAGESIZE 1
11755_ACEOF
11756
11757else
11758 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
11759echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
11760if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762else
11763 ac_check_lib_save_LIBS=$LIBS
11764LIBS="-lucb $LIBS"
11765cat >conftest.$ac_ext <<_ACEOF
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
11771
11772/* Override any gcc2 internal prototype to avoid an error. */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776/* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778char getpagesize ();
11779int
11780main ()
11781{
11782getpagesize ();
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext conftest$ac_exeext
11788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_ucb_getpagesize=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814ac_cv_lib_ucb_getpagesize=no
11815fi
11816rm -f conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818LIBS=$ac_check_lib_save_LIBS
11819fi
11820echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
11821echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
11822if test $ac_cv_lib_ucb_getpagesize = yes; then
11823 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
11824#define HAVE_GETPAGESIZE 1
11825_ACEOF
11826
11827fi
11828
11829
11830fi
11831
11832
11833# Check for broken snprintf
11834if test "x$ac_cv_func_snprintf" = "xyes" ; then
11835 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
11836echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
11837 if test "$cross_compiling" = yes; then
11838 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11839See \`config.log' for more details." >&5
11840echo "$as_me: error: cannot run test program while cross compiling
11841See \`config.log' for more details." >&2;}
11842 { (exit 1); exit 1; }; }
11843else
11844 cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
11850
11851#include <stdio.h>
11852int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
11853
11854_ACEOF
11855rm -f conftest$ac_exeext
11856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857 (eval $ac_link) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 echo "$as_me:$LINENO: result: yes" >&5
11867echo "${ECHO_T}yes" >&6
11868else
11869 echo "$as_me: program exited with status $ac_status" >&5
11870echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873( exit $ac_status )
11874
11875 echo "$as_me:$LINENO: result: no" >&5
11876echo "${ECHO_T}no" >&6
11877 cat >>confdefs.h <<\_ACEOF
11878#define BROKEN_SNPRINTF 1
11879_ACEOF
11880
11881 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11882echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11883
11884
11885fi
11886rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11887fi
11888fi
11889
11890# Check for missing getpeereid (or equiv) support
11891NO_PEERCHECK=""
11892if test "x$ac_cv_func_getpeereid" != "xyes" ; then
11893 echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
11894echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6
11895 cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
11901#include <sys/types.h>
11902 #include <sys/socket.h>
11903int
11904main ()
11905{
11906int i = SO_PEERCRED;
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext
11912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_c_werror_flag"
11921 || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest.$ac_objext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 echo "$as_me:$LINENO: result: yes" >&5
11934echo "${ECHO_T}yes" >&6
11935else
11936 echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
11939echo "$as_me:$LINENO: result: no" >&5
11940echo "${ECHO_T}no" >&6
11941 NO_PEERCHECK=1
11942
11943fi
11944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11945fi
11946
11947if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11948echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
11949echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
11950if test "$cross_compiling" = yes; then
11951
11952 echo "$as_me:$LINENO: result: yes" >&5
11953echo "${ECHO_T}yes" >&6
11954 cat >>confdefs.h <<\_ACEOF
11955#define HAVE_STRICT_MKSTEMP 1
11956_ACEOF
11957
11958
11959
11960else
11961 cat >conftest.$ac_ext <<_ACEOF
11962/* confdefs.h. */
11963_ACEOF
11964cat confdefs.h >>conftest.$ac_ext
11965cat >>conftest.$ac_ext <<_ACEOF
11966/* end confdefs.h. */
11967
11968#include <stdlib.h>
11969main() { char template[]="conftest.mkstemp-test";
11970if (mkstemp(template) == -1)
11971 exit(1);
11972unlink(template); exit(0);
11973}
11974
11975_ACEOF
11976rm -f conftest$ac_exeext
11977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978 (eval $ac_link) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987
11988 echo "$as_me:$LINENO: result: no" >&5
11989echo "${ECHO_T}no" >&6
11990
11991else
11992 echo "$as_me: program exited with status $ac_status" >&5
11993echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996( exit $ac_status )
11997
11998 echo "$as_me:$LINENO: result: yes" >&5
11999echo "${ECHO_T}yes" >&6
12000 cat >>confdefs.h <<\_ACEOF
12001#define HAVE_STRICT_MKSTEMP 1
12002_ACEOF
12003
12004
12005fi
12006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12007fi
12008fi
12009
12010if test ! -z "$check_for_openpty_ctty_bug"; then
12011 echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
12012echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
12013 if test "$cross_compiling" = yes; then
12014 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12015See \`config.log' for more details." >&5
12016echo "$as_me: error: cannot run test program while cross compiling
12017See \`config.log' for more details." >&2;}
12018 { (exit 1); exit 1; }; }
12019else
12020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
12026
12027#include <stdio.h>
12028#include <sys/fcntl.h>
12029#include <sys/types.h>
12030#include <sys/wait.h>
12031
12032int
12033main()
12034{
12035 pid_t pid;
12036 int fd, ptyfd, ttyfd, status;
12037
12038 pid = fork();
12039 if (pid < 0) { /* failed */
12040 exit(1);
12041 } else if (pid > 0) { /* parent */
12042 waitpid(pid, &status, 0);
12043 if (WIFEXITED(status))
12044 exit(WEXITSTATUS(status));
12045 else
12046 exit(2);
12047 } else { /* child */
12048 close(0); close(1); close(2);
12049 setsid();
12050 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12051 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12052 if (fd >= 0)
12053 exit(3); /* Acquired ctty: broken */
12054 else
12055 exit(0); /* Did not acquire ctty: OK */
12056 }
12057}
12058
12059_ACEOF
12060rm -f conftest$ac_exeext
12061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071
12072 echo "$as_me:$LINENO: result: yes" >&5
12073echo "${ECHO_T}yes" >&6
12074
12075else
12076 echo "$as_me: program exited with status $ac_status" >&5
12077echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
12079
12080( exit $ac_status )
12081
12082 echo "$as_me:$LINENO: result: no" >&5
12083echo "${ECHO_T}no" >&6
12084 cat >>confdefs.h <<\_ACEOF
12085#define SSHD_ACQUIRES_CTTY 1
12086_ACEOF
12087
12088
12089
12090fi
12091rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12092fi
12093fi
12094
12095if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12096 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
12097echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
12098 if test "$cross_compiling" = yes; then
12099 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12100See \`config.log' for more details." >&5
12101echo "$as_me: error: cannot run test program while cross compiling
12102See \`config.log' for more details." >&2;}
12103 { (exit 1); exit 1; }; }
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111
12112#include <stdio.h>
12113#include <sys/socket.h>
12114#include <netdb.h>
12115#include <errno.h>
12116#include <netinet/in.h>
12117
12118#define TEST_PORT "2222"
12119
12120int
12121main(void)
12122{
12123 int err, sock;
12124 struct addrinfo *gai_ai, *ai, hints;
12125 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12126
12127 memset(&hints, 0, sizeof(hints));
12128 hints.ai_family = PF_UNSPEC;
12129 hints.ai_socktype = SOCK_STREAM;
12130 hints.ai_flags = AI_PASSIVE;
12131
12132 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12133 if (err != 0) {
12134 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12135 exit(1);
12136 }
12137
12138 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12139 if (ai->ai_family != AF_INET6)
12140 continue;
12141
12142 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12143 sizeof(ntop), strport, sizeof(strport),
12144 NI_NUMERICHOST|NI_NUMERICSERV);
12145
12146 if (err != 0) {
12147 if (err == EAI_SYSTEM)
12148 perror("getnameinfo EAI_SYSTEM");
12149 else
12150 fprintf(stderr, "getnameinfo failed: %s\n",
12151 gai_strerror(err));
12152 exit(2);
12153 }
12154
12155 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
12156 if (sock < 0)
12157 perror("socket");
12158 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
12159 if (errno == EBADF)
12160 exit(3);
12161 }
12162 }
12163 exit(0);
12164}
12165
12166_ACEOF
12167rm -f conftest$ac_exeext
12168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169 (eval $ac_link) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178
12179 echo "$as_me:$LINENO: result: yes" >&5
12180echo "${ECHO_T}yes" >&6
12181
12182else
12183 echo "$as_me: program exited with status $ac_status" >&5
12184echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187( exit $ac_status )
12188
12189 echo "$as_me:$LINENO: result: no" >&5
12190echo "${ECHO_T}no" >&6
12191 cat >>confdefs.h <<\_ACEOF
12192#define BROKEN_GETADDRINFO 1
12193_ACEOF
12194
12195
12196
12197fi
12198rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12199fi
12200fi
12201
12202echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12203echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
12204if test "${ac_cv_func_getpgrp_void+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207 # Use it with a single arg.
12208cat >conftest.$ac_ext <<_ACEOF
12209/* confdefs.h. */
12210_ACEOF
12211cat confdefs.h >>conftest.$ac_ext
12212cat >>conftest.$ac_ext <<_ACEOF
12213/* end confdefs.h. */
12214$ac_includes_default
12215int
12216main ()
12217{
12218getpgrp (0);
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext
12224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_cv_func_getpgrp_void=no
12246else
12247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250ac_cv_func_getpgrp_void=yes
12251fi
12252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12253
12254fi
12255echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12256echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
12257if test $ac_cv_func_getpgrp_void = yes; then
12258
12259cat >>confdefs.h <<\_ACEOF
12260#define GETPGRP_VOID 1
12261_ACEOF
12262
12263fi
12264
12265
12266# Check for PAM libs
12267PAM_MSG="no"
12268
12269# Check whether --with-pam or --without-pam was given.
12270if test "${with_pam+set}" = set; then
12271 withval="$with_pam"
12272
12273 if test "x$withval" != "xno" ; then
12274 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12275 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
12276 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
12277echo "$as_me: error: PAM headers not found" >&2;}
12278 { (exit 1); exit 1; }; }
12279 fi
12280
12281
12282echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12283echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12284if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287 ac_check_lib_save_LIBS=$LIBS
12288LIBS="-ldl $LIBS"
12289cat >conftest.$ac_ext <<_ACEOF
12290/* confdefs.h. */
12291_ACEOF
12292cat confdefs.h >>conftest.$ac_ext
12293cat >>conftest.$ac_ext <<_ACEOF
12294/* end confdefs.h. */
12295
12296/* Override any gcc2 internal prototype to avoid an error. */
12297#ifdef __cplusplus
12298extern "C"
12299#endif
12300/* We use char because int might match the return type of a gcc2
12301 builtin and then its argument prototype would still apply. */
12302char dlopen ();
12303int
12304main ()
12305{
12306dlopen ();
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext conftest$ac_exeext
12312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313 (eval $ac_link) 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag"
12321 || test ! -s conftest.err'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest$ac_exeext'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_cv_lib_dl_dlopen=yes
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338ac_cv_lib_dl_dlopen=no
12339fi
12340rm -f conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342LIBS=$ac_check_lib_save_LIBS
12343fi
12344echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12345echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12346if test $ac_cv_lib_dl_dlopen = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348#define HAVE_LIBDL 1
12349_ACEOF
12350
12351 LIBS="-ldl $LIBS"
12352
12353fi
12354
12355
12356echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
12357echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
12358if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361 ac_check_lib_save_LIBS=$LIBS
12362LIBS="-lpam $LIBS"
12363cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h. */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369
12370/* Override any gcc2 internal prototype to avoid an error. */
12371#ifdef __cplusplus
12372extern "C"
12373#endif
12374/* We use char because int might match the return type of a gcc2
12375 builtin and then its argument prototype would still apply. */
12376char pam_set_item ();
12377int
12378main ()
12379{
12380pam_set_item ();
12381 ;
12382 return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext conftest$ac_exeext
12386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387 (eval $ac_link) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_lib_pam_pam_set_item=yes
12408else
12409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412ac_cv_lib_pam_pam_set_item=no
12413fi
12414rm -f conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416LIBS=$ac_check_lib_save_LIBS
12417fi
12418echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
12419echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
12420if test $ac_cv_lib_pam_pam_set_item = yes; then
12421 cat >>confdefs.h <<_ACEOF
12422#define HAVE_LIBPAM 1
12423_ACEOF
12424
12425 LIBS="-lpam $LIBS"
12426
12427else
12428 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
12429echo "$as_me: error: *** libpam missing" >&2;}
12430 { (exit 1); exit 1; }; }
12431fi
12432
12433
12434for ac_func in pam_getenvlist
12435do
12436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437echo "$as_me:$LINENO: checking for $ac_func" >&5
12438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12439if eval "test \"\${$as_ac_var+set}\" = set"; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450#define $ac_func innocuous_$ac_func
12451
12452/* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12456
12457#ifdef __STDC__
12458# include <limits.h>
12459#else
12460# include <assert.h>
12461#endif
12462
12463#undef $ac_func
12464
12465/* Override any gcc2 internal prototype to avoid an error. */
12466#ifdef __cplusplus
12467extern "C"
12468{
12469#endif
12470/* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12472char $ac_func ();
12473/* The GNU C library defines this for functions which it implements
12474 to always fail with ENOSYS. Some functions are actually named
12475 something starting with __ and the normal name is an alias. */
12476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12477choke me
12478#else
12479char (*f) () = $ac_func;
12480#endif
12481#ifdef __cplusplus
12482}
12483#endif
12484
12485int
12486main ()
12487{
12488return f != $ac_func;
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext conftest$ac_exeext
12494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 eval "$as_ac_var=yes"
12516else
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520eval "$as_ac_var=no"
12521fi
12522rm -f conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
12524fi
12525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12527if test `eval echo '${'$as_ac_var'}'` = yes; then
12528 cat >>confdefs.h <<_ACEOF
12529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12530_ACEOF
12531
12532fi
12533done
12534
12535
12536for ac_func in pam_putenv
12537do
12538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12539echo "$as_me:$LINENO: checking for $ac_func" >&5
12540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12541if eval "test \"\${$as_ac_var+set}\" = set"; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544 cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12552#define $ac_func innocuous_$ac_func
12553
12554/* System header to define __stub macros and hopefully few prototypes,
12555 which can conflict with char $ac_func (); below.
12556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12557 <limits.h> exists even on freestanding compilers. */
12558
12559#ifdef __STDC__
12560# include <limits.h>
12561#else
12562# include <assert.h>
12563#endif
12564
12565#undef $ac_func
12566
12567/* Override any gcc2 internal prototype to avoid an error. */
12568#ifdef __cplusplus
12569extern "C"
12570{
12571#endif
12572/* We use char because int might match the return type of a gcc2
12573 builtin and then its argument prototype would still apply. */
12574char $ac_func ();
12575/* The GNU C library defines this for functions which it implements
12576 to always fail with ENOSYS. Some functions are actually named
12577 something starting with __ and the normal name is an alias. */
12578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12579choke me
12580#else
12581char (*f) () = $ac_func;
12582#endif
12583#ifdef __cplusplus
12584}
12585#endif
12586
12587int
12588main ()
12589{
12590return f != $ac_func;
12591 ;
12592 return 0;
12593}
12594_ACEOF
12595rm -f conftest.$ac_objext conftest$ac_exeext
12596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 eval "$as_ac_var=yes"
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622eval "$as_ac_var=no"
12623fi
12624rm -f conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626fi
12627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12629if test `eval echo '${'$as_ac_var'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632_ACEOF
12633
12634fi
12635done
12636
12637
12638 PAM_MSG="yes"
12639
12640 cat >>confdefs.h <<\_ACEOF
12641#define USE_PAM 1
12642_ACEOF
12643
12644 if test $ac_cv_lib_dl_dlopen = yes; then
12645 LIBPAM="-lpam -ldl"
12646 else
12647 LIBPAM="-lpam"
12648 fi
12649
12650 fi
12651
12652
12653fi;
12654
12655# Check for older PAM
12656if test "x$PAM_MSG" = "xyes" ; then
12657 # Check PAM strerror arguments (old PAM)
12658 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
12659echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666
12667#include <stdlib.h>
12668#if defined(HAVE_SECURITY_PAM_APPL_H)
12669#include <security/pam_appl.h>
12670#elif defined (HAVE_PAM_PAM_APPL_H)
12671#include <pam/pam_appl.h>
12672#endif
12673
12674int
12675main ()
12676{
12677(void)pam_strerror((pam_handle_t *)NULL, -1);
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext
12683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag"
12692 || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 echo "$as_me:$LINENO: result: no" >&5
12705echo "${ECHO_T}no" >&6
12706else
12707 echo "$as_me: failed program was:" >&5
12708sed 's/^/| /' conftest.$ac_ext >&5
12709
12710
12711 cat >>confdefs.h <<\_ACEOF
12712#define HAVE_OLD_PAM 1
12713_ACEOF
12714
12715 echo "$as_me:$LINENO: result: yes" >&5
12716echo "${ECHO_T}yes" >&6
12717 PAM_MSG="yes (old library)"
12718
12719
12720fi
12721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12722fi
12723
12724# Search for OpenSSL
12725saved_CPPFLAGS="$CPPFLAGS"
12726saved_LDFLAGS="$LDFLAGS"
12727
12728# Check whether --with-ssl-dir or --without-ssl-dir was given.
12729if test "${with_ssl_dir+set}" = set; then
12730 withval="$with_ssl_dir"
12731
12732 if test "x$withval" != "xno" ; then
12733 if test -d "$withval/lib"; then
12734 if test -n "${need_dash_r}"; then
12735 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12736 else
12737 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12738 fi
12739 else
12740 if test -n "${need_dash_r}"; then
12741 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12742 else
12743 LDFLAGS="-L${withval} ${LDFLAGS}"
12744 fi
12745 fi
12746 if test -d "$withval/include"; then
12747 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12748 else
12749 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12750 fi
12751 fi
12752
12753
12754fi;
12755LIBS="-lcrypto $LIBS"
12756cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763/* Override any gcc2 internal prototype to avoid an error. */
12764#ifdef __cplusplus
12765extern "C"
12766#endif
12767/* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769char RAND_add ();
12770int
12771main ()
12772{
12773RAND_add ();
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 cat >>confdefs.h <<\_ACEOF
12801#define HAVE_OPENSSL 1
12802_ACEOF
12803
12804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808
12809 if test -n "${need_dash_r}"; then
12810 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
12811 else
12812 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
12813 fi
12814 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821
12822/* Override any gcc2 internal prototype to avoid an error. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826/* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12828char RAND_add ();
12829int
12830main ()
12831{
12832RAND_add ();
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837rm -f conftest.$ac_objext conftest$ac_exeext
12838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag"
12847 || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 cat >>confdefs.h <<\_ACEOF
12860#define HAVE_OPENSSL 1
12861_ACEOF
12862
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867
12868 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
12869echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
12870 { (exit 1); exit 1; }; }
12871
12872
12873fi
12874rm -f conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876
12877
12878fi
12879rm -f conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
12881
12882# Determine OpenSSL header version
12883echo "$as_me:$LINENO: checking OpenSSL header version" >&5
12884echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
12885if test "$cross_compiling" = yes; then
12886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12887See \`config.log' for more details." >&5
12888echo "$as_me: error: cannot run test program while cross compiling
12889See \`config.log' for more details." >&2;}
12890 { (exit 1); exit 1; }; }
12891else
12892 cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h. */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h. */
12898
12899#include <stdio.h>
12900#include <string.h>
12901#include <openssl/opensslv.h>
12902#define DATA "conftest.sslincver"
12903int main(void) {
12904 FILE *fd;
12905 int rc;
12906
12907 fd = fopen(DATA,"w");
12908 if(fd == NULL)
12909 exit(1);
12910
12911 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
12912 exit(1);
12913
12914 exit(0);
12915}
12916
12917_ACEOF
12918rm -f conftest$ac_exeext
12919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 (eval $ac_link) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929
12930 ssl_header_ver=`cat conftest.sslincver`
12931 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
12932echo "${ECHO_T}$ssl_header_ver" >&6
12933
12934else
12935 echo "$as_me: program exited with status $ac_status" >&5
12936echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939( exit $ac_status )
12940
12941 echo "$as_me:$LINENO: result: not found" >&5
12942echo "${ECHO_T}not found" >&6
12943 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
12944echo "$as_me: error: OpenSSL version header not found." >&2;}
12945 { (exit 1); exit 1; }; }
12946
12947
12948fi
12949rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12950fi
12951
12952# Determine OpenSSL library version
12953echo "$as_me:$LINENO: checking OpenSSL library version" >&5
12954echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
12955if test "$cross_compiling" = yes; then
12956 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12957See \`config.log' for more details." >&5
12958echo "$as_me: error: cannot run test program while cross compiling
12959See \`config.log' for more details." >&2;}
12960 { (exit 1); exit 1; }; }
12961else
12962 cat >conftest.$ac_ext <<_ACEOF
12963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
12968
12969#include <stdio.h>
12970#include <string.h>
12971#include <openssl/opensslv.h>
12972#include <openssl/crypto.h>
12973#define DATA "conftest.ssllibver"
12974int main(void) {
12975 FILE *fd;
12976 int rc;
12977
12978 fd = fopen(DATA,"w");
12979 if(fd == NULL)
12980 exit(1);
12981
12982 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
12983 exit(1);
12984
12985 exit(0);
12986}
12987
12988_ACEOF
12989rm -f conftest$ac_exeext
12990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000
13001 ssl_library_ver=`cat conftest.ssllibver`
13002 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
13003echo "${ECHO_T}$ssl_library_ver" >&6
13004
13005else
13006 echo "$as_me: program exited with status $ac_status" >&5
13007echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010( exit $ac_status )
13011
13012 echo "$as_me:$LINENO: result: not found" >&5
13013echo "${ECHO_T}not found" >&6
13014 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
13015echo "$as_me: error: OpenSSL library not found." >&2;}
13016 { (exit 1); exit 1; }; }
13017
13018
13019fi
13020rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13021fi
13022
13023# Sanity check OpenSSL headers
13024echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
13025echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
13026if test "$cross_compiling" = yes; then
13027 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13028See \`config.log' for more details." >&5
13029echo "$as_me: error: cannot run test program while cross compiling
13030See \`config.log' for more details." >&2;}
13031 { (exit 1); exit 1; }; }
13032else
13033 cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039
13040#include <string.h>
13041#include <openssl/opensslv.h>
13042int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
13043
13044_ACEOF
13045rm -f conftest$ac_exeext
13046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13047 (eval $ac_link) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056
13057 echo "$as_me:$LINENO: result: yes" >&5
13058echo "${ECHO_T}yes" >&6
13059
13060else
13061 echo "$as_me: program exited with status $ac_status" >&5
13062echo "$as_me: failed program was:" >&5
13063sed 's/^/| /' conftest.$ac_ext >&5
13064
13065( exit $ac_status )
13066
13067 echo "$as_me:$LINENO: result: no" >&5
13068echo "${ECHO_T}no" >&6
13069 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
13070Check config.log for details.
13071Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
13072echo "$as_me: error: Your OpenSSL headers do not match your library.
13073Check config.log for details.
13074Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
13075 { (exit 1); exit 1; }; }
13076
13077
13078fi
13079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13080fi
13081
13082# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
13083# because the system crypt() is more featureful.
13084if test "x$check_for_libcrypt_before" = "x1"; then
13085
13086echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13087echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13088if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091 ac_check_lib_save_LIBS=$LIBS
13092LIBS="-lcrypt $LIBS"
13093cat >conftest.$ac_ext <<_ACEOF
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h. */
13099
13100/* Override any gcc2 internal prototype to avoid an error. */
13101#ifdef __cplusplus
13102extern "C"
13103#endif
13104/* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106char crypt ();
13107int
13108main ()
13109{
13110crypt ();
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115rm -f conftest.$ac_objext conftest$ac_exeext
13116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -z "$ac_c_werror_flag"
13125 || test ! -s conftest.err'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 ac_cv_lib_crypt_crypt=yes
13138else
13139 echo "$as_me: failed program was:" >&5
13140sed 's/^/| /' conftest.$ac_ext >&5
13141
13142ac_cv_lib_crypt_crypt=no
13143fi
13144rm -f conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146LIBS=$ac_check_lib_save_LIBS
13147fi
13148echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13149echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13150if test $ac_cv_lib_crypt_crypt = yes; then
13151 cat >>confdefs.h <<_ACEOF
13152#define HAVE_LIBCRYPT 1
13153_ACEOF
13154
13155 LIBS="-lcrypt $LIBS"
13156
13157fi
13158
13159fi
13160
13161# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
13162# version in OpenSSL.
13163if test "x$check_for_libcrypt_later" = "x1"; then
13164 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13165echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13166if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13168else
13169 ac_check_lib_save_LIBS=$LIBS
13170LIBS="-lcrypt $LIBS"
13171cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177
13178/* Override any gcc2 internal prototype to avoid an error. */
13179#ifdef __cplusplus
13180extern "C"
13181#endif
13182/* We use char because int might match the return type of a gcc2
13183 builtin and then its argument prototype would still apply. */
13184char crypt ();
13185int
13186main ()
13187{
13188crypt ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195 (eval $ac_link) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag"
13203 || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_lib_crypt_crypt=yes
13216else
13217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220ac_cv_lib_crypt_crypt=no
13221fi
13222rm -f conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224LIBS=$ac_check_lib_save_LIBS
13225fi
13226echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13227echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13228if test $ac_cv_lib_crypt_crypt = yes; then
13229 LIBS="$LIBS -lcrypt"
13230fi
13231
13232fi
13233
13234
13235### Configure cryptographic random number support
13236
13237# Check wheter OpenSSL seeds itself
13238echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
13239echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
13240if test "$cross_compiling" = yes; then
13241 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13242See \`config.log' for more details." >&5
13243echo "$as_me: error: cannot run test program while cross compiling
13244See \`config.log' for more details." >&2;}
13245 { (exit 1); exit 1; }; }
13246else
13247 cat >conftest.$ac_ext <<_ACEOF
13248/* confdefs.h. */
13249_ACEOF
13250cat confdefs.h >>conftest.$ac_ext
13251cat >>conftest.$ac_ext <<_ACEOF
13252/* end confdefs.h. */
13253
13254#include <string.h>
13255#include <openssl/rand.h>
13256int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
13257
13258_ACEOF
13259rm -f conftest$ac_exeext
13260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270
13271 OPENSSL_SEEDS_ITSELF=yes
13272 echo "$as_me:$LINENO: result: yes" >&5
13273echo "${ECHO_T}yes" >&6
13274
13275else
13276 echo "$as_me: program exited with status $ac_status" >&5
13277echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280( exit $ac_status )
13281
13282 echo "$as_me:$LINENO: result: no" >&5
13283echo "${ECHO_T}no" >&6
13284 # Default to use of the rand helper if OpenSSL doesn't
13285 # seed itself
13286 USE_RAND_HELPER=yes
13287
13288
13289fi
13290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13291fi
13292
13293
13294# Do we want to force the use of the rand helper?
13295
13296# Check whether --with-rand-helper or --without-rand-helper was given.
13297if test "${with_rand_helper+set}" = set; then
13298 withval="$with_rand_helper"
13299
13300 if test "x$withval" = "xno" ; then
13301 # Force use of OpenSSL's internal RNG, even if
13302 # the previous test showed it to be unseeded.
13303 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
13304 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
13305echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
13306 OPENSSL_SEEDS_ITSELF=yes
13307 USE_RAND_HELPER=""
13308 fi
13309 else
13310 USE_RAND_HELPER=yes
13311 fi
13312
13313fi;
13314
13315# Which randomness source do we use?
13316if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
13317 # OpenSSL only
13318 cat >>confdefs.h <<\_ACEOF
13319#define OPENSSL_PRNG_ONLY 1
13320_ACEOF
13321
13322 RAND_MSG="OpenSSL internal ONLY"
13323 INSTALL_SSH_RAND_HELPER=""
13324elif test ! -z "$USE_RAND_HELPER" ; then
13325 # install rand helper
13326 RAND_MSG="ssh-rand-helper"
13327 INSTALL_SSH_RAND_HELPER="yes"
13328fi
13329
13330
13331### Configuration of ssh-rand-helper
13332
13333# PRNGD TCP socket
13334
13335# Check whether --with-prngd-port or --without-prngd-port was given.
13336if test "${with_prngd_port+set}" = set; then
13337 withval="$with_prngd_port"
13338
13339 case "$withval" in
13340 no)
13341 withval=""
13342 ;;
13343 [0-9]*)
13344 ;;
13345 *)
13346 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
13347echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
13348 { (exit 1); exit 1; }; }
13349 ;;
13350 esac
13351 if test ! -z "$withval" ; then
13352 PRNGD_PORT="$withval"
13353 cat >>confdefs.h <<_ACEOF
13354#define PRNGD_PORT $PRNGD_PORT
13355_ACEOF
13356
13357 fi
13358
13359
13360fi;
13361
13362# PRNGD Unix domain socket
13363
13364# Check whether --with-prngd-socket or --without-prngd-socket was given.
13365if test "${with_prngd_socket+set}" = set; then
13366 withval="$with_prngd_socket"
13367
13368 case "$withval" in
13369 yes)
13370 withval="/var/run/egd-pool"
13371 ;;
13372 no)
13373 withval=""
13374 ;;
13375 /*)
13376 ;;
13377 *)
13378 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
13379echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
13380 { (exit 1); exit 1; }; }
13381 ;;
13382 esac
13383
13384 if test ! -z "$withval" ; then
13385 if test ! -z "$PRNGD_PORT" ; then
13386 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
13387echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
13388 { (exit 1); exit 1; }; }
13389 fi
13390 if test ! -r "$withval" ; then
13391 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
13392echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
13393 fi
13394 PRNGD_SOCKET="$withval"
13395 cat >>confdefs.h <<_ACEOF
13396#define PRNGD_SOCKET "$PRNGD_SOCKET"
13397_ACEOF
13398
13399 fi
13400
13401else
13402
13403 # Check for existing socket only if we don't have a random device already
13404 if test "$USE_RAND_HELPER" = yes ; then
13405 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
13406echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
13407 # Insert other locations here
13408 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
13409 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
13410 PRNGD_SOCKET="$sock"
13411 cat >>confdefs.h <<_ACEOF
13412#define PRNGD_SOCKET "$PRNGD_SOCKET"
13413_ACEOF
13414
13415 break;
13416 fi
13417 done
13418 if test ! -z "$PRNGD_SOCKET" ; then
13419 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
13420echo "${ECHO_T}$PRNGD_SOCKET" >&6
13421 else
13422 echo "$as_me:$LINENO: result: not found" >&5
13423echo "${ECHO_T}not found" >&6
13424 fi
13425 fi
13426
13427
13428fi;
13429
13430# Change default command timeout for hashing entropy source
13431entropy_timeout=200
13432
13433# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
13434if test "${with_entropy_timeout+set}" = set; then
13435 withval="$with_entropy_timeout"
13436
13437 if test "x$withval" != "xno" ; then
13438 entropy_timeout=$withval
13439 fi
13440
13441
13442fi;
13443cat >>confdefs.h <<_ACEOF
13444#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
13445_ACEOF
13446
13447
13448SSH_PRIVSEP_USER=sshd
13449
13450# Check whether --with-privsep-user or --without-privsep-user was given.
13451if test "${with_privsep_user+set}" = set; then
13452 withval="$with_privsep_user"
13453
13454 if test -n "$withval"; then
13455 SSH_PRIVSEP_USER=$withval
13456 fi
13457
13458
13459fi;
13460cat >>confdefs.h <<_ACEOF
13461#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13462_ACEOF
13463
13464
13465
13466# We do this little dance with the search path to insure
13467# that programs that we select for use by installed programs
13468# (which may be run by the super-user) come from trusted
13469# locations before they come from the user's private area.
13470# This should help avoid accidentally configuring some
13471# random version of a program in someone's personal bin.
13472
13473OPATH=$PATH
13474PATH=/bin:/usr/bin
13475test -h /bin 2> /dev/null && PATH=/usr/bin
13476test -d /sbin && PATH=$PATH:/sbin
13477test -d /usr/sbin && PATH=$PATH:/usr/sbin
13478PATH=$PATH:/etc:$OPATH
13479
13480# These programs are used by the command hashing source to gather entropy
13481
13482 # Extract the first word of "ls", so it can be a program name with args.
13483set dummy ls; ac_word=$2
13484echo "$as_me:$LINENO: checking for $ac_word" >&5
13485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13486if test "${ac_cv_path_PROG_LS+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488else
13489 case $PROG_LS in
13490 [\\/]* | ?:[\\/]*)
13491 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
13492 ;;
13493 *)
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495for as_dir in $PATH
13496do
13497 IFS=$as_save_IFS
13498 test -z "$as_dir" && as_dir=.
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
13502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13503 break 2
13504 fi
13505done
13506done
13507
13508 ;;
13509esac
13510fi
13511PROG_LS=$ac_cv_path_PROG_LS
13512
13513if test -n "$PROG_LS"; then
13514 echo "$as_me:$LINENO: result: $PROG_LS" >&5
13515echo "${ECHO_T}$PROG_LS" >&6
13516else
13517 echo "$as_me:$LINENO: result: no" >&5
13518echo "${ECHO_T}no" >&6
13519fi
13520
13521 if test -z "$PROG_LS" ; then
13522 PROG_LS="undef"
13523 fi
13524
13525
13526
13527 # Extract the first word of "netstat", so it can be a program name with args.
13528set dummy netstat; ac_word=$2
13529echo "$as_me:$LINENO: checking for $ac_word" >&5
13530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13531if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533else
13534 case $PROG_NETSTAT in
13535 [\\/]* | ?:[\\/]*)
13536 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
13537 ;;
13538 *)
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540for as_dir in $PATH
13541do
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13546 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
13547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13549 fi
13550done
13551done
13552
13553 ;;
13554esac
13555fi
13556PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
13557
13558if test -n "$PROG_NETSTAT"; then
13559 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
13560echo "${ECHO_T}$PROG_NETSTAT" >&6
13561else
13562 echo "$as_me:$LINENO: result: no" >&5
13563echo "${ECHO_T}no" >&6
13564fi
13565
13566 if test -z "$PROG_NETSTAT" ; then
13567 PROG_NETSTAT="undef"
13568 fi
13569
13570
13571
13572 # Extract the first word of "arp", so it can be a program name with args.
13573set dummy arp; ac_word=$2
13574echo "$as_me:$LINENO: checking for $ac_word" >&5
13575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13576if test "${ac_cv_path_PROG_ARP+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579 case $PROG_ARP in
13580 [\\/]* | ?:[\\/]*)
13581 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
13582 ;;
13583 *)
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585for as_dir in $PATH
13586do
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
13592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13593 break 2
13594 fi
13595done
13596done
13597
13598 ;;
13599esac
13600fi
13601PROG_ARP=$ac_cv_path_PROG_ARP
13602
13603if test -n "$PROG_ARP"; then
13604 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
13605echo "${ECHO_T}$PROG_ARP" >&6
13606else
13607 echo "$as_me:$LINENO: result: no" >&5
13608echo "${ECHO_T}no" >&6
13609fi
13610
13611 if test -z "$PROG_ARP" ; then
13612 PROG_ARP="undef"
13613 fi
13614
13615
13616
13617 # Extract the first word of "ifconfig", so it can be a program name with args.
13618set dummy ifconfig; ac_word=$2
13619echo "$as_me:$LINENO: checking for $ac_word" >&5
13620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13621if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623else
13624 case $PROG_IFCONFIG in
13625 [\\/]* | ?:[\\/]*)
13626 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
13627 ;;
13628 *)
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
13637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13639 fi
13640done
13641done
13642
13643 ;;
13644esac
13645fi
13646PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
13647
13648if test -n "$PROG_IFCONFIG"; then
13649 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
13650echo "${ECHO_T}$PROG_IFCONFIG" >&6
13651else
13652 echo "$as_me:$LINENO: result: no" >&5
13653echo "${ECHO_T}no" >&6
13654fi
13655
13656 if test -z "$PROG_IFCONFIG" ; then
13657 PROG_IFCONFIG="undef"
13658 fi
13659
13660
13661
13662 # Extract the first word of "jstat", so it can be a program name with args.
13663set dummy jstat; ac_word=$2
13664echo "$as_me:$LINENO: checking for $ac_word" >&5
13665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13666if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 case $PROG_JSTAT in
13670 [\\/]* | ?:[\\/]*)
13671 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
13672 ;;
13673 *)
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675for as_dir in $PATH
13676do
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
13682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13684 fi
13685done
13686done
13687
13688 ;;
13689esac
13690fi
13691PROG_JSTAT=$ac_cv_path_PROG_JSTAT
13692
13693if test -n "$PROG_JSTAT"; then
13694 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
13695echo "${ECHO_T}$PROG_JSTAT" >&6
13696else
13697 echo "$as_me:$LINENO: result: no" >&5
13698echo "${ECHO_T}no" >&6
13699fi
13700
13701 if test -z "$PROG_JSTAT" ; then
13702 PROG_JSTAT="undef"
13703 fi
13704
13705
13706
13707 # Extract the first word of "ps", so it can be a program name with args.
13708set dummy ps; ac_word=$2
13709echo "$as_me:$LINENO: checking for $ac_word" >&5
13710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13711if test "${ac_cv_path_PROG_PS+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713else
13714 case $PROG_PS in
13715 [\\/]* | ?:[\\/]*)
13716 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
13717 ;;
13718 *)
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13726 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
13727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730done
13731done
13732
13733 ;;
13734esac
13735fi
13736PROG_PS=$ac_cv_path_PROG_PS
13737
13738if test -n "$PROG_PS"; then
13739 echo "$as_me:$LINENO: result: $PROG_PS" >&5
13740echo "${ECHO_T}$PROG_PS" >&6
13741else
13742 echo "$as_me:$LINENO: result: no" >&5
13743echo "${ECHO_T}no" >&6
13744fi
13745
13746 if test -z "$PROG_PS" ; then
13747 PROG_PS="undef"
13748 fi
13749
13750
13751
13752 # Extract the first word of "sar", so it can be a program name with args.
13753set dummy sar; ac_word=$2
13754echo "$as_me:$LINENO: checking for $ac_word" >&5
13755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13756if test "${ac_cv_path_PROG_SAR+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759 case $PROG_SAR in
13760 [\\/]* | ?:[\\/]*)
13761 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
13762 ;;
13763 *)
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
13772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13774 fi
13775done
13776done
13777
13778 ;;
13779esac
13780fi
13781PROG_SAR=$ac_cv_path_PROG_SAR
13782
13783if test -n "$PROG_SAR"; then
13784 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
13785echo "${ECHO_T}$PROG_SAR" >&6
13786else
13787 echo "$as_me:$LINENO: result: no" >&5
13788echo "${ECHO_T}no" >&6
13789fi
13790
13791 if test -z "$PROG_SAR" ; then
13792 PROG_SAR="undef"
13793 fi
13794
13795
13796
13797 # Extract the first word of "w", so it can be a program name with args.
13798set dummy w; ac_word=$2
13799echo "$as_me:$LINENO: checking for $ac_word" >&5
13800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13801if test "${ac_cv_path_PROG_W+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 case $PROG_W in
13805 [\\/]* | ?:[\\/]*)
13806 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
13807 ;;
13808 *)
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13816 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
13817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820done
13821done
13822
13823 ;;
13824esac
13825fi
13826PROG_W=$ac_cv_path_PROG_W
13827
13828if test -n "$PROG_W"; then
13829 echo "$as_me:$LINENO: result: $PROG_W" >&5
13830echo "${ECHO_T}$PROG_W" >&6
13831else
13832 echo "$as_me:$LINENO: result: no" >&5
13833echo "${ECHO_T}no" >&6
13834fi
13835
13836 if test -z "$PROG_W" ; then
13837 PROG_W="undef"
13838 fi
13839
13840
13841
13842 # Extract the first word of "who", so it can be a program name with args.
13843set dummy who; ac_word=$2
13844echo "$as_me:$LINENO: checking for $ac_word" >&5
13845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13846if test "${ac_cv_path_PROG_WHO+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
13849 case $PROG_WHO in
13850 [\\/]* | ?:[\\/]*)
13851 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
13852 ;;
13853 *)
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855for as_dir in $PATH
13856do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
13862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865done
13866done
13867
13868 ;;
13869esac
13870fi
13871PROG_WHO=$ac_cv_path_PROG_WHO
13872
13873if test -n "$PROG_WHO"; then
13874 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
13875echo "${ECHO_T}$PROG_WHO" >&6
13876else
13877 echo "$as_me:$LINENO: result: no" >&5
13878echo "${ECHO_T}no" >&6
13879fi
13880
13881 if test -z "$PROG_WHO" ; then
13882 PROG_WHO="undef"
13883 fi
13884
13885
13886
13887 # Extract the first word of "last", so it can be a program name with args.
13888set dummy last; ac_word=$2
13889echo "$as_me:$LINENO: checking for $ac_word" >&5
13890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13891if test "${ac_cv_path_PROG_LAST+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 case $PROG_LAST in
13895 [\\/]* | ?:[\\/]*)
13896 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
13897 ;;
13898 *)
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900for as_dir in $PATH
13901do
13902 IFS=$as_save_IFS
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13906 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
13907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13908 break 2
13909 fi
13910done
13911done
13912
13913 ;;
13914esac
13915fi
13916PROG_LAST=$ac_cv_path_PROG_LAST
13917
13918if test -n "$PROG_LAST"; then
13919 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
13920echo "${ECHO_T}$PROG_LAST" >&6
13921else
13922 echo "$as_me:$LINENO: result: no" >&5
13923echo "${ECHO_T}no" >&6
13924fi
13925
13926 if test -z "$PROG_LAST" ; then
13927 PROG_LAST="undef"
13928 fi
13929
13930
13931
13932 # Extract the first word of "lastlog", so it can be a program name with args.
13933set dummy lastlog; ac_word=$2
13934echo "$as_me:$LINENO: checking for $ac_word" >&5
13935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13936if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938else
13939 case $PROG_LASTLOG in
13940 [\\/]* | ?:[\\/]*)
13941 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
13942 ;;
13943 *)
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945for as_dir in $PATH
13946do
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
13952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13954 fi
13955done
13956done
13957
13958 ;;
13959esac
13960fi
13961PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
13962
13963if test -n "$PROG_LASTLOG"; then
13964 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
13965echo "${ECHO_T}$PROG_LASTLOG" >&6
13966else
13967 echo "$as_me:$LINENO: result: no" >&5
13968echo "${ECHO_T}no" >&6
13969fi
13970
13971 if test -z "$PROG_LASTLOG" ; then
13972 PROG_LASTLOG="undef"
13973 fi
13974
13975
13976
13977 # Extract the first word of "df", so it can be a program name with args.
13978set dummy df; ac_word=$2
13979echo "$as_me:$LINENO: checking for $ac_word" >&5
13980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13981if test "${ac_cv_path_PROG_DF+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984 case $PROG_DF in
13985 [\\/]* | ?:[\\/]*)
13986 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
13987 ;;
13988 *)
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990for as_dir in $PATH
13991do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
13995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13996 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
13997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
13999 fi
14000done
14001done
14002
14003 ;;
14004esac
14005fi
14006PROG_DF=$ac_cv_path_PROG_DF
14007
14008if test -n "$PROG_DF"; then
14009 echo "$as_me:$LINENO: result: $PROG_DF" >&5
14010echo "${ECHO_T}$PROG_DF" >&6
14011else
14012 echo "$as_me:$LINENO: result: no" >&5
14013echo "${ECHO_T}no" >&6
14014fi
14015
14016 if test -z "$PROG_DF" ; then
14017 PROG_DF="undef"
14018 fi
14019
14020
14021
14022 # Extract the first word of "vmstat", so it can be a program name with args.
14023set dummy vmstat; ac_word=$2
14024echo "$as_me:$LINENO: checking for $ac_word" >&5
14025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14026if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028else
14029 case $PROG_VMSTAT in
14030 [\\/]* | ?:[\\/]*)
14031 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
14032 ;;
14033 *)
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035for as_dir in $PATH
14036do
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
14042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045done
14046done
14047
14048 ;;
14049esac
14050fi
14051PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
14052
14053if test -n "$PROG_VMSTAT"; then
14054 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
14055echo "${ECHO_T}$PROG_VMSTAT" >&6
14056else
14057 echo "$as_me:$LINENO: result: no" >&5
14058echo "${ECHO_T}no" >&6
14059fi
14060
14061 if test -z "$PROG_VMSTAT" ; then
14062 PROG_VMSTAT="undef"
14063 fi
14064
14065
14066
14067 # Extract the first word of "uptime", so it can be a program name with args.
14068set dummy uptime; ac_word=$2
14069echo "$as_me:$LINENO: checking for $ac_word" >&5
14070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14071if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 case $PROG_UPTIME in
14075 [\\/]* | ?:[\\/]*)
14076 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
14077 ;;
14078 *)
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14086 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
14087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 break 2
14089 fi
14090done
14091done
14092
14093 ;;
14094esac
14095fi
14096PROG_UPTIME=$ac_cv_path_PROG_UPTIME
14097
14098if test -n "$PROG_UPTIME"; then
14099 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
14100echo "${ECHO_T}$PROG_UPTIME" >&6
14101else
14102 echo "$as_me:$LINENO: result: no" >&5
14103echo "${ECHO_T}no" >&6
14104fi
14105
14106 if test -z "$PROG_UPTIME" ; then
14107 PROG_UPTIME="undef"
14108 fi
14109
14110
14111
14112 # Extract the first word of "ipcs", so it can be a program name with args.
14113set dummy ipcs; ac_word=$2
14114echo "$as_me:$LINENO: checking for $ac_word" >&5
14115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14116if test "${ac_cv_path_PROG_IPCS+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 case $PROG_IPCS in
14120 [\\/]* | ?:[\\/]*)
14121 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
14122 ;;
14123 *)
14124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125for as_dir in $PATH
14126do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
14129 for ac_exec_ext in '' $ac_executable_extensions; do
14130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14131 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
14132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14133 break 2
14134 fi
14135done
14136done
14137
14138 ;;
14139esac
14140fi
14141PROG_IPCS=$ac_cv_path_PROG_IPCS
14142
14143if test -n "$PROG_IPCS"; then
14144 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
14145echo "${ECHO_T}$PROG_IPCS" >&6
14146else
14147 echo "$as_me:$LINENO: result: no" >&5
14148echo "${ECHO_T}no" >&6
14149fi
14150
14151 if test -z "$PROG_IPCS" ; then
14152 PROG_IPCS="undef"
14153 fi
14154
14155
14156
14157 # Extract the first word of "tail", so it can be a program name with args.
14158set dummy tail; ac_word=$2
14159echo "$as_me:$LINENO: checking for $ac_word" >&5
14160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14161if test "${ac_cv_path_PROG_TAIL+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163else
14164 case $PROG_TAIL in
14165 [\\/]* | ?:[\\/]*)
14166 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
14167 ;;
14168 *)
14169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14170for as_dir in $PATH
14171do
14172 IFS=$as_save_IFS
14173 test -z "$as_dir" && as_dir=.
14174 for ac_exec_ext in '' $ac_executable_extensions; do
14175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14176 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
14177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14178 break 2
14179 fi
14180done
14181done
14182
14183 ;;
14184esac
14185fi
14186PROG_TAIL=$ac_cv_path_PROG_TAIL
14187
14188if test -n "$PROG_TAIL"; then
14189 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
14190echo "${ECHO_T}$PROG_TAIL" >&6
14191else
14192 echo "$as_me:$LINENO: result: no" >&5
14193echo "${ECHO_T}no" >&6
14194fi
14195
14196 if test -z "$PROG_TAIL" ; then
14197 PROG_TAIL="undef"
14198 fi
14199
14200
14201# restore PATH
14202PATH=$OPATH
14203
14204# Where does ssh-rand-helper get its randomness from?
14205INSTALL_SSH_PRNG_CMDS=""
14206if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
14207 if test ! -z "$PRNGD_PORT" ; then
14208 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
14209 elif test ! -z "$PRNGD_SOCKET" ; then
14210 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
14211 else
14212 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
14213 RAND_HELPER_CMDHASH=yes
14214 INSTALL_SSH_PRNG_CMDS="yes"
14215 fi
14216fi
14217
14218
14219
14220# Cheap hack to ensure NEWS-OS libraries are arranged right.
14221if test ! -z "$SONY" ; then
14222 LIBS="$LIBS -liberty";
14223fi
14224
14225# Checks for data types
14226echo "$as_me:$LINENO: checking for char" >&5
14227echo $ECHO_N "checking for char... $ECHO_C" >&6
14228if test "${ac_cv_type_char+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230else
14231 cat >conftest.$ac_ext <<_ACEOF
14232/* confdefs.h. */
14233_ACEOF
14234cat confdefs.h >>conftest.$ac_ext
14235cat >>conftest.$ac_ext <<_ACEOF
14236/* end confdefs.h. */
14237$ac_includes_default
14238int
14239main ()
14240{
14241if ((char *) 0)
14242 return 0;
14243if (sizeof (char))
14244 return 0;
14245 ;
14246 return 0;
14247}
14248_ACEOF
14249rm -f conftest.$ac_objext
14250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251 (eval $ac_compile) 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_type_char=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_cv_type_char=no
14277fi
14278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14279fi
14280echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14281echo "${ECHO_T}$ac_cv_type_char" >&6
14282
14283echo "$as_me:$LINENO: checking size of char" >&5
14284echo $ECHO_N "checking size of char... $ECHO_C" >&6
14285if test "${ac_cv_sizeof_char+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287else
14288 if test "$ac_cv_type_char" = yes; then
14289 # The cast to unsigned long works around a bug in the HP C Compiler
14290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14292 # This bug is HP SR number 8606223364.
14293 if test "$cross_compiling" = yes; then
14294 # Depending upon the size, compute the lo and hi bounds.
14295cat >conftest.$ac_ext <<_ACEOF
14296/* confdefs.h. */
14297_ACEOF
14298cat confdefs.h >>conftest.$ac_ext
14299cat >>conftest.$ac_ext <<_ACEOF
14300/* end confdefs.h. */
14301$ac_includes_default
14302int
14303main ()
14304{
14305static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14306test_array [0] = 0
14307
14308 ;
14309 return 0;
14310}
14311_ACEOF
14312rm -f conftest.$ac_objext
14313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_lo=0 ac_mid=0
14335 while :; do
14336 cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
14342$ac_includes_default
14343int
14344main ()
14345{
14346static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14347test_array [0] = 0
14348
14349 ;
14350 return 0;
14351}
14352_ACEOF
14353rm -f conftest.$ac_objext
14354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag"
14363 || test ! -s conftest.err'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest.$ac_objext'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 ac_hi=$ac_mid; break
14376else
14377 echo "$as_me: failed program was:" >&5
14378sed 's/^/| /' conftest.$ac_ext >&5
14379
14380ac_lo=`expr $ac_mid + 1`
14381 if test $ac_lo -le $ac_mid; then
14382 ac_lo= ac_hi=
14383 break
14384 fi
14385 ac_mid=`expr 2 '*' $ac_mid + 1`
14386fi
14387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14388 done
14389else
14390 echo "$as_me: failed program was:" >&5
14391sed 's/^/| /' conftest.$ac_ext >&5
14392
14393cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
14399$ac_includes_default
14400int
14401main ()
14402{
14403static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14404test_array [0] = 0
14405
14406 ;
14407 return 0;
14408}
14409_ACEOF
14410rm -f conftest.$ac_objext
14411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_hi=-1 ac_mid=-1
14433 while :; do
14434 cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h. */
14440$ac_includes_default
14441int
14442main ()
14443{
14444static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14445test_array [0] = 0
14446
14447 ;
14448 return 0;
14449}
14450_ACEOF
14451rm -f conftest.$ac_objext
14452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag"
14461 || test ! -s conftest.err'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_lo=$ac_mid; break
14474else
14475 echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478ac_hi=`expr '(' $ac_mid ')' - 1`
14479 if test $ac_mid -le $ac_hi; then
14480 ac_lo= ac_hi=
14481 break
14482 fi
14483 ac_mid=`expr 2 '*' $ac_mid`
14484fi
14485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14486 done
14487else
14488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491ac_lo= ac_hi=
14492fi
14493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14494fi
14495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14496# Binary search between lo and hi bounds.
14497while test "x$ac_lo" != "x$ac_hi"; do
14498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506int
14507main ()
14508{
14509static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14510test_array [0] = 0
14511
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516rm -f conftest.$ac_objext
14517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_hi=$ac_mid
14539else
14540 echo "$as_me: failed program was:" >&5
14541sed 's/^/| /' conftest.$ac_ext >&5
14542
14543ac_lo=`expr '(' $ac_mid ')' + 1`
14544fi
14545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14546done
14547case $ac_lo in
14548?*) ac_cv_sizeof_char=$ac_lo;;
14549'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14550See \`config.log' for more details." >&5
14551echo "$as_me: error: cannot compute sizeof (char), 77
14552See \`config.log' for more details." >&2;}
14553 { (exit 1); exit 1; }; } ;;
14554esac
14555else
14556 if test "$cross_compiling" = yes; then
14557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14558See \`config.log' for more details." >&5
14559echo "$as_me: error: cannot run test program while cross compiling
14560See \`config.log' for more details." >&2;}
14561 { (exit 1); exit 1; }; }
14562else
14563 cat >conftest.$ac_ext <<_ACEOF
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
14568/* end confdefs.h. */
14569$ac_includes_default
14570long longval () { return (long) (sizeof (char)); }
14571unsigned long ulongval () { return (long) (sizeof (char)); }
14572#include <stdio.h>
14573#include <stdlib.h>
14574int
14575main ()
14576{
14577
14578 FILE *f = fopen ("conftest.val", "w");
14579 if (! f)
14580 exit (1);
14581 if (((long) (sizeof (char))) < 0)
14582 {
14583 long i = longval ();
14584 if (i != ((long) (sizeof (char))))
14585 exit (1);
14586 fprintf (f, "%ld\n", i);
14587 }
14588 else
14589 {
14590 unsigned long i = ulongval ();
14591 if (i != ((long) (sizeof (char))))
14592 exit (1);
14593 fprintf (f, "%lu\n", i);
14594 }
14595 exit (ferror (f) || fclose (f) != 0);
14596
14597 ;
14598 return 0;
14599}
14600_ACEOF
14601rm -f conftest$ac_exeext
14602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603 (eval $ac_link) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_cv_sizeof_char=`cat conftest.val`
14613else
14614 echo "$as_me: program exited with status $ac_status" >&5
14615echo "$as_me: failed program was:" >&5
14616sed 's/^/| /' conftest.$ac_ext >&5
14617
14618( exit $ac_status )
14619{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14620See \`config.log' for more details." >&5
14621echo "$as_me: error: cannot compute sizeof (char), 77
14622See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; }
14624fi
14625rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14626fi
14627fi
14628rm -f conftest.val
14629else
14630 ac_cv_sizeof_char=0
14631fi
14632fi
14633echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14634echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14635cat >>confdefs.h <<_ACEOF
14636#define SIZEOF_CHAR $ac_cv_sizeof_char
14637_ACEOF
14638
14639
14640echo "$as_me:$LINENO: checking for short int" >&5
14641echo $ECHO_N "checking for short int... $ECHO_C" >&6
14642if test "${ac_cv_type_short_int+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14644else
14645 cat >conftest.$ac_ext <<_ACEOF
14646/* confdefs.h. */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
14651$ac_includes_default
14652int
14653main ()
14654{
14655if ((short int *) 0)
14656 return 0;
14657if (sizeof (short int))
14658 return 0;
14659 ;
14660 return 0;
14661}
14662_ACEOF
14663rm -f conftest.$ac_objext
14664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_type_short_int=yes
14686else
14687 echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
14690ac_cv_type_short_int=no
14691fi
14692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693fi
14694echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14695echo "${ECHO_T}$ac_cv_type_short_int" >&6
14696
14697echo "$as_me:$LINENO: checking size of short int" >&5
14698echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14699if test "${ac_cv_sizeof_short_int+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 if test "$ac_cv_type_short_int" = yes; then
14703 # The cast to unsigned long works around a bug in the HP C Compiler
14704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14706 # This bug is HP SR number 8606223364.
14707 if test "$cross_compiling" = yes; then
14708 # Depending upon the size, compute the lo and hi bounds.
14709cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h. */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
14715$ac_includes_default
14716int
14717main ()
14718{
14719static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14720test_array [0] = 0
14721
14722 ;
14723 return 0;
14724}
14725_ACEOF
14726rm -f conftest.$ac_objext
14727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -z "$ac_c_werror_flag"
14736 || test ! -s conftest.err'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_lo=0 ac_mid=0
14749 while :; do
14750 cat >conftest.$ac_ext <<_ACEOF
14751/* confdefs.h. */
14752_ACEOF
14753cat confdefs.h >>conftest.$ac_ext
14754cat >>conftest.$ac_ext <<_ACEOF
14755/* end confdefs.h. */
14756$ac_includes_default
14757int
14758main ()
14759{
14760static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14761test_array [0] = 0
14762
14763 ;
14764 return 0;
14765}
14766_ACEOF
14767rm -f conftest.$ac_objext
14768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14770 ac_status=$?
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -f conftest.er1
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -z "$ac_c_werror_flag"
14777 || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 ac_hi=$ac_mid; break
14790else
14791 echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794ac_lo=`expr $ac_mid + 1`
14795 if test $ac_lo -le $ac_mid; then
14796 ac_lo= ac_hi=
14797 break
14798 fi
14799 ac_mid=`expr 2 '*' $ac_mid + 1`
14800fi
14801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14802 done
14803else
14804 echo "$as_me: failed program was:" >&5
14805sed 's/^/| /' conftest.$ac_ext >&5
14806
14807cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
14813$ac_includes_default
14814int
14815main ()
14816{
14817static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14818test_array [0] = 0
14819
14820 ;
14821 return 0;
14822}
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag"
14834 || test ! -s conftest.err'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_hi=-1 ac_mid=-1
14847 while :; do
14848 cat >conftest.$ac_ext <<_ACEOF
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h. */
14854$ac_includes_default
14855int
14856main ()
14857{
14858static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14859test_array [0] = 0
14860
14861 ;
14862 return 0;
14863}
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_lo=$ac_mid; break
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_hi=`expr '(' $ac_mid ')' - 1`
14893 if test $ac_mid -le $ac_hi; then
14894 ac_lo= ac_hi=
14895 break
14896 fi
14897 ac_mid=`expr 2 '*' $ac_mid`
14898fi
14899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14900 done
14901else
14902 echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905ac_lo= ac_hi=
14906fi
14907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14908fi
14909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910# Binary search between lo and hi bounds.
14911while test "x$ac_lo" != "x$ac_hi"; do
14912 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14913 cat >conftest.$ac_ext <<_ACEOF
14914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
14919$ac_includes_default
14920int
14921main ()
14922{
14923static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14924test_array [0] = 0
14925
14926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_hi=$ac_mid
14953else
14954 echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957ac_lo=`expr '(' $ac_mid ')' + 1`
14958fi
14959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14960done
14961case $ac_lo in
14962?*) ac_cv_sizeof_short_int=$ac_lo;;
14963'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14964See \`config.log' for more details." >&5
14965echo "$as_me: error: cannot compute sizeof (short int), 77
14966See \`config.log' for more details." >&2;}
14967 { (exit 1); exit 1; }; } ;;
14968esac
14969else
14970 if test "$cross_compiling" = yes; then
14971 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14972See \`config.log' for more details." >&5
14973echo "$as_me: error: cannot run test program while cross compiling
14974See \`config.log' for more details." >&2;}
14975 { (exit 1); exit 1; }; }
14976else
14977 cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983$ac_includes_default
14984long longval () { return (long) (sizeof (short int)); }
14985unsigned long ulongval () { return (long) (sizeof (short int)); }
14986#include <stdio.h>
14987#include <stdlib.h>
14988int
14989main ()
14990{
14991
14992 FILE *f = fopen ("conftest.val", "w");
14993 if (! f)
14994 exit (1);
14995 if (((long) (sizeof (short int))) < 0)
14996 {
14997 long i = longval ();
14998 if (i != ((long) (sizeof (short int))))
14999 exit (1);
15000 fprintf (f, "%ld\n", i);
15001 }
15002 else
15003 {
15004 unsigned long i = ulongval ();
15005 if (i != ((long) (sizeof (short int))))
15006 exit (1);
15007 fprintf (f, "%lu\n", i);
15008 }
15009 exit (ferror (f) || fclose (f) != 0);
15010
15011 ;
15012 return 0;
15013}
15014_ACEOF
15015rm -f conftest$ac_exeext
15016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_sizeof_short_int=`cat conftest.val`
15027else
15028 echo "$as_me: program exited with status $ac_status" >&5
15029echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
15032( exit $ac_status )
15033{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15034See \`config.log' for more details." >&5
15035echo "$as_me: error: cannot compute sizeof (short int), 77
15036See \`config.log' for more details." >&2;}
15037 { (exit 1); exit 1; }; }
15038fi
15039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15040fi
15041fi
15042rm -f conftest.val
15043else
15044 ac_cv_sizeof_short_int=0
15045fi
15046fi
15047echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15048echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15049cat >>confdefs.h <<_ACEOF
15050#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15051_ACEOF
15052
15053
15054echo "$as_me:$LINENO: checking for int" >&5
15055echo $ECHO_N "checking for int... $ECHO_C" >&6
15056if test "${ac_cv_type_int+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058else
15059 cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
15065$ac_includes_default
15066int
15067main ()
15068{
15069if ((int *) 0)
15070 return 0;
15071if (sizeof (int))
15072 return 0;
15073 ;
15074 return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext
15078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -z "$ac_c_werror_flag"
15087 || test ! -s conftest.err'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 ac_cv_type_int=yes
15100else
15101 echo "$as_me: failed program was:" >&5
15102sed 's/^/| /' conftest.$ac_ext >&5
15103
15104ac_cv_type_int=no
15105fi
15106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15107fi
15108echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15109echo "${ECHO_T}$ac_cv_type_int" >&6
15110
15111echo "$as_me:$LINENO: checking size of int" >&5
15112echo $ECHO_N "checking size of int... $ECHO_C" >&6
15113if test "${ac_cv_sizeof_int+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
15116 if test "$ac_cv_type_int" = yes; then
15117 # The cast to unsigned long works around a bug in the HP C Compiler
15118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15120 # This bug is HP SR number 8606223364.
15121 if test "$cross_compiling" = yes; then
15122 # Depending upon the size, compute the lo and hi bounds.
15123cat >conftest.$ac_ext <<_ACEOF
15124/* confdefs.h. */
15125_ACEOF
15126cat confdefs.h >>conftest.$ac_ext
15127cat >>conftest.$ac_ext <<_ACEOF
15128/* end confdefs.h. */
15129$ac_includes_default
15130int
15131main ()
15132{
15133static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15134test_array [0] = 0
15135
15136 ;
15137 return 0;
15138}
15139_ACEOF
15140rm -f conftest.$ac_objext
15141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142 (eval $ac_compile) 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -z "$ac_c_werror_flag"
15150 || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_lo=0 ac_mid=0
15163 while :; do
15164 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170$ac_includes_default
15171int
15172main ()
15173{
15174static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15175test_array [0] = 0
15176
15177 ;
15178 return 0;
15179}
15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_hi=$ac_mid; break
15204else
15205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208ac_lo=`expr $ac_mid + 1`
15209 if test $ac_lo -le $ac_mid; then
15210 ac_lo= ac_hi=
15211 break
15212 fi
15213 ac_mid=`expr 2 '*' $ac_mid + 1`
15214fi
15215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15216 done
15217else
15218 echo "$as_me: failed program was:" >&5
15219sed 's/^/| /' conftest.$ac_ext >&5
15220
15221cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
15228int
15229main ()
15230{
15231static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15232test_array [0] = 0
15233
15234 ;
15235 return 0;
15236}
15237_ACEOF
15238rm -f conftest.$ac_objext
15239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240 (eval $ac_compile) 2>conftest.er1
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -z "$ac_c_werror_flag"
15248 || test ! -s conftest.err'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_hi=-1 ac_mid=-1
15261 while :; do
15262 cat >conftest.$ac_ext <<_ACEOF
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268$ac_includes_default
15269int
15270main ()
15271{
15272static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15273test_array [0] = 0
15274
15275 ;
15276 return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext
15280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_lo=$ac_mid; break
15302else
15303 echo "$as_me: failed program was:" >&5
15304sed 's/^/| /' conftest.$ac_ext >&5
15305
15306ac_hi=`expr '(' $ac_mid ')' - 1`
15307 if test $ac_mid -le $ac_hi; then
15308 ac_lo= ac_hi=
15309 break
15310 fi
15311 ac_mid=`expr 2 '*' $ac_mid`
15312fi
15313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15314 done
15315else
15316 echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
15319ac_lo= ac_hi=
15320fi
15321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15322fi
15323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15324# Binary search between lo and hi bounds.
15325while test "x$ac_lo" != "x$ac_hi"; do
15326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15327 cat >conftest.$ac_ext <<_ACEOF
15328/* confdefs.h. */
15329_ACEOF
15330cat confdefs.h >>conftest.$ac_ext
15331cat >>conftest.$ac_ext <<_ACEOF
15332/* end confdefs.h. */
15333$ac_includes_default
15334int
15335main ()
15336{
15337static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15338test_array [0] = 0
15339
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag"
15354 || test ! -s conftest.err'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest.$ac_objext'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_hi=$ac_mid
15367else
15368 echo "$as_me: failed program was:" >&5
15369sed 's/^/| /' conftest.$ac_ext >&5
15370
15371ac_lo=`expr '(' $ac_mid ')' + 1`
15372fi
15373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374done
15375case $ac_lo in
15376?*) ac_cv_sizeof_int=$ac_lo;;
15377'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15378See \`config.log' for more details." >&5
15379echo "$as_me: error: cannot compute sizeof (int), 77
15380See \`config.log' for more details." >&2;}
15381 { (exit 1); exit 1; }; } ;;
15382esac
15383else
15384 if test "$cross_compiling" = yes; then
15385 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15386See \`config.log' for more details." >&5
15387echo "$as_me: error: cannot run test program while cross compiling
15388See \`config.log' for more details." >&2;}
15389 { (exit 1); exit 1; }; }
15390else
15391 cat >conftest.$ac_ext <<_ACEOF
15392/* confdefs.h. */
15393_ACEOF
15394cat confdefs.h >>conftest.$ac_ext
15395cat >>conftest.$ac_ext <<_ACEOF
15396/* end confdefs.h. */
15397$ac_includes_default
15398long longval () { return (long) (sizeof (int)); }
15399unsigned long ulongval () { return (long) (sizeof (int)); }
15400#include <stdio.h>
15401#include <stdlib.h>
15402int
15403main ()
15404{
15405
15406 FILE *f = fopen ("conftest.val", "w");
15407 if (! f)
15408 exit (1);
15409 if (((long) (sizeof (int))) < 0)
15410 {
15411 long i = longval ();
15412 if (i != ((long) (sizeof (int))))
15413 exit (1);
15414 fprintf (f, "%ld\n", i);
15415 }
15416 else
15417 {
15418 unsigned long i = ulongval ();
15419 if (i != ((long) (sizeof (int))))
15420 exit (1);
15421 fprintf (f, "%lu\n", i);
15422 }
15423 exit (ferror (f) || fclose (f) != 0);
15424
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest$ac_exeext
15430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_cv_sizeof_int=`cat conftest.val`
15441else
15442 echo "$as_me: program exited with status $ac_status" >&5
15443echo "$as_me: failed program was:" >&5
15444sed 's/^/| /' conftest.$ac_ext >&5
15445
15446( exit $ac_status )
15447{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15448See \`config.log' for more details." >&5
15449echo "$as_me: error: cannot compute sizeof (int), 77
15450See \`config.log' for more details." >&2;}
15451 { (exit 1); exit 1; }; }
15452fi
15453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15454fi
15455fi
15456rm -f conftest.val
15457else
15458 ac_cv_sizeof_int=0
15459fi
15460fi
15461echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15462echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15463cat >>confdefs.h <<_ACEOF
15464#define SIZEOF_INT $ac_cv_sizeof_int
15465_ACEOF
15466
15467
15468echo "$as_me:$LINENO: checking for long int" >&5
15469echo $ECHO_N "checking for long int... $ECHO_C" >&6
15470if test "${ac_cv_type_long_int+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472else
15473 cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
15479$ac_includes_default
15480int
15481main ()
15482{
15483if ((long int *) 0)
15484 return 0;
15485if (sizeof (long int))
15486 return 0;
15487 ;
15488 return 0;
15489}
15490_ACEOF
15491rm -f conftest.$ac_objext
15492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest.$ac_objext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_type_long_int=yes
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518ac_cv_type_long_int=no
15519fi
15520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15521fi
15522echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15523echo "${ECHO_T}$ac_cv_type_long_int" >&6
15524
15525echo "$as_me:$LINENO: checking size of long int" >&5
15526echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15527if test "${ac_cv_sizeof_long_int+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529else
15530 if test "$ac_cv_type_long_int" = yes; then
15531 # The cast to unsigned long works around a bug in the HP C Compiler
15532 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15533 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15534 # This bug is HP SR number 8606223364.
15535 if test "$cross_compiling" = yes; then
15536 # Depending upon the size, compute the lo and hi bounds.
15537cat >conftest.$ac_ext <<_ACEOF
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
15542/* end confdefs.h. */
15543$ac_includes_default
15544int
15545main ()
15546{
15547static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15548test_array [0] = 0
15549
15550 ;
15551 return 0;
15552}
15553_ACEOF
15554rm -f conftest.$ac_objext
15555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556 (eval $ac_compile) 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try='test -z "$ac_c_werror_flag"
15564 || test ! -s conftest.err'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest.$ac_objext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_lo=0 ac_mid=0
15577 while :; do
15578 cat >conftest.$ac_ext <<_ACEOF
15579/* confdefs.h. */
15580_ACEOF
15581cat confdefs.h >>conftest.$ac_ext
15582cat >>conftest.$ac_ext <<_ACEOF
15583/* end confdefs.h. */
15584$ac_includes_default
15585int
15586main ()
15587{
15588static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15589test_array [0] = 0
15590
15591 ;
15592 return 0;
15593}
15594_ACEOF
15595rm -f conftest.$ac_objext
15596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15597 (eval $ac_compile) 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -z "$ac_c_werror_flag"
15605 || test ! -s conftest.err'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; } &&
15611 { ac_try='test -s conftest.$ac_objext'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_hi=$ac_mid; break
15618else
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622ac_lo=`expr $ac_mid + 1`
15623 if test $ac_lo -le $ac_mid; then
15624 ac_lo= ac_hi=
15625 break
15626 fi
15627 ac_mid=`expr 2 '*' $ac_mid + 1`
15628fi
15629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15630 done
15631else
15632 echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641$ac_includes_default
15642int
15643main ()
15644{
15645static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15646test_array [0] = 0
15647
15648 ;
15649 return 0;
15650}
15651_ACEOF
15652rm -f conftest.$ac_objext
15653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15654 (eval $ac_compile) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_hi=-1 ac_mid=-1
15675 while :; do
15676 cat >conftest.$ac_ext <<_ACEOF
15677/* confdefs.h. */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h. */
15682$ac_includes_default
15683int
15684main ()
15685{
15686static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15687test_array [0] = 0
15688
15689 ;
15690 return 0;
15691}
15692_ACEOF
15693rm -f conftest.$ac_objext
15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695 (eval $ac_compile) 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag"
15703 || test ! -s conftest.err'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest.$ac_objext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_lo=$ac_mid; break
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_hi=`expr '(' $ac_mid ')' - 1`
15721 if test $ac_mid -le $ac_hi; then
15722 ac_lo= ac_hi=
15723 break
15724 fi
15725 ac_mid=`expr 2 '*' $ac_mid`
15726fi
15727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15728 done
15729else
15730 echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733ac_lo= ac_hi=
15734fi
15735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15736fi
15737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15738# Binary search between lo and hi bounds.
15739while test "x$ac_lo" != "x$ac_hi"; do
15740 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15741 cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747$ac_includes_default
15748int
15749main ()
15750{
15751static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15752test_array [0] = 0
15753
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758rm -f conftest.$ac_objext
15759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760 (eval $ac_compile) 2>conftest.er1
15761 ac_status=$?
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -z "$ac_c_werror_flag"
15768 || test ! -s conftest.err'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_hi=$ac_mid
15781else
15782 echo "$as_me: failed program was:" >&5
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
15785ac_lo=`expr '(' $ac_mid ')' + 1`
15786fi
15787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788done
15789case $ac_lo in
15790?*) ac_cv_sizeof_long_int=$ac_lo;;
15791'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15792See \`config.log' for more details." >&5
15793echo "$as_me: error: cannot compute sizeof (long int), 77
15794See \`config.log' for more details." >&2;}
15795 { (exit 1); exit 1; }; } ;;
15796esac
15797else
15798 if test "$cross_compiling" = yes; then
15799 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15800See \`config.log' for more details." >&5
15801echo "$as_me: error: cannot run test program while cross compiling
15802See \`config.log' for more details." >&2;}
15803 { (exit 1); exit 1; }; }
15804else
15805 cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811$ac_includes_default
15812long longval () { return (long) (sizeof (long int)); }
15813unsigned long ulongval () { return (long) (sizeof (long int)); }
15814#include <stdio.h>
15815#include <stdlib.h>
15816int
15817main ()
15818{
15819
15820 FILE *f = fopen ("conftest.val", "w");
15821 if (! f)
15822 exit (1);
15823 if (((long) (sizeof (long int))) < 0)
15824 {
15825 long i = longval ();
15826 if (i != ((long) (sizeof (long int))))
15827 exit (1);
15828 fprintf (f, "%ld\n", i);
15829 }
15830 else
15831 {
15832 unsigned long i = ulongval ();
15833 if (i != ((long) (sizeof (long int))))
15834 exit (1);
15835 fprintf (f, "%lu\n", i);
15836 }
15837 exit (ferror (f) || fclose (f) != 0);
15838
15839 ;
15840 return 0;
15841}
15842_ACEOF
15843rm -f conftest$ac_exeext
15844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15845 (eval $ac_link) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 ac_cv_sizeof_long_int=`cat conftest.val`
15855else
15856 echo "$as_me: program exited with status $ac_status" >&5
15857echo "$as_me: failed program was:" >&5
15858sed 's/^/| /' conftest.$ac_ext >&5
15859
15860( exit $ac_status )
15861{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15862See \`config.log' for more details." >&5
15863echo "$as_me: error: cannot compute sizeof (long int), 77
15864See \`config.log' for more details." >&2;}
15865 { (exit 1); exit 1; }; }
15866fi
15867rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15868fi
15869fi
15870rm -f conftest.val
15871else
15872 ac_cv_sizeof_long_int=0
15873fi
15874fi
15875echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15876echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15877cat >>confdefs.h <<_ACEOF
15878#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15879_ACEOF
15880
15881
15882echo "$as_me:$LINENO: checking for long long int" >&5
15883echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15884if test "${ac_cv_type_long_long_int+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886else
15887 cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
15893$ac_includes_default
15894int
15895main ()
15896{
15897if ((long long int *) 0)
15898 return 0;
15899if (sizeof (long long int))
15900 return 0;
15901 ;
15902 return 0;
15903}
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_cv_type_long_long_int=yes
15928else
15929 echo "$as_me: failed program was:" >&5
15930sed 's/^/| /' conftest.$ac_ext >&5
15931
15932ac_cv_type_long_long_int=no
15933fi
15934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15935fi
15936echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15937echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15938
15939echo "$as_me:$LINENO: checking size of long long int" >&5
15940echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15941if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943else
15944 if test "$ac_cv_type_long_long_int" = yes; then
15945 # The cast to unsigned long works around a bug in the HP C Compiler
15946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15948 # This bug is HP SR number 8606223364.
15949 if test "$cross_compiling" = yes; then
15950 # Depending upon the size, compute the lo and hi bounds.
15951cat >conftest.$ac_ext <<_ACEOF
15952/* confdefs.h. */
15953_ACEOF
15954cat confdefs.h >>conftest.$ac_ext
15955cat >>conftest.$ac_ext <<_ACEOF
15956/* end confdefs.h. */
15957$ac_includes_default
15958int
15959main ()
15960{
15961static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15962test_array [0] = 0
15963
15964 ;
15965 return 0;
15966}
15967_ACEOF
15968rm -f conftest.$ac_objext
15969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15970 (eval $ac_compile) 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -z "$ac_c_werror_flag"
15978 || test ! -s conftest.err'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_lo=0 ac_mid=0
15991 while :; do
15992 cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998$ac_includes_default
15999int
16000main ()
16001{
16002static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16003test_array [0] = 0
16004
16005 ;
16006 return 0;
16007}
16008_ACEOF
16009rm -f conftest.$ac_objext
16010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag"
16019 || test ! -s conftest.err'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_hi=$ac_mid; break
16032else
16033 echo "$as_me: failed program was:" >&5
16034sed 's/^/| /' conftest.$ac_ext >&5
16035
16036ac_lo=`expr $ac_mid + 1`
16037 if test $ac_lo -le $ac_mid; then
16038 ac_lo= ac_hi=
16039 break
16040 fi
16041 ac_mid=`expr 2 '*' $ac_mid + 1`
16042fi
16043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16044 done
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
16049cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055$ac_includes_default
16056int
16057main ()
16058{
16059static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16060test_array [0] = 0
16061
16062 ;
16063 return 0;
16064}
16065_ACEOF
16066rm -f conftest.$ac_objext
16067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16068 (eval $ac_compile) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_hi=-1 ac_mid=-1
16089 while :; do
16090 cat >conftest.$ac_ext <<_ACEOF
16091/* confdefs.h. */
16092_ACEOF
16093cat confdefs.h >>conftest.$ac_ext
16094cat >>conftest.$ac_ext <<_ACEOF
16095/* end confdefs.h. */
16096$ac_includes_default
16097int
16098main ()
16099{
16100static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16101test_array [0] = 0
16102
16103 ;
16104 return 0;
16105}
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_lo=$ac_mid; break
16130else
16131 echo "$as_me: failed program was:" >&5
16132sed 's/^/| /' conftest.$ac_ext >&5
16133
16134ac_hi=`expr '(' $ac_mid ')' - 1`
16135 if test $ac_mid -le $ac_hi; then
16136 ac_lo= ac_hi=
16137 break
16138 fi
16139 ac_mid=`expr 2 '*' $ac_mid`
16140fi
16141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16142 done
16143else
16144 echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147ac_lo= ac_hi=
16148fi
16149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16150fi
16151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16152# Binary search between lo and hi bounds.
16153while test "x$ac_lo" != "x$ac_hi"; do
16154 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16155 cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161$ac_includes_default
16162int
16163main ()
16164{
16165static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16166test_array [0] = 0
16167
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16174 (eval $ac_compile) 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_hi=$ac_mid
16195else
16196 echo "$as_me: failed program was:" >&5
16197sed 's/^/| /' conftest.$ac_ext >&5
16198
16199ac_lo=`expr '(' $ac_mid ')' + 1`
16200fi
16201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16202done
16203case $ac_lo in
16204?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16205'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16206See \`config.log' for more details." >&5
16207echo "$as_me: error: cannot compute sizeof (long long int), 77
16208See \`config.log' for more details." >&2;}
16209 { (exit 1); exit 1; }; } ;;
16210esac
16211else
16212 if test "$cross_compiling" = yes; then
16213 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16214See \`config.log' for more details." >&5
16215echo "$as_me: error: cannot run test program while cross compiling
16216See \`config.log' for more details." >&2;}
16217 { (exit 1); exit 1; }; }
16218else
16219 cat >conftest.$ac_ext <<_ACEOF
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225$ac_includes_default
16226long longval () { return (long) (sizeof (long long int)); }
16227unsigned long ulongval () { return (long) (sizeof (long long int)); }
16228#include <stdio.h>
16229#include <stdlib.h>
16230int
16231main ()
16232{
16233
16234 FILE *f = fopen ("conftest.val", "w");
16235 if (! f)
16236 exit (1);
16237 if (((long) (sizeof (long long int))) < 0)
16238 {
16239 long i = longval ();
16240 if (i != ((long) (sizeof (long long int))))
16241 exit (1);
16242 fprintf (f, "%ld\n", i);
16243 }
16244 else
16245 {
16246 unsigned long i = ulongval ();
16247 if (i != ((long) (sizeof (long long int))))
16248 exit (1);
16249 fprintf (f, "%lu\n", i);
16250 }
16251 exit (ferror (f) || fclose (f) != 0);
16252
16253 ;
16254 return 0;
16255}
16256_ACEOF
16257rm -f conftest$ac_exeext
16258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16259 (eval $ac_link) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ac_cv_sizeof_long_long_int=`cat conftest.val`
16269else
16270 echo "$as_me: program exited with status $ac_status" >&5
16271echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274( exit $ac_status )
16275{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16276See \`config.log' for more details." >&5
16277echo "$as_me: error: cannot compute sizeof (long long int), 77
16278See \`config.log' for more details." >&2;}
16279 { (exit 1); exit 1; }; }
16280fi
16281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16282fi
16283fi
16284rm -f conftest.val
16285else
16286 ac_cv_sizeof_long_long_int=0
16287fi
16288fi
16289echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16290echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16291cat >>confdefs.h <<_ACEOF
16292#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16293_ACEOF
16294
16295
16296
16297# Sanity check long long for some platforms (AIX)
16298if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
16299 ac_cv_sizeof_long_long_int=0
16300fi
16301
16302# More checks for data types
16303echo "$as_me:$LINENO: checking for u_int type" >&5
16304echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16305if test "${ac_cv_have_u_int+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307else
16308
16309 cat >conftest.$ac_ext <<_ACEOF
16310/* confdefs.h. */
16311_ACEOF
16312cat confdefs.h >>conftest.$ac_ext
16313cat >>conftest.$ac_ext <<_ACEOF
16314/* end confdefs.h. */
16315 #include <sys/types.h>
16316int
16317main ()
16318{
16319 u_int a; a = 1;
16320 ;
16321 return 0;
16322}
16323_ACEOF
16324rm -f conftest.$ac_objext
16325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_cv_have_u_int="yes"
16347else
16348 echo "$as_me: failed program was:" >&5
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
16351 ac_cv_have_u_int="no"
16352
16353fi
16354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355
16356fi
16357echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16358echo "${ECHO_T}$ac_cv_have_u_int" >&6
16359if test "x$ac_cv_have_u_int" = "xyes" ; then
16360 cat >>confdefs.h <<\_ACEOF
16361#define HAVE_U_INT 1
16362_ACEOF
16363
16364 have_u_int=1
16365fi
16366
16367echo "$as_me:$LINENO: checking for intXX_t types" >&5
16368echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16369if test "${ac_cv_have_intxx_t+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16371else
16372
16373 cat >conftest.$ac_ext <<_ACEOF
16374/* confdefs.h. */
16375_ACEOF
16376cat confdefs.h >>conftest.$ac_ext
16377cat >>conftest.$ac_ext <<_ACEOF
16378/* end confdefs.h. */
16379 #include <sys/types.h>
16380int
16381main ()
16382{
16383 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16384 ;
16385 return 0;
16386}
16387_ACEOF
16388rm -f conftest.$ac_objext
16389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16390 (eval $ac_compile) 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_have_intxx_t="yes"
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_cv_have_intxx_t="no"
16416
16417fi
16418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16419
16420fi
16421echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16422echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16423if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16424 cat >>confdefs.h <<\_ACEOF
16425#define HAVE_INTXX_T 1
16426_ACEOF
16427
16428 have_intxx_t=1
16429fi
16430
16431if (test -z "$have_intxx_t" && \
16432 test "x$ac_cv_header_stdint_h" = "xyes")
16433then
16434 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
16435echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
16436 cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442 #include <stdint.h>
16443int
16444main ()
16445{
16446 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16447 ;
16448 return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext
16452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16453 (eval $ac_compile) 2>conftest.er1
16454 ac_status=$?
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest.$ac_objext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473
16474 cat >>confdefs.h <<\_ACEOF
16475#define HAVE_INTXX_T 1
16476_ACEOF
16477
16478 echo "$as_me:$LINENO: result: yes" >&5
16479echo "${ECHO_T}yes" >&6
16480
16481else
16482 echo "$as_me: failed program was:" >&5
16483sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 echo "$as_me:$LINENO: result: no" >&5
16486echo "${ECHO_T}no" >&6
16487
16488fi
16489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16490fi
16491
16492echo "$as_me:$LINENO: checking for int64_t type" >&5
16493echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16494if test "${ac_cv_have_int64_t+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16496else
16497
16498 cat >conftest.$ac_ext <<_ACEOF
16499/* confdefs.h. */
16500_ACEOF
16501cat confdefs.h >>conftest.$ac_ext
16502cat >>conftest.$ac_ext <<_ACEOF
16503/* end confdefs.h. */
16504
16505#include <sys/types.h>
16506#ifdef HAVE_STDINT_H
16507# include <stdint.h>
16508#endif
16509#include <sys/socket.h>
16510#ifdef HAVE_SYS_BITYPES_H
16511# include <sys/bitypes.h>
16512#endif
16513
16514int
16515main ()
16516{
16517 int64_t a; a = 1;
16518 ;
16519 return 0;
16520}
16521_ACEOF
16522rm -f conftest.$ac_objext
16523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -z "$ac_c_werror_flag"
16532 || test ! -s conftest.err'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_have_int64_t="yes"
16545else
16546 echo "$as_me: failed program was:" >&5
16547sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ac_cv_have_int64_t="no"
16550
16551fi
16552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16553
16554fi
16555echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16556echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16557if test "x$ac_cv_have_int64_t" = "xyes" ; then
16558 cat >>confdefs.h <<\_ACEOF
16559#define HAVE_INT64_T 1
16560_ACEOF
16561
16562fi
16563
16564echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16565echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16566if test "${ac_cv_have_u_intxx_t+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568else
16569
16570 cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576 #include <sys/types.h>
16577int
16578main ()
16579{
16580 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16581 ;
16582 return 0;
16583}
16584_ACEOF
16585rm -f conftest.$ac_objext
16586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587 (eval $ac_compile) 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_have_u_intxx_t="yes"
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_cv_have_u_intxx_t="no"
16613
16614fi
16615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16616
16617fi
16618echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16619echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16620if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16621 cat >>confdefs.h <<\_ACEOF
16622#define HAVE_U_INTXX_T 1
16623_ACEOF
16624
16625 have_u_intxx_t=1
16626fi
16627
16628if test -z "$have_u_intxx_t" ; then
16629 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
16630echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
16631 cat >conftest.$ac_ext <<_ACEOF
16632/* confdefs.h. */
16633_ACEOF
16634cat confdefs.h >>conftest.$ac_ext
16635cat >>conftest.$ac_ext <<_ACEOF
16636/* end confdefs.h. */
16637 #include <sys/socket.h>
16638int
16639main ()
16640{
16641 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16642 ;
16643 return 0;
16644}
16645_ACEOF
16646rm -f conftest.$ac_objext
16647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16668
16669 cat >>confdefs.h <<\_ACEOF
16670#define HAVE_U_INTXX_T 1
16671_ACEOF
16672
16673 echo "$as_me:$LINENO: result: yes" >&5
16674echo "${ECHO_T}yes" >&6
16675
16676else
16677 echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680 echo "$as_me:$LINENO: result: no" >&5
16681echo "${ECHO_T}no" >&6
16682
16683fi
16684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16685fi
16686
16687echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16688echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16689if test "${ac_cv_have_u_int64_t+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692
16693 cat >conftest.$ac_ext <<_ACEOF
16694/* confdefs.h. */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h. */
16699 #include <sys/types.h>
16700int
16701main ()
16702{
16703 u_int64_t a; a = 1;
16704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext
16709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest.$ac_objext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 ac_cv_have_u_int64_t="yes"
16731else
16732 echo "$as_me: failed program was:" >&5
16733sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 ac_cv_have_u_int64_t="no"
16736
16737fi
16738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739
16740fi
16741echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16742echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16743if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16744 cat >>confdefs.h <<\_ACEOF
16745#define HAVE_U_INT64_T 1
16746_ACEOF
16747
16748 have_u_int64_t=1
16749fi
16750
16751if test -z "$have_u_int64_t" ; then
16752 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
16753echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
16754 cat >conftest.$ac_ext <<_ACEOF
16755/* confdefs.h. */
16756_ACEOF
16757cat confdefs.h >>conftest.$ac_ext
16758cat >>conftest.$ac_ext <<_ACEOF
16759/* end confdefs.h. */
16760 #include <sys/bitypes.h>
16761int
16762main ()
16763{
16764 u_int64_t a; a = 1
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest.$ac_objext
16770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16771 (eval $ac_compile) 2>conftest.er1
16772 ac_status=$?
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_c_werror_flag"
16779 || test ! -s conftest.err'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791
16792 cat >>confdefs.h <<\_ACEOF
16793#define HAVE_U_INT64_T 1
16794_ACEOF
16795
16796 echo "$as_me:$LINENO: result: yes" >&5
16797echo "${ECHO_T}yes" >&6
16798
16799else
16800 echo "$as_me: failed program was:" >&5
16801sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 echo "$as_me:$LINENO: result: no" >&5
16804echo "${ECHO_T}no" >&6
16805
16806fi
16807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16808fi
16809
16810if test -z "$have_u_intxx_t" ; then
16811 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16812echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16813if test "${ac_cv_have_uintxx_t+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816
16817 cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823
16824#include <sys/types.h>
16825
16826int
16827main ()
16828{
16829 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext
16835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16836 (eval $ac_compile) 2>conftest.er1
16837 ac_status=$?
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag"
16844 || test ! -s conftest.err'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_have_uintxx_t="yes"
16857else
16858 echo "$as_me: failed program was:" >&5
16859sed 's/^/| /' conftest.$ac_ext >&5
16860
16861 ac_cv_have_uintxx_t="no"
16862
16863fi
16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865
16866fi
16867echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16868echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16869 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16870 cat >>confdefs.h <<\_ACEOF
16871#define HAVE_UINTXX_T 1
16872_ACEOF
16873
16874 fi
16875fi
16876
16877if test -z "$have_uintxx_t" ; then
16878 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
16879echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
16880 cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886 #include <stdint.h>
16887int
16888main ()
16889{
16890 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext
16896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897 (eval $ac_compile) 2>conftest.er1
16898 ac_status=$?
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag"
16905 || test ! -s conftest.err'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest.$ac_objext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917
16918 cat >>confdefs.h <<\_ACEOF
16919#define HAVE_UINTXX_T 1
16920_ACEOF
16921
16922 echo "$as_me:$LINENO: result: yes" >&5
16923echo "${ECHO_T}yes" >&6
16924
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 echo "$as_me:$LINENO: result: no" >&5
16930echo "${ECHO_T}no" >&6
16931
16932fi
16933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16934fi
16935
16936if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16937 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16938then
16939 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16940echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16942/* confdefs.h. */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h. */
16947
16948#include <sys/bitypes.h>
16949
16950int
16951main ()
16952{
16953
16954 int8_t a; int16_t b; int32_t c;
16955 u_int8_t e; u_int16_t f; u_int32_t g;
16956 a = b = c = e = f = g = 1;
16957
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964 (eval $ac_compile) 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16984
16985 cat >>confdefs.h <<\_ACEOF
16986#define HAVE_U_INTXX_T 1
16987_ACEOF
16988
16989 cat >>confdefs.h <<\_ACEOF
16990#define HAVE_INTXX_T 1
16991_ACEOF
16992
16993 echo "$as_me:$LINENO: result: yes" >&5
16994echo "${ECHO_T}yes" >&6
16995
16996else
16997 echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000echo "$as_me:$LINENO: result: no" >&5
17001echo "${ECHO_T}no" >&6
17002
17003fi
17004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17005fi
17006
17007
17008echo "$as_me:$LINENO: checking for u_char" >&5
17009echo $ECHO_N "checking for u_char... $ECHO_C" >&6
17010if test "${ac_cv_have_u_char+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012else
17013
17014 cat >conftest.$ac_ext <<_ACEOF
17015/* confdefs.h. */
17016_ACEOF
17017cat confdefs.h >>conftest.$ac_ext
17018cat >>conftest.$ac_ext <<_ACEOF
17019/* end confdefs.h. */
17020
17021#include <sys/types.h>
17022
17023int
17024main ()
17025{
17026 u_char foo; foo = 125;
17027 ;
17028 return 0;
17029}
17030_ACEOF
17031rm -f conftest.$ac_objext
17032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033 (eval $ac_compile) 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
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); }; } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_have_u_char="yes"
17054else
17055 echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_have_u_char="no"
17059
17060fi
17061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17062
17063fi
17064echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
17065echo "${ECHO_T}$ac_cv_have_u_char" >&6
17066if test "x$ac_cv_have_u_char" = "xyes" ; then
17067 cat >>confdefs.h <<\_ACEOF
17068#define HAVE_U_CHAR 1
17069_ACEOF
17070
17071fi
17072
17073
17074 echo "$as_me:$LINENO: checking for socklen_t" >&5
17075echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17076if test "${ac_cv_type_socklen_t+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078else
17079 cat >conftest.$ac_ext <<_ACEOF
17080/* confdefs.h. */
17081_ACEOF
17082cat confdefs.h >>conftest.$ac_ext
17083cat >>conftest.$ac_ext <<_ACEOF
17084/* end confdefs.h. */
17085#include <sys/types.h>
17086#include <sys/socket.h>
17087
17088int
17089main ()
17090{
17091if ((socklen_t *) 0)
17092 return 0;
17093if (sizeof (socklen_t))
17094 return 0;
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext
17100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17101 (eval $ac_compile) 2>conftest.er1
17102 ac_status=$?
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -z "$ac_c_werror_flag"
17109 || test ! -s conftest.err'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest.$ac_objext'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_cv_type_socklen_t=yes
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126ac_cv_type_socklen_t=no
17127fi
17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129fi
17130echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17131echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17132if test $ac_cv_type_socklen_t = yes; then
17133 :
17134else
17135
17136 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
17137echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
17138 if test "${curl_cv_socklen_t_equiv+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141
17142 # Systems have either "struct sockaddr *" or
17143 # "void *" as the second argument to getpeername
17144 curl_cv_socklen_t_equiv=
17145 for arg2 in "struct sockaddr" void; do
17146 for t in int size_t unsigned long "unsigned long"; do
17147 cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153
17154 #include <sys/types.h>
17155 #include <sys/socket.h>
17156
17157 int getpeername (int, $arg2 *, $t *);
17158
17159int
17160main ()
17161{
17162
17163 $t len;
17164 getpeername(0,0,&len);
17165
17166 ;
17167 return 0;
17168}
17169_ACEOF
17170rm -f conftest.$ac_objext
17171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest.$ac_objext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192
17193 curl_cv_socklen_t_equiv="$t"
17194 break
17195
17196else
17197 echo "$as_me: failed program was:" >&5
17198sed 's/^/| /' conftest.$ac_ext >&5
17199
17200fi
17201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17202 done
17203 done
17204
17205 if test "x$curl_cv_socklen_t_equiv" = x; then
17206 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
17207echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
17208 { (exit 1); exit 1; }; }
17209 fi
17210
17211fi
17212
17213 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
17214echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
17215
17216cat >>confdefs.h <<_ACEOF
17217#define socklen_t $curl_cv_socklen_t_equiv
17218_ACEOF
17219
17220fi
17221
17222
17223
17224echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17225echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17226if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228else
17229 cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235#include <signal.h>
17236
17237int
17238main ()
17239{
17240if ((sig_atomic_t *) 0)
17241 return 0;
17242if (sizeof (sig_atomic_t))
17243 return 0;
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext
17249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17250 (eval $ac_compile) 2>conftest.er1
17251 ac_status=$?
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -z "$ac_c_werror_flag"
17258 || test ! -s conftest.err'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_sig_atomic_t=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275ac_cv_type_sig_atomic_t=no
17276fi
17277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17278fi
17279echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17280echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17281if test $ac_cv_type_sig_atomic_t = yes; then
17282
17283cat >>confdefs.h <<_ACEOF
17284#define HAVE_SIG_ATOMIC_T 1
17285_ACEOF
17286
17287
17288fi
17289
17290
17291echo "$as_me:$LINENO: checking for size_t" >&5
17292echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17293if test "${ac_cv_have_size_t+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296
17297 cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h. */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h. */
17303
17304#include <sys/types.h>
17305
17306int
17307main ()
17308{
17309 size_t foo; foo = 1235;
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext
17315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_have_size_t="yes"
17337else
17338 echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_cv_have_size_t="no"
17342
17343fi
17344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17345
17346fi
17347echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
17348echo "${ECHO_T}$ac_cv_have_size_t" >&6
17349if test "x$ac_cv_have_size_t" = "xyes" ; then
17350 cat >>confdefs.h <<\_ACEOF
17351#define HAVE_SIZE_T 1
17352_ACEOF
17353
17354fi
17355
17356echo "$as_me:$LINENO: checking for ssize_t" >&5
17357echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17358if test "${ac_cv_have_ssize_t+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360else
17361
17362 cat >conftest.$ac_ext <<_ACEOF
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
17368
17369#include <sys/types.h>
17370
17371int
17372main ()
17373{
17374 ssize_t foo; foo = 1235;
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext
17380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17381 (eval $ac_compile) 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest.$ac_objext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 ac_cv_have_ssize_t="yes"
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 ac_cv_have_ssize_t="no"
17407
17408fi
17409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17410
17411fi
17412echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
17413echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
17414if test "x$ac_cv_have_ssize_t" = "xyes" ; then
17415 cat >>confdefs.h <<\_ACEOF
17416#define HAVE_SSIZE_T 1
17417_ACEOF
17418
17419fi
17420
17421echo "$as_me:$LINENO: checking for clock_t" >&5
17422echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
17423if test "${ac_cv_have_clock_t+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425else
17426
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433
17434#include <time.h>
17435
17436int
17437main ()
17438{
17439 clock_t foo; foo = 1235;
17440 ;
17441 return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext
17445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17446 (eval $ac_compile) 2>conftest.er1
17447 ac_status=$?
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest.$ac_objext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_have_clock_t="yes"
17467else
17468 echo "$as_me: failed program was:" >&5
17469sed 's/^/| /' conftest.$ac_ext >&5
17470
17471 ac_cv_have_clock_t="no"
17472
17473fi
17474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475
17476fi
17477echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
17478echo "${ECHO_T}$ac_cv_have_clock_t" >&6
17479if test "x$ac_cv_have_clock_t" = "xyes" ; then
17480 cat >>confdefs.h <<\_ACEOF
17481#define HAVE_CLOCK_T 1
17482_ACEOF
17483
17484fi
17485
17486echo "$as_me:$LINENO: checking for sa_family_t" >&5
17487echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
17488if test "${ac_cv_have_sa_family_t+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490else
17491
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498
17499#include <sys/types.h>
17500#include <sys/socket.h>
17501
17502int
17503main ()
17504{
17505 sa_family_t foo; foo = 1235;
17506 ;
17507 return 0;
17508}
17509_ACEOF
17510rm -f conftest.$ac_objext
17511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17512 (eval $ac_compile) 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag"
17520 || test ! -s conftest.err'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_have_sa_family_t="yes"
17533else
17534 echo "$as_me: failed program was:" >&5
17535sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 cat >conftest.$ac_ext <<_ACEOF
17538/* confdefs.h. */
17539_ACEOF
17540cat confdefs.h >>conftest.$ac_ext
17541cat >>conftest.$ac_ext <<_ACEOF
17542/* end confdefs.h. */
17543
17544#include <sys/types.h>
17545#include <sys/socket.h>
17546#include <netinet/in.h>
17547
17548int
17549main ()
17550{
17551 sa_family_t foo; foo = 1235;
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556rm -f conftest.$ac_objext
17557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_cv_have_sa_family_t="yes"
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 ac_cv_have_sa_family_t="no"
17584
17585fi
17586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587
17588fi
17589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590
17591fi
17592echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
17593echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
17594if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
17595 cat >>confdefs.h <<\_ACEOF
17596#define HAVE_SA_FAMILY_T 1
17597_ACEOF
17598
17599fi
17600
17601echo "$as_me:$LINENO: checking for pid_t" >&5
17602echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17603if test "${ac_cv_have_pid_t+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605else
17606
17607 cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
17613
17614#include <sys/types.h>
17615
17616int
17617main ()
17618{
17619 pid_t foo; foo = 1235;
17620 ;
17621 return 0;
17622}
17623_ACEOF
17624rm -f conftest.$ac_objext
17625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_have_pid_t="yes"
17647else
17648 echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ac_cv_have_pid_t="no"
17652
17653fi
17654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17655
17656fi
17657echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
17658echo "${ECHO_T}$ac_cv_have_pid_t" >&6
17659if test "x$ac_cv_have_pid_t" = "xyes" ; then
17660 cat >>confdefs.h <<\_ACEOF
17661#define HAVE_PID_T 1
17662_ACEOF
17663
17664fi
17665
17666echo "$as_me:$LINENO: checking for mode_t" >&5
17667echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17668if test "${ac_cv_have_mode_t+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670else
17671
17672 cat >conftest.$ac_ext <<_ACEOF
17673/* confdefs.h. */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h. */
17678
17679#include <sys/types.h>
17680
17681int
17682main ()
17683{
17684 mode_t foo; foo = 1235;
17685 ;
17686 return 0;
17687}
17688_ACEOF
17689rm -f conftest.$ac_objext
17690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -z "$ac_c_werror_flag"
17699 || test ! -s conftest.err'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 ac_cv_have_mode_t="yes"
17712else
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716 ac_cv_have_mode_t="no"
17717
17718fi
17719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17720
17721fi
17722echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
17723echo "${ECHO_T}$ac_cv_have_mode_t" >&6
17724if test "x$ac_cv_have_mode_t" = "xyes" ; then
17725 cat >>confdefs.h <<\_ACEOF
17726#define HAVE_MODE_T 1
17727_ACEOF
17728
17729fi
17730
17731
17732echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
17733echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
17734if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736else
17737
17738 cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744
17745#include <sys/types.h>
17746#include <sys/socket.h>
17747
17748int
17749main ()
17750{
17751 struct sockaddr_storage s;
17752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext
17757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758 (eval $ac_compile) 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_cv_have_struct_sockaddr_storage="yes"
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_cv_have_struct_sockaddr_storage="no"
17784
17785fi
17786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17787
17788fi
17789echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
17790echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
17791if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
17792 cat >>confdefs.h <<\_ACEOF
17793#define HAVE_STRUCT_SOCKADDR_STORAGE 1
17794_ACEOF
17795
17796fi
17797
17798echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17799echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
17800if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802else
17803
17804 cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810
17811#include <sys/types.h>
17812#include <netinet/in.h>
17813
17814int
17815main ()
17816{
17817 struct sockaddr_in6 s; s.sin6_family = 0;
17818 ;
17819 return 0;
17820}
17821_ACEOF
17822rm -f conftest.$ac_objext
17823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17824 (eval $ac_compile) 2>conftest.er1
17825 ac_status=$?
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_have_struct_sockaddr_in6="yes"
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_cv_have_struct_sockaddr_in6="no"
17850
17851fi
17852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17853
17854fi
17855echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
17856echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
17857if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
17858 cat >>confdefs.h <<\_ACEOF
17859#define HAVE_STRUCT_SOCKADDR_IN6 1
17860_ACEOF
17861
17862fi
17863
17864echo "$as_me:$LINENO: checking for struct in6_addr" >&5
17865echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
17866if test "${ac_cv_have_struct_in6_addr+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868else
17869
17870 cat >conftest.$ac_ext <<_ACEOF
17871/* confdefs.h. */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h. */
17876
17877#include <sys/types.h>
17878#include <netinet/in.h>
17879
17880int
17881main ()
17882{
17883 struct in6_addr s; s.s6_addr[0] = 0;
17884 ;
17885 return 0;
17886}
17887_ACEOF
17888rm -f conftest.$ac_objext
17889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17890 (eval $ac_compile) 2>conftest.er1
17891 ac_status=$?
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -z "$ac_c_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try='test -s conftest.$ac_objext'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_have_struct_in6_addr="yes"
17911else
17912 echo "$as_me: failed program was:" >&5
17913sed 's/^/| /' conftest.$ac_ext >&5
17914
17915 ac_cv_have_struct_in6_addr="no"
17916
17917fi
17918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17919
17920fi
17921echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
17922echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
17923if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
17924 cat >>confdefs.h <<\_ACEOF
17925#define HAVE_STRUCT_IN6_ADDR 1
17926_ACEOF
17927
17928fi
17929
17930echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17931echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
17932if test "${ac_cv_have_struct_addrinfo+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17934else
17935
17936 cat >conftest.$ac_ext <<_ACEOF
17937/* confdefs.h. */
17938_ACEOF
17939cat confdefs.h >>conftest.$ac_ext
17940cat >>conftest.$ac_ext <<_ACEOF
17941/* end confdefs.h. */
17942
17943#include <sys/types.h>
17944#include <sys/socket.h>
17945#include <netdb.h>
17946
17947int
17948main ()
17949{
17950 struct addrinfo s; s.ai_flags = AI_PASSIVE;
17951 ;
17952 return 0;
17953}
17954_ACEOF
17955rm -f conftest.$ac_objext
17956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957 (eval $ac_compile) 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag"
17965 || test ! -s conftest.err'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest.$ac_objext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 ac_cv_have_struct_addrinfo="yes"
17978else
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 ac_cv_have_struct_addrinfo="no"
17983
17984fi
17985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17986
17987fi
17988echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
17989echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
17990if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
17991 cat >>confdefs.h <<\_ACEOF
17992#define HAVE_STRUCT_ADDRINFO 1
17993_ACEOF
17994
17995fi
17996
17997echo "$as_me:$LINENO: checking for struct timeval" >&5
17998echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
17999if test "${ac_cv_have_struct_timeval+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001else
18002
18003 cat >conftest.$ac_ext <<_ACEOF
18004/* confdefs.h. */
18005_ACEOF
18006cat confdefs.h >>conftest.$ac_ext
18007cat >>conftest.$ac_ext <<_ACEOF
18008/* end confdefs.h. */
18009 #include <sys/time.h>
18010int
18011main ()
18012{
18013 struct timeval tv; tv.tv_sec = 1;
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020 (eval $ac_compile) 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_c_werror_flag"
18028 || test ! -s conftest.err'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; } &&
18034 { ac_try='test -s conftest.$ac_objext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_have_struct_timeval="yes"
18041else
18042 echo "$as_me: failed program was:" >&5
18043sed 's/^/| /' conftest.$ac_ext >&5
18044
18045 ac_cv_have_struct_timeval="no"
18046
18047fi
18048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18049
18050fi
18051echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
18052echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
18053if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
18054 cat >>confdefs.h <<\_ACEOF
18055#define HAVE_STRUCT_TIMEVAL 1
18056_ACEOF
18057
18058 have_struct_timeval=1
18059fi
18060
18061echo "$as_me:$LINENO: checking for struct timespec" >&5
18062echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
18063if test "${ac_cv_type_struct_timespec+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18065else
18066 cat >conftest.$ac_ext <<_ACEOF
18067/* confdefs.h. */
18068_ACEOF
18069cat confdefs.h >>conftest.$ac_ext
18070cat >>conftest.$ac_ext <<_ACEOF
18071/* end confdefs.h. */
18072$ac_includes_default
18073int
18074main ()
18075{
18076if ((struct timespec *) 0)
18077 return 0;
18078if (sizeof (struct timespec))
18079 return 0;
18080 ;
18081 return 0;
18082}
18083_ACEOF
18084rm -f conftest.$ac_objext
18085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18086 (eval $ac_compile) 2>conftest.er1
18087 ac_status=$?
18088 grep -v '^ *+' conftest.er1 >conftest.err
18089 rm -f conftest.er1
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag"
18094 || test ! -s conftest.err'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try='test -s conftest.$ac_objext'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_type_struct_timespec=yes
18107else
18108 echo "$as_me: failed program was:" >&5
18109sed 's/^/| /' conftest.$ac_ext >&5
18110
18111ac_cv_type_struct_timespec=no
18112fi
18113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18114fi
18115echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
18116echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
18117if test $ac_cv_type_struct_timespec = yes; then
18118
18119cat >>confdefs.h <<_ACEOF
18120#define HAVE_STRUCT_TIMESPEC 1
18121_ACEOF
18122
18123
18124fi
18125
18126
18127# We need int64_t or else certian parts of the compile will fail.
18128if test "x$ac_cv_have_int64_t" = "xno" -a \
18129 "x$ac_cv_sizeof_long_int" != "x8" -a \
18130 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
18131 echo "OpenSSH requires int64_t support. Contact your vendor or install"
18132 echo "an alternative compiler (I.E., GCC) before continuing."
18133 echo ""
18134 exit 1;
18135else
18136 if test "$cross_compiling" = yes; then
18137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18138See \`config.log' for more details." >&5
18139echo "$as_me: error: cannot run test program while cross compiling
18140See \`config.log' for more details." >&2;}
18141 { (exit 1); exit 1; }; }
18142else
18143 cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149
18150#include <stdio.h>
18151#include <string.h>
18152#ifdef HAVE_SNPRINTF
18153main()
18154{
18155 char buf[50];
18156 char expected_out[50];
18157 int mazsize = 50 ;
18158#if (SIZEOF_LONG_INT == 8)
18159 long int num = 0x7fffffffffffffff;
18160#else
18161 long long num = 0x7fffffffffffffffll;
18162#endif
18163 strcpy(expected_out, "9223372036854775807");
18164 snprintf(buf, mazsize, "%lld", num);
18165 if(strcmp(buf, expected_out) != 0)
18166 exit(1);
18167 exit(0);
18168}
18169#else
18170main() { exit(0); }
18171#endif
18172
18173_ACEOF
18174rm -f conftest$ac_exeext
18175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176 (eval $ac_link) 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 true
18186else
18187 echo "$as_me: program exited with status $ac_status" >&5
18188echo "$as_me: failed program was:" >&5
18189sed 's/^/| /' conftest.$ac_ext >&5
18190
18191( exit $ac_status )
18192 cat >>confdefs.h <<\_ACEOF
18193#define BROKEN_SNPRINTF 1
18194_ACEOF
18195
18196
18197fi
18198rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18199fi
18200fi
18201
18202
18203# look for field 'ut_host' in header 'utmp.h'
18204 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18205 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
18206 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
18207echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
18208 if eval "test \"\${$ossh_varname+set}\" = set"; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18210else
18211
18212 cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h. */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h. */
18218#include <utmp.h>
18219
18220_ACEOF
18221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18222 $EGREP "ut_host" >/dev/null 2>&1; then
18223 eval "$ossh_varname=yes"
18224else
18225 eval "$ossh_varname=no"
18226fi
18227rm -f conftest*
18228
18229fi
18230
18231 ossh_result=`eval 'echo $'"$ossh_varname"`
18232 if test -n "`echo $ossh_varname`"; then
18233 echo "$as_me:$LINENO: result: $ossh_result" >&5
18234echo "${ECHO_T}$ossh_result" >&6
18235 if test "x$ossh_result" = "xyes"; then
18236 cat >>confdefs.h <<\_ACEOF
18237#define HAVE_HOST_IN_UTMP 1
18238_ACEOF
18239
18240 fi
18241 else
18242 echo "$as_me:$LINENO: result: no" >&5
18243echo "${ECHO_T}no" >&6
18244 fi
18245
18246
18247# look for field 'ut_host' in header 'utmpx.h'
18248 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18249 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
18250 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
18251echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
18252 if eval "test \"\${$ossh_varname+set}\" = set"; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255
18256 cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
18261/* end confdefs.h. */
18262#include <utmpx.h>
18263
18264_ACEOF
18265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18266 $EGREP "ut_host" >/dev/null 2>&1; then
18267 eval "$ossh_varname=yes"
18268else
18269 eval "$ossh_varname=no"
18270fi
18271rm -f conftest*
18272
18273fi
18274
18275 ossh_result=`eval 'echo $'"$ossh_varname"`
18276 if test -n "`echo $ossh_varname`"; then
18277 echo "$as_me:$LINENO: result: $ossh_result" >&5
18278echo "${ECHO_T}$ossh_result" >&6
18279 if test "x$ossh_result" = "xyes"; then
18280 cat >>confdefs.h <<\_ACEOF
18281#define HAVE_HOST_IN_UTMPX 1
18282_ACEOF
18283
18284 fi
18285 else
18286 echo "$as_me:$LINENO: result: no" >&5
18287echo "${ECHO_T}no" >&6
18288 fi
18289
18290
18291# look for field 'syslen' in header 'utmpx.h'
18292 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18293 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
18294 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
18295echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
18296 if eval "test \"\${$ossh_varname+set}\" = set"; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298else
18299
18300 cat >conftest.$ac_ext <<_ACEOF
18301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
18306#include <utmpx.h>
18307
18308_ACEOF
18309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18310 $EGREP "syslen" >/dev/null 2>&1; then
18311 eval "$ossh_varname=yes"
18312else
18313 eval "$ossh_varname=no"
18314fi
18315rm -f conftest*
18316
18317fi
18318
18319 ossh_result=`eval 'echo $'"$ossh_varname"`
18320 if test -n "`echo $ossh_varname`"; then
18321 echo "$as_me:$LINENO: result: $ossh_result" >&5
18322echo "${ECHO_T}$ossh_result" >&6
18323 if test "x$ossh_result" = "xyes"; then
18324 cat >>confdefs.h <<\_ACEOF
18325#define HAVE_SYSLEN_IN_UTMPX 1
18326_ACEOF
18327
18328 fi
18329 else
18330 echo "$as_me:$LINENO: result: no" >&5
18331echo "${ECHO_T}no" >&6
18332 fi
18333
18334
18335# look for field 'ut_pid' in header 'utmp.h'
18336 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18337 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
18338 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
18339echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
18340 if eval "test \"\${$ossh_varname+set}\" = set"; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342else
18343
18344 cat >conftest.$ac_ext <<_ACEOF
18345/* confdefs.h. */
18346_ACEOF
18347cat confdefs.h >>conftest.$ac_ext
18348cat >>conftest.$ac_ext <<_ACEOF
18349/* end confdefs.h. */
18350#include <utmp.h>
18351
18352_ACEOF
18353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18354 $EGREP "ut_pid" >/dev/null 2>&1; then
18355 eval "$ossh_varname=yes"
18356else
18357 eval "$ossh_varname=no"
18358fi
18359rm -f conftest*
18360
18361fi
18362
18363 ossh_result=`eval 'echo $'"$ossh_varname"`
18364 if test -n "`echo $ossh_varname`"; then
18365 echo "$as_me:$LINENO: result: $ossh_result" >&5
18366echo "${ECHO_T}$ossh_result" >&6
18367 if test "x$ossh_result" = "xyes"; then
18368 cat >>confdefs.h <<\_ACEOF
18369#define HAVE_PID_IN_UTMP 1
18370_ACEOF
18371
18372 fi
18373 else
18374 echo "$as_me:$LINENO: result: no" >&5
18375echo "${ECHO_T}no" >&6
18376 fi
18377
18378
18379# look for field 'ut_type' in header 'utmp.h'
18380 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18381 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
18382 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
18383echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
18384 if eval "test \"\${$ossh_varname+set}\" = set"; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387
18388 cat >conftest.$ac_ext <<_ACEOF
18389/* confdefs.h. */
18390_ACEOF
18391cat confdefs.h >>conftest.$ac_ext
18392cat >>conftest.$ac_ext <<_ACEOF
18393/* end confdefs.h. */
18394#include <utmp.h>
18395
18396_ACEOF
18397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18398 $EGREP "ut_type" >/dev/null 2>&1; then
18399 eval "$ossh_varname=yes"
18400else
18401 eval "$ossh_varname=no"
18402fi
18403rm -f conftest*
18404
18405fi
18406
18407 ossh_result=`eval 'echo $'"$ossh_varname"`
18408 if test -n "`echo $ossh_varname`"; then
18409 echo "$as_me:$LINENO: result: $ossh_result" >&5
18410echo "${ECHO_T}$ossh_result" >&6
18411 if test "x$ossh_result" = "xyes"; then
18412 cat >>confdefs.h <<\_ACEOF
18413#define HAVE_TYPE_IN_UTMP 1
18414_ACEOF
18415
18416 fi
18417 else
18418 echo "$as_me:$LINENO: result: no" >&5
18419echo "${ECHO_T}no" >&6
18420 fi
18421
18422
18423# look for field 'ut_type' in header 'utmpx.h'
18424 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18425 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
18426 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
18427echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
18428 if eval "test \"\${$ossh_varname+set}\" = set"; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430else
18431
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438#include <utmpx.h>
18439
18440_ACEOF
18441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18442 $EGREP "ut_type" >/dev/null 2>&1; then
18443 eval "$ossh_varname=yes"
18444else
18445 eval "$ossh_varname=no"
18446fi
18447rm -f conftest*
18448
18449fi
18450
18451 ossh_result=`eval 'echo $'"$ossh_varname"`
18452 if test -n "`echo $ossh_varname`"; then
18453 echo "$as_me:$LINENO: result: $ossh_result" >&5
18454echo "${ECHO_T}$ossh_result" >&6
18455 if test "x$ossh_result" = "xyes"; then
18456 cat >>confdefs.h <<\_ACEOF
18457#define HAVE_TYPE_IN_UTMPX 1
18458_ACEOF
18459
18460 fi
18461 else
18462 echo "$as_me:$LINENO: result: no" >&5
18463echo "${ECHO_T}no" >&6
18464 fi
18465
18466
18467# look for field 'ut_tv' in header 'utmp.h'
18468 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18469 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
18470 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
18471echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
18472 if eval "test \"\${$ossh_varname+set}\" = set"; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474else
18475
18476 cat >conftest.$ac_ext <<_ACEOF
18477/* confdefs.h. */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h. */
18482#include <utmp.h>
18483
18484_ACEOF
18485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18486 $EGREP "ut_tv" >/dev/null 2>&1; then
18487 eval "$ossh_varname=yes"
18488else
18489 eval "$ossh_varname=no"
18490fi
18491rm -f conftest*
18492
18493fi
18494
18495 ossh_result=`eval 'echo $'"$ossh_varname"`
18496 if test -n "`echo $ossh_varname`"; then
18497 echo "$as_me:$LINENO: result: $ossh_result" >&5
18498echo "${ECHO_T}$ossh_result" >&6
18499 if test "x$ossh_result" = "xyes"; then
18500 cat >>confdefs.h <<\_ACEOF
18501#define HAVE_TV_IN_UTMP 1
18502_ACEOF
18503
18504 fi
18505 else
18506 echo "$as_me:$LINENO: result: no" >&5
18507echo "${ECHO_T}no" >&6
18508 fi
18509
18510
18511# look for field 'ut_id' in header 'utmp.h'
18512 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18513 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
18514 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
18515echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
18516 if eval "test \"\${$ossh_varname+set}\" = set"; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518else
18519
18520 cat >conftest.$ac_ext <<_ACEOF
18521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
18526#include <utmp.h>
18527
18528_ACEOF
18529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18530 $EGREP "ut_id" >/dev/null 2>&1; then
18531 eval "$ossh_varname=yes"
18532else
18533 eval "$ossh_varname=no"
18534fi
18535rm -f conftest*
18536
18537fi
18538
18539 ossh_result=`eval 'echo $'"$ossh_varname"`
18540 if test -n "`echo $ossh_varname`"; then
18541 echo "$as_me:$LINENO: result: $ossh_result" >&5
18542echo "${ECHO_T}$ossh_result" >&6
18543 if test "x$ossh_result" = "xyes"; then
18544 cat >>confdefs.h <<\_ACEOF
18545#define HAVE_ID_IN_UTMP 1
18546_ACEOF
18547
18548 fi
18549 else
18550 echo "$as_me:$LINENO: result: no" >&5
18551echo "${ECHO_T}no" >&6
18552 fi
18553
18554
18555# look for field 'ut_id' in header 'utmpx.h'
18556 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18557 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
18558 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
18559echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
18560 if eval "test \"\${$ossh_varname+set}\" = set"; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
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#include <utmpx.h>
18571
18572_ACEOF
18573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18574 $EGREP "ut_id" >/dev/null 2>&1; then
18575 eval "$ossh_varname=yes"
18576else
18577 eval "$ossh_varname=no"
18578fi
18579rm -f conftest*
18580
18581fi
18582
18583 ossh_result=`eval 'echo $'"$ossh_varname"`
18584 if test -n "`echo $ossh_varname`"; then
18585 echo "$as_me:$LINENO: result: $ossh_result" >&5
18586echo "${ECHO_T}$ossh_result" >&6
18587 if test "x$ossh_result" = "xyes"; then
18588 cat >>confdefs.h <<\_ACEOF
18589#define HAVE_ID_IN_UTMPX 1
18590_ACEOF
18591
18592 fi
18593 else
18594 echo "$as_me:$LINENO: result: no" >&5
18595echo "${ECHO_T}no" >&6
18596 fi
18597
18598
18599# look for field 'ut_addr' in header 'utmp.h'
18600 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18601 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
18602 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
18603echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
18604 if eval "test \"\${$ossh_varname+set}\" = set"; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18606else
18607
18608 cat >conftest.$ac_ext <<_ACEOF
18609/* confdefs.h. */
18610_ACEOF
18611cat confdefs.h >>conftest.$ac_ext
18612cat >>conftest.$ac_ext <<_ACEOF
18613/* end confdefs.h. */
18614#include <utmp.h>
18615
18616_ACEOF
18617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18618 $EGREP "ut_addr" >/dev/null 2>&1; then
18619 eval "$ossh_varname=yes"
18620else
18621 eval "$ossh_varname=no"
18622fi
18623rm -f conftest*
18624
18625fi
18626
18627 ossh_result=`eval 'echo $'"$ossh_varname"`
18628 if test -n "`echo $ossh_varname`"; then
18629 echo "$as_me:$LINENO: result: $ossh_result" >&5
18630echo "${ECHO_T}$ossh_result" >&6
18631 if test "x$ossh_result" = "xyes"; then
18632 cat >>confdefs.h <<\_ACEOF
18633#define HAVE_ADDR_IN_UTMP 1
18634_ACEOF
18635
18636 fi
18637 else
18638 echo "$as_me:$LINENO: result: no" >&5
18639echo "${ECHO_T}no" >&6
18640 fi
18641
18642
18643# look for field 'ut_addr' in header 'utmpx.h'
18644 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18645 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
18646 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
18647echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
18648 if eval "test \"\${$ossh_varname+set}\" = set"; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651
18652 cat >conftest.$ac_ext <<_ACEOF
18653/* confdefs.h. */
18654_ACEOF
18655cat confdefs.h >>conftest.$ac_ext
18656cat >>conftest.$ac_ext <<_ACEOF
18657/* end confdefs.h. */
18658#include <utmpx.h>
18659
18660_ACEOF
18661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18662 $EGREP "ut_addr" >/dev/null 2>&1; then
18663 eval "$ossh_varname=yes"
18664else
18665 eval "$ossh_varname=no"
18666fi
18667rm -f conftest*
18668
18669fi
18670
18671 ossh_result=`eval 'echo $'"$ossh_varname"`
18672 if test -n "`echo $ossh_varname`"; then
18673 echo "$as_me:$LINENO: result: $ossh_result" >&5
18674echo "${ECHO_T}$ossh_result" >&6
18675 if test "x$ossh_result" = "xyes"; then
18676 cat >>confdefs.h <<\_ACEOF
18677#define HAVE_ADDR_IN_UTMPX 1
18678_ACEOF
18679
18680 fi
18681 else
18682 echo "$as_me:$LINENO: result: no" >&5
18683echo "${ECHO_T}no" >&6
18684 fi
18685
18686
18687# look for field 'ut_addr_v6' in header 'utmp.h'
18688 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18689 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
18690 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
18691echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
18692 if eval "test \"\${$ossh_varname+set}\" = set"; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18694else
18695
18696 cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702#include <utmp.h>
18703
18704_ACEOF
18705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18706 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
18707 eval "$ossh_varname=yes"
18708else
18709 eval "$ossh_varname=no"
18710fi
18711rm -f conftest*
18712
18713fi
18714
18715 ossh_result=`eval 'echo $'"$ossh_varname"`
18716 if test -n "`echo $ossh_varname`"; then
18717 echo "$as_me:$LINENO: result: $ossh_result" >&5
18718echo "${ECHO_T}$ossh_result" >&6
18719 if test "x$ossh_result" = "xyes"; then
18720 cat >>confdefs.h <<\_ACEOF
18721#define HAVE_ADDR_V6_IN_UTMP 1
18722_ACEOF
18723
18724 fi
18725 else
18726 echo "$as_me:$LINENO: result: no" >&5
18727echo "${ECHO_T}no" >&6
18728 fi
18729
18730
18731# look for field 'ut_addr_v6' in header 'utmpx.h'
18732 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18733 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
18734 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
18735echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
18736 if eval "test \"\${$ossh_varname+set}\" = set"; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
18739
18740 cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746#include <utmpx.h>
18747
18748_ACEOF
18749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18750 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
18751 eval "$ossh_varname=yes"
18752else
18753 eval "$ossh_varname=no"
18754fi
18755rm -f conftest*
18756
18757fi
18758
18759 ossh_result=`eval 'echo $'"$ossh_varname"`
18760 if test -n "`echo $ossh_varname`"; then
18761 echo "$as_me:$LINENO: result: $ossh_result" >&5
18762echo "${ECHO_T}$ossh_result" >&6
18763 if test "x$ossh_result" = "xyes"; then
18764 cat >>confdefs.h <<\_ACEOF
18765#define HAVE_ADDR_V6_IN_UTMPX 1
18766_ACEOF
18767
18768 fi
18769 else
18770 echo "$as_me:$LINENO: result: no" >&5
18771echo "${ECHO_T}no" >&6
18772 fi
18773
18774
18775# look for field 'ut_exit' in header 'utmp.h'
18776 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18777 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
18778 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
18779echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
18780 if eval "test \"\${$ossh_varname+set}\" = set"; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782else
18783
18784 cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h. */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h. */
18790#include <utmp.h>
18791
18792_ACEOF
18793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "ut_exit" >/dev/null 2>&1; then
18795 eval "$ossh_varname=yes"
18796else
18797 eval "$ossh_varname=no"
18798fi
18799rm -f conftest*
18800
18801fi
18802
18803 ossh_result=`eval 'echo $'"$ossh_varname"`
18804 if test -n "`echo $ossh_varname`"; then
18805 echo "$as_me:$LINENO: result: $ossh_result" >&5
18806echo "${ECHO_T}$ossh_result" >&6
18807 if test "x$ossh_result" = "xyes"; then
18808 cat >>confdefs.h <<\_ACEOF
18809#define HAVE_EXIT_IN_UTMP 1
18810_ACEOF
18811
18812 fi
18813 else
18814 echo "$as_me:$LINENO: result: no" >&5
18815echo "${ECHO_T}no" >&6
18816 fi
18817
18818
18819# look for field 'ut_time' in header 'utmp.h'
18820 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
18821 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
18822 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
18823echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
18824 if eval "test \"\${$ossh_varname+set}\" = set"; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826else
18827
18828 cat >conftest.$ac_ext <<_ACEOF
18829/* confdefs.h. */
18830_ACEOF
18831cat confdefs.h >>conftest.$ac_ext
18832cat >>conftest.$ac_ext <<_ACEOF
18833/* end confdefs.h. */
18834#include <utmp.h>
18835
18836_ACEOF
18837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18838 $EGREP "ut_time" >/dev/null 2>&1; then
18839 eval "$ossh_varname=yes"
18840else
18841 eval "$ossh_varname=no"
18842fi
18843rm -f conftest*
18844
18845fi
18846
18847 ossh_result=`eval 'echo $'"$ossh_varname"`
18848 if test -n "`echo $ossh_varname`"; then
18849 echo "$as_me:$LINENO: result: $ossh_result" >&5
18850echo "${ECHO_T}$ossh_result" >&6
18851 if test "x$ossh_result" = "xyes"; then
18852 cat >>confdefs.h <<\_ACEOF
18853#define HAVE_TIME_IN_UTMP 1
18854_ACEOF
18855
18856 fi
18857 else
18858 echo "$as_me:$LINENO: result: no" >&5
18859echo "${ECHO_T}no" >&6
18860 fi
18861
18862
18863# look for field 'ut_time' in header 'utmpx.h'
18864 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18865 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
18866 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
18867echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
18868 if eval "test \"\${$ossh_varname+set}\" = set"; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18870else
18871
18872 cat >conftest.$ac_ext <<_ACEOF
18873/* confdefs.h. */
18874_ACEOF
18875cat confdefs.h >>conftest.$ac_ext
18876cat >>conftest.$ac_ext <<_ACEOF
18877/* end confdefs.h. */
18878#include <utmpx.h>
18879
18880_ACEOF
18881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18882 $EGREP "ut_time" >/dev/null 2>&1; then
18883 eval "$ossh_varname=yes"
18884else
18885 eval "$ossh_varname=no"
18886fi
18887rm -f conftest*
18888
18889fi
18890
18891 ossh_result=`eval 'echo $'"$ossh_varname"`
18892 if test -n "`echo $ossh_varname`"; then
18893 echo "$as_me:$LINENO: result: $ossh_result" >&5
18894echo "${ECHO_T}$ossh_result" >&6
18895 if test "x$ossh_result" = "xyes"; then
18896 cat >>confdefs.h <<\_ACEOF
18897#define HAVE_TIME_IN_UTMPX 1
18898_ACEOF
18899
18900 fi
18901 else
18902 echo "$as_me:$LINENO: result: no" >&5
18903echo "${ECHO_T}no" >&6
18904 fi
18905
18906
18907# look for field 'ut_tv' in header 'utmpx.h'
18908 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
18909 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
18910 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
18911echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
18912 if eval "test \"\${$ossh_varname+set}\" = set"; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18914else
18915
18916 cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922#include <utmpx.h>
18923
18924_ACEOF
18925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18926 $EGREP "ut_tv" >/dev/null 2>&1; then
18927 eval "$ossh_varname=yes"
18928else
18929 eval "$ossh_varname=no"
18930fi
18931rm -f conftest*
18932
18933fi
18934
18935 ossh_result=`eval 'echo $'"$ossh_varname"`
18936 if test -n "`echo $ossh_varname`"; then
18937 echo "$as_me:$LINENO: result: $ossh_result" >&5
18938echo "${ECHO_T}$ossh_result" >&6
18939 if test "x$ossh_result" = "xyes"; then
18940 cat >>confdefs.h <<\_ACEOF
18941#define HAVE_TV_IN_UTMPX 1
18942_ACEOF
18943
18944 fi
18945 else
18946 echo "$as_me:$LINENO: result: no" >&5
18947echo "${ECHO_T}no" >&6
18948 fi
18949
18950
18951echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18952echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
18953if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955else
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966static struct stat ac_aggr;
18967if (ac_aggr.st_blksize)
18968return 0;
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext
18974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18975 (eval $ac_compile) 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag"
18983 || test ! -s conftest.err'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest.$ac_objext'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 ac_cv_member_struct_stat_st_blksize=yes
18996else
18997 echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000cat >conftest.$ac_ext <<_ACEOF
19001/* confdefs.h. */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
19005/* end confdefs.h. */
19006$ac_includes_default
19007int
19008main ()
19009{
19010static struct stat ac_aggr;
19011if (sizeof ac_aggr.st_blksize)
19012return 0;
19013 ;
19014 return 0;
19015}
19016_ACEOF
19017rm -f conftest.$ac_objext
19018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19019 (eval $ac_compile) 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -z "$ac_c_werror_flag"
19027 || test ! -s conftest.err'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_cv_member_struct_stat_st_blksize=yes
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044ac_cv_member_struct_stat_st_blksize=no
19045fi
19046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19047fi
19048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049fi
19050echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19051echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
19052if test $ac_cv_member_struct_stat_st_blksize = yes; then
19053
19054cat >>confdefs.h <<_ACEOF
19055#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19056_ACEOF
19057
19058
19059fi
19060
19061
19062echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
19063echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
19064if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19066else
19067
19068 cat >conftest.$ac_ext <<_ACEOF
19069/* confdefs.h. */
19070_ACEOF
19071cat confdefs.h >>conftest.$ac_ext
19072cat >>conftest.$ac_ext <<_ACEOF
19073/* end confdefs.h. */
19074
19075#include <sys/types.h>
19076#include <sys/socket.h>
19077
19078int
19079main ()
19080{
19081 struct sockaddr_storage s; s.ss_family = 1;
19082 ;
19083 return 0;
19084}
19085_ACEOF
19086rm -f conftest.$ac_objext
19087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19088 (eval $ac_compile) 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
19095 { ac_try='test -z "$ac_c_werror_flag"
19096 || test ! -s conftest.err'
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest.$ac_objext'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 ac_cv_have_ss_family_in_struct_ss="yes"
19109else
19110 echo "$as_me: failed program was:" >&5
19111sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_cv_have_ss_family_in_struct_ss="no"
19114fi
19115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19116
19117fi
19118echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
19119echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
19120if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
19121 cat >>confdefs.h <<\_ACEOF
19122#define HAVE_SS_FAMILY_IN_SS 1
19123_ACEOF
19124
19125fi
19126
19127echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
19128echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
19129if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131else
19132
19133 cat >conftest.$ac_ext <<_ACEOF
19134/* confdefs.h. */
19135_ACEOF
19136cat confdefs.h >>conftest.$ac_ext
19137cat >>conftest.$ac_ext <<_ACEOF
19138/* end confdefs.h. */
19139
19140#include <sys/types.h>
19141#include <sys/socket.h>
19142
19143int
19144main ()
19145{
19146 struct sockaddr_storage s; s.__ss_family = 1;
19147 ;
19148 return 0;
19149}
19150_ACEOF
19151rm -f conftest.$ac_objext
19152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19153 (eval $ac_compile) 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
19160 { ac_try='test -z "$ac_c_werror_flag"
19161 || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest.$ac_objext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_have___ss_family_in_struct_ss="yes"
19174else
19175 echo "$as_me: failed program was:" >&5
19176sed 's/^/| /' conftest.$ac_ext >&5
19177
19178 ac_cv_have___ss_family_in_struct_ss="no"
19179
19180fi
19181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182
19183fi
19184echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
19185echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
19186if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
19187 cat >>confdefs.h <<\_ACEOF
19188#define HAVE___SS_FAMILY_IN_SS 1
19189_ACEOF
19190
19191fi
19192
19193echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
19194echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
19195if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198
19199 cat >conftest.$ac_ext <<_ACEOF
19200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
19205
19206#include <pwd.h>
19207
19208int
19209main ()
19210{
19211 struct passwd p; p.pw_class = 0;
19212 ;
19213 return 0;
19214}
19215_ACEOF
19216rm -f conftest.$ac_objext
19217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19218 (eval $ac_compile) 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest.$ac_objext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_have_pw_class_in_struct_passwd="yes"
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_have_pw_class_in_struct_passwd="no"
19244
19245fi
19246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247
19248fi
19249echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
19250echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
19251if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
19252 cat >>confdefs.h <<\_ACEOF
19253#define HAVE_PW_CLASS_IN_PASSWD 1
19254_ACEOF
19255
19256fi
19257
19258echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
19259echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
19260if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19262else
19263
19264 cat >conftest.$ac_ext <<_ACEOF
19265/* confdefs.h. */
19266_ACEOF
19267cat confdefs.h >>conftest.$ac_ext
19268cat >>conftest.$ac_ext <<_ACEOF
19269/* end confdefs.h. */
19270
19271#include <pwd.h>
19272
19273int
19274main ()
19275{
19276 struct passwd p; p.pw_expire = 0;
19277 ;
19278 return 0;
19279}
19280_ACEOF
19281rm -f conftest.$ac_objext
19282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19283 (eval $ac_compile) 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest.$ac_objext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 ac_cv_have_pw_expire_in_struct_passwd="yes"
19304else
19305 echo "$as_me: failed program was:" >&5
19306sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 ac_cv_have_pw_expire_in_struct_passwd="no"
19309
19310fi
19311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19312
19313fi
19314echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
19315echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
19316if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
19317 cat >>confdefs.h <<\_ACEOF
19318#define HAVE_PW_EXPIRE_IN_PASSWD 1
19319_ACEOF
19320
19321fi
19322
19323echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
19324echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
19325if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327else
19328
19329 cat >conftest.$ac_ext <<_ACEOF
19330/* confdefs.h. */
19331_ACEOF
19332cat confdefs.h >>conftest.$ac_ext
19333cat >>conftest.$ac_ext <<_ACEOF
19334/* end confdefs.h. */
19335
19336#include <pwd.h>
19337
19338int
19339main ()
19340{
19341 struct passwd p; p.pw_change = 0;
19342 ;
19343 return 0;
19344}
19345_ACEOF
19346rm -f conftest.$ac_objext
19347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348 (eval $ac_compile) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_have_pw_change_in_struct_passwd="yes"
19369else
19370 echo "$as_me: failed program was:" >&5
19371sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ac_cv_have_pw_change_in_struct_passwd="no"
19374
19375fi
19376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377
19378fi
19379echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
19380echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
19381if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
19382 cat >>confdefs.h <<\_ACEOF
19383#define HAVE_PW_CHANGE_IN_PASSWD 1
19384_ACEOF
19385
19386fi
19387
19388echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
19389echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
19390if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392else
19393
19394 if test "$cross_compiling" = yes; then
19395 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19396See \`config.log' for more details." >&5
19397echo "$as_me: error: cannot run test program while cross compiling
19398See \`config.log' for more details." >&2;}
19399 { (exit 1); exit 1; }; }
19400else
19401 cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
19407
19408#include <sys/types.h>
19409#include <sys/socket.h>
19410#include <sys/uio.h>
19411int main() {
19412#ifdef msg_accrights
19413exit(1);
19414#endif
19415struct msghdr m;
19416m.msg_accrights = 0;
19417exit(0);
19418}
19419
19420_ACEOF
19421rm -f conftest$ac_exeext
19422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19423 (eval $ac_link) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_have_accrights_in_msghdr="yes"
19433else
19434 echo "$as_me: program exited with status $ac_status" >&5
19435echo "$as_me: failed program was:" >&5
19436sed 's/^/| /' conftest.$ac_ext >&5
19437
19438( exit $ac_status )
19439 ac_cv_have_accrights_in_msghdr="no"
19440
19441fi
19442rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19443fi
19444
19445fi
19446echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
19447echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
19448if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
19449 cat >>confdefs.h <<\_ACEOF
19450#define HAVE_ACCRIGHTS_IN_MSGHDR 1
19451_ACEOF
19452
19453fi
19454
19455echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
19456echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
19457if test "${ac_cv_have_control_in_msghdr+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19459else
19460
19461 if test "$cross_compiling" = yes; then
19462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19463See \`config.log' for more details." >&5
19464echo "$as_me: error: cannot run test program while cross compiling
19465See \`config.log' for more details." >&2;}
19466 { (exit 1); exit 1; }; }
19467else
19468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474
19475#include <sys/types.h>
19476#include <sys/socket.h>
19477#include <sys/uio.h>
19478int main() {
19479#ifdef msg_control
19480exit(1);
19481#endif
19482struct msghdr m;
19483m.msg_control = 0;
19484exit(0);
19485}
19486
19487_ACEOF
19488rm -f conftest$ac_exeext
19489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19490 (eval $ac_link) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_have_control_in_msghdr="yes"
19500else
19501 echo "$as_me: program exited with status $ac_status" >&5
19502echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505( exit $ac_status )
19506 ac_cv_have_control_in_msghdr="no"
19507
19508fi
19509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19510fi
19511
19512fi
19513echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
19514echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
19515if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
19516 cat >>confdefs.h <<\_ACEOF
19517#define HAVE_CONTROL_IN_MSGHDR 1
19518_ACEOF
19519
19520fi
19521
19522echo "$as_me:$LINENO: checking if libc defines __progname" >&5
19523echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
19524if test "${ac_cv_libc_defines___progname+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526else
19527
19528 cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534
19535int
19536main ()
19537{
19538 extern char *__progname; printf("%s", __progname);
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest.$ac_objext conftest$ac_exeext
19544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545 (eval $ac_link) 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest$ac_exeext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_cv_libc_defines___progname="yes"
19566else
19567 echo "$as_me: failed program was:" >&5
19568sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ac_cv_libc_defines___progname="no"
19571
19572fi
19573rm -f conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext conftest.$ac_ext
19575
19576fi
19577echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
19578echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
19579if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
19580 cat >>confdefs.h <<\_ACEOF
19581#define HAVE___PROGNAME 1
19582_ACEOF
19583
19584fi
19585
19586echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
19587echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
19588if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19590else
19591
19592 cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
19598
19599#include <stdio.h>
19600
19601int
19602main ()
19603{
19604 printf("%s", __FUNCTION__);
19605 ;
19606 return 0;
19607}
19608_ACEOF
19609rm -f conftest.$ac_objext conftest$ac_exeext
19610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19611 (eval $ac_link) 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -z "$ac_c_werror_flag"
19619 || test ! -s conftest.err'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest$ac_exeext'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_cc_implements___FUNCTION__="yes"
19632else
19633 echo "$as_me: failed program was:" >&5
19634sed 's/^/| /' conftest.$ac_ext >&5
19635
19636 ac_cv_cc_implements___FUNCTION__="no"
19637
19638fi
19639rm -f conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641
19642fi
19643echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
19644echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
19645if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
19646 cat >>confdefs.h <<\_ACEOF
19647#define HAVE___FUNCTION__ 1
19648_ACEOF
19649
19650fi
19651
19652echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
19653echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
19654if test "${ac_cv_cc_implements___func__+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656else
19657
19658 cat >conftest.$ac_ext <<_ACEOF
19659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
19664
19665#include <stdio.h>
19666
19667int
19668main ()
19669{
19670 printf("%s", __func__);
19671 ;
19672 return 0;
19673}
19674_ACEOF
19675rm -f conftest.$ac_objext conftest$ac_exeext
19676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677 (eval $ac_link) 2>conftest.er1
19678 ac_status=$?
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_c_werror_flag"
19685 || test ! -s conftest.err'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest$ac_exeext'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_cv_cc_implements___func__="yes"
19698else
19699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702 ac_cv_cc_implements___func__="no"
19703
19704fi
19705rm -f conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19707
19708fi
19709echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
19710echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
19711if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
19712 cat >>confdefs.h <<\_ACEOF
19713#define HAVE___func__ 1
19714_ACEOF
19715
19716fi
19717
19718echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
19719echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
19720if test "${ac_cv_have_getopt_optreset+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722else
19723
19724 cat >conftest.$ac_ext <<_ACEOF
19725/* confdefs.h. */
19726_ACEOF
19727cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h. */
19730
19731#include <getopt.h>
19732
19733int
19734main ()
19735{
19736 extern int optreset; optreset = 0;
19737 ;
19738 return 0;
19739}
19740_ACEOF
19741rm -f conftest.$ac_objext conftest$ac_exeext
19742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19743 (eval $ac_link) 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_c_werror_flag"
19751 || test ! -s conftest.err'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest$ac_exeext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_have_getopt_optreset="yes"
19764else
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ac_cv_have_getopt_optreset="no"
19769
19770fi
19771rm -f conftest.err conftest.$ac_objext \
19772 conftest$ac_exeext conftest.$ac_ext
19773
19774fi
19775echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
19776echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
19777if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
19778 cat >>confdefs.h <<\_ACEOF
19779#define HAVE_GETOPT_OPTRESET 1
19780_ACEOF
19781
19782fi
19783
19784echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
19785echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
19786if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788else
19789
19790 cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796
19797int
19798main ()
19799{
19800 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext conftest$ac_exeext
19806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807 (eval $ac_link) 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag"
19815 || test ! -s conftest.err'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest$ac_exeext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_libc_defines_sys_errlist="yes"
19828else
19829 echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 ac_cv_libc_defines_sys_errlist="no"
19833
19834fi
19835rm -f conftest.err conftest.$ac_objext \
19836 conftest$ac_exeext conftest.$ac_ext
19837
19838fi
19839echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
19840echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
19841if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
19842 cat >>confdefs.h <<\_ACEOF
19843#define HAVE_SYS_ERRLIST 1
19844_ACEOF
19845
19846fi
19847
19848
19849echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
19850echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
19851if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854
19855 cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h. */
19861
19862int
19863main ()
19864{
19865 extern int sys_nerr; printf("%i", sys_nerr);
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext conftest$ac_exeext
19871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19872 (eval $ac_link) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest$ac_exeext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_cv_libc_defines_sys_nerr="yes"
19893else
19894 echo "$as_me: failed program was:" >&5
19895sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 ac_cv_libc_defines_sys_nerr="no"
19898
19899fi
19900rm -f conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902
19903fi
19904echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
19905echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
19906if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
19907 cat >>confdefs.h <<\_ACEOF
19908#define HAVE_SYS_NERR 1
19909_ACEOF
19910
19911fi
19912
19913SCARD_MSG="no"
19914# Check whether user wants sectok support
19915
19916# Check whether --with-sectok or --without-sectok was given.
19917if test "${with_sectok+set}" = set; then
19918 withval="$with_sectok"
19919
19920 if test "x$withval" != "xno" ; then
19921 if test "x$withval" != "xyes" ; then
19922 CPPFLAGS="$CPPFLAGS -I${withval}"
19923 LDFLAGS="$LDFLAGS -L${withval}"
19924 if test ! -z "$need_dash_r" ; then
19925 LDFLAGS="$LDFLAGS -R${withval}"
19926 fi
19927 if test ! -z "$blibpath" ; then
19928 blibpath="$blibpath:${withval}"
19929 fi
19930 fi
19931
19932for ac_header in sectok.h
19933do
19934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19935if eval "test \"\${$as_ac_Header+set}\" = set"; then
19936 echo "$as_me:$LINENO: checking for $ac_header" >&5
19937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19938if eval "test \"\${$as_ac_Header+set}\" = set"; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940fi
19941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19943else
19944 # Is the header compilable?
19945echo "$as_me:$LINENO: checking $ac_header usability" >&5
19946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19947cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
19953$ac_includes_default
19954#include <$ac_header>
19955_ACEOF
19956rm -f conftest.$ac_objext
19957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958 (eval $ac_compile) 2>conftest.er1
19959 ac_status=$?
19960 grep -v '^ *+' conftest.er1 >conftest.err
19961 rm -f conftest.er1
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } &&
19965 { ac_try='test -z "$ac_c_werror_flag"
19966 || test ! -s conftest.err'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; } &&
19972 { ac_try='test -s conftest.$ac_objext'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_header_compiler=yes
19979else
19980 echo "$as_me: failed program was:" >&5
19981sed 's/^/| /' conftest.$ac_ext >&5
19982
19983ac_header_compiler=no
19984fi
19985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987echo "${ECHO_T}$ac_header_compiler" >&6
19988
19989# Is the header present?
19990echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19992cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
19998#include <$ac_header>
19999_ACEOF
20000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } >/dev/null; then
20008 if test -s conftest.err; then
20009 ac_cpp_err=$ac_c_preproc_warn_flag
20010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20011 else
20012 ac_cpp_err=
20013 fi
20014else
20015 ac_cpp_err=yes
20016fi
20017if test -z "$ac_cpp_err"; then
20018 ac_header_preproc=yes
20019else
20020 echo "$as_me: failed program was:" >&5
20021sed 's/^/| /' conftest.$ac_ext >&5
20022
20023 ac_header_preproc=no
20024fi
20025rm -f conftest.err conftest.$ac_ext
20026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20027echo "${ECHO_T}$ac_header_preproc" >&6
20028
20029# So? What about this header?
20030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 yes:no: )
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20036 ac_header_preproc=yes
20037 ;;
20038 no:yes:* )
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 (
20052 cat <<\_ASBOX
20053## ------------------------------------------ ##
20054## Report this to the AC_PACKAGE_NAME lists. ##
20055## ------------------------------------------ ##
20056_ASBOX
20057 ) |
20058 sed "s/^/$as_me: WARNING: /" >&2
20059 ;;
20060esac
20061echo "$as_me:$LINENO: checking for $ac_header" >&5
20062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20063if eval "test \"\${$as_ac_Header+set}\" = set"; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065else
20066 eval "$as_ac_Header=\$ac_header_preproc"
20067fi
20068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20070
20071fi
20072if test `eval echo '${'$as_ac_Header'}'` = yes; then
20073 cat >>confdefs.h <<_ACEOF
20074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20075_ACEOF
20076
20077fi
20078
20079done
20080
20081 if test "$ac_cv_header_sectok_h" != yes; then
20082 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
20083echo "$as_me: error: Can't find sectok.h" >&2;}
20084 { (exit 1); exit 1; }; }
20085 fi
20086
20087echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
20088echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
20089if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092 ac_check_lib_save_LIBS=$LIBS
20093LIBS="-lsectok $LIBS"
20094cat >conftest.$ac_ext <<_ACEOF
20095/* confdefs.h. */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h. */
20100
20101/* Override any gcc2 internal prototype to avoid an error. */
20102#ifdef __cplusplus
20103extern "C"
20104#endif
20105/* We use char because int might match the return type of a gcc2
20106 builtin and then its argument prototype would still apply. */
20107char sectok_open ();
20108int
20109main ()
20110{
20111sectok_open ();
20112 ;
20113 return 0;
20114}
20115_ACEOF
20116rm -f conftest.$ac_objext conftest$ac_exeext
20117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20118 (eval $ac_link) 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_c_werror_flag"
20126 || test ! -s conftest.err'
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); }; } &&
20132 { ac_try='test -s conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_lib_sectok_sectok_open=yes
20139else
20140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143ac_cv_lib_sectok_sectok_open=no
20144fi
20145rm -f conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20147LIBS=$ac_check_lib_save_LIBS
20148fi
20149echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
20150echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
20151if test $ac_cv_lib_sectok_sectok_open = yes; then
20152 cat >>confdefs.h <<_ACEOF
20153#define HAVE_LIBSECTOK 1
20154_ACEOF
20155
20156 LIBS="-lsectok $LIBS"
20157
20158fi
20159
20160 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
20161 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
20162echo "$as_me: error: Can't find libsectok" >&2;}
20163 { (exit 1); exit 1; }; }
20164 fi
20165 cat >>confdefs.h <<\_ACEOF
20166#define SMARTCARD 1
20167_ACEOF
20168
20169 cat >>confdefs.h <<\_ACEOF
20170#define USE_SECTOK 1
20171_ACEOF
20172
20173 SCARD_MSG="yes, using sectok"
20174 fi
20175
20176
20177fi;
20178
20179# Check whether user wants OpenSC support
20180
20181# Check whether --with-opensc or --without-opensc was given.
20182if test "${with_opensc+set}" = set; then
20183 withval="$with_opensc"
20184 opensc_config_prefix="$withval"
20185else
20186 opensc_config_prefix=""
20187fi;
20188if test x$opensc_config_prefix != x ; then
20189 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
20190 # Extract the first word of "opensc-config", so it can be a program name with args.
20191set dummy opensc-config; ac_word=$2
20192echo "$as_me:$LINENO: checking for $ac_word" >&5
20193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20194if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20196else
20197 case $OPENSC_CONFIG in
20198 [\\/]* | ?:[\\/]*)
20199 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
20200 ;;
20201 *)
20202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20203for as_dir in $PATH
20204do
20205 IFS=$as_save_IFS
20206 test -z "$as_dir" && as_dir=.
20207 for ac_exec_ext in '' $ac_executable_extensions; do
20208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20209 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20211 break 2
20212 fi
20213done
20214done
20215
20216 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
20217 ;;
20218esac
20219fi
20220OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
20221
20222if test -n "$OPENSC_CONFIG"; then
20223 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
20224echo "${ECHO_T}$OPENSC_CONFIG" >&6
20225else
20226 echo "$as_me:$LINENO: result: no" >&5
20227echo "${ECHO_T}no" >&6
20228fi
20229
20230 if test "$OPENSC_CONFIG" != "no"; then
20231 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
20232 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
20233 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
20234 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
20235 cat >>confdefs.h <<\_ACEOF
20236#define SMARTCARD 1
20237_ACEOF
20238
20239 cat >>confdefs.h <<\_ACEOF
20240#define USE_OPENSC 1
20241_ACEOF
20242
20243 SCARD_MSG="yes, using OpenSC"
20244 fi
20245fi
20246
20247# Check libraries needed by DNS fingerprint support
20248echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
20249echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
20250if test "${ac_cv_search_getrrsetbyname+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252else
20253 ac_func_search_save_LIBS=$LIBS
20254ac_cv_search_getrrsetbyname=no
20255cat >conftest.$ac_ext <<_ACEOF
20256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
20261
20262/* Override any gcc2 internal prototype to avoid an error. */
20263#ifdef __cplusplus
20264extern "C"
20265#endif
20266/* We use char because int might match the return type of a gcc2
20267 builtin and then its argument prototype would still apply. */
20268char getrrsetbyname ();
20269int
20270main ()
20271{
20272getrrsetbyname ();
20273 ;
20274 return 0;
20275}
20276_ACEOF
20277rm -f conftest.$ac_objext conftest$ac_exeext
20278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279 (eval $ac_link) 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } &&
20286 { ac_try='test -z "$ac_c_werror_flag"
20287 || test ! -s conftest.err'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest$ac_exeext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_search_getrrsetbyname="none required"
20300else
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304fi
20305rm -f conftest.err conftest.$ac_objext \
20306 conftest$ac_exeext conftest.$ac_ext
20307if test "$ac_cv_search_getrrsetbyname" = no; then
20308 for ac_lib in resolv; do
20309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20310 cat >conftest.$ac_ext <<_ACEOF
20311/* confdefs.h. */
20312_ACEOF
20313cat confdefs.h >>conftest.$ac_ext
20314cat >>conftest.$ac_ext <<_ACEOF
20315/* end confdefs.h. */
20316
20317/* Override any gcc2 internal prototype to avoid an error. */
20318#ifdef __cplusplus
20319extern "C"
20320#endif
20321/* We use char because int might match the return type of a gcc2
20322 builtin and then its argument prototype would still apply. */
20323char getrrsetbyname ();
20324int
20325main ()
20326{
20327getrrsetbyname ();
20328 ;
20329 return 0;
20330}
20331_ACEOF
20332rm -f conftest.$ac_objext conftest$ac_exeext
20333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20334 (eval $ac_link) 2>conftest.er1
20335 ac_status=$?
20336 grep -v '^ *+' conftest.er1 >conftest.err
20337 rm -f conftest.er1
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest$ac_exeext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 ac_cv_search_getrrsetbyname="-l$ac_lib"
20355break
20356else
20357 echo "$as_me: failed program was:" >&5
20358sed 's/^/| /' conftest.$ac_ext >&5
20359
20360fi
20361rm -f conftest.err conftest.$ac_objext \
20362 conftest$ac_exeext conftest.$ac_ext
20363 done
20364fi
20365LIBS=$ac_func_search_save_LIBS
20366fi
20367echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
20368echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
20369if test "$ac_cv_search_getrrsetbyname" != no; then
20370 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
20371 cat >>confdefs.h <<\_ACEOF
20372#define HAVE_GETRRSETBYNAME 1
20373_ACEOF
20374
20375else
20376
20377 # Needed by our getrrsetbyname()
20378 echo "$as_me:$LINENO: checking for library containing res_query" >&5
20379echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
20380if test "${ac_cv_search_res_query+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383 ac_func_search_save_LIBS=$LIBS
20384ac_cv_search_res_query=no
20385cat >conftest.$ac_ext <<_ACEOF
20386/* confdefs.h. */
20387_ACEOF
20388cat confdefs.h >>conftest.$ac_ext
20389cat >>conftest.$ac_ext <<_ACEOF
20390/* end confdefs.h. */
20391
20392/* Override any gcc2 internal prototype to avoid an error. */
20393#ifdef __cplusplus
20394extern "C"
20395#endif
20396/* We use char because int might match the return type of a gcc2
20397 builtin and then its argument prototype would still apply. */
20398char res_query ();
20399int
20400main ()
20401{
20402res_query ();
20403 ;
20404 return 0;
20405}
20406_ACEOF
20407rm -f conftest.$ac_objext conftest$ac_exeext
20408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20409 (eval $ac_link) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest$ac_exeext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_search_res_query="none required"
20430else
20431 echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434fi
20435rm -f conftest.err conftest.$ac_objext \
20436 conftest$ac_exeext conftest.$ac_ext
20437if test "$ac_cv_search_res_query" = no; then
20438 for ac_lib in resolv; do
20439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20440 cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446
20447/* Override any gcc2 internal prototype to avoid an error. */
20448#ifdef __cplusplus
20449extern "C"
20450#endif
20451/* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453char res_query ();
20454int
20455main ()
20456{
20457res_query ();
20458 ;
20459 return 0;
20460}
20461_ACEOF
20462rm -f conftest.$ac_objext conftest$ac_exeext
20463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag"
20472 || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest$ac_exeext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_cv_search_res_query="-l$ac_lib"
20485break
20486else
20487 echo "$as_me: failed program was:" >&5
20488sed 's/^/| /' conftest.$ac_ext >&5
20489
20490fi
20491rm -f conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20493 done
20494fi
20495LIBS=$ac_func_search_save_LIBS
20496fi
20497echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
20498echo "${ECHO_T}$ac_cv_search_res_query" >&6
20499if test "$ac_cv_search_res_query" != no; then
20500 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
20501
20502fi
20503
20504 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
20505echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
20506if test "${ac_cv_search_dn_expand+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509 ac_func_search_save_LIBS=$LIBS
20510ac_cv_search_dn_expand=no
20511cat >conftest.$ac_ext <<_ACEOF
20512/* confdefs.h. */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h. */
20517
20518/* Override any gcc2 internal prototype to avoid an error. */
20519#ifdef __cplusplus
20520extern "C"
20521#endif
20522/* We use char because int might match the return type of a gcc2
20523 builtin and then its argument prototype would still apply. */
20524char dn_expand ();
20525int
20526main ()
20527{
20528dn_expand ();
20529 ;
20530 return 0;
20531}
20532_ACEOF
20533rm -f conftest.$ac_objext conftest$ac_exeext
20534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20535 (eval $ac_link) 2>conftest.er1
20536 ac_status=$?
20537 grep -v '^ *+' conftest.er1 >conftest.err
20538 rm -f conftest.er1
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } &&
20542 { ac_try='test -z "$ac_c_werror_flag"
20543 || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_search_dn_expand="none required"
20556else
20557 echo "$as_me: failed program was:" >&5
20558sed 's/^/| /' conftest.$ac_ext >&5
20559
20560fi
20561rm -f conftest.err conftest.$ac_objext \
20562 conftest$ac_exeext conftest.$ac_ext
20563if test "$ac_cv_search_dn_expand" = no; then
20564 for ac_lib in resolv; do
20565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20566 cat >conftest.$ac_ext <<_ACEOF
20567/* confdefs.h. */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h. */
20572
20573/* Override any gcc2 internal prototype to avoid an error. */
20574#ifdef __cplusplus
20575extern "C"
20576#endif
20577/* We use char because int might match the return type of a gcc2
20578 builtin and then its argument prototype would still apply. */
20579char dn_expand ();
20580int
20581main ()
20582{
20583dn_expand ();
20584 ;
20585 return 0;
20586}
20587_ACEOF
20588rm -f conftest.$ac_objext conftest$ac_exeext
20589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20590 (eval $ac_link) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -z "$ac_c_werror_flag"
20598 || test ! -s conftest.err'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest$ac_exeext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_search_dn_expand="-l$ac_lib"
20611break
20612else
20613 echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
20615
20616fi
20617rm -f conftest.err conftest.$ac_objext \
20618 conftest$ac_exeext conftest.$ac_ext
20619 done
20620fi
20621LIBS=$ac_func_search_save_LIBS
20622fi
20623echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
20624echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
20625if test "$ac_cv_search_dn_expand" != no; then
20626 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
20627
20628fi
20629
20630 echo "$as_me:$LINENO: checking if res_query will link" >&5
20631echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6
20632 cat >conftest.$ac_ext <<_ACEOF
20633/* confdefs.h. */
20634_ACEOF
20635cat confdefs.h >>conftest.$ac_ext
20636cat >>conftest.$ac_ext <<_ACEOF
20637/* end confdefs.h. */
20638
20639/* Override any gcc2 internal prototype to avoid an error. */
20640#ifdef __cplusplus
20641extern "C"
20642#endif
20643/* We use char because int might match the return type of a gcc2
20644 builtin and then its argument prototype would still apply. */
20645char res_query ();
20646int
20647main ()
20648{
20649res_query ();
20650 ;
20651 return 0;
20652}
20653_ACEOF
20654rm -f conftest.$ac_objext conftest$ac_exeext
20655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20656 (eval $ac_link) 2>conftest.er1
20657 ac_status=$?
20658 grep -v '^ *+' conftest.er1 >conftest.err
20659 rm -f conftest.er1
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } &&
20663 { ac_try='test -z "$ac_c_werror_flag"
20664 || test ! -s conftest.err'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest$ac_exeext'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 echo "$as_me:$LINENO: result: yes" >&5
20677echo "${ECHO_T}yes" >&6
20678else
20679 echo "$as_me: failed program was:" >&5
20680sed 's/^/| /' conftest.$ac_ext >&5
20681
20682echo "$as_me:$LINENO: result: no" >&5
20683echo "${ECHO_T}no" >&6
20684 saved_LIBS="$LIBS"
20685 LIBS="$LIBS -lresolv"
20686 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
20687echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689
20690#include <resolv.h>
20691int main()
20692{
20693 res_query (0, 0, 0, 0, 0);
20694 return 0;
20695}
20696
20697_ACEOF
20698rm -f conftest.$ac_objext conftest$ac_exeext
20699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20700 (eval $ac_link) 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag"
20708 || test ! -s conftest.err'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest$ac_exeext'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 LIBS="$LIBS -lresolv"
20721 echo "$as_me:$LINENO: result: yes" >&5
20722echo "${ECHO_T}yes" >&6
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727LIBS="$saved_LIBS"
20728 echo "$as_me:$LINENO: result: no" >&5
20729echo "${ECHO_T}no" >&6
20730fi
20731rm -f conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20733
20734fi
20735rm -f conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737
20738
20739for ac_func in _getshort _getlong
20740do
20741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20742echo "$as_me:$LINENO: checking for $ac_func" >&5
20743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20744if eval "test \"\${$as_ac_var+set}\" = set"; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746else
20747 cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h. */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h. */
20753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20755#define $ac_func innocuous_$ac_func
20756
20757/* System header to define __stub macros and hopefully few prototypes,
20758 which can conflict with char $ac_func (); below.
20759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20760 <limits.h> exists even on freestanding compilers. */
20761
20762#ifdef __STDC__
20763# include <limits.h>
20764#else
20765# include <assert.h>
20766#endif
20767
20768#undef $ac_func
20769
20770/* Override any gcc2 internal prototype to avoid an error. */
20771#ifdef __cplusplus
20772extern "C"
20773{
20774#endif
20775/* We use char because int might match the return type of a gcc2
20776 builtin and then its argument prototype would still apply. */
20777char $ac_func ();
20778/* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20782choke me
20783#else
20784char (*f) () = $ac_func;
20785#endif
20786#ifdef __cplusplus
20787}
20788#endif
20789
20790int
20791main ()
20792{
20793return f != $ac_func;
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext conftest$ac_exeext
20799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20800 (eval $ac_link) 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest$ac_exeext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 eval "$as_ac_var=yes"
20821else
20822 echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
20825eval "$as_ac_var=no"
20826fi
20827rm -f conftest.err conftest.$ac_objext \
20828 conftest$ac_exeext conftest.$ac_ext
20829fi
20830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20832if test `eval echo '${'$as_ac_var'}'` = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20835_ACEOF
20836
20837fi
20838done
20839
20840 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
20841echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
20842if test "${ac_cv_member_HEADER_ad+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844else
20845 cat >conftest.$ac_ext <<_ACEOF
20846/* confdefs.h. */
20847_ACEOF
20848cat confdefs.h >>conftest.$ac_ext
20849cat >>conftest.$ac_ext <<_ACEOF
20850/* end confdefs.h. */
20851#include <arpa/nameser.h>
20852
20853int
20854main ()
20855{
20856static HEADER ac_aggr;
20857if (ac_aggr.ad)
20858return 0;
20859 ;
20860 return 0;
20861}
20862_ACEOF
20863rm -f conftest.$ac_objext
20864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20865 (eval $ac_compile) 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
20872 { ac_try='test -z "$ac_c_werror_flag"
20873 || test ! -s conftest.err'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; } &&
20879 { ac_try='test -s conftest.$ac_objext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_member_HEADER_ad=yes
20886else
20887 echo "$as_me: failed program was:" >&5
20888sed 's/^/| /' conftest.$ac_ext >&5
20889
20890cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h. */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h. */
20896#include <arpa/nameser.h>
20897
20898int
20899main ()
20900{
20901static HEADER ac_aggr;
20902if (sizeof ac_aggr.ad)
20903return 0;
20904 ;
20905 return 0;
20906}
20907_ACEOF
20908rm -f conftest.$ac_objext
20909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20910 (eval $ac_compile) 2>conftest.er1
20911 ac_status=$?
20912 grep -v '^ *+' conftest.er1 >conftest.err
20913 rm -f conftest.er1
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } &&
20917 { ac_try='test -z "$ac_c_werror_flag"
20918 || test ! -s conftest.err'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; } &&
20924 { ac_try='test -s conftest.$ac_objext'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; }; then
20930 ac_cv_member_HEADER_ad=yes
20931else
20932 echo "$as_me: failed program was:" >&5
20933sed 's/^/| /' conftest.$ac_ext >&5
20934
20935ac_cv_member_HEADER_ad=no
20936fi
20937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20938fi
20939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20940fi
20941echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
20942echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
20943if test $ac_cv_member_HEADER_ad = yes; then
20944 cat >>confdefs.h <<\_ACEOF
20945#define HAVE_HEADER_AD 1
20946_ACEOF
20947
20948fi
20949
20950
20951fi
20952
20953
20954# Check whether user wants Kerberos 5 support
20955KRB5_MSG="no"
20956
20957# Check whether --with-kerberos5 or --without-kerberos5 was given.
20958if test "${with_kerberos5+set}" = set; then
20959 withval="$with_kerberos5"
20960 if test "x$withval" != "xno" ; then
20961 if test "x$withval" = "xyes" ; then
20962 KRB5ROOT="/usr/local"
20963 else
20964 KRB5ROOT=${withval}
20965 fi
20966
20967 cat >>confdefs.h <<\_ACEOF
20968#define KRB5 1
20969_ACEOF
20970
20971 KRB5_MSG="yes"
20972
20973 echo "$as_me:$LINENO: checking for krb5-config" >&5
20974echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
20975 if test -x $KRB5ROOT/bin/krb5-config ; then
20976 KRB5CONF=$KRB5ROOT/bin/krb5-config
20977 echo "$as_me:$LINENO: result: $KRB5CONF" >&5
20978echo "${ECHO_T}$KRB5CONF" >&6
20979
20980 echo "$as_me:$LINENO: checking for gssapi support" >&5
20981echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
20982 if $KRB5CONF | grep gssapi >/dev/null ; then
20983 echo "$as_me:$LINENO: result: yes" >&5
20984echo "${ECHO_T}yes" >&6
20985 cat >>confdefs.h <<\_ACEOF
20986#define GSSAPI 1
20987_ACEOF
20988
20989 k5confopts=gssapi
20990 else
20991 echo "$as_me:$LINENO: result: no" >&5
20992echo "${ECHO_T}no" >&6
20993 k5confopts=""
20994 fi
20995 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
20996 K5LIBS="`$KRB5CONF --libs $k5confopts`"
20997 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
20998 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20999echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
21000 cat >conftest.$ac_ext <<_ACEOF
21001/* confdefs.h. */
21002_ACEOF
21003cat confdefs.h >>conftest.$ac_ext
21004cat >>conftest.$ac_ext <<_ACEOF
21005/* end confdefs.h. */
21006 #include <krb5.h>
21007int
21008main ()
21009{
21010 char *tmp = heimdal_version;
21011 ;
21012 return 0;
21013}
21014_ACEOF
21015rm -f conftest.$ac_objext
21016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21017 (eval $ac_compile) 2>conftest.er1
21018 ac_status=$?
21019 grep -v '^ *+' conftest.er1 >conftest.err
21020 rm -f conftest.er1
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
21024 { ac_try='test -z "$ac_c_werror_flag"
21025 || test ! -s conftest.err'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest.$ac_objext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21037 echo "$as_me:$LINENO: result: yes" >&5
21038echo "${ECHO_T}yes" >&6
21039 cat >>confdefs.h <<\_ACEOF
21040#define HEIMDAL 1
21041_ACEOF
21042
21043else
21044 echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047echo "$as_me:$LINENO: result: no" >&5
21048echo "${ECHO_T}no" >&6
21049
21050fi
21051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 else
21053 echo "$as_me:$LINENO: result: no" >&5
21054echo "${ECHO_T}no" >&6
21055 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
21056 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
21057 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21058echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
21059 cat >conftest.$ac_ext <<_ACEOF
21060/* confdefs.h. */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h. */
21065 #include <krb5.h>
21066int
21067main ()
21068{
21069 char *tmp = heimdal_version;
21070 ;
21071 return 0;
21072}
21073_ACEOF
21074rm -f conftest.$ac_objext
21075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21076 (eval $ac_compile) 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -z "$ac_c_werror_flag"
21084 || test ! -s conftest.err'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try='test -s conftest.$ac_objext'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 echo "$as_me:$LINENO: result: yes" >&5
21097echo "${ECHO_T}yes" >&6
21098 cat >>confdefs.h <<\_ACEOF
21099#define HEIMDAL 1
21100_ACEOF
21101
21102 K5LIBS="-lkrb5 -ldes"
21103 K5LIBS="$K5LIBS -lcom_err -lasn1"
21104 echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
21105echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6
21106if test "${ac_cv_lib_roken_net_write+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108else
21109 ac_check_lib_save_LIBS=$LIBS
21110LIBS="-lroken $LIBS"
21111cat >conftest.$ac_ext <<_ACEOF
21112/* confdefs.h. */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
21116/* end confdefs.h. */
21117
21118/* Override any gcc2 internal prototype to avoid an error. */
21119#ifdef __cplusplus
21120extern "C"
21121#endif
21122/* We use char because int might match the return type of a gcc2
21123 builtin and then its argument prototype would still apply. */
21124char net_write ();
21125int
21126main ()
21127{
21128net_write ();
21129 ;
21130 return 0;
21131}
21132_ACEOF
21133rm -f conftest.$ac_objext conftest$ac_exeext
21134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>conftest.er1
21136 ac_status=$?
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } &&
21142 { ac_try='test -z "$ac_c_werror_flag"
21143 || test ! -s conftest.err'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_lib_roken_net_write=yes
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160ac_cv_lib_roken_net_write=no
21161fi
21162rm -f conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
21164LIBS=$ac_check_lib_save_LIBS
21165fi
21166echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
21167echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6
21168if test $ac_cv_lib_roken_net_write = yes; then
21169 K5LIBS="$K5LIBS -lroken"
21170fi
21171
21172
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 echo "$as_me:$LINENO: result: no" >&5
21178echo "${ECHO_T}no" >&6
21179 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
21180
21181
21182fi
21183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21184 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
21185echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
21186if test "${ac_cv_search_dn_expand+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21188else
21189 ac_func_search_save_LIBS=$LIBS
21190ac_cv_search_dn_expand=no
21191cat >conftest.$ac_ext <<_ACEOF
21192/* confdefs.h. */
21193_ACEOF
21194cat confdefs.h >>conftest.$ac_ext
21195cat >>conftest.$ac_ext <<_ACEOF
21196/* end confdefs.h. */
21197
21198/* Override any gcc2 internal prototype to avoid an error. */
21199#ifdef __cplusplus
21200extern "C"
21201#endif
21202/* We use char because int might match the return type of a gcc2
21203 builtin and then its argument prototype would still apply. */
21204char dn_expand ();
21205int
21206main ()
21207{
21208dn_expand ();
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext conftest$ac_exeext
21214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21215 (eval $ac_link) 2>conftest.er1
21216 ac_status=$?
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag"
21223 || test ! -s conftest.err'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } &&
21229 { ac_try='test -s conftest$ac_exeext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_cv_search_dn_expand="none required"
21236else
21237 echo "$as_me: failed program was:" >&5
21238sed 's/^/| /' conftest.$ac_ext >&5
21239
21240fi
21241rm -f conftest.err conftest.$ac_objext \
21242 conftest$ac_exeext conftest.$ac_ext
21243if test "$ac_cv_search_dn_expand" = no; then
21244 for ac_lib in resolv; do
21245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21246 cat >conftest.$ac_ext <<_ACEOF
21247/* confdefs.h. */
21248_ACEOF
21249cat confdefs.h >>conftest.$ac_ext
21250cat >>conftest.$ac_ext <<_ACEOF
21251/* end confdefs.h. */
21252
21253/* Override any gcc2 internal prototype to avoid an error. */
21254#ifdef __cplusplus
21255extern "C"
21256#endif
21257/* We use char because int might match the return type of a gcc2
21258 builtin and then its argument prototype would still apply. */
21259char dn_expand ();
21260int
21261main ()
21262{
21263dn_expand ();
21264 ;
21265 return 0;
21266}
21267_ACEOF
21268rm -f conftest.$ac_objext conftest$ac_exeext
21269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21270 (eval $ac_link) 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -z "$ac_c_werror_flag"
21278 || test ! -s conftest.err'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } &&
21284 { ac_try='test -s conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_search_dn_expand="-l$ac_lib"
21291break
21292else
21293 echo "$as_me: failed program was:" >&5
21294sed 's/^/| /' conftest.$ac_ext >&5
21295
21296fi
21297rm -f conftest.err conftest.$ac_objext \
21298 conftest$ac_exeext conftest.$ac_ext
21299 done
21300fi
21301LIBS=$ac_func_search_save_LIBS
21302fi
21303echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
21304echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
21305if test "$ac_cv_search_dn_expand" != no; then
21306 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
21307
21308fi
21309
21310
21311 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
21312echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
21313if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316 ac_check_lib_save_LIBS=$LIBS
21317LIBS="-lgssapi $K5LIBS $LIBS"
21318cat >conftest.$ac_ext <<_ACEOF
21319/* confdefs.h. */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h. */
21324
21325/* Override any gcc2 internal prototype to avoid an error. */
21326#ifdef __cplusplus
21327extern "C"
21328#endif
21329/* We use char because int might match the return type of a gcc2
21330 builtin and then its argument prototype would still apply. */
21331char gss_init_sec_context ();
21332int
21333main ()
21334{
21335gss_init_sec_context ();
21336 ;
21337 return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext conftest$ac_exeext
21341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342 (eval $ac_link) 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } &&
21349 { ac_try='test -z "$ac_c_werror_flag"
21350 || test ! -s conftest.err'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; } &&
21356 { ac_try='test -s conftest$ac_exeext'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ac_cv_lib_gssapi_gss_init_sec_context=yes
21363else
21364 echo "$as_me: failed program was:" >&5
21365sed 's/^/| /' conftest.$ac_ext >&5
21366
21367ac_cv_lib_gssapi_gss_init_sec_context=no
21368fi
21369rm -f conftest.err conftest.$ac_objext \
21370 conftest$ac_exeext conftest.$ac_ext
21371LIBS=$ac_check_lib_save_LIBS
21372fi
21373echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
21374echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
21375if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
21376 cat >>confdefs.h <<\_ACEOF
21377#define GSSAPI 1
21378_ACEOF
21379
21380 K5LIBS="-lgssapi $K5LIBS"
21381else
21382 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
21383echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
21384if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386else
21387 ac_check_lib_save_LIBS=$LIBS
21388LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
21389cat >conftest.$ac_ext <<_ACEOF
21390/* confdefs.h. */
21391_ACEOF
21392cat confdefs.h >>conftest.$ac_ext
21393cat >>conftest.$ac_ext <<_ACEOF
21394/* end confdefs.h. */
21395
21396/* Override any gcc2 internal prototype to avoid an error. */
21397#ifdef __cplusplus
21398extern "C"
21399#endif
21400/* We use char because int might match the return type of a gcc2
21401 builtin and then its argument prototype would still apply. */
21402char gss_init_sec_context ();
21403int
21404main ()
21405{
21406gss_init_sec_context ();
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext conftest$ac_exeext
21412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag"
21421 || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest$ac_exeext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
21439fi
21440rm -f conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21442LIBS=$ac_check_lib_save_LIBS
21443fi
21444echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
21445echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
21446if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
21447 cat >>confdefs.h <<\_ACEOF
21448#define GSSAPI 1
21449_ACEOF
21450
21451 K5LIBS="-lgssapi_krb5 $K5LIBS"
21452else
21453 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
21454echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
21455fi
21456
21457
21458fi
21459
21460
21461 if test "${ac_cv_header_gssapi_h+set}" = set; then
21462 echo "$as_me:$LINENO: checking for gssapi.h" >&5
21463echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
21464if test "${ac_cv_header_gssapi_h+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21466fi
21467echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
21468echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
21469else
21470 # Is the header compilable?
21471echo "$as_me:$LINENO: checking gssapi.h usability" >&5
21472echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
21473cat >conftest.$ac_ext <<_ACEOF
21474/* confdefs.h. */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h. */
21479$ac_includes_default
21480#include <gssapi.h>
21481_ACEOF
21482rm -f conftest.$ac_objext
21483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484 (eval $ac_compile) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 ac_header_compiler=yes
21505else
21506 echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509ac_header_compiler=no
21510fi
21511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21512echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21513echo "${ECHO_T}$ac_header_compiler" >&6
21514
21515# Is the header present?
21516echo "$as_me:$LINENO: checking gssapi.h presence" >&5
21517echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
21518cat >conftest.$ac_ext <<_ACEOF
21519/* confdefs.h. */
21520_ACEOF
21521cat confdefs.h >>conftest.$ac_ext
21522cat >>conftest.$ac_ext <<_ACEOF
21523/* end confdefs.h. */
21524#include <gssapi.h>
21525_ACEOF
21526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21528 ac_status=$?
21529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } >/dev/null; then
21534 if test -s conftest.err; then
21535 ac_cpp_err=$ac_c_preproc_warn_flag
21536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21537 else
21538 ac_cpp_err=
21539 fi
21540else
21541 ac_cpp_err=yes
21542fi
21543if test -z "$ac_cpp_err"; then
21544 ac_header_preproc=yes
21545else
21546 echo "$as_me: failed program was:" >&5
21547sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 ac_header_preproc=no
21550fi
21551rm -f conftest.err conftest.$ac_ext
21552echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21553echo "${ECHO_T}$ac_header_preproc" >&6
21554
21555# So? What about this header?
21556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21557 yes:no: )
21558 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
21559echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21560 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
21561echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
21562 ac_header_preproc=yes
21563 ;;
21564 no:yes:* )
21565 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
21566echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
21568echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
21570echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
21572echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
21573 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
21574echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
21575 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
21576echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
21577 (
21578 cat <<\_ASBOX
21579## ------------------------------------------ ##
21580## Report this to the AC_PACKAGE_NAME lists. ##
21581## ------------------------------------------ ##
21582_ASBOX
21583 ) |
21584 sed "s/^/$as_me: WARNING: /" >&2
21585 ;;
21586esac
21587echo "$as_me:$LINENO: checking for gssapi.h" >&5
21588echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
21589if test "${ac_cv_header_gssapi_h+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591else
21592 ac_cv_header_gssapi_h=$ac_header_preproc
21593fi
21594echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
21595echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
21596
21597fi
21598if test $ac_cv_header_gssapi_h = yes; then
21599 :
21600else
21601 unset ac_cv_header_gssapi_h
21602 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
21603
21604for ac_header in gssapi.h
21605do
21606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21607if eval "test \"\${$as_ac_Header+set}\" = set"; then
21608 echo "$as_me:$LINENO: checking for $ac_header" >&5
21609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21610if eval "test \"\${$as_ac_Header+set}\" = set"; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612fi
21613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21615else
21616 # Is the header compilable?
21617echo "$as_me:$LINENO: checking $ac_header usability" >&5
21618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21619cat >conftest.$ac_ext <<_ACEOF
21620/* confdefs.h. */
21621_ACEOF
21622cat confdefs.h >>conftest.$ac_ext
21623cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h. */
21625$ac_includes_default
21626#include <$ac_header>
21627_ACEOF
21628rm -f conftest.$ac_objext
21629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21630 (eval $ac_compile) 2>conftest.er1
21631 ac_status=$?
21632 grep -v '^ *+' conftest.er1 >conftest.err
21633 rm -f conftest.er1
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -z "$ac_c_werror_flag"
21638 || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest.$ac_objext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_header_compiler=yes
21651else
21652 echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655ac_header_compiler=no
21656fi
21657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21659echo "${ECHO_T}$ac_header_compiler" >&6
21660
21661# Is the header present?
21662echo "$as_me:$LINENO: checking $ac_header presence" >&5
21663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21664cat >conftest.$ac_ext <<_ACEOF
21665/* confdefs.h. */
21666_ACEOF
21667cat confdefs.h >>conftest.$ac_ext
21668cat >>conftest.$ac_ext <<_ACEOF
21669/* end confdefs.h. */
21670#include <$ac_header>
21671_ACEOF
21672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } >/dev/null; then
21680 if test -s conftest.err; then
21681 ac_cpp_err=$ac_c_preproc_warn_flag
21682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21683 else
21684 ac_cpp_err=
21685 fi
21686else
21687 ac_cpp_err=yes
21688fi
21689if test -z "$ac_cpp_err"; then
21690 ac_header_preproc=yes
21691else
21692 echo "$as_me: failed program was:" >&5
21693sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ac_header_preproc=no
21696fi
21697rm -f conftest.err conftest.$ac_ext
21698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21699echo "${ECHO_T}$ac_header_preproc" >&6
21700
21701# So? What about this header?
21702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21703 yes:no: )
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21708 ac_header_preproc=yes
21709 ;;
21710 no:yes:* )
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21723 (
21724 cat <<\_ASBOX
21725## ------------------------------------------ ##
21726## Report this to the AC_PACKAGE_NAME lists. ##
21727## ------------------------------------------ ##
21728_ASBOX
21729 ) |
21730 sed "s/^/$as_me: WARNING: /" >&2
21731 ;;
21732esac
21733echo "$as_me:$LINENO: checking for $ac_header" >&5
21734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21735if eval "test \"\${$as_ac_Header+set}\" = set"; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737else
21738 eval "$as_ac_Header=\$ac_header_preproc"
21739fi
21740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21742
21743fi
21744if test `eval echo '${'$as_ac_Header'}'` = yes; then
21745 cat >>confdefs.h <<_ACEOF
21746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21747_ACEOF
21748
21749else
21750 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
21751echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
21752
21753fi
21754
21755done
21756
21757
21758
21759fi
21760
21761
21762
21763 oldCPP="$CPPFLAGS"
21764 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
21765 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
21766 echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
21767echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
21768if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21770fi
21771echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
21772echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
21773else
21774 # Is the header compilable?
21775echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
21776echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6
21777cat >conftest.$ac_ext <<_ACEOF
21778/* confdefs.h. */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
21782/* end confdefs.h. */
21783$ac_includes_default
21784#include <gssapi_krb5.h>
21785_ACEOF
21786rm -f conftest.$ac_objext
21787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788 (eval $ac_compile) 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } &&
21795 { ac_try='test -z "$ac_c_werror_flag"
21796 || test ! -s conftest.err'
21797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; } &&
21802 { ac_try='test -s conftest.$ac_objext'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
21808 ac_header_compiler=yes
21809else
21810 echo "$as_me: failed program was:" >&5
21811sed 's/^/| /' conftest.$ac_ext >&5
21812
21813ac_header_compiler=no
21814fi
21815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21817echo "${ECHO_T}$ac_header_compiler" >&6
21818
21819# Is the header present?
21820echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
21821echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6
21822cat >conftest.$ac_ext <<_ACEOF
21823/* confdefs.h. */
21824_ACEOF
21825cat confdefs.h >>conftest.$ac_ext
21826cat >>conftest.$ac_ext <<_ACEOF
21827/* end confdefs.h. */
21828#include <gssapi_krb5.h>
21829_ACEOF
21830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } >/dev/null; then
21838 if test -s conftest.err; then
21839 ac_cpp_err=$ac_c_preproc_warn_flag
21840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21841 else
21842 ac_cpp_err=
21843 fi
21844else
21845 ac_cpp_err=yes
21846fi
21847if test -z "$ac_cpp_err"; then
21848 ac_header_preproc=yes
21849else
21850 echo "$as_me: failed program was:" >&5
21851sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 ac_header_preproc=no
21854fi
21855rm -f conftest.err conftest.$ac_ext
21856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21857echo "${ECHO_T}$ac_header_preproc" >&6
21858
21859# So? What about this header?
21860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21861 yes:no: )
21862 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
21863echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
21865echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
21866 ac_header_preproc=yes
21867 ;;
21868 no:yes:* )
21869 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
21870echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
21872echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
21874echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
21876echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
21878echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
21880echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
21881 (
21882 cat <<\_ASBOX
21883## ------------------------------------------ ##
21884## Report this to the AC_PACKAGE_NAME lists. ##
21885## ------------------------------------------ ##
21886_ASBOX
21887 ) |
21888 sed "s/^/$as_me: WARNING: /" >&2
21889 ;;
21890esac
21891echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
21892echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
21893if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21895else
21896 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
21897fi
21898echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
21899echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
21900
21901fi
21902if test $ac_cv_header_gssapi_krb5_h = yes; then
21903 :
21904else
21905 CPPFLAGS="$oldCPP"
21906fi
21907
21908
21909
21910 fi
21911 if test ! -z "$need_dash_r" ; then
21912 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
21913 fi
21914 if test ! -z "$blibpath" ; then
21915 blibpath="$blibpath:${KRB5ROOT}/lib"
21916 fi
21917 fi
21918
21919
21920
21921for ac_header in gssapi.h gssapi/gssapi.h
21922do
21923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21924if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925 echo "$as_me:$LINENO: checking for $ac_header" >&5
21926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21927if eval "test \"\${$as_ac_Header+set}\" = set"; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929fi
21930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21932else
21933 # Is the header compilable?
21934echo "$as_me:$LINENO: checking $ac_header usability" >&5
21935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21936cat >conftest.$ac_ext <<_ACEOF
21937/* confdefs.h. */
21938_ACEOF
21939cat confdefs.h >>conftest.$ac_ext
21940cat >>conftest.$ac_ext <<_ACEOF
21941/* end confdefs.h. */
21942$ac_includes_default
21943#include <$ac_header>
21944_ACEOF
21945rm -f conftest.$ac_objext
21946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21947 (eval $ac_compile) 2>conftest.er1
21948 ac_status=$?
21949 grep -v '^ *+' conftest.er1 >conftest.err
21950 rm -f conftest.er1
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } &&
21954 { ac_try='test -z "$ac_c_werror_flag"
21955 || test ! -s conftest.err'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } &&
21961 { ac_try='test -s conftest.$ac_objext'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_header_compiler=yes
21968else
21969 echo "$as_me: failed program was:" >&5
21970sed 's/^/| /' conftest.$ac_ext >&5
21971
21972ac_header_compiler=no
21973fi
21974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21976echo "${ECHO_T}$ac_header_compiler" >&6
21977
21978# Is the header present?
21979echo "$as_me:$LINENO: checking $ac_header presence" >&5
21980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21981cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21987#include <$ac_header>
21988_ACEOF
21989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } >/dev/null; then
21997 if test -s conftest.err; then
21998 ac_cpp_err=$ac_c_preproc_warn_flag
21999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22000 else
22001 ac_cpp_err=
22002 fi
22003else
22004 ac_cpp_err=yes
22005fi
22006if test -z "$ac_cpp_err"; then
22007 ac_header_preproc=yes
22008else
22009 echo "$as_me: failed program was:" >&5
22010sed 's/^/| /' conftest.$ac_ext >&5
22011
22012 ac_header_preproc=no
22013fi
22014rm -f conftest.err conftest.$ac_ext
22015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22016echo "${ECHO_T}$ac_header_preproc" >&6
22017
22018# So? What about this header?
22019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22020 yes:no: )
22021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22025 ac_header_preproc=yes
22026 ;;
22027 no:yes:* )
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22040 (
22041 cat <<\_ASBOX
22042## ------------------------------------------ ##
22043## Report this to the AC_PACKAGE_NAME lists. ##
22044## ------------------------------------------ ##
22045_ASBOX
22046 ) |
22047 sed "s/^/$as_me: WARNING: /" >&2
22048 ;;
22049esac
22050echo "$as_me:$LINENO: checking for $ac_header" >&5
22051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22052if eval "test \"\${$as_ac_Header+set}\" = set"; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054else
22055 eval "$as_ac_Header=\$ac_header_preproc"
22056fi
22057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22059
22060fi
22061if test `eval echo '${'$as_ac_Header'}'` = yes; then
22062 cat >>confdefs.h <<_ACEOF
22063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22064_ACEOF
22065
22066fi
22067
22068done
22069
22070
22071
22072for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
22073do
22074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22075if eval "test \"\${$as_ac_Header+set}\" = set"; then
22076 echo "$as_me:$LINENO: checking for $ac_header" >&5
22077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22078if eval "test \"\${$as_ac_Header+set}\" = set"; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22080fi
22081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22083else
22084 # Is the header compilable?
22085echo "$as_me:$LINENO: checking $ac_header usability" >&5
22086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22087cat >conftest.$ac_ext <<_ACEOF
22088/* confdefs.h. */
22089_ACEOF
22090cat confdefs.h >>conftest.$ac_ext
22091cat >>conftest.$ac_ext <<_ACEOF
22092/* end confdefs.h. */
22093$ac_includes_default
22094#include <$ac_header>
22095_ACEOF
22096rm -f conftest.$ac_objext
22097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22098 (eval $ac_compile) 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_header_compiler=yes
22119else
22120 echo "$as_me: failed program was:" >&5
22121sed 's/^/| /' conftest.$ac_ext >&5
22122
22123ac_header_compiler=no
22124fi
22125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22127echo "${ECHO_T}$ac_header_compiler" >&6
22128
22129# Is the header present?
22130echo "$as_me:$LINENO: checking $ac_header presence" >&5
22131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22132cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138#include <$ac_header>
22139_ACEOF
22140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22142 ac_status=$?
22143 grep -v '^ *+' conftest.er1 >conftest.err
22144 rm -f conftest.er1
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } >/dev/null; then
22148 if test -s conftest.err; then
22149 ac_cpp_err=$ac_c_preproc_warn_flag
22150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22151 else
22152 ac_cpp_err=
22153 fi
22154else
22155 ac_cpp_err=yes
22156fi
22157if test -z "$ac_cpp_err"; then
22158 ac_header_preproc=yes
22159else
22160 echo "$as_me: failed program was:" >&5
22161sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 ac_header_preproc=no
22164fi
22165rm -f conftest.err conftest.$ac_ext
22166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167echo "${ECHO_T}$ac_header_preproc" >&6
22168
22169# So? What about this header?
22170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22171 yes:no: )
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22176 ac_header_preproc=yes
22177 ;;
22178 no:yes:* )
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22191 (
22192 cat <<\_ASBOX
22193## ------------------------------------------ ##
22194## Report this to the AC_PACKAGE_NAME lists. ##
22195## ------------------------------------------ ##
22196_ASBOX
22197 ) |
22198 sed "s/^/$as_me: WARNING: /" >&2
22199 ;;
22200esac
22201echo "$as_me:$LINENO: checking for $ac_header" >&5
22202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22203if eval "test \"\${$as_ac_Header+set}\" = set"; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22205else
22206 eval "$as_ac_Header=\$ac_header_preproc"
22207fi
22208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22210
22211fi
22212if test `eval echo '${'$as_ac_Header'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22215_ACEOF
22216
22217fi
22218
22219done
22220
22221
22222
22223for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
22224do
22225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22226if eval "test \"\${$as_ac_Header+set}\" = set"; then
22227 echo "$as_me:$LINENO: checking for $ac_header" >&5
22228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22229if eval "test \"\${$as_ac_Header+set}\" = set"; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231fi
22232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22234else
22235 # Is the header compilable?
22236echo "$as_me:$LINENO: checking $ac_header usability" >&5
22237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22238cat >conftest.$ac_ext <<_ACEOF
22239/* confdefs.h. */
22240_ACEOF
22241cat confdefs.h >>conftest.$ac_ext
22242cat >>conftest.$ac_ext <<_ACEOF
22243/* end confdefs.h. */
22244$ac_includes_default
22245#include <$ac_header>
22246_ACEOF
22247rm -f conftest.$ac_objext
22248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22249 (eval $ac_compile) 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
22256 { ac_try='test -z "$ac_c_werror_flag"
22257 || test ! -s conftest.err'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; } &&
22263 { ac_try='test -s conftest.$ac_objext'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22266 ac_status=$?
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22269 ac_header_compiler=yes
22270else
22271 echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274ac_header_compiler=no
22275fi
22276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22278echo "${ECHO_T}$ac_header_compiler" >&6
22279
22280# Is the header present?
22281echo "$as_me:$LINENO: checking $ac_header presence" >&5
22282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22283cat >conftest.$ac_ext <<_ACEOF
22284/* confdefs.h. */
22285_ACEOF
22286cat confdefs.h >>conftest.$ac_ext
22287cat >>conftest.$ac_ext <<_ACEOF
22288/* end confdefs.h. */
22289#include <$ac_header>
22290_ACEOF
22291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22293 ac_status=$?
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } >/dev/null; then
22299 if test -s conftest.err; then
22300 ac_cpp_err=$ac_c_preproc_warn_flag
22301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22302 else
22303 ac_cpp_err=
22304 fi
22305else
22306 ac_cpp_err=yes
22307fi
22308if test -z "$ac_cpp_err"; then
22309 ac_header_preproc=yes
22310else
22311 echo "$as_me: failed program was:" >&5
22312sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 ac_header_preproc=no
22315fi
22316rm -f conftest.err conftest.$ac_ext
22317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22318echo "${ECHO_T}$ac_header_preproc" >&6
22319
22320# So? What about this header?
22321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22322 yes:no: )
22323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22327 ac_header_preproc=yes
22328 ;;
22329 no:yes:* )
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22333echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22337echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22342 (
22343 cat <<\_ASBOX
22344## ------------------------------------------ ##
22345## Report this to the AC_PACKAGE_NAME lists. ##
22346## ------------------------------------------ ##
22347_ASBOX
22348 ) |
22349 sed "s/^/$as_me: WARNING: /" >&2
22350 ;;
22351esac
22352echo "$as_me:$LINENO: checking for $ac_header" >&5
22353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22354if eval "test \"\${$as_ac_Header+set}\" = set"; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356else
22357 eval "$as_ac_Header=\$ac_header_preproc"
22358fi
22359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22361
22362fi
22363if test `eval echo '${'$as_ac_Header'}'` = yes; then
22364 cat >>confdefs.h <<_ACEOF
22365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22366_ACEOF
22367
22368fi
22369
22370done
22371
22372
22373 LIBS="$LIBS $K5LIBS"
22374 echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
22375echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
22376if test "${ac_cv_search_k_hasafs+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378else
22379 ac_func_search_save_LIBS=$LIBS
22380ac_cv_search_k_hasafs=no
22381cat >conftest.$ac_ext <<_ACEOF
22382/* confdefs.h. */
22383_ACEOF
22384cat confdefs.h >>conftest.$ac_ext
22385cat >>conftest.$ac_ext <<_ACEOF
22386/* end confdefs.h. */
22387
22388/* Override any gcc2 internal prototype to avoid an error. */
22389#ifdef __cplusplus
22390extern "C"
22391#endif
22392/* We use char because int might match the return type of a gcc2
22393 builtin and then its argument prototype would still apply. */
22394char k_hasafs ();
22395int
22396main ()
22397{
22398k_hasafs ();
22399 ;
22400 return 0;
22401}
22402_ACEOF
22403rm -f conftest.$ac_objext conftest$ac_exeext
22404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405 (eval $ac_link) 2>conftest.er1
22406 ac_status=$?
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
22412 { ac_try='test -z "$ac_c_werror_flag"
22413 || test ! -s conftest.err'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 ac_cv_search_k_hasafs="none required"
22426else
22427 echo "$as_me: failed program was:" >&5
22428sed 's/^/| /' conftest.$ac_ext >&5
22429
22430fi
22431rm -f conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22433if test "$ac_cv_search_k_hasafs" = no; then
22434 for ac_lib in kafs; do
22435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22436 cat >conftest.$ac_ext <<_ACEOF
22437/* confdefs.h. */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h. */
22442
22443/* Override any gcc2 internal prototype to avoid an error. */
22444#ifdef __cplusplus
22445extern "C"
22446#endif
22447/* We use char because int might match the return type of a gcc2
22448 builtin and then its argument prototype would still apply. */
22449char k_hasafs ();
22450int
22451main ()
22452{
22453k_hasafs ();
22454 ;
22455 return 0;
22456}
22457_ACEOF
22458rm -f conftest.$ac_objext conftest$ac_exeext
22459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22460 (eval $ac_link) 2>conftest.er1
22461 ac_status=$?
22462 grep -v '^ *+' conftest.er1 >conftest.err
22463 rm -f conftest.er1
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } &&
22467 { ac_try='test -z "$ac_c_werror_flag"
22468 || test ! -s conftest.err'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; } &&
22474 { ac_try='test -s conftest$ac_exeext'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }; then
22480 ac_cv_search_k_hasafs="-l$ac_lib"
22481break
22482else
22483 echo "$as_me: failed program was:" >&5
22484sed 's/^/| /' conftest.$ac_ext >&5
22485
22486fi
22487rm -f conftest.err conftest.$ac_objext \
22488 conftest$ac_exeext conftest.$ac_ext
22489 done
22490fi
22491LIBS=$ac_func_search_save_LIBS
22492fi
22493echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
22494echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
22495if test "$ac_cv_search_k_hasafs" != no; then
22496 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
22497 cat >>confdefs.h <<\_ACEOF
22498#define USE_AFS 1
22499_ACEOF
22500
22501fi
22502
22503 echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5
22504echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6
22505if test "${ac_cv_search_krb5_init_ets+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507else
22508 ac_func_search_save_LIBS=$LIBS
22509ac_cv_search_krb5_init_ets=no
22510cat >conftest.$ac_ext <<_ACEOF
22511/* confdefs.h. */
22512_ACEOF
22513cat confdefs.h >>conftest.$ac_ext
22514cat >>conftest.$ac_ext <<_ACEOF
22515/* end confdefs.h. */
22516
22517/* Override any gcc2 internal prototype to avoid an error. */
22518#ifdef __cplusplus
22519extern "C"
22520#endif
22521/* We use char because int might match the return type of a gcc2
22522 builtin and then its argument prototype would still apply. */
22523char krb5_init_ets ();
22524int
22525main ()
22526{
22527krb5_init_ets ();
22528 ;
22529 return 0;
22530}
22531_ACEOF
22532rm -f conftest.$ac_objext conftest$ac_exeext
22533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22534 (eval $ac_link) 2>conftest.er1
22535 ac_status=$?
22536 grep -v '^ *+' conftest.er1 >conftest.err
22537 rm -f conftest.er1
22538 cat conftest.err >&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } &&
22541 { ac_try='test -z "$ac_c_werror_flag"
22542 || test ! -s conftest.err'
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; } &&
22548 { ac_try='test -s conftest$ac_exeext'
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }; then
22554 ac_cv_search_krb5_init_ets="none required"
22555else
22556 echo "$as_me: failed program was:" >&5
22557sed 's/^/| /' conftest.$ac_ext >&5
22558
22559fi
22560rm -f conftest.err conftest.$ac_objext \
22561 conftest$ac_exeext conftest.$ac_ext
22562if test "$ac_cv_search_krb5_init_ets" = no; then
22563 for ac_lib in $K5LIBS; do
22564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22565 cat >conftest.$ac_ext <<_ACEOF
22566/* confdefs.h. */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h. */
22571
22572/* Override any gcc2 internal prototype to avoid an error. */
22573#ifdef __cplusplus
22574extern "C"
22575#endif
22576/* We use char because int might match the return type of a gcc2
22577 builtin and then its argument prototype would still apply. */
22578char krb5_init_ets ();
22579int
22580main ()
22581{
22582krb5_init_ets ();
22583 ;
22584 return 0;
22585}
22586_ACEOF
22587rm -f conftest.$ac_objext conftest$ac_exeext
22588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22589 (eval $ac_link) 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } &&
22596 { ac_try='test -z "$ac_c_werror_flag"
22597 || test ! -s conftest.err'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } &&
22603 { ac_try='test -s conftest$ac_exeext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_search_krb5_init_ets="-l$ac_lib"
22610break
22611else
22612 echo "$as_me: failed program was:" >&5
22613sed 's/^/| /' conftest.$ac_ext >&5
22614
22615fi
22616rm -f conftest.err conftest.$ac_objext \
22617 conftest$ac_exeext conftest.$ac_ext
22618 done
22619fi
22620LIBS=$ac_func_search_save_LIBS
22621fi
22622echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5
22623echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6
22624if test "$ac_cv_search_krb5_init_ets" != no; then
22625 test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS"
22626 cat >>confdefs.h <<\_ACEOF
22627#define KRB5_INIT_ETS 1
22628_ACEOF
22629
22630fi
22631
22632
22633
22634fi;
22635
22636# Looking for programs, paths and files
22637
22638PRIVSEP_PATH=/var/empty
22639
22640# Check whether --with-privsep-path or --without-privsep-path was given.
22641if test "${with_privsep_path+set}" = set; then
22642 withval="$with_privsep_path"
22643
22644 if test "x$withval" != "$no" ; then
22645 PRIVSEP_PATH=$withval
22646 fi
22647
22648
22649fi;
22650
22651
22652
22653# Check whether --with-xauth or --without-xauth was given.
22654if test "${with_xauth+set}" = set; then
22655 withval="$with_xauth"
22656
22657 if test "x$withval" != "xno" ; then
22658 xauth_path=$withval
22659 fi
22660
22661else
22662
22663 TestPath="$PATH"
22664 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
22665 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
22666 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
22667 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
22668 # Extract the first word of "xauth", so it can be a program name with args.
22669set dummy xauth; ac_word=$2
22670echo "$as_me:$LINENO: checking for $ac_word" >&5
22671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22672if test "${ac_cv_path_xauth_path+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675 case $xauth_path in
22676 [\\/]* | ?:[\\/]*)
22677 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
22678 ;;
22679 *)
22680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22681for as_dir in $TestPath
22682do
22683 IFS=$as_save_IFS
22684 test -z "$as_dir" && as_dir=.
22685 for ac_exec_ext in '' $ac_executable_extensions; do
22686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22687 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
22688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22689 break 2
22690 fi
22691done
22692done
22693
22694 ;;
22695esac
22696fi
22697xauth_path=$ac_cv_path_xauth_path
22698
22699if test -n "$xauth_path"; then
22700 echo "$as_me:$LINENO: result: $xauth_path" >&5
22701echo "${ECHO_T}$xauth_path" >&6
22702else
22703 echo "$as_me:$LINENO: result: no" >&5
22704echo "${ECHO_T}no" >&6
22705fi
22706
22707 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
22708 xauth_path="/usr/openwin/bin/xauth"
22709 fi
22710
22711
22712fi;
22713
22714STRIP_OPT=-s
22715# Check whether --enable-strip or --disable-strip was given.
22716if test "${enable_strip+set}" = set; then
22717 enableval="$enable_strip"
22718
22719 if test "x$enableval" = "xno" ; then
22720 STRIP_OPT=
22721 fi
22722
22723
22724fi;
22725
22726
22727if test -z "$xauth_path" ; then
22728 XAUTH_PATH="undefined"
22729
22730else
22731 cat >>confdefs.h <<_ACEOF
22732#define XAUTH_PATH "$xauth_path"
22733_ACEOF
22734
22735 XAUTH_PATH=$xauth_path
22736
22737fi
22738
22739# Check for mail directory (last resort if we cannot get it from headers)
22740if test ! -z "$MAIL" ; then
22741 maildir=`dirname $MAIL`
22742 cat >>confdefs.h <<_ACEOF
22743#define MAIL_DIRECTORY "$maildir"
22744_ACEOF
22745
22746fi
22747
22748if test -z "$no_dev_ptmx" ; then
22749 if test "x$disable_ptmx_check" != "xyes" ; then
22750 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
22751echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
22752if test "${ac_cv_file___dev_ptmx_+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754else
22755 test "$cross_compiling" = yes &&
22756 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22757echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22758 { (exit 1); exit 1; }; }
22759if test -r ""/dev/ptmx""; then
22760 ac_cv_file___dev_ptmx_=yes
22761else
22762 ac_cv_file___dev_ptmx_=no
22763fi
22764fi
22765echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
22766echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
22767if test $ac_cv_file___dev_ptmx_ = yes; then
22768
22769 cat >>confdefs.h <<_ACEOF
22770#define HAVE_DEV_PTMX 1
22771_ACEOF
22772
22773 have_dev_ptmx=1
22774
22775
22776fi
22777
22778 fi
22779fi
22780echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
22781echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
22782if test "${ac_cv_file___dev_ptc_+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22784else
22785 test "$cross_compiling" = yes &&
22786 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22787echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22788 { (exit 1); exit 1; }; }
22789if test -r ""/dev/ptc""; then
22790 ac_cv_file___dev_ptc_=yes
22791else
22792 ac_cv_file___dev_ptc_=no
22793fi
22794fi
22795echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
22796echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
22797if test $ac_cv_file___dev_ptc_ = yes; then
22798
22799 cat >>confdefs.h <<_ACEOF
22800#define HAVE_DEV_PTS_AND_PTC 1
22801_ACEOF
22802
22803 have_dev_ptc=1
22804
22805
22806fi
22807
22808
22809# Options from here on. Some of these are preset by platform above
22810
22811# Check whether --with-mantype or --without-mantype was given.
22812if test "${with_mantype+set}" = set; then
22813 withval="$with_mantype"
22814
22815 case "$withval" in
22816 man|cat|doc)
22817 MANTYPE=$withval
22818 ;;
22819 *)
22820 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
22821echo "$as_me: error: invalid man type: $withval" >&2;}
22822 { (exit 1); exit 1; }; }
22823 ;;
22824 esac
22825
22826
22827fi;
22828if test -z "$MANTYPE"; then
22829 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
22830 for ac_prog in nroff awf
22831do
22832 # Extract the first word of "$ac_prog", so it can be a program name with args.
22833set dummy $ac_prog; ac_word=$2
22834echo "$as_me:$LINENO: checking for $ac_word" >&5
22835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22836if test "${ac_cv_path_NROFF+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838else
22839 case $NROFF in
22840 [\\/]* | ?:[\\/]*)
22841 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
22842 ;;
22843 *)
22844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22845for as_dir in $TestPath
22846do
22847 IFS=$as_save_IFS
22848 test -z "$as_dir" && as_dir=.
22849 for ac_exec_ext in '' $ac_executable_extensions; do
22850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22851 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
22852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22853 break 2
22854 fi
22855done
22856done
22857
22858 ;;
22859esac
22860fi
22861NROFF=$ac_cv_path_NROFF
22862
22863if test -n "$NROFF"; then
22864 echo "$as_me:$LINENO: result: $NROFF" >&5
22865echo "${ECHO_T}$NROFF" >&6
22866else
22867 echo "$as_me:$LINENO: result: no" >&5
22868echo "${ECHO_T}no" >&6
22869fi
22870
22871 test -n "$NROFF" && break
22872done
22873test -n "$NROFF" || NROFF="/bin/false"
22874
22875 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
22876 MANTYPE=doc
22877 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
22878 MANTYPE=man
22879 else
22880 MANTYPE=cat
22881 fi
22882fi
22883
22884if test "$MANTYPE" = "doc"; then
22885 mansubdir=man;
22886else
22887 mansubdir=$MANTYPE;
22888fi
22889
22890
22891# Check whether to enable MD5 passwords
22892MD5_MSG="no"
22893
22894# Check whether --with-md5-passwords or --without-md5-passwords was given.
22895if test "${with_md5_passwords+set}" = set; then
22896 withval="$with_md5_passwords"
22897
22898 if test "x$withval" != "xno" ; then
22899 cat >>confdefs.h <<\_ACEOF
22900#define HAVE_MD5_PASSWORDS 1
22901_ACEOF
22902
22903 MD5_MSG="yes"
22904 fi
22905
22906
22907fi;
22908
22909# Whether to disable shadow password support
22910
22911# Check whether --with-shadow or --without-shadow was given.
22912if test "${with_shadow+set}" = set; then
22913 withval="$with_shadow"
22914
22915 if test "x$withval" = "xno" ; then
22916 cat >>confdefs.h <<\_ACEOF
22917#define DISABLE_SHADOW 1
22918_ACEOF
22919
22920 disable_shadow=yes
22921 fi
22922
22923
22924fi;
22925
22926if test -z "$disable_shadow" ; then
22927 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
22928echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
22929 cat >conftest.$ac_ext <<_ACEOF
22930/* confdefs.h. */
22931_ACEOF
22932cat confdefs.h >>conftest.$ac_ext
22933cat >>conftest.$ac_ext <<_ACEOF
22934/* end confdefs.h. */
22935
22936#include <sys/types.h>
22937#include <shadow.h>
22938 struct spwd sp;
22939
22940int
22941main ()
22942{
22943 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
22944 ;
22945 return 0;
22946}
22947_ACEOF
22948rm -f conftest.$ac_objext
22949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22950 (eval $ac_compile) 2>conftest.er1
22951 ac_status=$?
22952 grep -v '^ *+' conftest.er1 >conftest.err
22953 rm -f conftest.er1
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } &&
22957 { ac_try='test -z "$ac_c_werror_flag"
22958 || test ! -s conftest.err'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; } &&
22964 { ac_try='test -s conftest.$ac_objext'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; }; then
22970 sp_expire_available=yes
22971else
22972 echo "$as_me: failed program was:" >&5
22973sed 's/^/| /' conftest.$ac_ext >&5
22974
22975
22976
22977fi
22978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22979
22980 if test "x$sp_expire_available" = "xyes" ; then
22981 echo "$as_me:$LINENO: result: yes" >&5
22982echo "${ECHO_T}yes" >&6
22983 cat >>confdefs.h <<\_ACEOF
22984#define HAS_SHADOW_EXPIRE 1
22985_ACEOF
22986
22987 else
22988 echo "$as_me:$LINENO: result: no" >&5
22989echo "${ECHO_T}no" >&6
22990 fi
22991fi
22992
22993# Use ip address instead of hostname in $DISPLAY
22994if test ! -z "$IPADDR_IN_DISPLAY" ; then
22995 DISPLAY_HACK_MSG="yes"
22996 cat >>confdefs.h <<\_ACEOF
22997#define IPADDR_IN_DISPLAY 1
22998_ACEOF
22999
23000else
23001 DISPLAY_HACK_MSG="no"
23002
23003# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
23004if test "${with_ipaddr_display+set}" = set; then
23005 withval="$with_ipaddr_display"
23006
23007 if test "x$withval" != "xno" ; then
23008 cat >>confdefs.h <<\_ACEOF
23009#define IPADDR_IN_DISPLAY 1
23010_ACEOF
23011
23012 DISPLAY_HACK_MSG="yes"
23013 fi
23014
23015
23016fi;
23017fi
23018
23019# check for /etc/default/login and use it if present.
23020# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
23021if test "${enable_etc_default_login+set}" = set; then
23022 enableval="$enable_etc_default_login"
23023
23024else
23025
23026echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
23027echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
23028if test "${ac_cv_file___etc_default_login_+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23030else
23031 test "$cross_compiling" = yes &&
23032 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23033echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23034 { (exit 1); exit 1; }; }
23035if test -r ""/etc/default/login""; then
23036 ac_cv_file___etc_default_login_=yes
23037else
23038 ac_cv_file___etc_default_login_=no
23039fi
23040fi
23041echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
23042echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
23043if test $ac_cv_file___etc_default_login_ = yes; then
23044 external_path_file=/etc/default/login
23045fi
23046
23047
23048if test "x$external_path_file" = "x/etc/default/login"; then
23049 cat >>confdefs.h <<\_ACEOF
23050#define HAVE_ETC_DEFAULT_LOGIN 1
23051_ACEOF
23052
23053fi
23054
23055fi;
23056
23057if test $ac_cv_func_login_getcapbool = "yes" -a \
23058 $ac_cv_header_login_cap_h = "yes" ; then
23059 external_path_file=/etc/login.conf
23060fi
23061
23062# Whether to mess with the default path
23063SERVER_PATH_MSG="(default)"
23064
23065# Check whether --with-default-path or --without-default-path was given.
23066if test "${with_default_path+set}" = set; then
23067 withval="$with_default_path"
23068
23069 if test "x$external_path_file" = "x/etc/login.conf" ; then
23070 { echo "$as_me:$LINENO: WARNING:
23071--with-default-path=PATH has no effect on this system.
23072Edit /etc/login.conf instead." >&5
23073echo "$as_me: WARNING:
23074--with-default-path=PATH has no effect on this system.
23075Edit /etc/login.conf instead." >&2;}
23076 elif test "x$withval" != "xno" ; then
23077 if test ! -z "$external_path_file" ; then
23078 { echo "$as_me:$LINENO: WARNING:
23079--with-default-path=PATH will only be used if PATH is not defined in
23080$external_path_file ." >&5
23081echo "$as_me: WARNING:
23082--with-default-path=PATH will only be used if PATH is not defined in
23083$external_path_file ." >&2;}
23084 fi
23085 user_path="$withval"
23086 SERVER_PATH_MSG="$withval"
23087 fi
23088
23089else
23090 if test "x$external_path_file" = "x/etc/login.conf" ; then
23091 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
23092echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
23093 else
23094 if test ! -z "$external_path_file" ; then
23095 { echo "$as_me:$LINENO: WARNING:
23096If PATH is defined in $external_path_file, ensure the path to scp is included,
23097otherwise scp will not work." >&5
23098echo "$as_me: WARNING:
23099If PATH is defined in $external_path_file, ensure the path to scp is included,
23100otherwise scp will not work." >&2;}
23101 fi
23102 if test "$cross_compiling" = yes; then
23103 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
23104
23105else
23106 cat >conftest.$ac_ext <<_ACEOF
23107/* confdefs.h. */
23108_ACEOF
23109cat confdefs.h >>conftest.$ac_ext
23110cat >>conftest.$ac_ext <<_ACEOF
23111/* end confdefs.h. */
23112
23113/* find out what STDPATH is */
23114#include <stdio.h>
23115#ifdef HAVE_PATHS_H
23116# include <paths.h>
23117#endif
23118#ifndef _PATH_STDPATH
23119# ifdef _PATH_USERPATH /* Irix */
23120# define _PATH_STDPATH _PATH_USERPATH
23121# else
23122# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
23123# endif
23124#endif
23125#include <sys/types.h>
23126#include <sys/stat.h>
23127#include <fcntl.h>
23128#define DATA "conftest.stdpath"
23129
23130main()
23131{
23132 FILE *fd;
23133 int rc;
23134
23135 fd = fopen(DATA,"w");
23136 if(fd == NULL)
23137 exit(1);
23138
23139 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
23140 exit(1);
23141
23142 exit(0);
23143}
23144
23145_ACEOF
23146rm -f conftest$ac_exeext
23147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23148 (eval $ac_link) 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153 (eval $ac_try) 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 user_path=`cat conftest.stdpath`
23158else
23159 echo "$as_me: program exited with status $ac_status" >&5
23160echo "$as_me: failed program was:" >&5
23161sed 's/^/| /' conftest.$ac_ext >&5
23162
23163( exit $ac_status )
23164 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
23165fi
23166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23167fi
23168# make sure $bindir is in USER_PATH so scp will work
23169 t_bindir=`eval echo ${bindir}`
23170 case $t_bindir in
23171 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
23172 esac
23173 case $t_bindir in
23174 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
23175 esac
23176 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
23177 if test $? -ne 0 ; then
23178 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
23179 if test $? -ne 0 ; then
23180 user_path=$user_path:$t_bindir
23181 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
23182echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
23183 fi
23184 fi
23185 fi
23186
23187fi;
23188if test "x$external_path_file" != "x/etc/login.conf" ; then
23189 cat >>confdefs.h <<_ACEOF
23190#define USER_PATH "$user_path"
23191_ACEOF
23192
23193
23194fi
23195
23196# Set superuser path separately to user path
23197
23198# Check whether --with-superuser-path or --without-superuser-path was given.
23199if test "${with_superuser_path+set}" = set; then
23200 withval="$with_superuser_path"
23201
23202 if test "x$withval" != "xno" ; then
23203 cat >>confdefs.h <<_ACEOF
23204#define SUPERUSER_PATH "$withval"
23205_ACEOF
23206
23207 superuser_path=$withval
23208 fi
23209
23210
23211fi;
23212
23213
23214echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
23215echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
23216IPV4_IN6_HACK_MSG="no"
23217
23218# Check whether --with-4in6 or --without-4in6 was given.
23219if test "${with_4in6+set}" = set; then
23220 withval="$with_4in6"
23221
23222 if test "x$withval" != "xno" ; then
23223 echo "$as_me:$LINENO: result: yes" >&5
23224echo "${ECHO_T}yes" >&6
23225 cat >>confdefs.h <<\_ACEOF
23226#define IPV4_IN_IPV6 1
23227_ACEOF
23228
23229 IPV4_IN6_HACK_MSG="yes"
23230 else
23231 echo "$as_me:$LINENO: result: no" >&5
23232echo "${ECHO_T}no" >&6
23233 fi
23234
23235else
23236
23237 if test "x$inet6_default_4in6" = "xyes"; then
23238 echo "$as_me:$LINENO: result: yes (default)" >&5
23239echo "${ECHO_T}yes (default)" >&6
23240 cat >>confdefs.h <<\_ACEOF
23241#define IPV4_IN_IPV6 1
23242_ACEOF
23243
23244 IPV4_IN6_HACK_MSG="yes"
23245 else
23246 echo "$as_me:$LINENO: result: no (default)" >&5
23247echo "${ECHO_T}no (default)" >&6
23248 fi
23249
23250
23251fi;
23252
23253# Whether to enable BSD auth support
23254BSD_AUTH_MSG=no
23255
23256# Check whether --with-bsd-auth or --without-bsd-auth was given.
23257if test "${with_bsd_auth+set}" = set; then
23258 withval="$with_bsd_auth"
23259
23260 if test "x$withval" != "xno" ; then
23261 cat >>confdefs.h <<\_ACEOF
23262#define BSD_AUTH 1
23263_ACEOF
23264
23265 BSD_AUTH_MSG=yes
23266 fi
23267
23268
23269fi;
23270
23271# Where to place sshd.pid
23272piddir=/var/run
23273# make sure the directory exists
23274if test ! -d $piddir ; then
23275 piddir=`eval echo ${sysconfdir}`
23276 case $piddir in
23277 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
23278 esac
23279fi
23280
23281
23282# Check whether --with-pid-dir or --without-pid-dir was given.
23283if test "${with_pid_dir+set}" = set; then
23284 withval="$with_pid_dir"
23285
23286 if test "x$withval" != "xno" ; then
23287 piddir=$withval
23288 if test ! -d $piddir ; then
23289 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
23290echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
23291 fi
23292 fi
23293
23294
23295fi;
23296
23297cat >>confdefs.h <<_ACEOF
23298#define _PATH_SSH_PIDDIR "$piddir"
23299_ACEOF
23300
23301
23302
23303# Check whether --enable-lastlog or --disable-lastlog was given.
23304if test "${enable_lastlog+set}" = set; then
23305 enableval="$enable_lastlog"
23306
23307 if test "x$enableval" = "xno" ; then
23308 cat >>confdefs.h <<\_ACEOF
23309#define DISABLE_LASTLOG 1
23310_ACEOF
23311
23312 fi
23313
23314
23315fi;
23316# Check whether --enable-utmp or --disable-utmp was given.
23317if test "${enable_utmp+set}" = set; then
23318 enableval="$enable_utmp"
23319
23320 if test "x$enableval" = "xno" ; then
23321 cat >>confdefs.h <<\_ACEOF
23322#define DISABLE_UTMP 1
23323_ACEOF
23324
23325 fi
23326
23327
23328fi;
23329# Check whether --enable-utmpx or --disable-utmpx was given.
23330if test "${enable_utmpx+set}" = set; then
23331 enableval="$enable_utmpx"
23332
23333 if test "x$enableval" = "xno" ; then
23334 cat >>confdefs.h <<\_ACEOF
23335#define DISABLE_UTMPX 1
23336_ACEOF
23337
23338 fi
23339
23340
23341fi;
23342# Check whether --enable-wtmp or --disable-wtmp was given.
23343if test "${enable_wtmp+set}" = set; then
23344 enableval="$enable_wtmp"
23345
23346 if test "x$enableval" = "xno" ; then
23347 cat >>confdefs.h <<\_ACEOF
23348#define DISABLE_WTMP 1
23349_ACEOF
23350
23351 fi
23352
23353
23354fi;
23355# Check whether --enable-wtmpx or --disable-wtmpx was given.
23356if test "${enable_wtmpx+set}" = set; then
23357 enableval="$enable_wtmpx"
23358
23359 if test "x$enableval" = "xno" ; then
23360 cat >>confdefs.h <<\_ACEOF
23361#define DISABLE_WTMPX 1
23362_ACEOF
23363
23364 fi
23365
23366
23367fi;
23368# Check whether --enable-libutil or --disable-libutil was given.
23369if test "${enable_libutil+set}" = set; then
23370 enableval="$enable_libutil"
23371
23372 if test "x$enableval" = "xno" ; then
23373 cat >>confdefs.h <<\_ACEOF
23374#define DISABLE_LOGIN 1
23375_ACEOF
23376
23377 fi
23378
23379
23380fi;
23381# Check whether --enable-pututline or --disable-pututline was given.
23382if test "${enable_pututline+set}" = set; then
23383 enableval="$enable_pututline"
23384
23385 if test "x$enableval" = "xno" ; then
23386 cat >>confdefs.h <<\_ACEOF
23387#define DISABLE_PUTUTLINE 1
23388_ACEOF
23389
23390 fi
23391
23392
23393fi;
23394# Check whether --enable-pututxline or --disable-pututxline was given.
23395if test "${enable_pututxline+set}" = set; then
23396 enableval="$enable_pututxline"
23397
23398 if test "x$enableval" = "xno" ; then
23399 cat >>confdefs.h <<\_ACEOF
23400#define DISABLE_PUTUTXLINE 1
23401_ACEOF
23402
23403 fi
23404
23405
23406fi;
23407
23408# Check whether --with-lastlog or --without-lastlog was given.
23409if test "${with_lastlog+set}" = set; then
23410 withval="$with_lastlog"
23411
23412 if test "x$withval" = "xno" ; then
23413 cat >>confdefs.h <<\_ACEOF
23414#define DISABLE_LASTLOG 1
23415_ACEOF
23416
23417 else
23418 conf_lastlog_location=$withval
23419 fi
23420
23421
23422fi;
23423
23424
23425echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
23426echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
23427cat >conftest.$ac_ext <<_ACEOF
23428/* confdefs.h. */
23429_ACEOF
23430cat confdefs.h >>conftest.$ac_ext
23431cat >>conftest.$ac_ext <<_ACEOF
23432/* end confdefs.h. */
23433
23434#include <sys/types.h>
23435#include <utmp.h>
23436#ifdef HAVE_LASTLOG_H
23437# include <lastlog.h>
23438#endif
23439#ifdef HAVE_PATHS_H
23440# include <paths.h>
23441#endif
23442#ifdef HAVE_LOGIN_H
23443# include <login.h>
23444#endif
23445
23446int
23447main ()
23448{
23449 char *lastlog = LASTLOG_FILE;
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext
23455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23456 (eval $ac_compile) 2>conftest.er1
23457 ac_status=$?
23458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
23463 { ac_try='test -z "$ac_c_werror_flag"
23464 || test ! -s conftest.err'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; } &&
23470 { ac_try='test -s conftest.$ac_objext'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23476 echo "$as_me:$LINENO: result: yes" >&5
23477echo "${ECHO_T}yes" >&6
23478else
23479 echo "$as_me: failed program was:" >&5
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
23482
23483 echo "$as_me:$LINENO: result: no" >&5
23484echo "${ECHO_T}no" >&6
23485 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
23486echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
23487 cat >conftest.$ac_ext <<_ACEOF
23488/* confdefs.h. */
23489_ACEOF
23490cat confdefs.h >>conftest.$ac_ext
23491cat >>conftest.$ac_ext <<_ACEOF
23492/* end confdefs.h. */
23493
23494#include <sys/types.h>
23495#include <utmp.h>
23496#ifdef HAVE_LASTLOG_H
23497# include <lastlog.h>
23498#endif
23499#ifdef HAVE_PATHS_H
23500# include <paths.h>
23501#endif
23502
23503int
23504main ()
23505{
23506 char *lastlog = _PATH_LASTLOG;
23507 ;
23508 return 0;
23509}
23510_ACEOF
23511rm -f conftest.$ac_objext
23512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23513 (eval $ac_compile) 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } &&
23520 { ac_try='test -z "$ac_c_werror_flag"
23521 || test ! -s conftest.err'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; } &&
23527 { ac_try='test -s conftest.$ac_objext'
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; }; then
23533 echo "$as_me:$LINENO: result: yes" >&5
23534echo "${ECHO_T}yes" >&6
23535else
23536 echo "$as_me: failed program was:" >&5
23537sed 's/^/| /' conftest.$ac_ext >&5
23538
23539
23540 echo "$as_me:$LINENO: result: no" >&5
23541echo "${ECHO_T}no" >&6
23542 system_lastlog_path=no
23543
23544fi
23545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23546
23547
23548fi
23549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23550
23551if test -z "$conf_lastlog_location"; then
23552 if test x"$system_lastlog_path" = x"no" ; then
23553 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
23554 if (test -d "$f" || test -f "$f") ; then
23555 conf_lastlog_location=$f
23556 fi
23557 done
23558 if test -z "$conf_lastlog_location"; then
23559 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
23560echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
23561 fi
23562 fi
23563fi
23564
23565if test -n "$conf_lastlog_location"; then
23566 cat >>confdefs.h <<_ACEOF
23567#define CONF_LASTLOG_FILE "$conf_lastlog_location"
23568_ACEOF
23569
23570fi
23571
23572echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
23573echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
23574cat >conftest.$ac_ext <<_ACEOF
23575/* confdefs.h. */
23576_ACEOF
23577cat confdefs.h >>conftest.$ac_ext
23578cat >>conftest.$ac_ext <<_ACEOF
23579/* end confdefs.h. */
23580
23581#include <sys/types.h>
23582#include <utmp.h>
23583#ifdef HAVE_PATHS_H
23584# include <paths.h>
23585#endif
23586
23587int
23588main ()
23589{
23590 char *utmp = UTMP_FILE;
23591 ;
23592 return 0;
23593}
23594_ACEOF
23595rm -f conftest.$ac_objext
23596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23597 (eval $ac_compile) 2>conftest.er1
23598 ac_status=$?
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
23604 { ac_try='test -z "$ac_c_werror_flag"
23605 || test ! -s conftest.err'
23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23608 ac_status=$?
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; } &&
23611 { ac_try='test -s conftest.$ac_objext'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617 echo "$as_me:$LINENO: result: yes" >&5
23618echo "${ECHO_T}yes" >&6
23619else
23620 echo "$as_me: failed program was:" >&5
23621sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 echo "$as_me:$LINENO: result: no" >&5
23624echo "${ECHO_T}no" >&6
23625 system_utmp_path=no
23626
23627fi
23628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23629if test -z "$conf_utmp_location"; then
23630 if test x"$system_utmp_path" = x"no" ; then
23631 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
23632 if test -f $f ; then
23633 conf_utmp_location=$f
23634 fi
23635 done
23636 if test -z "$conf_utmp_location"; then
23637 cat >>confdefs.h <<\_ACEOF
23638#define DISABLE_UTMP 1
23639_ACEOF
23640
23641 fi
23642 fi
23643fi
23644if test -n "$conf_utmp_location"; then
23645 cat >>confdefs.h <<_ACEOF
23646#define CONF_UTMP_FILE "$conf_utmp_location"
23647_ACEOF
23648
23649fi
23650
23651echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
23652echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
23653cat >conftest.$ac_ext <<_ACEOF
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
23659
23660#include <sys/types.h>
23661#include <utmp.h>
23662#ifdef HAVE_PATHS_H
23663# include <paths.h>
23664#endif
23665
23666int
23667main ()
23668{
23669 char *wtmp = WTMP_FILE;
23670 ;
23671 return 0;
23672}
23673_ACEOF
23674rm -f conftest.$ac_objext
23675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23676 (eval $ac_compile) 2>conftest.er1
23677 ac_status=$?
23678 grep -v '^ *+' conftest.er1 >conftest.err
23679 rm -f conftest.er1
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } &&
23683 { ac_try='test -z "$ac_c_werror_flag"
23684 || test ! -s conftest.err'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23687 ac_status=$?
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; } &&
23690 { ac_try='test -s conftest.$ac_objext'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23693 ac_status=$?
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 echo "$as_me:$LINENO: result: yes" >&5
23697echo "${ECHO_T}yes" >&6
23698else
23699 echo "$as_me: failed program was:" >&5
23700sed 's/^/| /' conftest.$ac_ext >&5
23701
23702 echo "$as_me:$LINENO: result: no" >&5
23703echo "${ECHO_T}no" >&6
23704 system_wtmp_path=no
23705
23706fi
23707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23708if test -z "$conf_wtmp_location"; then
23709 if test x"$system_wtmp_path" = x"no" ; then
23710 for f in /usr/adm/wtmp /var/log/wtmp; do
23711 if test -f $f ; then
23712 conf_wtmp_location=$f
23713 fi
23714 done
23715 if test -z "$conf_wtmp_location"; then
23716 cat >>confdefs.h <<\_ACEOF
23717#define DISABLE_WTMP 1
23718_ACEOF
23719
23720 fi
23721 fi
23722fi
23723if test -n "$conf_wtmp_location"; then
23724 cat >>confdefs.h <<_ACEOF
23725#define CONF_WTMP_FILE "$conf_wtmp_location"
23726_ACEOF
23727
23728fi
23729
23730
23731echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
23732echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
23733cat >conftest.$ac_ext <<_ACEOF
23734/* confdefs.h. */
23735_ACEOF
23736cat confdefs.h >>conftest.$ac_ext
23737cat >>conftest.$ac_ext <<_ACEOF
23738/* end confdefs.h. */
23739
23740#include <sys/types.h>
23741#include <utmp.h>
23742#ifdef HAVE_UTMPX_H
23743#include <utmpx.h>
23744#endif
23745#ifdef HAVE_PATHS_H
23746# include <paths.h>
23747#endif
23748
23749int
23750main ()
23751{
23752 char *utmpx = UTMPX_FILE;
23753 ;
23754 return 0;
23755}
23756_ACEOF
23757rm -f conftest.$ac_objext
23758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23759 (eval $ac_compile) 2>conftest.er1
23760 ac_status=$?
23761 grep -v '^ *+' conftest.er1 >conftest.err
23762 rm -f conftest.er1
23763 cat conftest.err >&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } &&
23766 { ac_try='test -z "$ac_c_werror_flag"
23767 || test ! -s conftest.err'
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; } &&
23773 { ac_try='test -s conftest.$ac_objext'
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 echo "$as_me:$LINENO: result: yes" >&5
23780echo "${ECHO_T}yes" >&6
23781else
23782 echo "$as_me: failed program was:" >&5
23783sed 's/^/| /' conftest.$ac_ext >&5
23784
23785 echo "$as_me:$LINENO: result: no" >&5
23786echo "${ECHO_T}no" >&6
23787 system_utmpx_path=no
23788
23789fi
23790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23791if test -z "$conf_utmpx_location"; then
23792 if test x"$system_utmpx_path" = x"no" ; then
23793 cat >>confdefs.h <<\_ACEOF
23794#define DISABLE_UTMPX 1
23795_ACEOF
23796
23797 fi
23798else
23799 cat >>confdefs.h <<_ACEOF
23800#define CONF_UTMPX_FILE "$conf_utmpx_location"
23801_ACEOF
23802
23803fi
23804
23805echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
23806echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
23807cat >conftest.$ac_ext <<_ACEOF
23808/* confdefs.h. */
23809_ACEOF
23810cat confdefs.h >>conftest.$ac_ext
23811cat >>conftest.$ac_ext <<_ACEOF
23812/* end confdefs.h. */
23813
23814#include <sys/types.h>
23815#include <utmp.h>
23816#ifdef HAVE_UTMPX_H
23817#include <utmpx.h>
23818#endif
23819#ifdef HAVE_PATHS_H
23820# include <paths.h>
23821#endif
23822
23823int
23824main ()
23825{
23826 char *wtmpx = WTMPX_FILE;
23827 ;
23828 return 0;
23829}
23830_ACEOF
23831rm -f conftest.$ac_objext
23832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23833 (eval $ac_compile) 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } &&
23840 { ac_try='test -z "$ac_c_werror_flag"
23841 || test ! -s conftest.err'
23842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843 (eval $ac_try) 2>&5
23844 ac_status=$?
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); }; } &&
23847 { ac_try='test -s conftest.$ac_objext'
23848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; }; then
23853 echo "$as_me:$LINENO: result: yes" >&5
23854echo "${ECHO_T}yes" >&6
23855else
23856 echo "$as_me: failed program was:" >&5
23857sed 's/^/| /' conftest.$ac_ext >&5
23858
23859 echo "$as_me:$LINENO: result: no" >&5
23860echo "${ECHO_T}no" >&6
23861 system_wtmpx_path=no
23862
23863fi
23864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23865if test -z "$conf_wtmpx_location"; then
23866 if test x"$system_wtmpx_path" = x"no" ; then
23867 cat >>confdefs.h <<\_ACEOF
23868#define DISABLE_WTMPX 1
23869_ACEOF
23870
23871 fi
23872else
23873 cat >>confdefs.h <<_ACEOF
23874#define CONF_WTMPX_FILE "$conf_wtmpx_location"
23875_ACEOF
23876
23877fi
23878
23879
23880if test ! -z "$blibpath" ; then
23881 LDFLAGS="$LDFLAGS $blibflags$blibpath"
23882 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
23883echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
23884fi
23885
23886if test "$PAM_MSG" = yes ; then
23887 LIBS=`echo $LIBS | sed 's/-lpam //'`
23888fi
23889if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
23890 LIBS=`echo $LIBS | sed 's/-ldl //'`
23891fi
23892
23893
23894 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
23895
23896cat >confcache <<\_ACEOF
23897# This file is a shell script that caches the results of configure
23898# tests run on this system so they can be shared between configure
23899# scripts and configure runs, see configure's option --config-cache.
23900# It is not useful on other systems. If it contains results you don't
23901# want to keep, you may remove or edit it.
23902#
23903# config.status only pays attention to the cache file if you give it
23904# the --recheck option to rerun configure.
23905#
23906# `ac_cv_env_foo' variables (set or unset) will be overridden when
23907# loading this file, other *unset* `ac_cv_foo' will be assigned the
23908# following values.
23909
23910_ACEOF
23911
23912# The following way of writing the cache mishandles newlines in values,
23913# but we know of no workaround that is simple, portable, and efficient.
23914# So, don't put newlines in cache variables' values.
23915# Ultrix sh set writes to stderr and can't be redirected directly,
23916# and sets the high bit in the cache file unless we assign to the vars.
23917{
23918 (set) 2>&1 |
23919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23920 *ac_space=\ *)
23921 # `set' does not quote correctly, so add quotes (double-quote
23922 # substitution turns \\\\ into \\, and sed turns \\ into \).
23923 sed -n \
23924 "s/'/'\\\\''/g;
23925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23926 ;;
23927 *)
23928 # `set' quotes correctly as required by POSIX, so do not add quotes.
23929 sed -n \
23930 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23931 ;;
23932 esac;
23933} |
23934 sed '
23935 t clear
23936 : clear
23937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23938 t end
23939 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23940 : end' >>confcache
23941if diff $cache_file confcache >/dev/null 2>&1; then :; else
23942 if test -w $cache_file; then
23943 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23944 cat confcache >$cache_file
23945 else
23946 echo "not updating unwritable cache $cache_file"
23947 fi
23948fi
23949rm -f confcache
23950
23951test "x$prefix" = xNONE && prefix=$ac_default_prefix
23952# Let make expand exec_prefix.
23953test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23954
23955# VPATH may cause trouble with some makes, so we remove $(srcdir),
23956# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23957# trailing colons and then remove the whole line if VPATH becomes empty
23958# (actually we leave an empty line to preserve line numbers).
23959if test "x$srcdir" = x.; then
23960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23961s/:*\$(srcdir):*/:/;
23962s/:*\${srcdir}:*/:/;
23963s/:*@srcdir@:*/:/;
23964s/^\([^=]*=[ ]*\):*/\1/;
23965s/:*$//;
23966s/^[^=]*=[ ]*$//;
23967}'
23968fi
23969
23970DEFS=-DHAVE_CONFIG_H
23971
23972ac_libobjs=
23973ac_ltlibobjs=
23974for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23975 # 1. Remove the extension, and $U if already installed.
23976 ac_i=`echo "$ac_i" |
23977 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23978 # 2. Add them.
23979 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23980 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23981done
23982LIBOBJS=$ac_libobjs
23983
23984LTLIBOBJS=$ac_ltlibobjs
23985
23986
23987
23988: ${CONFIG_STATUS=./config.status}
23989ac_clean_files_save=$ac_clean_files
23990ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23991{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23992echo "$as_me: creating $CONFIG_STATUS" >&6;}
23993cat >$CONFIG_STATUS <<_ACEOF
23994#! $SHELL
23995# Generated by $as_me.
23996# Run this file to recreate the current configuration.
23997# Compiler output produced by configure, useful for debugging
23998# configure, is in config.log if it exists.
23999
24000debug=false
24001ac_cs_recheck=false
24002ac_cs_silent=false
24003SHELL=\${CONFIG_SHELL-$SHELL}
24004_ACEOF
24005
24006cat >>$CONFIG_STATUS <<\_ACEOF
24007## --------------------- ##
24008## M4sh Initialization. ##
24009## --------------------- ##
24010
24011# Be Bourne compatible
24012if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24013 emulate sh
24014 NULLCMD=:
24015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24016 # is contrary to our usage. Disable this feature.
24017 alias -g '${1+"$@"}'='"$@"'
24018elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24019 set -o posix
24020fi
24021DUALCASE=1; export DUALCASE # for MKS sh
24022
24023# Support unset when possible.
24024if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24025 as_unset=unset
24026else
24027 as_unset=false
24028fi
24029
24030
24031# Work around bugs in pre-3.0 UWIN ksh.
24032$as_unset ENV MAIL MAILPATH
24033PS1='$ '
24034PS2='> '
24035PS4='+ '
24036
24037# NLS nuisances.
24038for as_var in \
24039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24041 LC_TELEPHONE LC_TIME
24042do
24043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24044 eval $as_var=C; export $as_var
24045 else
24046 $as_unset $as_var
24047 fi
24048done
24049
24050# Required to use basename.
24051if expr a : '\(a\)' >/dev/null 2>&1; then
24052 as_expr=expr
24053else
24054 as_expr=false
24055fi
24056
24057if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24058 as_basename=basename
24059else
24060 as_basename=false
24061fi
24062
24063
24064# Name of the executable.
24065as_me=`$as_basename "$0" ||
24066$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24067 X"$0" : 'X\(//\)$' \| \
24068 X"$0" : 'X\(/\)$' \| \
24069 . : '\(.\)' 2>/dev/null ||
24070echo X/"$0" |
24071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24072 /^X\/\(\/\/\)$/{ s//\1/; q; }
24073 /^X\/\(\/\).*/{ s//\1/; q; }
24074 s/.*/./; q'`
24075
24076
24077# PATH needs CR, and LINENO needs CR and PATH.
24078# Avoid depending upon Character Ranges.
24079as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24081as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24082as_cr_digits='0123456789'
24083as_cr_alnum=$as_cr_Letters$as_cr_digits
24084
24085# The user is always right.
24086if test "${PATH_SEPARATOR+set}" != set; then
24087 echo "#! /bin/sh" >conf$$.sh
24088 echo "exit 0" >>conf$$.sh
24089 chmod +x conf$$.sh
24090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24091 PATH_SEPARATOR=';'
24092 else
24093 PATH_SEPARATOR=:
24094 fi
24095 rm -f conf$$.sh
24096fi
24097
24098
24099 as_lineno_1=$LINENO
24100 as_lineno_2=$LINENO
24101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24102 test "x$as_lineno_1" != "x$as_lineno_2" &&
24103 test "x$as_lineno_3" = "x$as_lineno_2" || {
24104 # Find who we are. Look in the path if we contain no path at all
24105 # relative or not.
24106 case $0 in
24107 *[\\/]* ) as_myself=$0 ;;
24108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24109for as_dir in $PATH
24110do
24111 IFS=$as_save_IFS
24112 test -z "$as_dir" && as_dir=.
24113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24114done
24115
24116 ;;
24117 esac
24118 # We did not find ourselves, most probably we were run as `sh COMMAND'
24119 # in which case we are not to be found in the path.
24120 if test "x$as_myself" = x; then
24121 as_myself=$0
24122 fi
24123 if test ! -f "$as_myself"; then
24124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24125echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24126 { (exit 1); exit 1; }; }
24127 fi
24128 case $CONFIG_SHELL in
24129 '')
24130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24132do
24133 IFS=$as_save_IFS
24134 test -z "$as_dir" && as_dir=.
24135 for as_base in sh bash ksh sh5; do
24136 case $as_dir in
24137 /*)
24138 if ("$as_dir/$as_base" -c '
24139 as_lineno_1=$LINENO
24140 as_lineno_2=$LINENO
24141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24142 test "x$as_lineno_1" != "x$as_lineno_2" &&
24143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24146 CONFIG_SHELL=$as_dir/$as_base
24147 export CONFIG_SHELL
24148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24149 fi;;
24150 esac
24151 done
24152done
24153;;
24154 esac
24155
24156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24157 # uniformly replaced by the line number. The first 'sed' inserts a
24158 # line-number line before each line; the second 'sed' does the real
24159 # work. The second script uses 'N' to pair each line-number line
24160 # with the numbered line, and appends trailing '-' during
24161 # substitution so that $LINENO is not a special case at line end.
24162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24164 sed '=' <$as_myself |
24165 sed '
24166 N
24167 s,$,-,
24168 : loop
24169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24170 t loop
24171 s,-$,,
24172 s,^['$as_cr_digits']*\n,,
24173 ' >$as_me.lineno &&
24174 chmod +x $as_me.lineno ||
24175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24176echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24177 { (exit 1); exit 1; }; }
24178
24179 # Don't try to exec as it changes $[0], causing all sort of problems
24180 # (the dirname of $[0] is not the place where we might find the
24181 # original and so on. Autoconf is especially sensible to this).
24182 . ./$as_me.lineno
24183 # Exit status is that of the last command.
24184 exit
24185}
24186
24187
24188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24189 *c*,-n*) ECHO_N= ECHO_C='
24190' ECHO_T=' ' ;;
24191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24193esac
24194
24195if expr a : '\(a\)' >/dev/null 2>&1; then
24196 as_expr=expr
24197else
24198 as_expr=false
24199fi
24200
24201rm -f conf$$ conf$$.exe conf$$.file
24202echo >conf$$.file
24203if ln -s conf$$.file conf$$ 2>/dev/null; then
24204 # We could just check for DJGPP; but this test a) works b) is more generic
24205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24206 if test -f conf$$.exe; then
24207 # Don't use ln at all; we don't have any links
24208 as_ln_s='cp -p'
24209 else
24210 as_ln_s='ln -s'
24211 fi
24212elif ln conf$$.file conf$$ 2>/dev/null; then
24213 as_ln_s=ln
24214else
24215 as_ln_s='cp -p'
24216fi
24217rm -f conf$$ conf$$.exe conf$$.file
24218
24219if mkdir -p . 2>/dev/null; then
24220 as_mkdir_p=:
24221else
24222 test -d ./-p && rmdir ./-p
24223 as_mkdir_p=false
24224fi
24225
24226as_executable_p="test -f"
24227
24228# Sed expression to map a string onto a valid CPP name.
24229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24230
24231# Sed expression to map a string onto a valid variable name.
24232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24233
24234
24235# IFS
24236# We need space, tab and new line, in precisely that order.
24237as_nl='
24238'
24239IFS=" $as_nl"
24240
24241# CDPATH.
24242$as_unset CDPATH
24243
24244exec 6>&1
24245
24246# Open the log real soon, to keep \$[0] and so on meaningful, and to
24247# report actual input values of CONFIG_FILES etc. instead of their
24248# values after options handling. Logging --version etc. is OK.
24249exec 5>>config.log
24250{
24251 echo
24252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF
24253## Running $as_me. ##
24254BOXI_EOF
24255} >&5
24256cat >&5 <<_CSEOF
24257
24258This file was extended by $as_me, which was
24259generated by GNU Autoconf 2.59. Invocation command line was
24260
24261 CONFIG_FILES = $CONFIG_FILES
24262 CONFIG_HEADERS = $CONFIG_HEADERS
24263 CONFIG_LINKS = $CONFIG_LINKS
24264 CONFIG_COMMANDS = $CONFIG_COMMANDS
24265 $ $0 $@
24266
24267_CSEOF
24268echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24269echo >&5
24270_ACEOF
24271
24272# Files that config.status was made for.
24273if test -n "$ac_config_files"; then
24274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24275fi
24276
24277if test -n "$ac_config_headers"; then
24278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24279fi
24280
24281if test -n "$ac_config_links"; then
24282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24283fi
24284
24285if test -n "$ac_config_commands"; then
24286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24287fi
24288
24289cat >>$CONFIG_STATUS <<\_ACEOF
24290
24291ac_cs_usage="\
24292\`$as_me' instantiates files from templates according to the
24293current configuration.
24294
24295Usage: $0 [OPTIONS] [FILE]...
24296
24297 -h, --help print this help, then exit
24298 -V, --version print version number, then exit
24299 -q, --quiet do not print progress messages
24300 -d, --debug don't remove temporary files
24301 --recheck update $as_me by reconfiguring in the same conditions
24302 --file=FILE[:TEMPLATE]
24303 instantiate the configuration file FILE
24304 --header=FILE[:TEMPLATE]
24305 instantiate the configuration header FILE
24306
24307Configuration files:
24308$config_files
24309
24310Configuration headers:
24311$config_headers
24312
24313Report bugs to <bug-autoconf@gnu.org>."
24314_ACEOF
24315
24316cat >>$CONFIG_STATUS <<_ACEOF
24317ac_cs_version="\\
24318config.status
24319configured by $0, generated by GNU Autoconf 2.59,
24320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24321
24322Copyright (C) 2003 Free Software Foundation, Inc.
24323This config.status script is free software; the Free Software Foundation
24324gives unlimited permission to copy, distribute and modify it."
24325srcdir=$srcdir
24326INSTALL="$INSTALL"
24327_ACEOF
24328
24329cat >>$CONFIG_STATUS <<\_ACEOF
24330# If no file are specified by the user, then we need to provide default
24331# value. By we need to know if files were specified by the user.
24332ac_need_defaults=:
24333while test $# != 0
24334do
24335 case $1 in
24336 --*=*)
24337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24339 ac_shift=:
24340 ;;
24341 -*)
24342 ac_option=$1
24343 ac_optarg=$2
24344 ac_shift=shift
24345 ;;
24346 *) # This is not an option, so the user has probably given explicit
24347 # arguments.
24348 ac_option=$1
24349 ac_need_defaults=false;;
24350 esac
24351
24352 case $ac_option in
24353 # Handling of the options.
24354_ACEOF
24355cat >>$CONFIG_STATUS <<\_ACEOF
24356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24357 ac_cs_recheck=: ;;
24358 --version | --vers* | -V )
24359 echo "$ac_cs_version"; exit 0 ;;
24360 --he | --h)
24361 # Conflict between --help and --header
24362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24363Try \`$0 --help' for more information." >&5
24364echo "$as_me: error: ambiguous option: $1
24365Try \`$0 --help' for more information." >&2;}
24366 { (exit 1); exit 1; }; };;
24367 --help | --hel | -h )
24368 echo "$ac_cs_usage"; exit 0 ;;
24369 --debug | --d* | -d )
24370 debug=: ;;
24371 --file | --fil | --fi | --f )
24372 $ac_shift
24373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24374 ac_need_defaults=false;;
24375 --header | --heade | --head | --hea )
24376 $ac_shift
24377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24378 ac_need_defaults=false;;
24379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24381 ac_cs_silent=: ;;
24382
24383 # This is an error.
24384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24385Try \`$0 --help' for more information." >&5
24386echo "$as_me: error: unrecognized option: $1
24387Try \`$0 --help' for more information." >&2;}
24388 { (exit 1); exit 1; }; } ;;
24389
24390 *) ac_config_targets="$ac_config_targets $1" ;;
24391
24392 esac
24393 shift
24394done
24395
24396ac_configure_extra_args=
24397
24398if $ac_cs_silent; then
24399 exec 6>/dev/null
24400 ac_configure_extra_args="$ac_configure_extra_args --silent"
24401fi
24402
24403_ACEOF
24404cat >>$CONFIG_STATUS <<_ACEOF
24405if \$ac_cs_recheck; then
24406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24408fi
24409
24410_ACEOF
24411
24412
24413
24414
24415
24416cat >>$CONFIG_STATUS <<\_ACEOF
24417for ac_config_target in $ac_config_targets
24418do
24419 case "$ac_config_target" in
24420 # Handling of arguments.
24421 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24422 "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
24423 "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
24424 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
24425 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
24426 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
24427 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24428 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24429echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24430 { (exit 1); exit 1; }; };;
24431 esac
24432done
24433
24434# If the user did not use the arguments to specify the items to instantiate,
24435# then the envvar interface is used. Set only those that are not.
24436# We use the long form for the default assignment because of an extremely
24437# bizarre bug on SunOS 4.1.3.
24438if $ac_need_defaults; then
24439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24441fi
24442
24443# Have a temporary directory for convenience. Make it in the build tree
24444# simply because there is no reason to put it here, and in addition,
24445# creating and moving files from /tmp can sometimes cause problems.
24446# Create a temporary directory, and hook for its removal unless debugging.
24447$debug ||
24448{
24449 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24450 trap '{ (exit 1); exit 1; }' 1 2 13 15
24451}
24452
24453# Create a (secure) tmp directory for tmp files.
24454
24455{
24456 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24457 test -n "$tmp" && test -d "$tmp"
24458} ||
24459{
24460 tmp=./confstat$$-$RANDOM
24461 (umask 077 && mkdir $tmp)
24462} ||
24463{
24464 echo "$me: cannot create a temporary directory in ." >&2
24465 { (exit 1); exit 1; }
24466}
24467
24468_ACEOF
24469
24470cat >>$CONFIG_STATUS <<_ACEOF
24471
24472#
24473# CONFIG_FILES section.
24474#
24475
24476# No need to generate the scripts if there are no CONFIG_FILES.
24477# This happens for instance when ./config.status config.h
24478if test -n "\$CONFIG_FILES"; then
24479 # Protect against being on the right side of a sed subst in config.status.
24480 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24481 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24482s,@SHELL@,$SHELL,;t t
24483s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24484s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24485s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24486s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24487s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24488s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24489s,@exec_prefix@,$exec_prefix,;t t
24490s,@prefix@,$prefix,;t t
24491s,@program_transform_name@,$program_transform_name,;t t
24492s,@bindir@,$bindir,;t t
24493s,@sbindir@,$sbindir,;t t
24494s,@libexecdir@,$libexecdir,;t t
24495s,@datadir@,$datadir,;t t
24496s,@sysconfdir@,$sysconfdir,;t t
24497s,@sharedstatedir@,$sharedstatedir,;t t
24498s,@localstatedir@,$localstatedir,;t t
24499s,@libdir@,$libdir,;t t
24500s,@includedir@,$includedir,;t t
24501s,@oldincludedir@,$oldincludedir,;t t
24502s,@infodir@,$infodir,;t t
24503s,@mandir@,$mandir,;t t
24504s,@build_alias@,$build_alias,;t t
24505s,@host_alias@,$host_alias,;t t
24506s,@target_alias@,$target_alias,;t t
24507s,@DEFS@,$DEFS,;t t
24508s,@ECHO_C@,$ECHO_C,;t t
24509s,@ECHO_N@,$ECHO_N,;t t
24510s,@ECHO_T@,$ECHO_T,;t t
24511s,@LIBS@,$LIBS,;t t
24512s,@CC@,$CC,;t t
24513s,@CFLAGS@,$CFLAGS,;t t
24514s,@LDFLAGS@,$LDFLAGS,;t t
24515s,@CPPFLAGS@,$CPPFLAGS,;t t
24516s,@ac_ct_CC@,$ac_ct_CC,;t t
24517s,@EXEEXT@,$EXEEXT,;t t
24518s,@OBJEXT@,$OBJEXT,;t t
24519s,@build@,$build,;t t
24520s,@build_cpu@,$build_cpu,;t t
24521s,@build_vendor@,$build_vendor,;t t
24522s,@build_os@,$build_os,;t t
24523s,@host@,$host,;t t
24524s,@host_cpu@,$host_cpu,;t t
24525s,@host_vendor@,$host_vendor,;t t
24526s,@host_os@,$host_os,;t t
24527s,@AWK@,$AWK,;t t
24528s,@CPP@,$CPP,;t t
24529s,@RANLIB@,$RANLIB,;t t
24530s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24531s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24532s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24533s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24534s,@AR@,$AR,;t t
24535s,@CAT@,$CAT,;t t
24536s,@KILL@,$KILL,;t t
24537s,@PERL@,$PERL,;t t
24538s,@SED@,$SED,;t t
24539s,@ENT@,$ENT,;t t
24540s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
24541s,@SH@,$SH,;t t
24542s,@TEST_SHELL@,$TEST_SHELL,;t t
24543s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t
24544s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t
24545s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t
24546s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
24547s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
24548s,@LD@,$LD,;t t
24549s,@EGREP@,$EGREP,;t t
24550s,@LIBWRAP@,$LIBWRAP,;t t
24551s,@LIBPAM@,$LIBPAM,;t t
24552s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
24553s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
24554s,@PROG_LS@,$PROG_LS,;t t
24555s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
24556s,@PROG_ARP@,$PROG_ARP,;t t
24557s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
24558s,@PROG_JSTAT@,$PROG_JSTAT,;t t
24559s,@PROG_PS@,$PROG_PS,;t t
24560s,@PROG_SAR@,$PROG_SAR,;t t
24561s,@PROG_W@,$PROG_W,;t t
24562s,@PROG_WHO@,$PROG_WHO,;t t
24563s,@PROG_LAST@,$PROG_LAST,;t t
24564s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
24565s,@PROG_DF@,$PROG_DF,;t t
24566s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
24567s,@PROG_UPTIME@,$PROG_UPTIME,;t t
24568s,@PROG_IPCS@,$PROG_IPCS,;t t
24569s,@PROG_TAIL@,$PROG_TAIL,;t t
24570s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
24571s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
24572s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
24573s,@xauth_path@,$xauth_path,;t t
24574s,@STRIP_OPT@,$STRIP_OPT,;t t
24575s,@XAUTH_PATH@,$XAUTH_PATH,;t t
24576s,@NROFF@,$NROFF,;t t
24577s,@MANTYPE@,$MANTYPE,;t t
24578s,@mansubdir@,$mansubdir,;t t
24579s,@user_path@,$user_path,;t t
24580s,@piddir@,$piddir,;t t
24581s,@LIBOBJS@,$LIBOBJS,;t t
24582s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24583CEOF
24584
24585_ACEOF
24586
24587 cat >>$CONFIG_STATUS <<\_ACEOF
24588 # Split the substitutions into bite-sized pieces for seds with
24589 # small command number limits, like on Digital OSF/1 and HP-UX.
24590 ac_max_sed_lines=48
24591 ac_sed_frag=1 # Number of current file.
24592 ac_beg=1 # First line for current file.
24593 ac_end=$ac_max_sed_lines # Line after last line for current file.
24594 ac_more_lines=:
24595 ac_sed_cmds=
24596 while $ac_more_lines; do
24597 if test $ac_beg -gt 1; then
24598 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24599 else
24600 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24601 fi
24602 if test ! -s $tmp/subs.frag; then
24603 ac_more_lines=false
24604 else
24605 # The purpose of the label and of the branching condition is to
24606 # speed up the sed processing (if there are no `@' at all, there
24607 # is no need to browse any of the substitutions).
24608 # These are the two extra sed commands mentioned above.
24609 (echo ':t
24610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24611 if test -z "$ac_sed_cmds"; then
24612 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24613 else
24614 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24615 fi
24616 ac_sed_frag=`expr $ac_sed_frag + 1`
24617 ac_beg=$ac_end
24618 ac_end=`expr $ac_end + $ac_max_sed_lines`
24619 fi
24620 done
24621 if test -z "$ac_sed_cmds"; then
24622 ac_sed_cmds=cat
24623 fi
24624fi # test -n "$CONFIG_FILES"
24625
24626_ACEOF
24627cat >>$CONFIG_STATUS <<\_ACEOF
24628for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24630 case $ac_file in
24631 - | *:- | *:-:* ) # input from stdin
24632 cat >$tmp/stdin
24633 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24635 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24637 * ) ac_file_in=$ac_file.in ;;
24638 esac
24639
24640 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24641 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24643 X"$ac_file" : 'X\(//\)[^/]' \| \
24644 X"$ac_file" : 'X\(//\)$' \| \
24645 X"$ac_file" : 'X\(/\)' \| \
24646 . : '\(.\)' 2>/dev/null ||
24647echo X"$ac_file" |
24648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24650 /^X\(\/\/\)$/{ s//\1/; q; }
24651 /^X\(\/\).*/{ s//\1/; q; }
24652 s/.*/./; q'`
24653 { if $as_mkdir_p; then
24654 mkdir -p "$ac_dir"
24655 else
24656 as_dir="$ac_dir"
24657 as_dirs=
24658 while test ! -d "$as_dir"; do
24659 as_dirs="$as_dir $as_dirs"
24660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24662 X"$as_dir" : 'X\(//\)[^/]' \| \
24663 X"$as_dir" : 'X\(//\)$' \| \
24664 X"$as_dir" : 'X\(/\)' \| \
24665 . : '\(.\)' 2>/dev/null ||
24666echo X"$as_dir" |
24667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24669 /^X\(\/\/\)$/{ s//\1/; q; }
24670 /^X\(\/\).*/{ s//\1/; q; }
24671 s/.*/./; q'`
24672 done
24673 test ! -n "$as_dirs" || mkdir $as_dirs
24674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24675echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24676 { (exit 1); exit 1; }; }; }
24677
24678 ac_builddir=.
24679
24680if test "$ac_dir" != .; then
24681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24682 # A "../" for each directory in $ac_dir_suffix.
24683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24684else
24685 ac_dir_suffix= ac_top_builddir=
24686fi
24687
24688case $srcdir in
24689 .) # No --srcdir option. We are building in place.
24690 ac_srcdir=.
24691 if test -z "$ac_top_builddir"; then
24692 ac_top_srcdir=.
24693 else
24694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24695 fi ;;
24696 [\\/]* | ?:[\\/]* ) # Absolute path.
24697 ac_srcdir=$srcdir$ac_dir_suffix;
24698 ac_top_srcdir=$srcdir ;;
24699 *) # Relative path.
24700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24702esac
24703
24704# Do not use `cd foo && pwd` to compute absolute paths, because
24705# the directories may not exist.
24706case `pwd` in
24707.) ac_abs_builddir="$ac_dir";;
24708*)
24709 case "$ac_dir" in
24710 .) ac_abs_builddir=`pwd`;;
24711 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24712 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24713 esac;;
24714esac
24715case $ac_abs_builddir in
24716.) ac_abs_top_builddir=${ac_top_builddir}.;;
24717*)
24718 case ${ac_top_builddir}. in
24719 .) ac_abs_top_builddir=$ac_abs_builddir;;
24720 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24721 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24722 esac;;
24723esac
24724case $ac_abs_builddir in
24725.) ac_abs_srcdir=$ac_srcdir;;
24726*)
24727 case $ac_srcdir in
24728 .) ac_abs_srcdir=$ac_abs_builddir;;
24729 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24730 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24731 esac;;
24732esac
24733case $ac_abs_builddir in
24734.) ac_abs_top_srcdir=$ac_top_srcdir;;
24735*)
24736 case $ac_top_srcdir in
24737 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24738 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24739 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24740 esac;;
24741esac
24742
24743
24744 case $INSTALL in
24745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24746 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24747 esac
24748
24749 if test x"$ac_file" != x-; then
24750 { echo "$as_me:$LINENO: creating $ac_file" >&5
24751echo "$as_me: creating $ac_file" >&6;}
24752 rm -f "$ac_file"
24753 fi
24754 # Let's still pretend it is `configure' which instantiates (i.e., don't
24755 # use $as_me), people would be surprised to read:
24756 # /* config.h. Generated by config.status. */
24757 if test x"$ac_file" = x-; then
24758 configure_input=
24759 else
24760 configure_input="$ac_file. "
24761 fi
24762 configure_input=$configure_input"Generated from `echo $ac_file_in |
24763 sed 's,.*/,,'` by configure."
24764
24765 # First look for the input files in the build tree, otherwise in the
24766 # src tree.
24767 ac_file_inputs=`IFS=:
24768 for f in $ac_file_in; do
24769 case $f in
24770 -) echo $tmp/stdin ;;
24771 [\\/$]*)
24772 # Absolute (can't be DOS-style, as IFS=:)
24773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24774echo "$as_me: error: cannot find input file: $f" >&2;}
24775 { (exit 1); exit 1; }; }
24776 echo "$f";;
24777 *) # Relative
24778 if test -f "$f"; then
24779 # Build tree
24780 echo "$f"
24781 elif test -f "$srcdir/$f"; then
24782 # Source tree
24783 echo "$srcdir/$f"
24784 else
24785 # /dev/null tree
24786 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24787echo "$as_me: error: cannot find input file: $f" >&2;}
24788 { (exit 1); exit 1; }; }
24789 fi;;
24790 esac
24791 done` || { (exit 1); exit 1; }
24792_ACEOF
24793cat >>$CONFIG_STATUS <<_ACEOF
24794 sed "$ac_vpsub
24795$extrasub
24796_ACEOF
24797cat >>$CONFIG_STATUS <<\_ACEOF
24798:t
24799/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24800s,@configure_input@,$configure_input,;t t
24801s,@srcdir@,$ac_srcdir,;t t
24802s,@abs_srcdir@,$ac_abs_srcdir,;t t
24803s,@top_srcdir@,$ac_top_srcdir,;t t
24804s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24805s,@builddir@,$ac_builddir,;t t
24806s,@abs_builddir@,$ac_abs_builddir,;t t
24807s,@top_builddir@,$ac_top_builddir,;t t
24808s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24809s,@INSTALL@,$ac_INSTALL,;t t
24810" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24811 rm -f $tmp/stdin
24812 if test x"$ac_file" != x-; then
24813 mv $tmp/out $ac_file
24814 else
24815 cat $tmp/out
24816 rm -f $tmp/out
24817 fi
24818
24819done
24820_ACEOF
24821cat >>$CONFIG_STATUS <<\_ACEOF
24822
24823#
24824# CONFIG_HEADER section.
24825#
24826
24827# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24828# NAME is the cpp macro being defined and VALUE is the value it is being given.
24829#
24830# ac_d sets the value in "#define NAME VALUE" lines.
24831ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24832ac_dB='[ ].*$,\1#\2'
24833ac_dC=' '
24834ac_dD=',;t'
24835# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24836ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24837ac_uB='$,\1#\2define\3'
24838ac_uC=' '
24839ac_uD=',;t'
24840
24841for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24843 case $ac_file in
24844 - | *:- | *:-:* ) # input from stdin
24845 cat >$tmp/stdin
24846 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24848 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24849 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24850 * ) ac_file_in=$ac_file.in ;;
24851 esac
24852
24853 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24854echo "$as_me: creating $ac_file" >&6;}
24855
24856 # First look for the input files in the build tree, otherwise in the
24857 # src tree.
24858 ac_file_inputs=`IFS=:
24859 for f in $ac_file_in; do
24860 case $f in
24861 -) echo $tmp/stdin ;;
24862 [\\/$]*)
24863 # Absolute (can't be DOS-style, as IFS=:)
24864 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24865echo "$as_me: error: cannot find input file: $f" >&2;}
24866 { (exit 1); exit 1; }; }
24867 # Do quote $f, to prevent DOS paths from being IFS'd.
24868 echo "$f";;
24869 *) # Relative
24870 if test -f "$f"; then
24871 # Build tree
24872 echo "$f"
24873 elif test -f "$srcdir/$f"; then
24874 # Source tree
24875 echo "$srcdir/$f"
24876 else
24877 # /dev/null tree
24878 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24879echo "$as_me: error: cannot find input file: $f" >&2;}
24880 { (exit 1); exit 1; }; }
24881 fi;;
24882 esac
24883 done` || { (exit 1); exit 1; }
24884 # Remove the trailing spaces.
24885 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24886
24887_ACEOF
24888
24889# Transform confdefs.h into two sed scripts, `conftest.defines' and
24890# `conftest.undefs', that substitutes the proper values into
24891# config.h.in to produce config.h. The first handles `#define'
24892# templates, and the second `#undef' templates.
24893# And first: Protect against being on the right side of a sed subst in
24894# config.status. Protect against being in an unquoted here document
24895# in config.status.
24896rm -f conftest.defines conftest.undefs
24897# Using a here document instead of a string reduces the quoting nightmare.
24898# Putting comments in sed scripts is not portable.
24899#
24900# `end' is used to avoid that the second main sed command (meant for
24901# 0-ary CPP macros) applies to n-ary macro definitions.
24902# See the Autoconf documentation for `clear'.
24903cat >confdef2sed.sed <<\_ACEOF
24904s/[\\&,]/\\&/g
24905s,[\\$`],\\&,g
24906t clear
24907: clear
24908s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24909t end
24910s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24911: end
24912_ACEOF
24913# If some macros were called several times there might be several times
24914# the same #defines, which is useless. Nevertheless, we may not want to
24915# sort them, since we want the *last* AC-DEFINE to be honored.
24916uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24917sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24918rm -f confdef2sed.sed
24919
24920# This sed command replaces #undef with comments. This is necessary, for
24921# example, in the case of _POSIX_SOURCE, which is predefined and required
24922# on some systems where configure will not decide to define it.
24923cat >>conftest.undefs <<\_ACEOF
24924s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24925_ACEOF
24926
24927# Break up conftest.defines because some shells have a limit on the size
24928# of here documents, and old seds have small limits too (100 cmds).
24929echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24930echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24931echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24932echo ' :' >>$CONFIG_STATUS
24933rm -f conftest.tail
24934while grep . conftest.defines >/dev/null
24935do
24936 # Write a limited-size here document to $tmp/defines.sed.
24937 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24938 # Speed up: don't consider the non `#define' lines.
24939 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24940 # Work around the forget-to-reset-the-flag bug.
24941 echo 't clr' >>$CONFIG_STATUS
24942 echo ': clr' >>$CONFIG_STATUS
24943 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24944 echo 'CEOF
24945 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24946 rm -f $tmp/in
24947 mv $tmp/out $tmp/in
24948' >>$CONFIG_STATUS
24949 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24950 rm -f conftest.defines
24951 mv conftest.tail conftest.defines
24952done
24953rm -f conftest.defines
24954echo ' fi # grep' >>$CONFIG_STATUS
24955echo >>$CONFIG_STATUS
24956
24957# Break up conftest.undefs because some shells have a limit on the size
24958# of here documents, and old seds have small limits too (100 cmds).
24959echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24960rm -f conftest.tail
24961while grep . conftest.undefs >/dev/null
24962do
24963 # Write a limited-size here document to $tmp/undefs.sed.
24964 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24965 # Speed up: don't consider the non `#undef'
24966 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24967 # Work around the forget-to-reset-the-flag bug.
24968 echo 't clr' >>$CONFIG_STATUS
24969 echo ': clr' >>$CONFIG_STATUS
24970 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24971 echo 'CEOF
24972 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24973 rm -f $tmp/in
24974 mv $tmp/out $tmp/in
24975' >>$CONFIG_STATUS
24976 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24977 rm -f conftest.undefs
24978 mv conftest.tail conftest.undefs
24979done
24980rm -f conftest.undefs
24981
24982cat >>$CONFIG_STATUS <<\_ACEOF
24983 # Let's still pretend it is `configure' which instantiates (i.e., don't
24984 # use $as_me), people would be surprised to read:
24985 # /* config.h. Generated by config.status. */
24986 if test x"$ac_file" = x-; then
24987 echo "/* Generated by configure. */" >$tmp/config.h
24988 else
24989 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24990 fi
24991 cat $tmp/in >>$tmp/config.h
24992 rm -f $tmp/in
24993 if test x"$ac_file" != x-; then
24994 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24995 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24996echo "$as_me: $ac_file is unchanged" >&6;}
24997 else
24998 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25000 X"$ac_file" : 'X\(//\)[^/]' \| \
25001 X"$ac_file" : 'X\(//\)$' \| \
25002 X"$ac_file" : 'X\(/\)' \| \
25003 . : '\(.\)' 2>/dev/null ||
25004echo X"$ac_file" |
25005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25007 /^X\(\/\/\)$/{ s//\1/; q; }
25008 /^X\(\/\).*/{ s//\1/; q; }
25009 s/.*/./; q'`
25010 { if $as_mkdir_p; then
25011 mkdir -p "$ac_dir"
25012 else
25013 as_dir="$ac_dir"
25014 as_dirs=
25015 while test ! -d "$as_dir"; do
25016 as_dirs="$as_dir $as_dirs"
25017 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25019 X"$as_dir" : 'X\(//\)[^/]' \| \
25020 X"$as_dir" : 'X\(//\)$' \| \
25021 X"$as_dir" : 'X\(/\)' \| \
25022 . : '\(.\)' 2>/dev/null ||
25023echo X"$as_dir" |
25024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25026 /^X\(\/\/\)$/{ s//\1/; q; }
25027 /^X\(\/\).*/{ s//\1/; q; }
25028 s/.*/./; q'`
25029 done
25030 test ! -n "$as_dirs" || mkdir $as_dirs
25031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25032echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25033 { (exit 1); exit 1; }; }; }
25034
25035 rm -f $ac_file
25036 mv $tmp/config.h $ac_file
25037 fi
25038 else
25039 cat $tmp/config.h
25040 rm -f $tmp/config.h
25041 fi
25042done
25043_ACEOF
25044
25045cat >>$CONFIG_STATUS <<\_ACEOF
25046
25047{ (exit 0); exit 0; }
25048_ACEOF
25049chmod +x $CONFIG_STATUS
25050ac_clean_files=$ac_clean_files_save
25051
25052
25053# configure is writing to config.log, and then calls config.status.
25054# config.status does its own redirection, appending to config.log.
25055# Unfortunately, on DOS this fails, as config.log is still kept open
25056# by configure, so config.status won't be able to write to it; its
25057# output is simply discarded. So we exec the FD to /dev/null,
25058# effectively closing config.log, so it can be properly (re)opened and
25059# appended to by config.status. When coming back to configure, we
25060# need to make the FD available again.
25061if test "$no_create" != yes; then
25062 ac_cs_success=:
25063 ac_config_status_args=
25064 test "$silent" = yes &&
25065 ac_config_status_args="$ac_config_status_args --quiet"
25066 exec 5>/dev/null
25067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25068 exec 5>>config.log
25069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25070 # would make configure fail if this is the last instruction.
25071 $ac_cs_success || { (exit 1); exit 1; }
25072fi
25073
25074
25075# Print summary of options
25076
25077# Someone please show me a better way :)
25078A=`eval echo ${prefix}` ; A=`eval echo ${A}`
25079B=`eval echo ${bindir}` ; B=`eval echo ${B}`
25080C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
25081D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
25082E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
25083F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
25084G=`eval echo ${piddir}` ; G=`eval echo ${G}`
25085H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
25086I=`eval echo ${user_path}` ; I=`eval echo ${I}`
25087J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
25088
25089echo ""
25090echo "OpenSSH has been configured with the following options:"
25091echo " User binaries: $B"
25092echo " System binaries: $C"
25093echo " Configuration files: $D"
25094echo " Askpass program: $E"
25095echo " Manual pages: $F"
25096echo " PID file: $G"
25097echo " Privilege separation chroot path: $H"
25098if test "x$external_path_file" = "x/etc/login.conf" ; then
25099echo " At runtime, sshd will use the path defined in $external_path_file"
25100echo " Make sure the path to scp is present, otherwise scp will not work"
25101else
25102echo " sshd default user PATH: $I"
25103 if test ! -z "$external_path_file"; then
25104echo " (If PATH is set in $external_path_file it will be used instead. If"
25105echo " used, ensure the path to scp is present, otherwise scp will not work.)"
25106 fi
25107fi
25108if test ! -z "$superuser_path" ; then
25109echo " sshd superuser user PATH: $J"
25110fi
25111echo " Manpage format: $MANTYPE"
25112echo " PAM support: $PAM_MSG"
25113echo " KerberosV support: $KRB5_MSG"
25114echo " Smartcard support: $SCARD_MSG"
25115echo " S/KEY support: $SKEY_MSG"
25116echo " TCP Wrappers support: $TCPW_MSG"
25117echo " MD5 password support: $MD5_MSG"
25118echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
25119echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
25120echo " BSD Auth support: $BSD_AUTH_MSG"
25121echo " Random number source: $RAND_MSG"
25122if test ! -z "$USE_RAND_HELPER" ; then
25123echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
25124fi
25125
25126echo ""
25127
25128echo " Host: ${host}"
25129echo " Compiler: ${CC}"
25130echo " Compiler flags: ${CFLAGS}"
25131echo "Preprocessor flags: ${CPPFLAGS}"
25132echo " Linker flags: ${LDFLAGS}"
25133echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
25134
25135echo ""
25136
25137if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
25138 echo "SVR4 style packages are supported with \"make package\"\n"
25139fi
25140
25141if test "x$PAM_MSG" = "xyes" ; then
25142 echo "PAM is enabled. You may need to install a PAM control file "
25143 echo "for sshd, otherwise password authentication may fail. "
25144 echo "Example PAM control files can be found in the contrib/ "
25145 echo "subdirectory"
25146 echo ""
25147fi
25148
25149if test ! -z "$RAND_HELPER_CMDHASH" ; then
25150 echo "WARNING: you are using the builtin random number collection "
25151 echo "service. Please read WARNING.RNG and request that your OS "
25152 echo "vendor includes kernel-based random number collection in "
25153 echo "future versions of your OS."
25154 echo ""
25155fi
25156
25157if test ! -z "$NO_PEERCHECK" ; then
25158 echo "WARNING: the operating system that you are using does not "
25159 echo "appear to support either the getpeereid() API nor the "
25160 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
25161 echo "enforce security checks to prevent unauthorised connections to "
25162 echo "ssh-agent. Their absence increases the risk that a malicious "
25163 echo "user can connect to your agent. "
25164 echo ""
25165fi
25166