summaryrefslogtreecommitdiff
path: root/other/openssh-2.1.1p4/configure
diff options
context:
space:
mode:
Diffstat (limited to 'other/openssh-2.1.1p4/configure')
-rwxr-xr-xother/openssh-2.1.1p4/configure6694
1 files changed, 0 insertions, 6694 deletions
diff --git a/other/openssh-2.1.1p4/configure b/other/openssh-2.1.1p4/configure
deleted file mode 100755
index 4382488..0000000
--- a/other/openssh-2.1.1p4/configure
+++ /dev/null
@@ -1,6694 +0,0 @@
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-cflags Specify additional flags to pass to compiler"
16ac_help="$ac_help
17 --with-ldlags Specify additional flags to pass to linker"
18ac_help="$ac_help
19 --with-libs Specify additional libraries to link with"
20ac_help="$ac_help
21 --without-pam Disable PAM support "
22ac_help="$ac_help
23 --with-ssl-dir=PATH Specify path to OpenSSL installation "
24ac_help="$ac_help
25 --with-rsh=PATH Specify path to remote shell program "
26ac_help="$ac_help
27 --with-xauth=PATH Specify path to xauth program "
28ac_help="$ac_help
29 --with-random=FILE read randomness from FILE (default=/dev/urandom)"
30ac_help="$ac_help
31 --with-egd-pool=FILE read randomness from EGD pool FILE (default none)"
32ac_help="$ac_help
33 --with-catman=man|cat Install preformatted manpages[no]"
34ac_help="$ac_help
35 --with-kerberos4=PATH Enable Kerberos 4 support"
36ac_help="$ac_help
37 --with-afs=PATH Enable AFS support"
38ac_help="$ac_help
39 --with-skey Enable S/Key support"
40ac_help="$ac_help
41 --with-tcp-wrappers Enable tcpwrappers support"
42ac_help="$ac_help
43 --with-md5-passwords Enable use of MD5 passwords"
44ac_help="$ac_help
45 --without-shadow Disable shadow password support"
46ac_help="$ac_help
47 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY"
48ac_help="$ac_help
49 --with-default-path=PATH Specify default \$PATH environment for server"
50ac_help="$ac_help
51 --with-ipv4-default Use IPv4 by connections unless '-6' specified"
52ac_help="$ac_help
53 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses"
54ac_help="$ac_help
55 --with-pid-dir=PATH Specify location of ssh.pid file"
56ac_help="$ac_help
57 --disable-lastlog disable use of lastlog even if detected [no]"
58ac_help="$ac_help
59 --disable-utmp disable use of utmp even if detected [no]"
60ac_help="$ac_help
61 --disable-utmpx disable use of utmpx even if detected [no]"
62ac_help="$ac_help
63 --disable-wtmp disable use of wtmp even if detected [no]"
64ac_help="$ac_help
65 --disable-wtmpx disable use of wtmpx even if detected [no]"
66ac_help="$ac_help
67 --disable-libutil disable use of libutil (login() etc.) [no]"
68ac_help="$ac_help
69 --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]"
70ac_help="$ac_help
71 --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]"
72ac_help="$ac_help
73 --with-lastlog=FILE|DIR specify lastlog location [common locations]"
74ac_help="$ac_help
75 --with-entropy-timeout Specify entropy gathering command timeout (msec)"
76
77# Initialize some variables set by options.
78# The variables have the same names as the options, with
79# dashes changed to underlines.
80build=NONE
81cache_file=./config.cache
82exec_prefix=NONE
83host=NONE
84no_create=
85nonopt=NONE
86no_recursion=
87prefix=NONE
88program_prefix=NONE
89program_suffix=NONE
90program_transform_name=s,x,x,
91silent=
92site=
93srcdir=
94target=NONE
95verbose=
96x_includes=NONE
97x_libraries=NONE
98bindir='${exec_prefix}/bin'
99sbindir='${exec_prefix}/sbin'
100libexecdir='${exec_prefix}/libexec'
101datadir='${prefix}/share'
102sysconfdir='${prefix}/etc'
103sharedstatedir='${prefix}/com'
104localstatedir='${prefix}/var'
105libdir='${exec_prefix}/lib'
106includedir='${prefix}/include'
107oldincludedir='/usr/include'
108infodir='${prefix}/info'
109mandir='${prefix}/man'
110
111# Initialize some other variables.
112subdirs=
113MFLAGS= MAKEFLAGS=
114SHELL=${CONFIG_SHELL-/bin/sh}
115# Maximum number of lines to put in a shell here document.
116ac_max_here_lines=12
117
118ac_prev=
119for ac_option
120do
121
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
125 ac_prev=
126 continue
127 fi
128
129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
133
134 # Accept the important Cygnus configure options, so we can diagnose typos.
135
136 case "$ac_option" in
137
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 ac_prev=bindir ;;
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
142
143 -build | --build | --buil | --bui | --bu)
144 ac_prev=build ;;
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
147
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
154
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 ac_prev=datadir ;;
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 | --da=*)
159 datadir="$ac_optarg" ;;
160
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 fi
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
169
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 fi
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 case "$ac_option" in
178 *=*) ;;
179 *) ac_optarg=yes ;;
180 esac
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
182
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
191
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
195
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
199 cat << EOF
200Usage: configure [options] [host]
201Options: [defaults in brackets after descriptions]
202Configuration:
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
210 [$ac_default_prefix]
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 [same as prefix]
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
217 [PREFIX/share]
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 [PREFIX/com]
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
232EOF
233 cat << EOF
234Host type:
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
245EOF
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
248 fi
249 exit 0 ;;
250
251 -host | --host | --hos | --ho)
252 ac_prev=host ;;
253 -host=* | --host=* | --hos=* | --ho=*)
254 host="$ac_optarg" ;;
255
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
262
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
267
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
272
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
279
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
288
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
293
294 -nfp | --nfp | --nf)
295 # Obsolete; use --without-fp.
296 with_fp=no ;;
297
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 | --no-cr | --no-c)
300 no_create=yes ;;
301
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 no_recursion=yes ;;
305
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
314
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 ac_prev=prefix ;;
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
319
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
326
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
333
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
350
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
353 silent=yes ;;
354
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 ac_prev=sbindir ;;
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 | --sbi=* | --sb=*)
359 sbindir="$ac_optarg" ;;
360
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
364 | --sha | --sh)
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 | --sha=* | --sh=*)
370 sharedstatedir="$ac_optarg" ;;
371
372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
375 site="$ac_optarg" ;;
376
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
381
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
388
389 -target | --target | --targe | --targ | --tar | --ta | --t)
390 ac_prev=target ;;
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
393
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
396
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
399 exit 0 ;;
400
401 -with-* | --with-*)
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 fi
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 case "$ac_option" in
409 *=*) ;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "with_${ac_package}='$ac_optarg'" ;;
413
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 fi
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
422
423 --x)
424 # Obsolete; use --with-x.
425 with_x=yes ;;
426
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
433
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
440
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 ;;
443
444 *)
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 fi
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 fi
451 nonopt="$ac_option"
452 ;;
453
454 esac
455done
456
457if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459fi
460
461trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
463# File descriptor usage:
464# 0 standard input
465# 1 file creation
466# 2 errors and warnings
467# 3 some systems may open it to /dev/tty
468# 4 used on the Kubota Titan
469# 6 checking for... messages and results
470# 5 compiler messages saved in config.log
471if test "$silent" = yes; then
472 exec 6>/dev/null
473else
474 exec 6>&1
475fi
476exec 5>./config.log
477
478echo "\
479This file contains any messages produced by compilers while
480running configure, to aid debugging if configure makes a mistake.
481" 1>&5
482
483# Strip out --no-create and --no-recursion so they do not pile up.
484# Also quote any args containing shell metacharacters.
485ac_configure_args=
486for ac_arg
487do
488 case "$ac_arg" in
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 esac
497done
498
499# NLS nuisances.
500# Only set these to C if already set. These must not be set unconditionally
501# because not all systems understand e.g. LANG=C (notably SCO).
502# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503# Non-C LC_CTYPE values break the ctype check.
504if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508
509# confdefs.h avoids OS command line length limits that DEFS can exceed.
510rm -rf conftest* confdefs.h
511# AIX cpp loses on an empty file, so make sure it contains at least a newline.
512echo > confdefs.h
513
514# A filename unique to this package, relative to the directory that
515# configure is in, which we can look for to find out if srcdir is correct.
516ac_unique_file=ssh.c
517
518# Find the source files, if location was not specified.
519if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
528 fi
529else
530 ac_srcdir_defaulted=no
531fi
532if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 fi
538fi
539srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
541# Prefer explicitly selected file to automatically selected ones.
542if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 fi
548fi
549for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
553 fi
554done
555
556if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559else
560 echo "creating cache $cache_file"
561 > $cache_file
562fi
563
564ac_ext=c
565# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566ac_cpp='$CPP $CPPFLAGS'
567ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569cross_compiling=$ac_cv_prog_cc_cross
570
571ac_exeext=
572ac_objext=o
573if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
580 fi
581else
582 ac_n= ac_c='\c' ac_t=
583fi
584
585
586
587
588# Extract the first word of "gcc", so it can be a program name with args.
589set dummy gcc; ac_word=$2
590echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
591echo "configure:592: checking for $ac_word" >&5
592if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
594else
595 if test -n "$CC"; then
596 ac_cv_prog_CC="$CC" # Let the user override the test.
597else
598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
599 ac_dummy="$PATH"
600 for ac_dir in $ac_dummy; do
601 test -z "$ac_dir" && ac_dir=.
602 if test -f $ac_dir/$ac_word; then
603 ac_cv_prog_CC="gcc"
604 break
605 fi
606 done
607 IFS="$ac_save_ifs"
608fi
609fi
610CC="$ac_cv_prog_CC"
611if test -n "$CC"; then
612 echo "$ac_t""$CC" 1>&6
613else
614 echo "$ac_t""no" 1>&6
615fi
616
617if test -z "$CC"; then
618 # Extract the first word of "cc", so it can be a program name with args.
619set dummy cc; ac_word=$2
620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621echo "configure:622: checking for $ac_word" >&5
622if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624else
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
627else
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
629 ac_prog_rejected=no
630 ac_dummy="$PATH"
631 for ac_dir in $ac_dummy; do
632 test -z "$ac_dir" && ac_dir=.
633 if test -f $ac_dir/$ac_word; then
634 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
635 ac_prog_rejected=yes
636 continue
637 fi
638 ac_cv_prog_CC="cc"
639 break
640 fi
641 done
642 IFS="$ac_save_ifs"
643if test $ac_prog_rejected = yes; then
644 # We found a bogon in the path, so make sure we never use it.
645 set dummy $ac_cv_prog_CC
646 shift
647 if test $# -gt 0; then
648 # We chose a different compiler from the bogus one.
649 # However, it has the same basename, so the bogon will be chosen
650 # first if we set CC to just the basename; use the full file name.
651 shift
652 set dummy "$ac_dir/$ac_word" "$@"
653 shift
654 ac_cv_prog_CC="$@"
655 fi
656fi
657fi
658fi
659CC="$ac_cv_prog_CC"
660if test -n "$CC"; then
661 echo "$ac_t""$CC" 1>&6
662else
663 echo "$ac_t""no" 1>&6
664fi
665
666 if test -z "$CC"; then
667 case "`uname -s`" in
668 *win32* | *WIN32*)
669 # Extract the first word of "cl", so it can be a program name with args.
670set dummy cl; ac_word=$2
671echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672echo "configure:673: checking for $ac_word" >&5
673if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
675else
676 if test -n "$CC"; then
677 ac_cv_prog_CC="$CC" # Let the user override the test.
678else
679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
680 ac_dummy="$PATH"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
684 ac_cv_prog_CC="cl"
685 break
686 fi
687 done
688 IFS="$ac_save_ifs"
689fi
690fi
691CC="$ac_cv_prog_CC"
692if test -n "$CC"; then
693 echo "$ac_t""$CC" 1>&6
694else
695 echo "$ac_t""no" 1>&6
696fi
697 ;;
698 esac
699 fi
700 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
701fi
702
703echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
704echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
705
706ac_ext=c
707# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
708ac_cpp='$CPP $CPPFLAGS'
709ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
710ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
711cross_compiling=$ac_cv_prog_cc_cross
712
713cat > conftest.$ac_ext << EOF
714
715#line 716 "configure"
716#include "confdefs.h"
717
718main(){return(0);}
719EOF
720if { (eval echo configure:721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
721 ac_cv_prog_cc_works=yes
722 # If we can't run a trivial program, we are probably using a cross compiler.
723 if (./conftest; exit) 2>/dev/null; then
724 ac_cv_prog_cc_cross=no
725 else
726 ac_cv_prog_cc_cross=yes
727 fi
728else
729 echo "configure: failed program was:" >&5
730 cat conftest.$ac_ext >&5
731 ac_cv_prog_cc_works=no
732fi
733rm -fr conftest*
734ac_ext=c
735# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
736ac_cpp='$CPP $CPPFLAGS'
737ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
738ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
739cross_compiling=$ac_cv_prog_cc_cross
740
741echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
742if test $ac_cv_prog_cc_works = no; then
743 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744fi
745echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
746echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
747echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
748cross_compiling=$ac_cv_prog_cc_cross
749
750echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
751echo "configure:752: checking whether we are using GNU C" >&5
752if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754else
755 cat > conftest.c <<EOF
756#ifdef __GNUC__
757 yes;
758#endif
759EOF
760if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
761 ac_cv_prog_gcc=yes
762else
763 ac_cv_prog_gcc=no
764fi
765fi
766
767echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768
769if test $ac_cv_prog_gcc = yes; then
770 GCC=yes
771else
772 GCC=
773fi
774
775ac_test_CFLAGS="${CFLAGS+set}"
776ac_save_CFLAGS="$CFLAGS"
777CFLAGS=
778echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
779echo "configure:780: checking whether ${CC-cc} accepts -g" >&5
780if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
782else
783 echo 'void f(){}' > conftest.c
784if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
785 ac_cv_prog_cc_g=yes
786else
787 ac_cv_prog_cc_g=no
788fi
789rm -f conftest*
790
791fi
792
793echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
794if test "$ac_test_CFLAGS" = set; then
795 CFLAGS="$ac_save_CFLAGS"
796elif test $ac_cv_prog_cc_g = yes; then
797 if test "$GCC" = yes; then
798 CFLAGS="-g -O2"
799 else
800 CFLAGS="-g"
801 fi
802else
803 if test "$GCC" = yes; then
804 CFLAGS="-O2"
805 else
806 CFLAGS=
807 fi
808fi
809
810ac_aux_dir=
811for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
812 if test -f $ac_dir/install-sh; then
813 ac_aux_dir=$ac_dir
814 ac_install_sh="$ac_aux_dir/install-sh -c"
815 break
816 elif test -f $ac_dir/install.sh; then
817 ac_aux_dir=$ac_dir
818 ac_install_sh="$ac_aux_dir/install.sh -c"
819 break
820 fi
821done
822if test -z "$ac_aux_dir"; then
823 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
824fi
825ac_config_guess=$ac_aux_dir/config.guess
826ac_config_sub=$ac_aux_dir/config.sub
827ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
828
829
830# Make sure we can run config.sub.
831if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
832else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
833fi
834
835echo $ac_n "checking host system type""... $ac_c" 1>&6
836echo "configure:837: checking host system type" >&5
837
838host_alias=$host
839case "$host_alias" in
840NONE)
841 case $nonopt in
842 NONE)
843 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
844 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
845 fi ;;
846 *) host_alias=$nonopt ;;
847 esac ;;
848esac
849
850host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
851host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
852host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
853host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
854echo "$ac_t""$host" 1>&6
855
856
857# Checks for programs.
858echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
859echo "configure:860: checking how to run the C preprocessor" >&5
860# On Suns, sometimes $CPP names a directory.
861if test -n "$CPP" && test -d "$CPP"; then
862 CPP=
863fi
864if test -z "$CPP"; then
865if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867else
868 # This must be in double quotes, not single quotes, because CPP may get
869 # substituted into the Makefile and "${CC-cc}" will confuse make.
870 CPP="${CC-cc} -E"
871 # On the NeXT, cc -E runs the code through the compiler's parser,
872 # not just through cpp.
873 cat > conftest.$ac_ext <<EOF
874#line 875 "configure"
875#include "confdefs.h"
876#include <assert.h>
877Syntax Error
878EOF
879ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
880{ (eval echo configure:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
881ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
882if test -z "$ac_err"; then
883 :
884else
885 echo "$ac_err" >&5
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
888 rm -rf conftest*
889 CPP="${CC-cc} -E -traditional-cpp"
890 cat > conftest.$ac_ext <<EOF
891#line 892 "configure"
892#include "confdefs.h"
893#include <assert.h>
894Syntax Error
895EOF
896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
897{ (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
899if test -z "$ac_err"; then
900 :
901else
902 echo "$ac_err" >&5
903 echo "configure: failed program was:" >&5
904 cat conftest.$ac_ext >&5
905 rm -rf conftest*
906 CPP="${CC-cc} -nologo -E"
907 cat > conftest.$ac_ext <<EOF
908#line 909 "configure"
909#include "confdefs.h"
910#include <assert.h>
911Syntax Error
912EOF
913ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914{ (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916if test -z "$ac_err"; then
917 :
918else
919 echo "$ac_err" >&5
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
922 rm -rf conftest*
923 CPP=/lib/cpp
924fi
925rm -f conftest*
926fi
927rm -f conftest*
928fi
929rm -f conftest*
930 ac_cv_prog_CPP="$CPP"
931fi
932 CPP="$ac_cv_prog_CPP"
933else
934 ac_cv_prog_CPP="$CPP"
935fi
936echo "$ac_t""$CPP" 1>&6
937
938# Extract the first word of "ranlib", so it can be a program name with args.
939set dummy ranlib; ac_word=$2
940echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941echo "configure:942: checking for $ac_word" >&5
942if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
944else
945 if test -n "$RANLIB"; then
946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
947else
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
949 ac_dummy="$PATH"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB="ranlib"
954 break
955 fi
956 done
957 IFS="$ac_save_ifs"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
959fi
960fi
961RANLIB="$ac_cv_prog_RANLIB"
962if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
964else
965 echo "$ac_t""no" 1>&6
966fi
967
968# Find a good install program. We prefer a C program (faster),
969# so one script is as good as another. But avoid the broken or
970# incompatible versions:
971# SysV /etc/install, /usr/sbin/install
972# SunOS /usr/etc/install
973# IRIX /sbin/install
974# AIX /bin/install
975# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
976# AFS /usr/afsws/bin/install, which mishandles nonexistent args
977# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978# ./install, which can be erroneously created by make from ./install.sh.
979echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980echo "configure:981: checking for a BSD compatible install" >&5
981if test -z "$INSTALL"; then
982if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
984else
985 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
986 for ac_dir in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
988 case "$ac_dir/" in
989 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
990 *)
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 # Don't use installbsd from OSF since it installs stuff as root
993 # by default.
994 for ac_prog in ginstall scoinst install; do
995 if test -f $ac_dir/$ac_prog; then
996 if test $ac_prog = install &&
997 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
998 # AIX install. It has an incompatible calling convention.
999 :
1000 else
1001 ac_cv_path_install="$ac_dir/$ac_prog -c"
1002 break 2
1003 fi
1004 fi
1005 done
1006 ;;
1007 esac
1008 done
1009 IFS="$ac_save_IFS"
1010
1011fi
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL="$ac_cv_path_install"
1014 else
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL="$ac_install_sh"
1020 fi
1021fi
1022echo "$ac_t""$INSTALL" 1>&6
1023
1024# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1025# It thinks the first close brace ends the variable substitution.
1026test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1027
1028test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1029
1030test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1031
1032# Extract the first word of "ar", so it can be a program name with args.
1033set dummy ar; ac_word=$2
1034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035echo "configure:1036: checking for $ac_word" >&5
1036if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038else
1039 if test -n "$AR"; then
1040 ac_cv_prog_AR="$AR" # Let the user override the test.
1041else
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1043 ac_dummy="$PATH"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 ac_cv_prog_AR="ar"
1048 break
1049 fi
1050 done
1051 IFS="$ac_save_ifs"
1052fi
1053fi
1054AR="$ac_cv_prog_AR"
1055if test -n "$AR"; then
1056 echo "$ac_t""$AR" 1>&6
1057else
1058 echo "$ac_t""no" 1>&6
1059fi
1060
1061# Extract the first word of "perl", so it can be a program name with args.
1062set dummy perl; ac_word=$2
1063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064echo "configure:1065: checking for $ac_word" >&5
1065if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067else
1068 case "$PERL" in
1069 /*)
1070 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1071 ;;
1072 ?:/*)
1073 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1074 ;;
1075 *)
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 ac_dummy="$PATH"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_path_PERL="$ac_dir/$ac_word"
1082 break
1083 fi
1084 done
1085 IFS="$ac_save_ifs"
1086 ;;
1087esac
1088fi
1089PERL="$ac_cv_path_PERL"
1090if test -n "$PERL"; then
1091 echo "$ac_t""$PERL" 1>&6
1092else
1093 echo "$ac_t""no" 1>&6
1094fi
1095
1096
1097# Extract the first word of "ent", so it can be a program name with args.
1098set dummy ent; ac_word=$2
1099echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100echo "configure:1101: checking for $ac_word" >&5
1101if eval "test \"`echo '$''{'ac_cv_path_ENT'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103else
1104 case "$ENT" in
1105 /*)
1106 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
1107 ;;
1108 ?:/*)
1109 ac_cv_path_ENT="$ENT" # Let the user override the test with a dos path.
1110 ;;
1111 *)
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1113 ac_dummy="$PATH"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_path_ENT="$ac_dir/$ac_word"
1118 break
1119 fi
1120 done
1121 IFS="$ac_save_ifs"
1122 ;;
1123esac
1124fi
1125ENT="$ac_cv_path_ENT"
1126if test -n "$ENT"; then
1127 echo "$ac_t""$ENT" 1>&6
1128else
1129 echo "$ac_t""no" 1>&6
1130fi
1131
1132
1133
1134if test -z "$LD" ; then
1135 LD=$CC
1136fi
1137
1138
1139# C Compiler features
1140echo $ac_n "checking for inline""... $ac_c" 1>&6
1141echo "configure:1142: checking for inline" >&5
1142if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144else
1145 ac_cv_c_inline=no
1146for ac_kw in inline __inline__ __inline; do
1147 cat > conftest.$ac_ext <<EOF
1148#line 1149 "configure"
1149#include "confdefs.h"
1150
1151int main() {
1152} $ac_kw foo() {
1153; return 0; }
1154EOF
1155if { (eval echo configure:1156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1156 rm -rf conftest*
1157 ac_cv_c_inline=$ac_kw; break
1158else
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1161fi
1162rm -f conftest*
1163done
1164
1165fi
1166
1167echo "$ac_t""$ac_cv_c_inline" 1>&6
1168case "$ac_cv_c_inline" in
1169 inline | yes) ;;
1170 no) cat >> confdefs.h <<\EOF
1171#define inline
1172EOF
1173 ;;
1174 *) cat >> confdefs.h <<EOF
1175#define inline $ac_cv_c_inline
1176EOF
1177 ;;
1178esac
1179
1180if test "$GCC" = "yes"; then
1181 CFLAGS="$CFLAGS -Wall"
1182fi
1183
1184# Check for some target-specific stuff
1185case "$host" in
1186*-*-aix*)
1187 AFS_LIBS="-lld"
1188 CFLAGS="$CFLAGS -I/usr/local/include"
1189 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1190 if (test "$LD" != "gcc" && test -z "$blibpath"); then
1191 blibpath="/usr/lib:/lib:/usr/local/lib"
1192 fi
1193 echo $ac_n "checking for authenticate""... $ac_c" 1>&6
1194echo "configure:1195: checking for authenticate" >&5
1195if eval "test \"`echo '$''{'ac_cv_func_authenticate'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197else
1198 cat > conftest.$ac_ext <<EOF
1199#line 1200 "configure"
1200#include "confdefs.h"
1201/* System header to define __stub macros and hopefully few prototypes,
1202 which can conflict with char authenticate(); below. */
1203#include <assert.h>
1204/* Override any gcc2 internal prototype to avoid an error. */
1205/* We use char because int might match the return type of a gcc2
1206 builtin and then its argument prototype would still apply. */
1207char authenticate();
1208
1209int main() {
1210
1211/* The GNU C library defines this for functions which it implements
1212 to always fail with ENOSYS. Some functions are actually named
1213 something starting with __ and the normal name is an alias. */
1214#if defined (__stub_authenticate) || defined (__stub___authenticate)
1215choke me
1216#else
1217authenticate();
1218#endif
1219
1220; return 0; }
1221EOF
1222if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1223 rm -rf conftest*
1224 eval "ac_cv_func_authenticate=yes"
1225else
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1228 rm -rf conftest*
1229 eval "ac_cv_func_authenticate=no"
1230fi
1231rm -f conftest*
1232fi
1233
1234if eval "test \"`echo '$ac_cv_func_'authenticate`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1236 cat >> confdefs.h <<\EOF
1237#define WITH_AIXAUTHENTICATE 1
1238EOF
1239
1240else
1241 echo "$ac_t""no" 1>&6
1242fi
1243
1244 cat >> confdefs.h <<\EOF
1245#define BROKEN_GETADDRINFO 1
1246EOF
1247
1248 MANTYPE='$(CATMAN)'
1249 mansubdir=cat
1250 cat >> confdefs.h <<\EOF
1251#define DISABLE_LASTLOG 1
1252EOF
1253
1254 MANTYPE='$(CATMAN)'
1255 mansubdir=cat
1256 ;;
1257*-*-hpux10*)
1258 if test -z "$GCC"; then
1259 CFLAGS="$CFLAGS -Ae"
1260 fi
1261 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
1262 cat >> confdefs.h <<\EOF
1263#define IPADDR_IN_DISPLAY 1
1264EOF
1265
1266 echo $ac_n "checking for HPUX trusted system password database""... $ac_c" 1>&6
1267echo "configure:1268: checking for HPUX trusted system password database" >&5
1268 if test -f /tcb/files/auth/system/default; then
1269 echo "$ac_t""yes" 1>&6
1270 cat >> confdefs.h <<\EOF
1271#define HAVE_HPUX_TRUSTED_SYSTEM_PW 1
1272EOF
1273
1274 LIBS="$LIBS -lsec"
1275 echo "configure: warning: This configuration is untested" 1>&2
1276 else
1277 echo "$ac_t""no" 1>&6
1278 cat >> confdefs.h <<\EOF
1279#define DISABLE_SHADOW 1
1280EOF
1281
1282 fi
1283 MANTYPE='$(CATMAN)'
1284 mansubdir=cat
1285 ;;
1286*-*-hpux11*)
1287 if test -z "$GCC"; then
1288 CFLAGS="$CFLAGS -Ae"
1289 fi
1290 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
1291 cat >> confdefs.h <<\EOF
1292#define IPADDR_IN_DISPLAY 1
1293EOF
1294
1295 echo $ac_n "checking for HPUX trusted system password database""... $ac_c" 1>&6
1296echo "configure:1297: checking for HPUX trusted system password database" >&5
1297 if test -f /tcb/files/auth/system/default; then
1298 echo "$ac_t""yes" 1>&6
1299 cat >> confdefs.h <<\EOF
1300#define HAVE_HPUX_TRUSTED_SYSTEM_PW 1
1301EOF
1302
1303 LIBS="$LIBS -lsec"
1304 echo "configure: warning: This configuration is untested" 1>&2
1305 else
1306 echo "$ac_t""no" 1>&6
1307 cat >> confdefs.h <<\EOF
1308#define DISABLE_SHADOW 1
1309EOF
1310
1311 fi
1312 MANTYPE='$(CATMAN)'
1313 mansubdir=cat
1314 ;;
1315*-*-irix5*)
1316 CFLAGS="$CFLAGS -I/usr/local/include"
1317 LDFLAGS="$LDFLAGS"
1318 MANTYPE='$(CATMAN)'
1319 no_libsocket=1
1320 no_libnsl=1
1321 ;;
1322*-*-irix6*)
1323 CFLAGS="$CFLAGS -I/usr/local/include"
1324 LDFLAGS="$LDFLAGS"
1325 MANTYPE='$(CATMAN)'
1326 cat >> confdefs.h <<\EOF
1327#define WITH_IRIX_ARRAY 1
1328EOF
1329
1330 cat >> confdefs.h <<\EOF
1331#define WITH_IRIX_PROJECT 1
1332EOF
1333
1334 cat >> confdefs.h <<\EOF
1335#define WITH_IRIX_AUDIT 1
1336EOF
1337
1338 no_libsocket=1
1339 no_libnsl=1
1340 ;;
1341*-*-linux*)
1342 no_dev_ptmx=1
1343 cat >> confdefs.h <<\EOF
1344#define DONT_TRY_OTHER_AF 1
1345EOF
1346
1347 cat >> confdefs.h <<\EOF
1348#define PAM_TTY_KLUDGE 1
1349EOF
1350
1351 inet6_default_4in6=yes
1352 ;;
1353*-*-netbsd*)
1354 need_dash_r=1
1355 ;;
1356*-next-*)
1357 # hardwire lastlog location (can't detect it on some versions)
1358 conf_lastlog_location="/usr/adm/lastlog"
1359 conf_utmp_location=/etc/utmp
1360 cat >> confdefs.h <<\EOF
1361#define HAVE_NEXT 1
1362EOF
1363
1364 CFLAGS="$CFLAGS -I/usr/local/include"
1365 MAIL=/usr/spool/mail
1366 echo "configure: warning: *** Tested: PA-RISC/m68k Untested: Sparc/Intel" 1>&2
1367 echo "configure: warning: *** Expect 'scp' to fail!" 1>&2
1368 echo "configure: warning: *** Please report any problems, thanks" 1>&2
1369 ;;
1370*-*-solaris*)
1371 CFLAGS="$CFLAGS -I/usr/local/include"
1372 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
1373 need_dash_r=1
1374 # hardwire lastlog location (can't detect it on some versions)
1375 conf_lastlog_location="/var/adm/lastlog"
1376 echo $ac_n "checking for obsolete utmp and wtmp in solaris2.x""... $ac_c" 1>&6
1377echo "configure:1378: checking for obsolete utmp and wtmp in solaris2.x" >&5
1378 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
1379 if test "$sol2ver" -ge 8; then
1380 echo "$ac_t""yes" 1>&6
1381 cat >> confdefs.h <<\EOF
1382#define DISABLE_UTMP 1
1383EOF
1384
1385 cat >> confdefs.h <<\EOF
1386#define DISABLE_WTMP 1
1387EOF
1388
1389 else
1390 echo "$ac_t""no" 1>&6
1391 fi
1392 ;;
1393*-*-sunos4*)
1394 CFLAGS="$CFLAGS -DSUNOS4"
1395 for ac_func in getpwanam
1396do
1397echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1398echo "configure:1399: checking for $ac_func" >&5
1399if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401else
1402 cat > conftest.$ac_ext <<EOF
1403#line 1404 "configure"
1404#include "confdefs.h"
1405/* System header to define __stub macros and hopefully few prototypes,
1406 which can conflict with char $ac_func(); below. */
1407#include <assert.h>
1408/* Override any gcc2 internal prototype to avoid an error. */
1409/* We use char because int might match the return type of a gcc2
1410 builtin and then its argument prototype would still apply. */
1411char $ac_func();
1412
1413int main() {
1414
1415/* The GNU C library defines this for functions which it implements
1416 to always fail with ENOSYS. Some functions are actually named
1417 something starting with __ and the normal name is an alias. */
1418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1419choke me
1420#else
1421$ac_func();
1422#endif
1423
1424; return 0; }
1425EOF
1426if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427 rm -rf conftest*
1428 eval "ac_cv_func_$ac_func=yes"
1429else
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1432 rm -rf conftest*
1433 eval "ac_cv_func_$ac_func=no"
1434fi
1435rm -f conftest*
1436fi
1437
1438if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1439 echo "$ac_t""yes" 1>&6
1440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1441 cat >> confdefs.h <<EOF
1442#define $ac_tr_func 1
1443EOF
1444
1445else
1446 echo "$ac_t""no" 1>&6
1447fi
1448done
1449
1450 ;;
1451*-sni-sysv*)
1452 CFLAGS="$CFLAGS -I/usr/local/include"
1453 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
1454 MANTYPE='$(CATMAN)'
1455 cat >> confdefs.h <<\EOF
1456#define IP_TOS_IS_BROKEN 1
1457EOF
1458
1459 mansubdir=cat
1460 LIBS="$LIBS -lgen -lnsl -lucb"
1461 ;;
1462*-*-sysv*)
1463 CFLAGS="$CFLAGS -I/usr/local/include"
1464 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1465 MANTYPE='$(CATMAN)'
1466 mansubdir=cat
1467 LIBS="$LIBS -lgen -lsocket"
1468 ;;
1469*-*-sco3*)
1470 CFLAGS="$CFLAGS -I/usr/local/include"
1471 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1472 MANTYPE='$(CATMAN)'
1473 mansubdir=cat
1474 LIBS="$LIBS -lgen -lsocket"
1475 no_dev_ptmx=1
1476 ;;
1477*-dec-osf*)
1478# This is untested
1479 if test ! -z "USE_SIA" ; then
1480 echo $ac_n "checking for Digital Unix Security Integration Architecture""... $ac_c" 1>&6
1481echo "configure:1482: checking for Digital Unix Security Integration Architecture" >&5
1482 if test -f /etc/sia/matrix.conf; then
1483 echo "$ac_t""yes" 1>&6
1484 cat >> confdefs.h <<\EOF
1485#define HAVE_OSF_SIA 1
1486EOF
1487
1488 cat >> confdefs.h <<\EOF
1489#define DISABLE_LOGIN 1
1490EOF
1491
1492 LIBS="$LIBS -lsecurity -ldb -lm -laud"
1493 else
1494 echo "$ac_t""no" 1>&6
1495 fi
1496 fi
1497 ;;
1498esac
1499
1500# Allow user to specify flags
1501# Check whether --with-cflags or --without-cflags was given.
1502if test "${with_cflags+set}" = set; then
1503 withval="$with_cflags"
1504
1505 if test "x$withval" != "xno" ; then
1506 CFLAGS="$CFLAGS $withval"
1507 fi
1508
1509
1510fi
1511
1512# Check whether --with-ldflags or --without-ldflags was given.
1513if test "${with_ldflags+set}" = set; then
1514 withval="$with_ldflags"
1515
1516 if test "x$withval" != "xno" ; then
1517 LDFLAGS="$LDFLAGS $withval"
1518 fi
1519
1520
1521fi
1522
1523# Check whether --with-libs or --without-libs was given.
1524if test "${with_libs+set}" = set; then
1525 withval="$with_libs"
1526
1527 if test "x$withval" != "xno" ; then
1528 LIBS="$LIBS $withval"
1529 fi
1530
1531
1532fi
1533
1534
1535
1536# Checks for libraries.
1537echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1538echo "configure:1539: checking for deflate in -lz" >&5
1539ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1540if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 ac_save_LIBS="$LIBS"
1544LIBS="-lz $LIBS"
1545cat > conftest.$ac_ext <<EOF
1546#line 1547 "configure"
1547#include "confdefs.h"
1548/* Override any gcc2 internal prototype to avoid an error. */
1549/* We use char because int might match the return type of a gcc2
1550 builtin and then its argument prototype would still apply. */
1551char deflate();
1552
1553int main() {
1554deflate()
1555; return 0; }
1556EOF
1557if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1558 rm -rf conftest*
1559 eval "ac_cv_lib_$ac_lib_var=yes"
1560else
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1563 rm -rf conftest*
1564 eval "ac_cv_lib_$ac_lib_var=no"
1565fi
1566rm -f conftest*
1567LIBS="$ac_save_LIBS"
1568
1569fi
1570if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1572 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1574 cat >> confdefs.h <<EOF
1575#define $ac_tr_lib 1
1576EOF
1577
1578 LIBS="-lz $LIBS"
1579
1580else
1581 echo "$ac_t""no" 1>&6
1582{ echo "configure: error: *** zlib missing - please install first ***" 1>&2; exit 1; }
1583fi
1584
1585echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6
1586echo "configure:1587: checking for login in -lutil" >&5
1587ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'`
1588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1590else
1591 ac_save_LIBS="$LIBS"
1592LIBS="-lutil $LIBS"
1593cat > conftest.$ac_ext <<EOF
1594#line 1595 "configure"
1595#include "confdefs.h"
1596/* Override any gcc2 internal prototype to avoid an error. */
1597/* We use char because int might match the return type of a gcc2
1598 builtin and then its argument prototype would still apply. */
1599char login();
1600
1601int main() {
1602login()
1603; return 0; }
1604EOF
1605if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606 rm -rf conftest*
1607 eval "ac_cv_lib_$ac_lib_var=yes"
1608else
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 rm -rf conftest*
1612 eval "ac_cv_lib_$ac_lib_var=no"
1613fi
1614rm -f conftest*
1615LIBS="$ac_save_LIBS"
1616
1617fi
1618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1619 echo "$ac_t""yes" 1>&6
1620 cat >> confdefs.h <<\EOF
1621#define HAVE_LIBUTIL_LOGIN 1
1622EOF
1623 LIBS="$LIBS -lutil"
1624else
1625 echo "$ac_t""no" 1>&6
1626fi
1627
1628
1629if test -z "$no_libsocket" ; then
1630 echo $ac_n "checking for yp_match in -lnsl""... $ac_c" 1>&6
1631echo "configure:1632: checking for yp_match in -lnsl" >&5
1632ac_lib_var=`echo nsl'_'yp_match | sed 'y%./+-%__p_%'`
1633if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635else
1636 ac_save_LIBS="$LIBS"
1637LIBS="-lnsl $LIBS"
1638cat > conftest.$ac_ext <<EOF
1639#line 1640 "configure"
1640#include "confdefs.h"
1641/* Override any gcc2 internal prototype to avoid an error. */
1642/* We use char because int might match the return type of a gcc2
1643 builtin and then its argument prototype would still apply. */
1644char yp_match();
1645
1646int main() {
1647yp_match()
1648; return 0; }
1649EOF
1650if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1651 rm -rf conftest*
1652 eval "ac_cv_lib_$ac_lib_var=yes"
1653else
1654 echo "configure: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1656 rm -rf conftest*
1657 eval "ac_cv_lib_$ac_lib_var=no"
1658fi
1659rm -f conftest*
1660LIBS="$ac_save_LIBS"
1661
1662fi
1663if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1665 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1666 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1667 cat >> confdefs.h <<EOF
1668#define $ac_tr_lib 1
1669EOF
1670
1671 LIBS="-lnsl $LIBS"
1672
1673else
1674 echo "$ac_t""no" 1>&6
1675fi
1676
1677fi
1678if test -z "$no_libnsl" ; then
1679 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1680echo "configure:1681: checking for main in -lsocket" >&5
1681ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1684else
1685 ac_save_LIBS="$LIBS"
1686LIBS="-lsocket $LIBS"
1687cat > conftest.$ac_ext <<EOF
1688#line 1689 "configure"
1689#include "confdefs.h"
1690
1691int main() {
1692main()
1693; return 0; }
1694EOF
1695if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1696 rm -rf conftest*
1697 eval "ac_cv_lib_$ac_lib_var=yes"
1698else
1699 echo "configure: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1701 rm -rf conftest*
1702 eval "ac_cv_lib_$ac_lib_var=no"
1703fi
1704rm -f conftest*
1705LIBS="$ac_save_LIBS"
1706
1707fi
1708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1709 echo "$ac_t""yes" 1>&6
1710 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1711 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1712 cat >> confdefs.h <<EOF
1713#define $ac_tr_lib 1
1714EOF
1715
1716 LIBS="-lsocket $LIBS"
1717
1718else
1719 echo "$ac_t""no" 1>&6
1720fi
1721
1722fi
1723
1724# Checks for header files.
1725for ac_hdr in bstring.h endian.h floatingpoint.h lastlog.h limits.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h usersec.h util.h utmp.h utmpx.h
1726do
1727ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1728echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1729echo "configure:1730: checking for $ac_hdr" >&5
1730if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732else
1733 cat > conftest.$ac_ext <<EOF
1734#line 1735 "configure"
1735#include "confdefs.h"
1736#include <$ac_hdr>
1737EOF
1738ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1739{ (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1740ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1741if test -z "$ac_err"; then
1742 rm -rf conftest*
1743 eval "ac_cv_header_$ac_safe=yes"
1744else
1745 echo "$ac_err" >&5
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 rm -rf conftest*
1749 eval "ac_cv_header_$ac_safe=no"
1750fi
1751rm -f conftest*
1752fi
1753if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1754 echo "$ac_t""yes" 1>&6
1755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1756 cat >> confdefs.h <<EOF
1757#define $ac_tr_hdr 1
1758EOF
1759
1760else
1761 echo "$ac_t""no" 1>&6
1762fi
1763done
1764
1765
1766# Checks for library functions.
1767for ac_func in arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage inet_aton innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid sigaction sigvec snprintf strerror strlcat strlcpy strsep vsnprintf vhangup _getpty __b64_ntop
1768do
1769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1770echo "configure:1771: checking for $ac_func" >&5
1771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1773else
1774 cat > conftest.$ac_ext <<EOF
1775#line 1776 "configure"
1776#include "confdefs.h"
1777/* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $ac_func(); below. */
1779#include <assert.h>
1780/* Override any gcc2 internal prototype to avoid an error. */
1781/* We use char because int might match the return type of a gcc2
1782 builtin and then its argument prototype would still apply. */
1783char $ac_func();
1784
1785int main() {
1786
1787/* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1791choke me
1792#else
1793$ac_func();
1794#endif
1795
1796; return 0; }
1797EOF
1798if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1799 rm -rf conftest*
1800 eval "ac_cv_func_$ac_func=yes"
1801else
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1804 rm -rf conftest*
1805 eval "ac_cv_func_$ac_func=no"
1806fi
1807rm -f conftest*
1808fi
1809
1810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1813 cat >> confdefs.h <<EOF
1814#define $ac_tr_func 1
1815EOF
1816
1817else
1818 echo "$ac_t""no" 1>&6
1819fi
1820done
1821
1822for ac_func in gettimeofday time
1823do
1824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1825echo "configure:1826: checking for $ac_func" >&5
1826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828else
1829 cat > conftest.$ac_ext <<EOF
1830#line 1831 "configure"
1831#include "confdefs.h"
1832/* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $ac_func(); below. */
1834#include <assert.h>
1835/* Override any gcc2 internal prototype to avoid an error. */
1836/* We use char because int might match the return type of a gcc2
1837 builtin and then its argument prototype would still apply. */
1838char $ac_func();
1839
1840int main() {
1841
1842/* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1846choke me
1847#else
1848$ac_func();
1849#endif
1850
1851; return 0; }
1852EOF
1853if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1854 rm -rf conftest*
1855 eval "ac_cv_func_$ac_func=yes"
1856else
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 rm -rf conftest*
1860 eval "ac_cv_func_$ac_func=no"
1861fi
1862rm -f conftest*
1863fi
1864
1865if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1866 echo "$ac_t""yes" 1>&6
1867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1868 cat >> confdefs.h <<EOF
1869#define $ac_tr_func 1
1870EOF
1871
1872else
1873 echo "$ac_t""no" 1>&6
1874fi
1875done
1876
1877for ac_func in login logout updwtmp logwtmp
1878do
1879echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1880echo "configure:1881: checking for $ac_func" >&5
1881if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883else
1884 cat > conftest.$ac_ext <<EOF
1885#line 1886 "configure"
1886#include "confdefs.h"
1887/* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $ac_func(); below. */
1889#include <assert.h>
1890/* Override any gcc2 internal prototype to avoid an error. */
1891/* We use char because int might match the return type of a gcc2
1892 builtin and then its argument prototype would still apply. */
1893char $ac_func();
1894
1895int main() {
1896
1897/* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1901choke me
1902#else
1903$ac_func();
1904#endif
1905
1906; return 0; }
1907EOF
1908if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1909 rm -rf conftest*
1910 eval "ac_cv_func_$ac_func=yes"
1911else
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1914 rm -rf conftest*
1915 eval "ac_cv_func_$ac_func=no"
1916fi
1917rm -f conftest*
1918fi
1919
1920if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1921 echo "$ac_t""yes" 1>&6
1922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1923 cat >> confdefs.h <<EOF
1924#define $ac_tr_func 1
1925EOF
1926
1927else
1928 echo "$ac_t""no" 1>&6
1929fi
1930done
1931
1932for ac_func in entutent getutent getutid getutline pututline setutent
1933do
1934echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1935echo "configure:1936: checking for $ac_func" >&5
1936if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938else
1939 cat > conftest.$ac_ext <<EOF
1940#line 1941 "configure"
1941#include "confdefs.h"
1942/* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $ac_func(); below. */
1944#include <assert.h>
1945/* Override any gcc2 internal prototype to avoid an error. */
1946/* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1948char $ac_func();
1949
1950int main() {
1951
1952/* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1956choke me
1957#else
1958$ac_func();
1959#endif
1960
1961; return 0; }
1962EOF
1963if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1964 rm -rf conftest*
1965 eval "ac_cv_func_$ac_func=yes"
1966else
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -rf conftest*
1970 eval "ac_cv_func_$ac_func=no"
1971fi
1972rm -f conftest*
1973fi
1974
1975if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1978 cat >> confdefs.h <<EOF
1979#define $ac_tr_func 1
1980EOF
1981
1982else
1983 echo "$ac_t""no" 1>&6
1984fi
1985done
1986
1987for ac_func in utmpname
1988do
1989echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990echo "configure:1991: checking for $ac_func" >&5
1991if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993else
1994 cat > conftest.$ac_ext <<EOF
1995#line 1996 "configure"
1996#include "confdefs.h"
1997/* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
1999#include <assert.h>
2000/* Override any gcc2 internal prototype to avoid an error. */
2001/* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2003char $ac_func();
2004
2005int main() {
2006
2007/* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2011choke me
2012#else
2013$ac_func();
2014#endif
2015
2016; return 0; }
2017EOF
2018if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019 rm -rf conftest*
2020 eval "ac_cv_func_$ac_func=yes"
2021else
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 rm -rf conftest*
2025 eval "ac_cv_func_$ac_func=no"
2026fi
2027rm -f conftest*
2028fi
2029
2030if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034#define $ac_tr_func 1
2035EOF
2036
2037else
2038 echo "$ac_t""no" 1>&6
2039fi
2040done
2041
2042for ac_func in entutxent getutxent getutxid getutxline pututxline
2043do
2044echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2045echo "configure:2046: checking for $ac_func" >&5
2046if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048else
2049 cat > conftest.$ac_ext <<EOF
2050#line 2051 "configure"
2051#include "confdefs.h"
2052/* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char $ac_func(); below. */
2054#include <assert.h>
2055/* Override any gcc2 internal prototype to avoid an error. */
2056/* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2058char $ac_func();
2059
2060int main() {
2061
2062/* The GNU C library defines this for functions which it implements
2063 to always fail with ENOSYS. Some functions are actually named
2064 something starting with __ and the normal name is an alias. */
2065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2066choke me
2067#else
2068$ac_func();
2069#endif
2070
2071; return 0; }
2072EOF
2073if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2074 rm -rf conftest*
2075 eval "ac_cv_func_$ac_func=yes"
2076else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 rm -rf conftest*
2080 eval "ac_cv_func_$ac_func=no"
2081fi
2082rm -f conftest*
2083fi
2084
2085if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2088 cat >> confdefs.h <<EOF
2089#define $ac_tr_func 1
2090EOF
2091
2092else
2093 echo "$ac_t""no" 1>&6
2094fi
2095done
2096
2097for ac_func in setutxent utmpxname
2098do
2099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2100echo "configure:2101: checking for $ac_func" >&5
2101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103else
2104 cat > conftest.$ac_ext <<EOF
2105#line 2106 "configure"
2106#include "confdefs.h"
2107/* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $ac_func(); below. */
2109#include <assert.h>
2110/* Override any gcc2 internal prototype to avoid an error. */
2111/* We use char because int might match the return type of a gcc2
2112 builtin and then its argument prototype would still apply. */
2113char $ac_func();
2114
2115int main() {
2116
2117/* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2121choke me
2122#else
2123$ac_func();
2124#endif
2125
2126; return 0; }
2127EOF
2128if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2129 rm -rf conftest*
2130 eval "ac_cv_func_$ac_func=yes"
2131else
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 eval "ac_cv_func_$ac_func=no"
2136fi
2137rm -f conftest*
2138fi
2139
2140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2141 echo "$ac_t""yes" 1>&6
2142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2143 cat >> confdefs.h <<EOF
2144#define $ac_tr_func 1
2145EOF
2146
2147else
2148 echo "$ac_t""no" 1>&6
2149fi
2150done
2151
2152
2153echo $ac_n "checking for getuserattr""... $ac_c" 1>&6
2154echo "configure:2155: checking for getuserattr" >&5
2155if eval "test \"`echo '$''{'ac_cv_func_getuserattr'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2157else
2158 cat > conftest.$ac_ext <<EOF
2159#line 2160 "configure"
2160#include "confdefs.h"
2161/* System header to define __stub macros and hopefully few prototypes,
2162 which can conflict with char getuserattr(); below. */
2163#include <assert.h>
2164/* Override any gcc2 internal prototype to avoid an error. */
2165/* We use char because int might match the return type of a gcc2
2166 builtin and then its argument prototype would still apply. */
2167char getuserattr();
2168
2169int main() {
2170
2171/* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174#if defined (__stub_getuserattr) || defined (__stub___getuserattr)
2175choke me
2176#else
2177getuserattr();
2178#endif
2179
2180; return 0; }
2181EOF
2182if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2183 rm -rf conftest*
2184 eval "ac_cv_func_getuserattr=yes"
2185else
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 rm -rf conftest*
2189 eval "ac_cv_func_getuserattr=no"
2190fi
2191rm -f conftest*
2192fi
2193
2194if eval "test \"`echo '$ac_cv_func_'getuserattr`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 cat >> confdefs.h <<\EOF
2197#define HAVE_GETUSERATTR 1
2198EOF
2199
2200else
2201 echo "$ac_t""no" 1>&6
2202echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6
2203echo "configure:2204: checking for getuserattr in -ls" >&5
2204ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'`
2205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207else
2208 ac_save_LIBS="$LIBS"
2209LIBS="-ls $LIBS"
2210cat > conftest.$ac_ext <<EOF
2211#line 2212 "configure"
2212#include "confdefs.h"
2213/* Override any gcc2 internal prototype to avoid an error. */
2214/* We use char because int might match the return type of a gcc2
2215 builtin and then its argument prototype would still apply. */
2216char getuserattr();
2217
2218int main() {
2219getuserattr()
2220; return 0; }
2221EOF
2222if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2223 rm -rf conftest*
2224 eval "ac_cv_lib_$ac_lib_var=yes"
2225else
2226 echo "configure: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2228 rm -rf conftest*
2229 eval "ac_cv_lib_$ac_lib_var=no"
2230fi
2231rm -f conftest*
2232LIBS="$ac_save_LIBS"
2233
2234fi
2235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 LIBS="$LIBS -ls"; cat >> confdefs.h <<\EOF
2238#define HAVE_GETUSERATTR 1
2239EOF
2240
2241else
2242 echo "$ac_t""no" 1>&6
2243fi
2244
2245
2246fi
2247
2248
2249echo $ac_n "checking for login""... $ac_c" 1>&6
2250echo "configure:2251: checking for login" >&5
2251if eval "test \"`echo '$''{'ac_cv_func_login'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2253else
2254 cat > conftest.$ac_ext <<EOF
2255#line 2256 "configure"
2256#include "confdefs.h"
2257/* System header to define __stub macros and hopefully few prototypes,
2258 which can conflict with char login(); below. */
2259#include <assert.h>
2260/* Override any gcc2 internal prototype to avoid an error. */
2261/* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */
2263char login();
2264
2265int main() {
2266
2267/* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270#if defined (__stub_login) || defined (__stub___login)
2271choke me
2272#else
2273login();
2274#endif
2275
2276; return 0; }
2277EOF
2278if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2279 rm -rf conftest*
2280 eval "ac_cv_func_login=yes"
2281else
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 rm -rf conftest*
2285 eval "ac_cv_func_login=no"
2286fi
2287rm -f conftest*
2288fi
2289
2290if eval "test \"`echo '$ac_cv_func_'login`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2292 cat >> confdefs.h <<\EOF
2293#define HAVE_LOGIN 1
2294EOF
2295
2296else
2297 echo "$ac_t""no" 1>&6
2298echo $ac_n "checking for login in -lbsd""... $ac_c" 1>&6
2299echo "configure:2300: checking for login in -lbsd" >&5
2300ac_lib_var=`echo bsd'_'login | sed 'y%./+-%__p_%'`
2301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303else
2304 ac_save_LIBS="$LIBS"
2305LIBS="-lbsd $LIBS"
2306cat > conftest.$ac_ext <<EOF
2307#line 2308 "configure"
2308#include "confdefs.h"
2309/* Override any gcc2 internal prototype to avoid an error. */
2310/* We use char because int might match the return type of a gcc2
2311 builtin and then its argument prototype would still apply. */
2312char login();
2313
2314int main() {
2315login()
2316; return 0; }
2317EOF
2318if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319 rm -rf conftest*
2320 eval "ac_cv_lib_$ac_lib_var=yes"
2321else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -rf conftest*
2325 eval "ac_cv_lib_$ac_lib_var=no"
2326fi
2327rm -f conftest*
2328LIBS="$ac_save_LIBS"
2329
2330fi
2331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2332 echo "$ac_t""yes" 1>&6
2333 LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF
2334#define HAVE_LOGIN 1
2335EOF
2336
2337else
2338 echo "$ac_t""no" 1>&6
2339fi
2340
2341
2342fi
2343
2344
2345echo $ac_n "checking for daemon""... $ac_c" 1>&6
2346echo "configure:2347: checking for daemon" >&5
2347if eval "test \"`echo '$''{'ac_cv_func_daemon'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350 cat > conftest.$ac_ext <<EOF
2351#line 2352 "configure"
2352#include "confdefs.h"
2353/* System header to define __stub macros and hopefully few prototypes,
2354 which can conflict with char daemon(); below. */
2355#include <assert.h>
2356/* Override any gcc2 internal prototype to avoid an error. */
2357/* We use char because int might match the return type of a gcc2
2358 builtin and then its argument prototype would still apply. */
2359char daemon();
2360
2361int main() {
2362
2363/* The GNU C library defines this for functions which it implements
2364 to always fail with ENOSYS. Some functions are actually named
2365 something starting with __ and the normal name is an alias. */
2366#if defined (__stub_daemon) || defined (__stub___daemon)
2367choke me
2368#else
2369daemon();
2370#endif
2371
2372; return 0; }
2373EOF
2374if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375 rm -rf conftest*
2376 eval "ac_cv_func_daemon=yes"
2377else
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 rm -rf conftest*
2381 eval "ac_cv_func_daemon=no"
2382fi
2383rm -f conftest*
2384fi
2385
2386if eval "test \"`echo '$ac_cv_func_'daemon`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 cat >> confdefs.h <<\EOF
2389#define HAVE_DAEMON 1
2390EOF
2391
2392else
2393 echo "$ac_t""no" 1>&6
2394echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
2395echo "configure:2396: checking for daemon in -lbsd" >&5
2396ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
2397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399else
2400 ac_save_LIBS="$LIBS"
2401LIBS="-lbsd $LIBS"
2402cat > conftest.$ac_ext <<EOF
2403#line 2404 "configure"
2404#include "confdefs.h"
2405/* Override any gcc2 internal prototype to avoid an error. */
2406/* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2408char daemon();
2409
2410int main() {
2411daemon()
2412; return 0; }
2413EOF
2414if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2415 rm -rf conftest*
2416 eval "ac_cv_lib_$ac_lib_var=yes"
2417else
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 rm -rf conftest*
2421 eval "ac_cv_lib_$ac_lib_var=no"
2422fi
2423rm -f conftest*
2424LIBS="$ac_save_LIBS"
2425
2426fi
2427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF
2430#define HAVE_DAEMON 1
2431EOF
2432
2433else
2434 echo "$ac_t""no" 1>&6
2435fi
2436
2437
2438fi
2439
2440
2441echo $ac_n "checking for getpagesize""... $ac_c" 1>&6
2442echo "configure:2443: checking for getpagesize" >&5
2443if eval "test \"`echo '$''{'ac_cv_func_getpagesize'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2445else
2446 cat > conftest.$ac_ext <<EOF
2447#line 2448 "configure"
2448#include "confdefs.h"
2449/* System header to define __stub macros and hopefully few prototypes,
2450 which can conflict with char getpagesize(); below. */
2451#include <assert.h>
2452/* Override any gcc2 internal prototype to avoid an error. */
2453/* We use char because int might match the return type of a gcc2
2454 builtin and then its argument prototype would still apply. */
2455char getpagesize();
2456
2457int main() {
2458
2459/* The GNU C library defines this for functions which it implements
2460 to always fail with ENOSYS. Some functions are actually named
2461 something starting with __ and the normal name is an alias. */
2462#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
2463choke me
2464#else
2465getpagesize();
2466#endif
2467
2468; return 0; }
2469EOF
2470if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2471 rm -rf conftest*
2472 eval "ac_cv_func_getpagesize=yes"
2473else
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 rm -rf conftest*
2477 eval "ac_cv_func_getpagesize=no"
2478fi
2479rm -f conftest*
2480fi
2481
2482if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then
2483 echo "$ac_t""yes" 1>&6
2484 cat >> confdefs.h <<\EOF
2485#define HAVE_GETPAGESIZE 1
2486EOF
2487
2488else
2489 echo "$ac_t""no" 1>&6
2490echo $ac_n "checking for getpagesize in -lucb""... $ac_c" 1>&6
2491echo "configure:2492: checking for getpagesize in -lucb" >&5
2492ac_lib_var=`echo ucb'_'getpagesize | sed 'y%./+-%__p_%'`
2493if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495else
2496 ac_save_LIBS="$LIBS"
2497LIBS="-lucb $LIBS"
2498cat > conftest.$ac_ext <<EOF
2499#line 2500 "configure"
2500#include "confdefs.h"
2501/* Override any gcc2 internal prototype to avoid an error. */
2502/* We use char because int might match the return type of a gcc2
2503 builtin and then its argument prototype would still apply. */
2504char getpagesize();
2505
2506int main() {
2507getpagesize()
2508; return 0; }
2509EOF
2510if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 rm -rf conftest*
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2513else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 eval "ac_cv_lib_$ac_lib_var=no"
2518fi
2519rm -f conftest*
2520LIBS="$ac_save_LIBS"
2521
2522fi
2523if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 LIBS="$LIBS -lucb"; cat >> confdefs.h <<\EOF
2526#define HAVE_GETPAGESIZE 1
2527EOF
2528
2529else
2530 echo "$ac_t""no" 1>&6
2531fi
2532
2533
2534fi
2535
2536
2537# Check for broken snprintf
2538if test "x$ac_cv_func_snprintf" = "xyes" ; then
2539 echo $ac_n "checking whether snprintf correctly terminates long strings""... $ac_c" 1>&6
2540echo "configure:2541: checking whether snprintf correctly terminates long strings" >&5
2541 if test "$cross_compiling" = yes; then
2542 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2543else
2544 cat > conftest.$ac_ext <<EOF
2545#line 2546 "configure"
2546#include "confdefs.h"
2547
2548#include <stdio.h>
2549int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
2550
2551EOF
2552if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2553then
2554 echo "$ac_t""yes" 1>&6
2555else
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 rm -fr conftest*
2559
2560 echo "$ac_t""no" 1>&6
2561 cat >> confdefs.h <<\EOF
2562#define BROKEN_SNPRINTF 1
2563EOF
2564
2565 echo "configure: warning: ****** Your snprintf() function is broken, complain to your vendor" 1>&2
2566
2567
2568fi
2569rm -fr conftest*
2570fi
2571
2572fi
2573
2574PAM_MSG="no"
2575# Check whether --with-pam or --without-pam was given.
2576if test "${with_pam+set}" = set; then
2577 withval="$with_pam"
2578
2579 if test "x$withval" = "xno" ; then
2580 no_pam=1
2581 cat >> confdefs.h <<\EOF
2582#define DISABLE_PAM 1
2583EOF
2584
2585 PAM_MSG="disabled"
2586 fi
2587
2588
2589fi
2590
2591if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
2592 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2593echo "configure:2594: checking for dlopen in -ldl" >&5
2594ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2595if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597else
2598 ac_save_LIBS="$LIBS"
2599LIBS="-ldl $LIBS"
2600cat > conftest.$ac_ext <<EOF
2601#line 2602 "configure"
2602#include "confdefs.h"
2603/* Override any gcc2 internal prototype to avoid an error. */
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606char dlopen();
2607
2608int main() {
2609dlopen()
2610; return 0; }
2611EOF
2612if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2613 rm -rf conftest*
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2615else
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 eval "ac_cv_lib_$ac_lib_var=no"
2620fi
2621rm -f conftest*
2622LIBS="$ac_save_LIBS"
2623
2624fi
2625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h <<EOF
2630#define $ac_tr_lib 1
2631EOF
2632
2633 LIBS="-ldl $LIBS"
2634
2635else
2636 echo "$ac_t""no" 1>&6
2637fi
2638
2639 LIBS="$LIBS -lpam"
2640
2641 for ac_func in pam_getenvlist
2642do
2643echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2644echo "configure:2645: checking for $ac_func" >&5
2645if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648 cat > conftest.$ac_ext <<EOF
2649#line 2650 "configure"
2650#include "confdefs.h"
2651/* System header to define __stub macros and hopefully few prototypes,
2652 which can conflict with char $ac_func(); below. */
2653#include <assert.h>
2654/* Override any gcc2 internal prototype to avoid an error. */
2655/* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657char $ac_func();
2658
2659int main() {
2660
2661/* The GNU C library defines this for functions which it implements
2662 to always fail with ENOSYS. Some functions are actually named
2663 something starting with __ and the normal name is an alias. */
2664#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2665choke me
2666#else
2667$ac_func();
2668#endif
2669
2670; return 0; }
2671EOF
2672if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2673 rm -rf conftest*
2674 eval "ac_cv_func_$ac_func=yes"
2675else
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 rm -rf conftest*
2679 eval "ac_cv_func_$ac_func=no"
2680fi
2681rm -f conftest*
2682fi
2683
2684if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2687 cat >> confdefs.h <<EOF
2688#define $ac_tr_func 1
2689EOF
2690
2691else
2692 echo "$ac_t""no" 1>&6
2693fi
2694done
2695
2696
2697 disable_shadow=yes
2698
2699 PAM_MSG="yes"
2700
2701 # Check PAM strerror arguments (old PAM)
2702 echo $ac_n "checking whether pam_strerror takes only one argument""... $ac_c" 1>&6
2703echo "configure:2704: checking whether pam_strerror takes only one argument" >&5
2704 cat > conftest.$ac_ext <<EOF
2705#line 2706 "configure"
2706#include "confdefs.h"
2707
2708#include <stdlib.h>
2709#include <security/pam_appl.h>
2710
2711int main() {
2712(void)pam_strerror((pam_handle_t *)NULL, -1);
2713; return 0; }
2714EOF
2715if { (eval echo configure:2716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2716 rm -rf conftest*
2717 echo "$ac_t""no" 1>&6
2718else
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 rm -rf conftest*
2722
2723 cat >> confdefs.h <<\EOF
2724#define HAVE_OLD_PAM 1
2725EOF
2726
2727 echo "$ac_t""yes" 1>&6
2728 PAM_MSG="yes (old library)"
2729
2730
2731fi
2732rm -f conftest*
2733fi
2734
2735# The big search for OpenSSL
2736# Check whether --with-ssl-dir or --without-ssl-dir was given.
2737if test "${with_ssl_dir+set}" = set; then
2738 withval="$with_ssl_dir"
2739
2740 if test "x$withval" != "$xno" ; then
2741 tryssldir=$withval
2742 fi
2743
2744
2745fi
2746
2747
2748saved_LIBS="$LIBS"
2749saved_LDFLAGS="$LDFLAGS"
2750saved_CFLAGS="$CFLAGS"
2751if test "x$prefix" != "xNONE" ; then
2752 tryssldir="$tryssldir $prefix"
2753fi
2754echo $ac_n "checking for OpenSSL directory""... $ac_c" 1>&6
2755echo "configure:2756: checking for OpenSSL directory" >&5
2756if eval "test \"`echo '$''{'ac_cv_openssldir'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2758else
2759
2760
2761 for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
2762 if test ! -z "$ssldir" ; then
2763 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
2764 CFLAGS="$saved_CFLAGS -I$ssldir/include"
2765 if test ! -z "$need_dash_r" ; then
2766 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
2767 fi
2768 else
2769 LDFLAGS="$saved_LDFLAGS"
2770 fi
2771
2772 LIBS="$saved_LIBS -lcrypto"
2773
2774 # Basic test to check for compatible version and correct linking
2775 # *does not* test for RSA - that comes later.
2776 if test "$cross_compiling" = yes; then
2777 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2778else
2779 cat > conftest.$ac_ext <<EOF
2780#line 2781 "configure"
2781#include "confdefs.h"
2782
2783#include <string.h>
2784#include <openssl/rand.h>
2785int main(void)
2786{
2787 char a[2048];
2788 memset(a, 0, sizeof(a));
2789 RAND_add(a, sizeof(a), sizeof(a));
2790 return(RAND_status() <= 0);
2791}
2792
2793EOF
2794if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2795then
2796
2797 found_crypto=1
2798 break;
2799
2800else
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 rm -fr conftest*
2804
2805
2806fi
2807rm -fr conftest*
2808fi
2809
2810
2811 if test ! -z "$found_crypto" ; then
2812 break;
2813 fi
2814 done
2815
2816 if test -z "$found_crypto" ; then
2817 { echo "configure: error: Could not find working SSLeay / OpenSSL libraries, please install" 1>&2; exit 1; }
2818 fi
2819 if test -z "$ssldir" ; then
2820 ssldir="(system)"
2821 fi
2822
2823 ac_cv_openssldir=$ssldir
2824
2825fi
2826
2827echo "$ac_t""$ac_cv_openssldir" 1>&6
2828
2829if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
2830 cat >> confdefs.h <<\EOF
2831#define HAVE_OPENSSL 1
2832EOF
2833
2834 ssldir=$ac_cv_openssldir
2835 CFLAGS="$saved_CFLAGS -I$ssldir/include"
2836 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
2837 if test ! -z "$need_dash_r" ; then
2838 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
2839 fi
2840 if test ! -z "$blibpath" ; then
2841 blibpath="$blibpath:$ssldir:$ssldir/lib"
2842 fi
2843fi
2844LIBS="$saved_LIBS -lcrypto"
2845
2846# Now test RSA support
2847saved_LIBS="$LIBS"
2848echo $ac_n "checking for RSA support""... $ac_c" 1>&6
2849echo "configure:2850: checking for RSA support" >&5
2850for WANTS_RSAREF in "" 1 ; do
2851 if test -z "$WANTS_RSAREF" ; then
2852 LIBS="$saved_LIBS"
2853 else
2854 LIBS="$saved_LIBS -lRSAglue -lrsaref"
2855 fi
2856 if test "$cross_compiling" = yes; then
2857 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2858else
2859 cat > conftest.$ac_ext <<EOF
2860#line 2861 "configure"
2861#include "confdefs.h"
2862
2863#include <string.h>
2864#include <openssl/rand.h>
2865#include <openssl/rsa.h>
2866#include <openssl/bn.h>
2867#include <openssl/sha.h>
2868int main(void)
2869{
2870 int num; RSA *key; static unsigned char p_in[] = "blahblah";
2871 unsigned char c[256], p[256];
2872 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
2873 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
2874 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
2875 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
2876}
2877
2878EOF
2879if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2880then
2881
2882 rsa_works=1
2883 break;
2884
2885else
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2888fi
2889rm -fr conftest*
2890fi
2891
2892done
2893
2894if test ! -z "$no_rsa" ; then
2895 echo "$ac_t""disabled" 1>&6
2896 RSA_MSG="disabled"
2897else
2898 if test -z "$rsa_works" ; then
2899 echo "configure: warning: *** No RSA support found *** " 1>&2
2900 RSA_MSG="no"
2901 else
2902 if test -z "$WANTS_RSAREF" ; then
2903 echo "$ac_t""yes" 1>&6
2904 RSA_MSG="yes"
2905 else
2906 RSA_MSG="yes (using RSAref)"
2907 echo "$ac_t""using RSAref" 1>&6
2908 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
2909 fi
2910 fi
2911fi
2912
2913# Checks for data types
2914echo $ac_n "checking size of char""... $ac_c" 1>&6
2915echo "configure:2916: checking size of char" >&5
2916if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918else
2919 if test "$cross_compiling" = yes; then
2920 ac_cv_sizeof_char=1
2921else
2922 cat > conftest.$ac_ext <<EOF
2923#line 2924 "configure"
2924#include "confdefs.h"
2925#include <stdio.h>
2926main()
2927{
2928 FILE *f=fopen("conftestval", "w");
2929 if (!f) exit(1);
2930 fprintf(f, "%d\n", sizeof(char));
2931 exit(0);
2932}
2933EOF
2934if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2935then
2936 ac_cv_sizeof_char=`cat conftestval`
2937else
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 rm -fr conftest*
2941 ac_cv_sizeof_char=0
2942fi
2943rm -fr conftest*
2944fi
2945
2946fi
2947echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2948cat >> confdefs.h <<EOF
2949#define SIZEOF_CHAR $ac_cv_sizeof_char
2950EOF
2951
2952
2953echo $ac_n "checking size of short int""... $ac_c" 1>&6
2954echo "configure:2955: checking size of short int" >&5
2955if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957else
2958 if test "$cross_compiling" = yes; then
2959 ac_cv_sizeof_short_int=2
2960else
2961 cat > conftest.$ac_ext <<EOF
2962#line 2963 "configure"
2963#include "confdefs.h"
2964#include <stdio.h>
2965main()
2966{
2967 FILE *f=fopen("conftestval", "w");
2968 if (!f) exit(1);
2969 fprintf(f, "%d\n", sizeof(short int));
2970 exit(0);
2971}
2972EOF
2973if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2974then
2975 ac_cv_sizeof_short_int=`cat conftestval`
2976else
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2979 rm -fr conftest*
2980 ac_cv_sizeof_short_int=0
2981fi
2982rm -fr conftest*
2983fi
2984
2985fi
2986echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
2987cat >> confdefs.h <<EOF
2988#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
2989EOF
2990
2991
2992echo $ac_n "checking size of int""... $ac_c" 1>&6
2993echo "configure:2994: checking size of int" >&5
2994if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996else
2997 if test "$cross_compiling" = yes; then
2998 ac_cv_sizeof_int=4
2999else
3000 cat > conftest.$ac_ext <<EOF
3001#line 3002 "configure"
3002#include "confdefs.h"
3003#include <stdio.h>
3004main()
3005{
3006 FILE *f=fopen("conftestval", "w");
3007 if (!f) exit(1);
3008 fprintf(f, "%d\n", sizeof(int));
3009 exit(0);
3010}
3011EOF
3012if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3013then
3014 ac_cv_sizeof_int=`cat conftestval`
3015else
3016 echo "configure: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3018 rm -fr conftest*
3019 ac_cv_sizeof_int=0
3020fi
3021rm -fr conftest*
3022fi
3023
3024fi
3025echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3026cat >> confdefs.h <<EOF
3027#define SIZEOF_INT $ac_cv_sizeof_int
3028EOF
3029
3030
3031echo $ac_n "checking size of long int""... $ac_c" 1>&6
3032echo "configure:3033: checking size of long int" >&5
3033if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3035else
3036 if test "$cross_compiling" = yes; then
3037 ac_cv_sizeof_long_int=4
3038else
3039 cat > conftest.$ac_ext <<EOF
3040#line 3041 "configure"
3041#include "confdefs.h"
3042#include <stdio.h>
3043main()
3044{
3045 FILE *f=fopen("conftestval", "w");
3046 if (!f) exit(1);
3047 fprintf(f, "%d\n", sizeof(long int));
3048 exit(0);
3049}
3050EOF
3051if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3052then
3053 ac_cv_sizeof_long_int=`cat conftestval`
3054else
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 rm -fr conftest*
3058 ac_cv_sizeof_long_int=0
3059fi
3060rm -fr conftest*
3061fi
3062
3063fi
3064echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
3065cat >> confdefs.h <<EOF
3066#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
3067EOF
3068
3069
3070echo $ac_n "checking size of long long int""... $ac_c" 1>&6
3071echo "configure:3072: checking size of long long int" >&5
3072if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074else
3075 if test "$cross_compiling" = yes; then
3076 ac_cv_sizeof_long_long_int=8
3077else
3078 cat > conftest.$ac_ext <<EOF
3079#line 3080 "configure"
3080#include "confdefs.h"
3081#include <stdio.h>
3082main()
3083{
3084 FILE *f=fopen("conftestval", "w");
3085 if (!f) exit(1);
3086 fprintf(f, "%d\n", sizeof(long long int));
3087 exit(0);
3088}
3089EOF
3090if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3091then
3092 ac_cv_sizeof_long_long_int=`cat conftestval`
3093else
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3096 rm -fr conftest*
3097 ac_cv_sizeof_long_long_int=0
3098fi
3099rm -fr conftest*
3100fi
3101
3102fi
3103echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
3104cat >> confdefs.h <<EOF
3105#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
3106EOF
3107
3108
3109
3110# More checks for data types
3111echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
3112echo "configure:3113: checking for intXX_t types" >&5
3113if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3115else
3116
3117 cat > conftest.$ac_ext <<EOF
3118#line 3119 "configure"
3119#include "confdefs.h"
3120 #include <sys/types.h>
3121int main() {
3122 int8_t a; int16_t b; int32_t c; a = b = c = 1;
3123; return 0; }
3124EOF
3125if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126 rm -rf conftest*
3127 ac_cv_have_intxx_t="yes"
3128else
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 rm -rf conftest*
3132 ac_cv_have_intxx_t="no"
3133
3134fi
3135rm -f conftest*
3136
3137fi
3138
3139echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
3140if test "x$ac_cv_have_intxx_t" = "xyes" ; then
3141 cat >> confdefs.h <<\EOF
3142#define HAVE_INTXX_T 1
3143EOF
3144
3145 have_intxx_t=1
3146fi
3147
3148echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
3149echo "configure:3150: checking for u_intXX_t types" >&5
3150if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3152else
3153
3154 cat > conftest.$ac_ext <<EOF
3155#line 3156 "configure"
3156#include "confdefs.h"
3157 #include <sys/types.h>
3158int main() {
3159 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
3160; return 0; }
3161EOF
3162if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 rm -rf conftest*
3164 ac_cv_have_u_intxx_t="yes"
3165else
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3168 rm -rf conftest*
3169 ac_cv_have_u_intxx_t="no"
3170
3171fi
3172rm -f conftest*
3173
3174fi
3175
3176echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
3177if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
3178 cat >> confdefs.h <<\EOF
3179#define HAVE_U_INTXX_T 1
3180EOF
3181
3182 have_u_intxx_t=1
3183fi
3184
3185
3186if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
3187 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
3188then
3189 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
3190echo "configure:3191: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
3191 cat > conftest.$ac_ext <<EOF
3192#line 3193 "configure"
3193#include "confdefs.h"
3194
3195#include <sys/bitypes.h>
3196
3197int main() {
3198
3199 int8_t a; int16_t b; int32_t c;
3200 u_int8_t e; u_int16_t f; u_int32_t g;
3201 a = b = c = e = f = g = 1;
3202
3203; return 0; }
3204EOF
3205if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3206 rm -rf conftest*
3207
3208 cat >> confdefs.h <<\EOF
3209#define HAVE_U_INTXX_T 1
3210EOF
3211
3212 cat >> confdefs.h <<\EOF
3213#define HAVE_INTXX_T 1
3214EOF
3215
3216 echo "$ac_t""yes" 1>&6
3217
3218else
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221 rm -rf conftest*
3222 echo "$ac_t""no" 1>&6
3223
3224fi
3225rm -f conftest*
3226fi
3227
3228if test -z "$have_u_intxx_t" ; then
3229 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
3230echo "configure:3231: checking for uintXX_t types" >&5
3231if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3233else
3234
3235 cat > conftest.$ac_ext <<EOF
3236#line 3237 "configure"
3237#include "confdefs.h"
3238
3239#include <sys/types.h>
3240
3241int main() {
3242 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
3243; return 0; }
3244EOF
3245if { (eval echo configure:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 rm -rf conftest*
3247 ac_cv_have_uintxx_t="yes"
3248else
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 rm -rf conftest*
3252 ac_cv_have_uintxx_t="no"
3253
3254fi
3255rm -f conftest*
3256
3257fi
3258
3259echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
3260 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
3261 cat >> confdefs.h <<\EOF
3262#define HAVE_UINTXX_T 1
3263EOF
3264
3265 fi
3266fi
3267
3268echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3269echo "configure:3270: checking for socklen_t" >&5
3270if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272else
3273
3274 cat > conftest.$ac_ext <<EOF
3275#line 3276 "configure"
3276#include "confdefs.h"
3277
3278#include <sys/types.h>
3279#include <sys/socket.h>
3280
3281int main() {
3282socklen_t foo; foo = 1235;
3283; return 0; }
3284EOF
3285if { (eval echo configure:3286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3286 rm -rf conftest*
3287 ac_cv_have_socklen_t="yes"
3288else
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3291 rm -rf conftest*
3292 ac_cv_have_socklen_t="no"
3293
3294fi
3295rm -f conftest*
3296
3297fi
3298
3299echo "$ac_t""$ac_cv_have_socklen_t" 1>&6
3300if test "x$ac_cv_have_socklen_t" = "xyes" ; then
3301 cat >> confdefs.h <<\EOF
3302#define HAVE_SOCKLEN_T 1
3303EOF
3304
3305fi
3306
3307echo $ac_n "checking for size_t""... $ac_c" 1>&6
3308echo "configure:3309: checking for size_t" >&5
3309if eval "test \"`echo '$''{'ac_cv_have_size_t'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3311else
3312
3313 cat > conftest.$ac_ext <<EOF
3314#line 3315 "configure"
3315#include "confdefs.h"
3316
3317#include <sys/types.h>
3318
3319int main() {
3320 size_t foo; foo = 1235;
3321; return 0; }
3322EOF
3323if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 rm -rf conftest*
3325 ac_cv_have_size_t="yes"
3326else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 rm -rf conftest*
3330 ac_cv_have_size_t="no"
3331
3332fi
3333rm -f conftest*
3334
3335fi
3336
3337echo "$ac_t""$ac_cv_have_size_t" 1>&6
3338if test "x$ac_cv_have_size_t" = "xyes" ; then
3339 cat >> confdefs.h <<\EOF
3340#define HAVE_SIZE_T 1
3341EOF
3342
3343fi
3344
3345echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3346echo "configure:3347: checking for ssize_t" >&5
3347if eval "test \"`echo '$''{'ac_cv_have_ssize_t'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349else
3350
3351 cat > conftest.$ac_ext <<EOF
3352#line 3353 "configure"
3353#include "confdefs.h"
3354
3355#include <sys/types.h>
3356
3357int main() {
3358 ssize_t foo; foo = 1235;
3359; return 0; }
3360EOF
3361if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362 rm -rf conftest*
3363 ac_cv_have_ssize_t="yes"
3364else
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 rm -rf conftest*
3368 ac_cv_have_ssize_t="no"
3369
3370fi
3371rm -f conftest*
3372
3373fi
3374
3375echo "$ac_t""$ac_cv_have_ssize_t" 1>&6
3376if test "x$ac_cv_have_ssize_t" = "xyes" ; then
3377 cat >> confdefs.h <<\EOF
3378#define HAVE_SSIZE_T 1
3379EOF
3380
3381fi
3382
3383echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
3384echo "configure:3385: checking for sa_family_t" >&5
3385if eval "test \"`echo '$''{'ac_cv_have_sa_family_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387else
3388
3389 cat > conftest.$ac_ext <<EOF
3390#line 3391 "configure"
3391#include "confdefs.h"
3392
3393#include <sys/types.h>
3394#include <sys/socket.h>
3395
3396int main() {
3397 sa_family_t foo; foo = 1235;
3398; return 0; }
3399EOF
3400if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401 rm -rf conftest*
3402 ac_cv_have_sa_family_t="yes"
3403else
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 rm -rf conftest*
3407 ac_cv_have_sa_family_t="no"
3408
3409fi
3410rm -f conftest*
3411
3412fi
3413
3414echo "$ac_t""$ac_cv_have_sa_family_t" 1>&6
3415if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
3416 cat >> confdefs.h <<\EOF
3417#define HAVE_SA_FAMILY_T 1
3418EOF
3419
3420fi
3421
3422echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3423echo "configure:3424: checking for pid_t" >&5
3424if eval "test \"`echo '$''{'ac_cv_have_pid_t'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3426else
3427
3428 cat > conftest.$ac_ext <<EOF
3429#line 3430 "configure"
3430#include "confdefs.h"
3431
3432#include <sys/types.h>
3433
3434int main() {
3435 pid_t foo; foo = 1235;
3436; return 0; }
3437EOF
3438if { (eval echo configure:3439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3439 rm -rf conftest*
3440 ac_cv_have_pid_t="yes"
3441else
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 rm -rf conftest*
3445 ac_cv_have_pid_t="no"
3446
3447fi
3448rm -f conftest*
3449
3450fi
3451
3452echo "$ac_t""$ac_cv_have_pid_t" 1>&6
3453if test "x$ac_cv_have_pid_t" = "xyes" ; then
3454 cat >> confdefs.h <<\EOF
3455#define HAVE_PID_T 1
3456EOF
3457
3458fi
3459
3460echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3461echo "configure:3462: checking for mode_t" >&5
3462if eval "test \"`echo '$''{'ac_cv_have_mode_t'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3464else
3465
3466 cat > conftest.$ac_ext <<EOF
3467#line 3468 "configure"
3468#include "confdefs.h"
3469
3470#include <sys/types.h>
3471
3472int main() {
3473 mode_t foo; foo = 1235;
3474; return 0; }
3475EOF
3476if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 rm -rf conftest*
3478 ac_cv_have_mode_t="yes"
3479else
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 rm -rf conftest*
3483 ac_cv_have_mode_t="no"
3484
3485fi
3486rm -f conftest*
3487
3488fi
3489
3490echo "$ac_t""$ac_cv_have_mode_t" 1>&6
3491if test "x$ac_cv_have_mode_t" = "xyes" ; then
3492 cat >> confdefs.h <<\EOF
3493#define HAVE_MODE_T 1
3494EOF
3495
3496fi
3497
3498
3499echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
3500echo "configure:3501: checking for struct sockaddr_storage" >&5
3501if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_storage'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503else
3504
3505 cat > conftest.$ac_ext <<EOF
3506#line 3507 "configure"
3507#include "confdefs.h"
3508
3509#include <sys/types.h>
3510#include <sys/socket.h>
3511
3512int main() {
3513 struct sockaddr_storage s;
3514; return 0; }
3515EOF
3516if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 rm -rf conftest*
3518 ac_cv_have_struct_sockaddr_storage="yes"
3519else
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 rm -rf conftest*
3523 ac_cv_have_struct_sockaddr_storage="no"
3524
3525fi
3526rm -f conftest*
3527
3528fi
3529
3530echo "$ac_t""$ac_cv_have_struct_sockaddr_storage" 1>&6
3531if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
3532 cat >> confdefs.h <<\EOF
3533#define HAVE_STRUCT_SOCKADDR_STORAGE 1
3534EOF
3535
3536fi
3537
3538echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6
3539echo "configure:3540: checking for struct sockaddr_in6" >&5
3540if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_in6'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3542else
3543
3544 cat > conftest.$ac_ext <<EOF
3545#line 3546 "configure"
3546#include "confdefs.h"
3547
3548#include <sys/types.h>
3549#include <netinet/in.h>
3550
3551int main() {
3552 struct sockaddr_in6 s; s.sin6_family = 0;
3553; return 0; }
3554EOF
3555if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3556 rm -rf conftest*
3557 ac_cv_have_struct_sockaddr_in6="yes"
3558else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 ac_cv_have_struct_sockaddr_in6="no"
3563
3564fi
3565rm -f conftest*
3566
3567fi
3568
3569echo "$ac_t""$ac_cv_have_struct_sockaddr_in6" 1>&6
3570if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
3571 cat >> confdefs.h <<\EOF
3572#define HAVE_STRUCT_SOCKADDR_IN6 1
3573EOF
3574
3575fi
3576
3577echo $ac_n "checking for struct in6_addr""... $ac_c" 1>&6
3578echo "configure:3579: checking for struct in6_addr" >&5
3579if eval "test \"`echo '$''{'ac_cv_have_struct_in6_addr'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581else
3582
3583 cat > conftest.$ac_ext <<EOF
3584#line 3585 "configure"
3585#include "confdefs.h"
3586
3587#include <sys/types.h>
3588#include <netinet/in.h>
3589
3590int main() {
3591 struct in6_addr s; s.s6_addr[0] = 0;
3592; return 0; }
3593EOF
3594if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595 rm -rf conftest*
3596 ac_cv_have_struct_in6_addr="yes"
3597else
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3600 rm -rf conftest*
3601 ac_cv_have_struct_in6_addr="no"
3602
3603fi
3604rm -f conftest*
3605
3606fi
3607
3608echo "$ac_t""$ac_cv_have_struct_in6_addr" 1>&6
3609if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
3610 cat >> confdefs.h <<\EOF
3611#define HAVE_STRUCT_IN6_ADDR 1
3612EOF
3613
3614fi
3615
3616echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
3617echo "configure:3618: checking for struct addrinfo" >&5
3618if eval "test \"`echo '$''{'ac_cv_have_struct_addrinfo'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620else
3621
3622 cat > conftest.$ac_ext <<EOF
3623#line 3624 "configure"
3624#include "confdefs.h"
3625
3626#include <sys/types.h>
3627#include <sys/socket.h>
3628#include <netdb.h>
3629
3630int main() {
3631 struct addrinfo s; s.ai_flags = AI_PASSIVE;
3632; return 0; }
3633EOF
3634if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 rm -rf conftest*
3636 ac_cv_have_struct_addrinfo="yes"
3637else
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 ac_cv_have_struct_addrinfo="no"
3642
3643fi
3644rm -f conftest*
3645
3646fi
3647
3648echo "$ac_t""$ac_cv_have_struct_addrinfo" 1>&6
3649if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
3650 cat >> confdefs.h <<\EOF
3651#define HAVE_STRUCT_ADDRINFO 1
3652EOF
3653
3654fi
3655
3656
3657# Checks for structure members
3658
3659
3660# look for field 'ut_host' in header 'utmp.h'
3661 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
3662 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
3663 echo $ac_n "checking for ut_host field in utmp.h""... $ac_c" 1>&6
3664echo "configure:3665: checking for ut_host field in utmp.h" >&5
3665 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667else
3668
3669 cat > conftest.$ac_ext <<EOF
3670#line 3671 "configure"
3671#include "confdefs.h"
3672#include <utmp.h>
3673EOF
3674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3675 egrep "ut_host" >/dev/null 2>&1; then
3676 rm -rf conftest*
3677 eval "$ossh_varname=yes"
3678else
3679 rm -rf conftest*
3680 eval "$ossh_varname=no"
3681fi
3682rm -f conftest*
3683
3684fi
3685
3686 ossh_result=`eval 'echo $'"$ossh_varname"`
3687 if test -n "`echo $ossh_varname`"; then
3688 echo "$ac_t""$ossh_result" 1>&6
3689 if test "x$ossh_result" = "xyes"; then
3690 cat >> confdefs.h <<\EOF
3691#define HAVE_HOST_IN_UTMP 1
3692EOF
3693
3694 fi
3695 else
3696 echo "$ac_t""no" 1>&6
3697 fi
3698
3699
3700# look for field 'ut_host' in header 'utmpx.h'
3701 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
3702 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
3703 echo $ac_n "checking for ut_host field in utmpx.h""... $ac_c" 1>&6
3704echo "configure:3705: checking for ut_host field in utmpx.h" >&5
3705 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707else
3708
3709 cat > conftest.$ac_ext <<EOF
3710#line 3711 "configure"
3711#include "confdefs.h"
3712#include <utmpx.h>
3713EOF
3714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 egrep "ut_host" >/dev/null 2>&1; then
3716 rm -rf conftest*
3717 eval "$ossh_varname=yes"
3718else
3719 rm -rf conftest*
3720 eval "$ossh_varname=no"
3721fi
3722rm -f conftest*
3723
3724fi
3725
3726 ossh_result=`eval 'echo $'"$ossh_varname"`
3727 if test -n "`echo $ossh_varname`"; then
3728 echo "$ac_t""$ossh_result" 1>&6
3729 if test "x$ossh_result" = "xyes"; then
3730 cat >> confdefs.h <<\EOF
3731#define HAVE_HOST_IN_UTMPX 1
3732EOF
3733
3734 fi
3735 else
3736 echo "$ac_t""no" 1>&6
3737 fi
3738
3739
3740# look for field 'syslen' in header 'utmpx.h'
3741 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
3742 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
3743 echo $ac_n "checking for syslen field in utmpx.h""... $ac_c" 1>&6
3744echo "configure:3745: checking for syslen field in utmpx.h" >&5
3745 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3747else
3748
3749 cat > conftest.$ac_ext <<EOF
3750#line 3751 "configure"
3751#include "confdefs.h"
3752#include <utmpx.h>
3753EOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 egrep "syslen" >/dev/null 2>&1; then
3756 rm -rf conftest*
3757 eval "$ossh_varname=yes"
3758else
3759 rm -rf conftest*
3760 eval "$ossh_varname=no"
3761fi
3762rm -f conftest*
3763
3764fi
3765
3766 ossh_result=`eval 'echo $'"$ossh_varname"`
3767 if test -n "`echo $ossh_varname`"; then
3768 echo "$ac_t""$ossh_result" 1>&6
3769 if test "x$ossh_result" = "xyes"; then
3770 cat >> confdefs.h <<\EOF
3771#define HAVE_SYSLEN_IN_UTMPX 1
3772EOF
3773
3774 fi
3775 else
3776 echo "$ac_t""no" 1>&6
3777 fi
3778
3779
3780# look for field 'ut_pid' in header 'utmp.h'
3781 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
3782 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
3783 echo $ac_n "checking for ut_pid field in utmp.h""... $ac_c" 1>&6
3784echo "configure:3785: checking for ut_pid field in utmp.h" >&5
3785 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787else
3788
3789 cat > conftest.$ac_ext <<EOF
3790#line 3791 "configure"
3791#include "confdefs.h"
3792#include <utmp.h>
3793EOF
3794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 egrep "ut_pid" >/dev/null 2>&1; then
3796 rm -rf conftest*
3797 eval "$ossh_varname=yes"
3798else
3799 rm -rf conftest*
3800 eval "$ossh_varname=no"
3801fi
3802rm -f conftest*
3803
3804fi
3805
3806 ossh_result=`eval 'echo $'"$ossh_varname"`
3807 if test -n "`echo $ossh_varname`"; then
3808 echo "$ac_t""$ossh_result" 1>&6
3809 if test "x$ossh_result" = "xyes"; then
3810 cat >> confdefs.h <<\EOF
3811#define HAVE_PID_IN_UTMP 1
3812EOF
3813
3814 fi
3815 else
3816 echo "$ac_t""no" 1>&6
3817 fi
3818
3819
3820# look for field 'ut_type' in header 'utmp.h'
3821 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
3822 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
3823 echo $ac_n "checking for ut_type field in utmp.h""... $ac_c" 1>&6
3824echo "configure:3825: checking for ut_type field in utmp.h" >&5
3825 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827else
3828
3829 cat > conftest.$ac_ext <<EOF
3830#line 3831 "configure"
3831#include "confdefs.h"
3832#include <utmp.h>
3833EOF
3834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 egrep "ut_type" >/dev/null 2>&1; then
3836 rm -rf conftest*
3837 eval "$ossh_varname=yes"
3838else
3839 rm -rf conftest*
3840 eval "$ossh_varname=no"
3841fi
3842rm -f conftest*
3843
3844fi
3845
3846 ossh_result=`eval 'echo $'"$ossh_varname"`
3847 if test -n "`echo $ossh_varname`"; then
3848 echo "$ac_t""$ossh_result" 1>&6
3849 if test "x$ossh_result" = "xyes"; then
3850 cat >> confdefs.h <<\EOF
3851#define HAVE_TYPE_IN_UTMP 1
3852EOF
3853
3854 fi
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
3860# look for field 'ut_type' in header 'utmpx.h'
3861 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
3862 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
3863 echo $ac_n "checking for ut_type field in utmpx.h""... $ac_c" 1>&6
3864echo "configure:3865: checking for ut_type field in utmpx.h" >&5
3865 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867else
3868
3869 cat > conftest.$ac_ext <<EOF
3870#line 3871 "configure"
3871#include "confdefs.h"
3872#include <utmpx.h>
3873EOF
3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 egrep "ut_type" >/dev/null 2>&1; then
3876 rm -rf conftest*
3877 eval "$ossh_varname=yes"
3878else
3879 rm -rf conftest*
3880 eval "$ossh_varname=no"
3881fi
3882rm -f conftest*
3883
3884fi
3885
3886 ossh_result=`eval 'echo $'"$ossh_varname"`
3887 if test -n "`echo $ossh_varname`"; then
3888 echo "$ac_t""$ossh_result" 1>&6
3889 if test "x$ossh_result" = "xyes"; then
3890 cat >> confdefs.h <<\EOF
3891#define HAVE_TYPE_IN_UTMPX 1
3892EOF
3893
3894 fi
3895 else
3896 echo "$ac_t""no" 1>&6
3897 fi
3898
3899
3900# look for field 'ut_tv' in header 'utmp.h'
3901 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
3902 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
3903 echo $ac_n "checking for ut_tv field in utmp.h""... $ac_c" 1>&6
3904echo "configure:3905: checking for ut_tv field in utmp.h" >&5
3905 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907else
3908
3909 cat > conftest.$ac_ext <<EOF
3910#line 3911 "configure"
3911#include "confdefs.h"
3912#include <utmp.h>
3913EOF
3914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 egrep "ut_tv" >/dev/null 2>&1; then
3916 rm -rf conftest*
3917 eval "$ossh_varname=yes"
3918else
3919 rm -rf conftest*
3920 eval "$ossh_varname=no"
3921fi
3922rm -f conftest*
3923
3924fi
3925
3926 ossh_result=`eval 'echo $'"$ossh_varname"`
3927 if test -n "`echo $ossh_varname`"; then
3928 echo "$ac_t""$ossh_result" 1>&6
3929 if test "x$ossh_result" = "xyes"; then
3930 cat >> confdefs.h <<\EOF
3931#define HAVE_TV_IN_UTMP 1
3932EOF
3933
3934 fi
3935 else
3936 echo "$ac_t""no" 1>&6
3937 fi
3938
3939
3940# look for field 'ut_id' in header 'utmp.h'
3941 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
3942 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
3943 echo $ac_n "checking for ut_id field in utmp.h""... $ac_c" 1>&6
3944echo "configure:3945: checking for ut_id field in utmp.h" >&5
3945 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3947else
3948
3949 cat > conftest.$ac_ext <<EOF
3950#line 3951 "configure"
3951#include "confdefs.h"
3952#include <utmp.h>
3953EOF
3954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 egrep "ut_id" >/dev/null 2>&1; then
3956 rm -rf conftest*
3957 eval "$ossh_varname=yes"
3958else
3959 rm -rf conftest*
3960 eval "$ossh_varname=no"
3961fi
3962rm -f conftest*
3963
3964fi
3965
3966 ossh_result=`eval 'echo $'"$ossh_varname"`
3967 if test -n "`echo $ossh_varname`"; then
3968 echo "$ac_t""$ossh_result" 1>&6
3969 if test "x$ossh_result" = "xyes"; then
3970 cat >> confdefs.h <<\EOF
3971#define HAVE_ID_IN_UTMP 1
3972EOF
3973
3974 fi
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980# look for field 'ut_id' in header 'utmpx.h'
3981 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
3982 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
3983 echo $ac_n "checking for ut_id field in utmpx.h""... $ac_c" 1>&6
3984echo "configure:3985: checking for ut_id field in utmpx.h" >&5
3985 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3987else
3988
3989 cat > conftest.$ac_ext <<EOF
3990#line 3991 "configure"
3991#include "confdefs.h"
3992#include <utmpx.h>
3993EOF
3994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3995 egrep "ut_id" >/dev/null 2>&1; then
3996 rm -rf conftest*
3997 eval "$ossh_varname=yes"
3998else
3999 rm -rf conftest*
4000 eval "$ossh_varname=no"
4001fi
4002rm -f conftest*
4003
4004fi
4005
4006 ossh_result=`eval 'echo $'"$ossh_varname"`
4007 if test -n "`echo $ossh_varname`"; then
4008 echo "$ac_t""$ossh_result" 1>&6
4009 if test "x$ossh_result" = "xyes"; then
4010 cat >> confdefs.h <<\EOF
4011#define HAVE_ID_IN_UTMPX 1
4012EOF
4013
4014 fi
4015 else
4016 echo "$ac_t""no" 1>&6
4017 fi
4018
4019
4020# look for field 'ut_addr' in header 'utmp.h'
4021 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
4022 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
4023 echo $ac_n "checking for ut_addr field in utmp.h""... $ac_c" 1>&6
4024echo "configure:4025: checking for ut_addr field in utmp.h" >&5
4025 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4027else
4028
4029 cat > conftest.$ac_ext <<EOF
4030#line 4031 "configure"
4031#include "confdefs.h"
4032#include <utmp.h>
4033EOF
4034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035 egrep "ut_addr" >/dev/null 2>&1; then
4036 rm -rf conftest*
4037 eval "$ossh_varname=yes"
4038else
4039 rm -rf conftest*
4040 eval "$ossh_varname=no"
4041fi
4042rm -f conftest*
4043
4044fi
4045
4046 ossh_result=`eval 'echo $'"$ossh_varname"`
4047 if test -n "`echo $ossh_varname`"; then
4048 echo "$ac_t""$ossh_result" 1>&6
4049 if test "x$ossh_result" = "xyes"; then
4050 cat >> confdefs.h <<\EOF
4051#define HAVE_ADDR_IN_UTMP 1
4052EOF
4053
4054 fi
4055 else
4056 echo "$ac_t""no" 1>&6
4057 fi
4058
4059
4060# look for field 'ut_addr' in header 'utmpx.h'
4061 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
4062 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
4063 echo $ac_n "checking for ut_addr field in utmpx.h""... $ac_c" 1>&6
4064echo "configure:4065: checking for ut_addr field in utmpx.h" >&5
4065 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067else
4068
4069 cat > conftest.$ac_ext <<EOF
4070#line 4071 "configure"
4071#include "confdefs.h"
4072#include <utmpx.h>
4073EOF
4074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 egrep "ut_addr" >/dev/null 2>&1; then
4076 rm -rf conftest*
4077 eval "$ossh_varname=yes"
4078else
4079 rm -rf conftest*
4080 eval "$ossh_varname=no"
4081fi
4082rm -f conftest*
4083
4084fi
4085
4086 ossh_result=`eval 'echo $'"$ossh_varname"`
4087 if test -n "`echo $ossh_varname`"; then
4088 echo "$ac_t""$ossh_result" 1>&6
4089 if test "x$ossh_result" = "xyes"; then
4090 cat >> confdefs.h <<\EOF
4091#define HAVE_ADDR_IN_UTMPX 1
4092EOF
4093
4094 fi
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100# look for field 'ut_addr_v6' in header 'utmp.h'
4101 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
4102 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
4103 echo $ac_n "checking for ut_addr_v6 field in utmp.h""... $ac_c" 1>&6
4104echo "configure:4105: checking for ut_addr_v6 field in utmp.h" >&5
4105 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4107else
4108
4109 cat > conftest.$ac_ext <<EOF
4110#line 4111 "configure"
4111#include "confdefs.h"
4112#include <utmp.h>
4113EOF
4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 egrep "ut_addr_v6" >/dev/null 2>&1; then
4116 rm -rf conftest*
4117 eval "$ossh_varname=yes"
4118else
4119 rm -rf conftest*
4120 eval "$ossh_varname=no"
4121fi
4122rm -f conftest*
4123
4124fi
4125
4126 ossh_result=`eval 'echo $'"$ossh_varname"`
4127 if test -n "`echo $ossh_varname`"; then
4128 echo "$ac_t""$ossh_result" 1>&6
4129 if test "x$ossh_result" = "xyes"; then
4130 cat >> confdefs.h <<\EOF
4131#define HAVE_ADDR_V6_IN_UTMP 1
4132EOF
4133
4134 fi
4135 else
4136 echo "$ac_t""no" 1>&6
4137 fi
4138
4139
4140# look for field 'ut_addr_v6' in header 'utmpx.h'
4141 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
4142 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
4143 echo $ac_n "checking for ut_addr_v6 field in utmpx.h""... $ac_c" 1>&6
4144echo "configure:4145: checking for ut_addr_v6 field in utmpx.h" >&5
4145 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147else
4148
4149 cat > conftest.$ac_ext <<EOF
4150#line 4151 "configure"
4151#include "confdefs.h"
4152#include <utmpx.h>
4153EOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 egrep "ut_addr_v6" >/dev/null 2>&1; then
4156 rm -rf conftest*
4157 eval "$ossh_varname=yes"
4158else
4159 rm -rf conftest*
4160 eval "$ossh_varname=no"
4161fi
4162rm -f conftest*
4163
4164fi
4165
4166 ossh_result=`eval 'echo $'"$ossh_varname"`
4167 if test -n "`echo $ossh_varname`"; then
4168 echo "$ac_t""$ossh_result" 1>&6
4169 if test "x$ossh_result" = "xyes"; then
4170 cat >> confdefs.h <<\EOF
4171#define HAVE_ADDR_V6_IN_UTMPX 1
4172EOF
4173
4174 fi
4175 else
4176 echo "$ac_t""no" 1>&6
4177 fi
4178
4179
4180# look for field 'ut_exit' in header 'utmp.h'
4181 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
4182 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
4183 echo $ac_n "checking for ut_exit field in utmp.h""... $ac_c" 1>&6
4184echo "configure:4185: checking for ut_exit field in utmp.h" >&5
4185 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187else
4188
4189 cat > conftest.$ac_ext <<EOF
4190#line 4191 "configure"
4191#include "confdefs.h"
4192#include <utmp.h>
4193EOF
4194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 egrep "ut_exit" >/dev/null 2>&1; then
4196 rm -rf conftest*
4197 eval "$ossh_varname=yes"
4198else
4199 rm -rf conftest*
4200 eval "$ossh_varname=no"
4201fi
4202rm -f conftest*
4203
4204fi
4205
4206 ossh_result=`eval 'echo $'"$ossh_varname"`
4207 if test -n "`echo $ossh_varname`"; then
4208 echo "$ac_t""$ossh_result" 1>&6
4209 if test "x$ossh_result" = "xyes"; then
4210 cat >> confdefs.h <<\EOF
4211#define HAVE_EXIT_IN_UTMP 1
4212EOF
4213
4214 fi
4215 else
4216 echo "$ac_t""no" 1>&6
4217 fi
4218
4219
4220# look for field 'ut_time' in header 'utmp.h'
4221 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
4222 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
4223 echo $ac_n "checking for ut_time field in utmp.h""... $ac_c" 1>&6
4224echo "configure:4225: checking for ut_time field in utmp.h" >&5
4225 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227else
4228
4229 cat > conftest.$ac_ext <<EOF
4230#line 4231 "configure"
4231#include "confdefs.h"
4232#include <utmp.h>
4233EOF
4234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 egrep "ut_time" >/dev/null 2>&1; then
4236 rm -rf conftest*
4237 eval "$ossh_varname=yes"
4238else
4239 rm -rf conftest*
4240 eval "$ossh_varname=no"
4241fi
4242rm -f conftest*
4243
4244fi
4245
4246 ossh_result=`eval 'echo $'"$ossh_varname"`
4247 if test -n "`echo $ossh_varname`"; then
4248 echo "$ac_t""$ossh_result" 1>&6
4249 if test "x$ossh_result" = "xyes"; then
4250 cat >> confdefs.h <<\EOF
4251#define HAVE_TIME_IN_UTMP 1
4252EOF
4253
4254 fi
4255 else
4256 echo "$ac_t""no" 1>&6
4257 fi
4258
4259
4260# look for field 'ut_time' in header 'utmpx.h'
4261 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
4262 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
4263 echo $ac_n "checking for ut_time field in utmpx.h""... $ac_c" 1>&6
4264echo "configure:4265: checking for ut_time field in utmpx.h" >&5
4265 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268
4269 cat > conftest.$ac_ext <<EOF
4270#line 4271 "configure"
4271#include "confdefs.h"
4272#include <utmpx.h>
4273EOF
4274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 egrep "ut_time" >/dev/null 2>&1; then
4276 rm -rf conftest*
4277 eval "$ossh_varname=yes"
4278else
4279 rm -rf conftest*
4280 eval "$ossh_varname=no"
4281fi
4282rm -f conftest*
4283
4284fi
4285
4286 ossh_result=`eval 'echo $'"$ossh_varname"`
4287 if test -n "`echo $ossh_varname`"; then
4288 echo "$ac_t""$ossh_result" 1>&6
4289 if test "x$ossh_result" = "xyes"; then
4290 cat >> confdefs.h <<\EOF
4291#define HAVE_TIME_IN_UTMPX 1
4292EOF
4293
4294 fi
4295 else
4296 echo "$ac_t""no" 1>&6
4297 fi
4298
4299
4300# look for field 'ut_tv' in header 'utmpx.h'
4301 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
4302 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
4303 echo $ac_n "checking for ut_tv field in utmpx.h""... $ac_c" 1>&6
4304echo "configure:4305: checking for ut_tv field in utmpx.h" >&5
4305 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4307else
4308
4309 cat > conftest.$ac_ext <<EOF
4310#line 4311 "configure"
4311#include "confdefs.h"
4312#include <utmpx.h>
4313EOF
4314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4315 egrep "ut_tv" >/dev/null 2>&1; then
4316 rm -rf conftest*
4317 eval "$ossh_varname=yes"
4318else
4319 rm -rf conftest*
4320 eval "$ossh_varname=no"
4321fi
4322rm -f conftest*
4323
4324fi
4325
4326 ossh_result=`eval 'echo $'"$ossh_varname"`
4327 if test -n "`echo $ossh_varname`"; then
4328 echo "$ac_t""$ossh_result" 1>&6
4329 if test "x$ossh_result" = "xyes"; then
4330 cat >> confdefs.h <<\EOF
4331#define HAVE_TV_IN_UTMPX 1
4332EOF
4333
4334 fi
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339
4340echo $ac_n "checking for ss_family field in struct sockaddr_storage""... $ac_c" 1>&6
4341echo "configure:4342: checking for ss_family field in struct sockaddr_storage" >&5
4342if eval "test \"`echo '$''{'ac_cv_have_ss_family_in_struct_ss'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344else
4345
4346 cat > conftest.$ac_ext <<EOF
4347#line 4348 "configure"
4348#include "confdefs.h"
4349
4350#include <sys/types.h>
4351#include <sys/socket.h>
4352
4353int main() {
4354 struct sockaddr_storage s; s.ss_family = 1;
4355; return 0; }
4356EOF
4357if { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4358 rm -rf conftest*
4359 ac_cv_have_ss_family_in_struct_ss="yes"
4360else
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4363 rm -rf conftest*
4364 ac_cv_have_ss_family_in_struct_ss="no"
4365fi
4366rm -f conftest*
4367
4368fi
4369
4370echo "$ac_t""$ac_cv_have_ss_family_in_struct_ss" 1>&6
4371if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
4372 cat >> confdefs.h <<\EOF
4373#define HAVE_SS_FAMILY_IN_SS 1
4374EOF
4375
4376fi
4377
4378echo $ac_n "checking for __ss_family field in struct sockaddr_storage""... $ac_c" 1>&6
4379echo "configure:4380: checking for __ss_family field in struct sockaddr_storage" >&5
4380if eval "test \"`echo '$''{'ac_cv_have___ss_family_in_struct_ss'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4382else
4383
4384 cat > conftest.$ac_ext <<EOF
4385#line 4386 "configure"
4386#include "confdefs.h"
4387
4388#include <sys/types.h>
4389#include <sys/socket.h>
4390
4391int main() {
4392 struct sockaddr_storage s; s.__ss_family = 1;
4393; return 0; }
4394EOF
4395if { (eval echo configure:4396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4396 rm -rf conftest*
4397 ac_cv_have___ss_family_in_struct_ss="yes"
4398else
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4401 rm -rf conftest*
4402 ac_cv_have___ss_family_in_struct_ss="no"
4403
4404fi
4405rm -f conftest*
4406
4407fi
4408
4409echo "$ac_t""$ac_cv_have___ss_family_in_struct_ss" 1>&6
4410if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
4411 cat >> confdefs.h <<\EOF
4412#define HAVE___SS_FAMILY_IN_SS 1
4413EOF
4414
4415fi
4416
4417
4418echo $ac_n "checking if libc defines __progname""... $ac_c" 1>&6
4419echo "configure:4420: checking if libc defines __progname" >&5
4420if eval "test \"`echo '$''{'ac_cv_libc_defines___progname'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4422else
4423
4424 cat > conftest.$ac_ext <<EOF
4425#line 4426 "configure"
4426#include "confdefs.h"
4427
4428int main() {
4429 extern char *__progname; printf("%s", __progname);
4430; return 0; }
4431EOF
4432if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 rm -rf conftest*
4434 ac_cv_libc_defines___progname="yes"
4435else
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 rm -rf conftest*
4439 ac_cv_libc_defines___progname="no"
4440
4441fi
4442rm -f conftest*
4443
4444fi
4445
4446echo "$ac_t""$ac_cv_libc_defines___progname" 1>&6
4447if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
4448 cat >> confdefs.h <<\EOF
4449#define HAVE___PROGNAME 1
4450EOF
4451
4452fi
4453
4454
4455echo $ac_n "checking if libc defines sys_errlist""... $ac_c" 1>&6
4456echo "configure:4457: checking if libc defines sys_errlist" >&5
4457if eval "test \"`echo '$''{'ac_cv_libc_defines_sys_errlist'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4459else
4460
4461 cat > conftest.$ac_ext <<EOF
4462#line 4463 "configure"
4463#include "confdefs.h"
4464
4465int main() {
4466 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
4467; return 0; }
4468EOF
4469if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 rm -rf conftest*
4471 ac_cv_libc_defines_sys_errlist="yes"
4472else
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 ac_cv_libc_defines_sys_errlist="no"
4477
4478fi
4479rm -f conftest*
4480
4481fi
4482
4483echo "$ac_t""$ac_cv_libc_defines_sys_errlist" 1>&6
4484if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
4485 cat >> confdefs.h <<\EOF
4486#define HAVE_SYS_ERRLIST 1
4487EOF
4488
4489fi
4490
4491
4492# Looking for programs, paths and files
4493# Check whether --with-rsh or --without-rsh was given.
4494if test "${with_rsh+set}" = set; then
4495 withval="$with_rsh"
4496
4497 if test "x$withval" != "$no" ; then
4498 rsh_path=$withval
4499 fi
4500
4501else
4502
4503 # Extract the first word of "rsh", so it can be a program name with args.
4504set dummy rsh; ac_word=$2
4505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4506echo "configure:4507: checking for $ac_word" >&5
4507if eval "test \"`echo '$''{'ac_cv_path_rsh_path'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509else
4510 case "$rsh_path" in
4511 /*)
4512 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
4513 ;;
4514 ?:/*)
4515 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a dos path.
4516 ;;
4517 *)
4518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4519 ac_dummy="$PATH"
4520 for ac_dir in $ac_dummy; do
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f $ac_dir/$ac_word; then
4523 ac_cv_path_rsh_path="$ac_dir/$ac_word"
4524 break
4525 fi
4526 done
4527 IFS="$ac_save_ifs"
4528 ;;
4529esac
4530fi
4531rsh_path="$ac_cv_path_rsh_path"
4532if test -n "$rsh_path"; then
4533 echo "$ac_t""$rsh_path" 1>&6
4534else
4535 echo "$ac_t""no" 1>&6
4536fi
4537
4538
4539
4540fi
4541
4542
4543# Check whether --with-xauth or --without-xauth was given.
4544if test "${with_xauth+set}" = set; then
4545 withval="$with_xauth"
4546
4547 if test "x$withval" != "$xno" ; then
4548 xauth_path=$withval
4549 fi
4550
4551else
4552
4553 # Extract the first word of "xauth", so it can be a program name with args.
4554set dummy xauth; ac_word=$2
4555echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4556echo "configure:4557: checking for $ac_word" >&5
4557if eval "test \"`echo '$''{'ac_cv_path_xauth_path'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559else
4560 case "$xauth_path" in
4561 /*)
4562 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
4563 ;;
4564 ?:/*)
4565 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a dos path.
4566 ;;
4567 *)
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 ac_dummy="$PATH"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_path_xauth_path="$ac_dir/$ac_word"
4574 break
4575 fi
4576 done
4577 IFS="$ac_save_ifs"
4578 ;;
4579esac
4580fi
4581xauth_path="$ac_cv_path_xauth_path"
4582if test -n "$xauth_path"; then
4583 echo "$ac_t""$xauth_path" 1>&6
4584else
4585 echo "$ac_t""no" 1>&6
4586fi
4587
4588 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
4589 xauth_path="/usr/openwin/bin/xauth"
4590 fi
4591
4592
4593fi
4594
4595
4596if test ! -z "$xauth_path" ; then
4597 cat >> confdefs.h <<EOF
4598#define XAUTH_PATH "$xauth_path"
4599EOF
4600
4601fi
4602if test ! -z "$rsh_path" ; then
4603 cat >> confdefs.h <<EOF
4604#define RSH_PATH "$rsh_path"
4605EOF
4606
4607fi
4608
4609# Check for mail directory (last resort if we cannot get it from headers)
4610if test ! -z "$MAIL" ; then
4611 maildir=`dirname $MAIL`
4612 cat >> confdefs.h <<EOF
4613#define MAIL_DIRECTORY "$maildir"
4614EOF
4615
4616fi
4617
4618if test -z "$no_dev_ptmx" ; then
4619
4620ac_safe=`echo ""/dev/ptmx"" | sed 'y%./+-%__p_%'`
4621echo $ac_n "checking for "/dev/ptmx"""... $ac_c" 1>&6
4622echo "configure:4623: checking for "/dev/ptmx"" >&5
4623if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4625else
4626 if test "$cross_compiling" = yes; then
4627 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
4628else
4629 if test -r "/dev/ptmx"; then
4630 eval "ac_cv_file_$ac_safe=yes"
4631 else
4632 eval "ac_cv_file_$ac_safe=no"
4633 fi
4634fi
4635fi
4636if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4638
4639 cat >> confdefs.h <<EOF
4640#define HAVE_DEV_PTMX 1
4641EOF
4642
4643 have_dev_ptmx=1
4644
4645
4646else
4647 echo "$ac_t""no" 1>&6
4648
4649fi
4650
4651fi
4652
4653ac_safe=`echo ""/dev/ptc"" | sed 'y%./+-%__p_%'`
4654echo $ac_n "checking for "/dev/ptc"""... $ac_c" 1>&6
4655echo "configure:4656: checking for "/dev/ptc"" >&5
4656if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4658else
4659 if test "$cross_compiling" = yes; then
4660 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
4661else
4662 if test -r "/dev/ptc"; then
4663 eval "ac_cv_file_$ac_safe=yes"
4664 else
4665 eval "ac_cv_file_$ac_safe=no"
4666 fi
4667fi
4668fi
4669if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671
4672 cat >> confdefs.h <<EOF
4673#define HAVE_DEV_PTS_AND_PTC 1
4674EOF
4675
4676 have_dev_ptc=1
4677
4678
4679else
4680 echo "$ac_t""no" 1>&6
4681
4682fi
4683
4684
4685# Options from here on. Some of these are preset by platform above
4686
4687# Check for user-specified random device, otherwise check /dev/urandom
4688# Check whether --with-random or --without-random was given.
4689if test "${with_random+set}" = set; then
4690 withval="$with_random"
4691
4692 if test "x$withval" != "xno" ; then
4693 RANDOM_POOL="$withval";
4694 cat >> confdefs.h <<EOF
4695#define RANDOM_POOL "$RANDOM_POOL"
4696EOF
4697
4698 fi
4699
4700else
4701
4702 # Check for random device
4703
4704ac_safe=`echo ""/dev/urandom"" | sed 'y%./+-%__p_%'`
4705echo $ac_n "checking for "/dev/urandom"""... $ac_c" 1>&6
4706echo "configure:4707: checking for "/dev/urandom"" >&5
4707if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4709else
4710 if test "$cross_compiling" = yes; then
4711 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
4712else
4713 if test -r "/dev/urandom"; then
4714 eval "ac_cv_file_$ac_safe=yes"
4715 else
4716 eval "ac_cv_file_$ac_safe=no"
4717 fi
4718fi
4719fi
4720if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722
4723 RANDOM_POOL="/dev/urandom";
4724
4725 cat >> confdefs.h <<EOF
4726#define RANDOM_POOL "$RANDOM_POOL"
4727EOF
4728
4729
4730
4731else
4732 echo "$ac_t""no" 1>&6
4733
4734fi
4735
4736
4737
4738fi
4739
4740
4741# Check for EGD pool file
4742# Check whether --with-egd-pool or --without-egd-pool was given.
4743if test "${with_egd_pool+set}" = set; then
4744 withval="$with_egd_pool"
4745
4746 if test "x$withval" != "xno" ; then
4747 EGD_SOCKET="$withval";
4748 cat >> confdefs.h <<EOF
4749#define EGD_SOCKET "$EGD_SOCKET"
4750EOF
4751
4752 fi
4753
4754
4755fi
4756
4757
4758# detect pathnames for entropy gathering commands, if we need them
4759INSTALL_SSH_PRNG_CMDS=""
4760rm -f prng_commands
4761if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
4762 # Use these commands to collect entropy
4763
4764 # Extract the first word of "ls", so it can be a program name with args.
4765set dummy ls; ac_word=$2
4766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4767echo "configure:4768: checking for $ac_word" >&5
4768if eval "test \"`echo '$''{'ac_cv_path_PROG_LS'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4770else
4771 case "$PROG_LS" in
4772 /*)
4773 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
4774 ;;
4775 ?:/*)
4776 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a dos path.
4777 ;;
4778 *)
4779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4780 ac_dummy="$PATH"
4781 for ac_dir in $ac_dummy; do
4782 test -z "$ac_dir" && ac_dir=.
4783 if test -f $ac_dir/$ac_word; then
4784 ac_cv_path_PROG_LS="$ac_dir/$ac_word"
4785 break
4786 fi
4787 done
4788 IFS="$ac_save_ifs"
4789 ;;
4790esac
4791fi
4792PROG_LS="$ac_cv_path_PROG_LS"
4793if test -n "$PROG_LS"; then
4794 echo "$ac_t""$PROG_LS" 1>&6
4795else
4796 echo "$ac_t""no" 1>&6
4797fi
4798
4799 if test -z "$PROG_LS" ; then
4800 PROG_LS="undef"
4801 fi
4802
4803
4804
4805 # Extract the first word of "netstat", so it can be a program name with args.
4806set dummy netstat; ac_word=$2
4807echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4808echo "configure:4809: checking for $ac_word" >&5
4809if eval "test \"`echo '$''{'ac_cv_path_PROG_NETSTAT'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4811else
4812 case "$PROG_NETSTAT" in
4813 /*)
4814 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
4815 ;;
4816 ?:/*)
4817 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a dos path.
4818 ;;
4819 *)
4820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4821 ac_dummy="$PATH"
4822 for ac_dir in $ac_dummy; do
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f $ac_dir/$ac_word; then
4825 ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word"
4826 break
4827 fi
4828 done
4829 IFS="$ac_save_ifs"
4830 ;;
4831esac
4832fi
4833PROG_NETSTAT="$ac_cv_path_PROG_NETSTAT"
4834if test -n "$PROG_NETSTAT"; then
4835 echo "$ac_t""$PROG_NETSTAT" 1>&6
4836else
4837 echo "$ac_t""no" 1>&6
4838fi
4839
4840 if test -z "$PROG_NETSTAT" ; then
4841 PROG_NETSTAT="undef"
4842 fi
4843
4844
4845
4846 # Extract the first word of "arp", so it can be a program name with args.
4847set dummy arp; ac_word=$2
4848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4849echo "configure:4850: checking for $ac_word" >&5
4850if eval "test \"`echo '$''{'ac_cv_path_PROG_ARP'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852else
4853 case "$PROG_ARP" in
4854 /*)
4855 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
4856 ;;
4857 ?:/*)
4858 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a dos path.
4859 ;;
4860 *)
4861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4862 ac_dummy="$PATH"
4863 for ac_dir in $ac_dummy; do
4864 test -z "$ac_dir" && ac_dir=.
4865 if test -f $ac_dir/$ac_word; then
4866 ac_cv_path_PROG_ARP="$ac_dir/$ac_word"
4867 break
4868 fi
4869 done
4870 IFS="$ac_save_ifs"
4871 ;;
4872esac
4873fi
4874PROG_ARP="$ac_cv_path_PROG_ARP"
4875if test -n "$PROG_ARP"; then
4876 echo "$ac_t""$PROG_ARP" 1>&6
4877else
4878 echo "$ac_t""no" 1>&6
4879fi
4880
4881 if test -z "$PROG_ARP" ; then
4882 PROG_ARP="undef"
4883 fi
4884
4885
4886
4887 # Extract the first word of "ifconfig", so it can be a program name with args.
4888set dummy ifconfig; ac_word=$2
4889echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4890echo "configure:4891: checking for $ac_word" >&5
4891if eval "test \"`echo '$''{'ac_cv_path_PROG_IFCONFIG'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4893else
4894 case "$PROG_IFCONFIG" in
4895 /*)
4896 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
4897 ;;
4898 ?:/*)
4899 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a dos path.
4900 ;;
4901 *)
4902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4903 ac_dummy="$PATH"
4904 for ac_dir in $ac_dummy; do
4905 test -z "$ac_dir" && ac_dir=.
4906 if test -f $ac_dir/$ac_word; then
4907 ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word"
4908 break
4909 fi
4910 done
4911 IFS="$ac_save_ifs"
4912 ;;
4913esac
4914fi
4915PROG_IFCONFIG="$ac_cv_path_PROG_IFCONFIG"
4916if test -n "$PROG_IFCONFIG"; then
4917 echo "$ac_t""$PROG_IFCONFIG" 1>&6
4918else
4919 echo "$ac_t""no" 1>&6
4920fi
4921
4922 if test -z "$PROG_IFCONFIG" ; then
4923 PROG_IFCONFIG="undef"
4924 fi
4925
4926
4927
4928 # Extract the first word of "ps", so it can be a program name with args.
4929set dummy ps; ac_word=$2
4930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4931echo "configure:4932: checking for $ac_word" >&5
4932if eval "test \"`echo '$''{'ac_cv_path_PROG_PS'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4934else
4935 case "$PROG_PS" in
4936 /*)
4937 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
4938 ;;
4939 ?:/*)
4940 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a dos path.
4941 ;;
4942 *)
4943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4944 ac_dummy="$PATH"
4945 for ac_dir in $ac_dummy; do
4946 test -z "$ac_dir" && ac_dir=.
4947 if test -f $ac_dir/$ac_word; then
4948 ac_cv_path_PROG_PS="$ac_dir/$ac_word"
4949 break
4950 fi
4951 done
4952 IFS="$ac_save_ifs"
4953 ;;
4954esac
4955fi
4956PROG_PS="$ac_cv_path_PROG_PS"
4957if test -n "$PROG_PS"; then
4958 echo "$ac_t""$PROG_PS" 1>&6
4959else
4960 echo "$ac_t""no" 1>&6
4961fi
4962
4963 if test -z "$PROG_PS" ; then
4964 PROG_PS="undef"
4965 fi
4966
4967
4968
4969 # Extract the first word of "w", so it can be a program name with args.
4970set dummy w; ac_word=$2
4971echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4972echo "configure:4973: checking for $ac_word" >&5
4973if eval "test \"`echo '$''{'ac_cv_path_PROG_W'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4975else
4976 case "$PROG_W" in
4977 /*)
4978 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
4979 ;;
4980 ?:/*)
4981 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a dos path.
4982 ;;
4983 *)
4984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4985 ac_dummy="$PATH"
4986 for ac_dir in $ac_dummy; do
4987 test -z "$ac_dir" && ac_dir=.
4988 if test -f $ac_dir/$ac_word; then
4989 ac_cv_path_PROG_W="$ac_dir/$ac_word"
4990 break
4991 fi
4992 done
4993 IFS="$ac_save_ifs"
4994 ;;
4995esac
4996fi
4997PROG_W="$ac_cv_path_PROG_W"
4998if test -n "$PROG_W"; then
4999 echo "$ac_t""$PROG_W" 1>&6
5000else
5001 echo "$ac_t""no" 1>&6
5002fi
5003
5004 if test -z "$PROG_W" ; then
5005 PROG_W="undef"
5006 fi
5007
5008
5009
5010 # Extract the first word of "who", so it can be a program name with args.
5011set dummy who; ac_word=$2
5012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5013echo "configure:5014: checking for $ac_word" >&5
5014if eval "test \"`echo '$''{'ac_cv_path_PROG_WHO'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5016else
5017 case "$PROG_WHO" in
5018 /*)
5019 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
5020 ;;
5021 ?:/*)
5022 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a dos path.
5023 ;;
5024 *)
5025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5026 ac_dummy="$PATH"
5027 for ac_dir in $ac_dummy; do
5028 test -z "$ac_dir" && ac_dir=.
5029 if test -f $ac_dir/$ac_word; then
5030 ac_cv_path_PROG_WHO="$ac_dir/$ac_word"
5031 break
5032 fi
5033 done
5034 IFS="$ac_save_ifs"
5035 ;;
5036esac
5037fi
5038PROG_WHO="$ac_cv_path_PROG_WHO"
5039if test -n "$PROG_WHO"; then
5040 echo "$ac_t""$PROG_WHO" 1>&6
5041else
5042 echo "$ac_t""no" 1>&6
5043fi
5044
5045 if test -z "$PROG_WHO" ; then
5046 PROG_WHO="undef"
5047 fi
5048
5049
5050
5051 # Extract the first word of "last", so it can be a program name with args.
5052set dummy last; ac_word=$2
5053echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5054echo "configure:5055: checking for $ac_word" >&5
5055if eval "test \"`echo '$''{'ac_cv_path_PROG_LAST'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5057else
5058 case "$PROG_LAST" in
5059 /*)
5060 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
5061 ;;
5062 ?:/*)
5063 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a dos path.
5064 ;;
5065 *)
5066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5067 ac_dummy="$PATH"
5068 for ac_dir in $ac_dummy; do
5069 test -z "$ac_dir" && ac_dir=.
5070 if test -f $ac_dir/$ac_word; then
5071 ac_cv_path_PROG_LAST="$ac_dir/$ac_word"
5072 break
5073 fi
5074 done
5075 IFS="$ac_save_ifs"
5076 ;;
5077esac
5078fi
5079PROG_LAST="$ac_cv_path_PROG_LAST"
5080if test -n "$PROG_LAST"; then
5081 echo "$ac_t""$PROG_LAST" 1>&6
5082else
5083 echo "$ac_t""no" 1>&6
5084fi
5085
5086 if test -z "$PROG_LAST" ; then
5087 PROG_LAST="undef"
5088 fi
5089
5090
5091
5092 # Extract the first word of "lastlog", so it can be a program name with args.
5093set dummy lastlog; ac_word=$2
5094echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5095echo "configure:5096: checking for $ac_word" >&5
5096if eval "test \"`echo '$''{'ac_cv_path_PROG_LASTLOG'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5098else
5099 case "$PROG_LASTLOG" in
5100 /*)
5101 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
5102 ;;
5103 ?:/*)
5104 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a dos path.
5105 ;;
5106 *)
5107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5108 ac_dummy="$PATH"
5109 for ac_dir in $ac_dummy; do
5110 test -z "$ac_dir" && ac_dir=.
5111 if test -f $ac_dir/$ac_word; then
5112 ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word"
5113 break
5114 fi
5115 done
5116 IFS="$ac_save_ifs"
5117 ;;
5118esac
5119fi
5120PROG_LASTLOG="$ac_cv_path_PROG_LASTLOG"
5121if test -n "$PROG_LASTLOG"; then
5122 echo "$ac_t""$PROG_LASTLOG" 1>&6
5123else
5124 echo "$ac_t""no" 1>&6
5125fi
5126
5127 if test -z "$PROG_LASTLOG" ; then
5128 PROG_LASTLOG="undef"
5129 fi
5130
5131
5132
5133 # Extract the first word of "df", so it can be a program name with args.
5134set dummy df; ac_word=$2
5135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5136echo "configure:5137: checking for $ac_word" >&5
5137if eval "test \"`echo '$''{'ac_cv_path_PROG_DF'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5139else
5140 case "$PROG_DF" in
5141 /*)
5142 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
5143 ;;
5144 ?:/*)
5145 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a dos path.
5146 ;;
5147 *)
5148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5149 ac_dummy="$PATH"
5150 for ac_dir in $ac_dummy; do
5151 test -z "$ac_dir" && ac_dir=.
5152 if test -f $ac_dir/$ac_word; then
5153 ac_cv_path_PROG_DF="$ac_dir/$ac_word"
5154 break
5155 fi
5156 done
5157 IFS="$ac_save_ifs"
5158 ;;
5159esac
5160fi
5161PROG_DF="$ac_cv_path_PROG_DF"
5162if test -n "$PROG_DF"; then
5163 echo "$ac_t""$PROG_DF" 1>&6
5164else
5165 echo "$ac_t""no" 1>&6
5166fi
5167
5168 if test -z "$PROG_DF" ; then
5169 PROG_DF="undef"
5170 fi
5171
5172
5173
5174 # Extract the first word of "vmstat", so it can be a program name with args.
5175set dummy vmstat; ac_word=$2
5176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5177echo "configure:5178: checking for $ac_word" >&5
5178if eval "test \"`echo '$''{'ac_cv_path_PROG_VMSTAT'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5180else
5181 case "$PROG_VMSTAT" in
5182 /*)
5183 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
5184 ;;
5185 ?:/*)
5186 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a dos path.
5187 ;;
5188 *)
5189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5190 ac_dummy="$PATH"
5191 for ac_dir in $ac_dummy; do
5192 test -z "$ac_dir" && ac_dir=.
5193 if test -f $ac_dir/$ac_word; then
5194 ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word"
5195 break
5196 fi
5197 done
5198 IFS="$ac_save_ifs"
5199 ;;
5200esac
5201fi
5202PROG_VMSTAT="$ac_cv_path_PROG_VMSTAT"
5203if test -n "$PROG_VMSTAT"; then
5204 echo "$ac_t""$PROG_VMSTAT" 1>&6
5205else
5206 echo "$ac_t""no" 1>&6
5207fi
5208
5209 if test -z "$PROG_VMSTAT" ; then
5210 PROG_VMSTAT="undef"
5211 fi
5212
5213
5214
5215 # Extract the first word of "uptime", so it can be a program name with args.
5216set dummy uptime; ac_word=$2
5217echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5218echo "configure:5219: checking for $ac_word" >&5
5219if eval "test \"`echo '$''{'ac_cv_path_PROG_UPTIME'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5221else
5222 case "$PROG_UPTIME" in
5223 /*)
5224 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
5225 ;;
5226 ?:/*)
5227 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a dos path.
5228 ;;
5229 *)
5230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5231 ac_dummy="$PATH"
5232 for ac_dir in $ac_dummy; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f $ac_dir/$ac_word; then
5235 ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word"
5236 break
5237 fi
5238 done
5239 IFS="$ac_save_ifs"
5240 ;;
5241esac
5242fi
5243PROG_UPTIME="$ac_cv_path_PROG_UPTIME"
5244if test -n "$PROG_UPTIME"; then
5245 echo "$ac_t""$PROG_UPTIME" 1>&6
5246else
5247 echo "$ac_t""no" 1>&6
5248fi
5249
5250 if test -z "$PROG_UPTIME" ; then
5251 PROG_UPTIME="undef"
5252 fi
5253
5254
5255
5256 # Extract the first word of "ipcs", so it can be a program name with args.
5257set dummy ipcs; ac_word=$2
5258echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5259echo "configure:5260: checking for $ac_word" >&5
5260if eval "test \"`echo '$''{'ac_cv_path_PROG_IPCS'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5262else
5263 case "$PROG_IPCS" in
5264 /*)
5265 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
5266 ;;
5267 ?:/*)
5268 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a dos path.
5269 ;;
5270 *)
5271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5272 ac_dummy="$PATH"
5273 for ac_dir in $ac_dummy; do
5274 test -z "$ac_dir" && ac_dir=.
5275 if test -f $ac_dir/$ac_word; then
5276 ac_cv_path_PROG_IPCS="$ac_dir/$ac_word"
5277 break
5278 fi
5279 done
5280 IFS="$ac_save_ifs"
5281 ;;
5282esac
5283fi
5284PROG_IPCS="$ac_cv_path_PROG_IPCS"
5285if test -n "$PROG_IPCS"; then
5286 echo "$ac_t""$PROG_IPCS" 1>&6
5287else
5288 echo "$ac_t""no" 1>&6
5289fi
5290
5291 if test -z "$PROG_IPCS" ; then
5292 PROG_IPCS="undef"
5293 fi
5294
5295
5296
5297 # Extract the first word of "tail", so it can be a program name with args.
5298set dummy tail; ac_word=$2
5299echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5300echo "configure:5301: checking for $ac_word" >&5
5301if eval "test \"`echo '$''{'ac_cv_path_PROG_TAIL'+set}'`\" = set"; then
5302 echo $ac_n "(cached) $ac_c" 1>&6
5303else
5304 case "$PROG_TAIL" in
5305 /*)
5306 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
5307 ;;
5308 ?:/*)
5309 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a dos path.
5310 ;;
5311 *)
5312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5313 ac_dummy="$PATH"
5314 for ac_dir in $ac_dummy; do
5315 test -z "$ac_dir" && ac_dir=.
5316 if test -f $ac_dir/$ac_word; then
5317 ac_cv_path_PROG_TAIL="$ac_dir/$ac_word"
5318 break
5319 fi
5320 done
5321 IFS="$ac_save_ifs"
5322 ;;
5323esac
5324fi
5325PROG_TAIL="$ac_cv_path_PROG_TAIL"
5326if test -n "$PROG_TAIL"; then
5327 echo "$ac_t""$PROG_TAIL" 1>&6
5328else
5329 echo "$ac_t""no" 1>&6
5330fi
5331
5332 if test -z "$PROG_TAIL" ; then
5333 PROG_TAIL="undef"
5334 fi
5335
5336
5337
5338 # Extract the first word of "ls", so it can be a program name with args.
5339set dummy ls; ac_word=$2
5340echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5341echo "configure:5342: checking for $ac_word" >&5
5342if eval "test \"`echo '$''{'ac_cv_path_PROG_LS'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5344else
5345 case "$PROG_LS" in
5346 /*)
5347 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
5348 ;;
5349 ?:/*)
5350 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a dos path.
5351 ;;
5352 *)
5353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5354 ac_dummy="$PATH"
5355 for ac_dir in $ac_dummy; do
5356 test -z "$ac_dir" && ac_dir=.
5357 if test -f $ac_dir/$ac_word; then
5358 ac_cv_path_PROG_LS="$ac_dir/$ac_word"
5359 break
5360 fi
5361 done
5362 IFS="$ac_save_ifs"
5363 ;;
5364esac
5365fi
5366PROG_LS="$ac_cv_path_PROG_LS"
5367if test -n "$PROG_LS"; then
5368 echo "$ac_t""$PROG_LS" 1>&6
5369else
5370 echo "$ac_t""no" 1>&6
5371fi
5372
5373 if test -z "$PROG_LS" ; then
5374 PROG_LS="undef"
5375 fi
5376
5377
5378
5379 INSTALL_SSH_PRNG_CMDS="yes"
5380fi
5381
5382
5383
5384# Check whether --with-catman or --without-catman was given.
5385if test "${with_catman+set}" = set; then
5386 withval="$with_catman"
5387
5388 MANTYPE='$(CATMAN)'
5389 if test x"$withval" != x"yes" ; then
5390 mansubdir=$withval
5391 else
5392 mansubdir=cat
5393 fi
5394
5395else
5396
5397 if test -z "$MANTYPE" ; then
5398 MANTYPE='$(TROFFMAN)'
5399 mansubdir=man
5400 fi
5401
5402
5403fi
5404
5405
5406
5407
5408# Check whether user wants Kerberos support
5409KRB4_MSG="no"
5410# Check whether --with-kerberos4 or --without-kerberos4 was given.
5411if test "${with_kerberos4+set}" = set; then
5412 withval="$with_kerberos4"
5413
5414 if test "x$withval" != "xno" ; then
5415
5416 if test "x$withval" != "$xyes" ; then
5417 CFLAGS="$CFLAGS -I${withval}/include"
5418 LDFLAGS="$LDFLAGS -L${withval}/lib"
5419 if test ! -z "$need_dash_r" ; then
5420 LDFLAGS="$LDFLAGS -R${withval}/lib"
5421 fi
5422 if test ! -z "$blibpath" ; then
5423 blibpath="$blibpath:${withval}/lib"
5424 fi
5425 else
5426 if test -d /usr/include/kerberosIV ; then
5427 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
5428 fi
5429 fi
5430
5431 for ac_hdr in krb.h
5432do
5433ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5434echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5435echo "configure:5436: checking for $ac_hdr" >&5
5436if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5438else
5439 cat > conftest.$ac_ext <<EOF
5440#line 5441 "configure"
5441#include "confdefs.h"
5442#include <$ac_hdr>
5443EOF
5444ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5445{ (eval echo configure:5446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5446ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5447if test -z "$ac_err"; then
5448 rm -rf conftest*
5449 eval "ac_cv_header_$ac_safe=yes"
5450else
5451 echo "$ac_err" >&5
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 rm -rf conftest*
5455 eval "ac_cv_header_$ac_safe=no"
5456fi
5457rm -f conftest*
5458fi
5459if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5460 echo "$ac_t""yes" 1>&6
5461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5462 cat >> confdefs.h <<EOF
5463#define $ac_tr_hdr 1
5464EOF
5465
5466else
5467 echo "$ac_t""no" 1>&6
5468fi
5469done
5470
5471 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5472echo "configure:5473: checking for main in -lkrb" >&5
5473ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
5474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5476else
5477 ac_save_LIBS="$LIBS"
5478LIBS="-lkrb $LIBS"
5479cat > conftest.$ac_ext <<EOF
5480#line 5481 "configure"
5481#include "confdefs.h"
5482
5483int main() {
5484main()
5485; return 0; }
5486EOF
5487if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5488 rm -rf conftest*
5489 eval "ac_cv_lib_$ac_lib_var=yes"
5490else
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 rm -rf conftest*
5494 eval "ac_cv_lib_$ac_lib_var=no"
5495fi
5496rm -f conftest*
5497LIBS="$ac_save_LIBS"
5498
5499fi
5500if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5501 echo "$ac_t""yes" 1>&6
5502 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5503 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5504 cat >> confdefs.h <<EOF
5505#define $ac_tr_lib 1
5506EOF
5507
5508 LIBS="-lkrb $LIBS"
5509
5510else
5511 echo "$ac_t""no" 1>&6
5512fi
5513
5514 if test "$ac_cv_header_krb_h" != yes; then
5515 echo "configure: warning: Cannot find krb.h, build may fail" 1>&2
5516 fi
5517 if test "$ac_cv_lib_krb_main" != yes; then
5518 echo "configure: warning: Cannot find libkrb, build may fail" 1>&2
5519 fi
5520
5521 KLIBS="-lkrb -ldes"
5522 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
5523echo "configure:5524: checking for dn_expand in -lresolv" >&5
5524ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
5525if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5527else
5528 ac_save_LIBS="$LIBS"
5529LIBS="-lresolv $LIBS"
5530cat > conftest.$ac_ext <<EOF
5531#line 5532 "configure"
5532#include "confdefs.h"
5533/* Override any gcc2 internal prototype to avoid an error. */
5534/* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5536char dn_expand();
5537
5538int main() {
5539dn_expand()
5540; return 0; }
5541EOF
5542if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5543 rm -rf conftest*
5544 eval "ac_cv_lib_$ac_lib_var=yes"
5545else
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 rm -rf conftest*
5549 eval "ac_cv_lib_$ac_lib_var=no"
5550fi
5551rm -f conftest*
5552LIBS="$ac_save_LIBS"
5553
5554fi
5555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5556 echo "$ac_t""yes" 1>&6
5557 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5559 cat >> confdefs.h <<EOF
5560#define $ac_tr_lib 1
5561EOF
5562
5563 LIBS="-lresolv $LIBS"
5564
5565else
5566 echo "$ac_t""no" 1>&6
5567fi
5568
5569 KRB4=yes
5570 KRB4_MSG="yes"
5571 cat >> confdefs.h <<\EOF
5572#define KRB4 1
5573EOF
5574
5575 fi
5576
5577
5578fi
5579
5580
5581# Check whether user wants AFS support
5582AFS_MSG="no"
5583# Check whether --with-afs or --without-afs was given.
5584if test "${with_afs+set}" = set; then
5585 withval="$with_afs"
5586
5587 if test "x$withval" != "xno" ; then
5588
5589 if test "x$withval" != "$xyes" ; then
5590 CFLAGS="$CFLAGS -I${withval}/include"
5591 LFLAGS="$LFLAGS -L${withval}/lib"
5592 fi
5593
5594 if test -z "$KRB4" ; then
5595 echo "configure: warning: AFS requires Kerberos IV support, build may fail" 1>&2
5596 fi
5597
5598 LIBS="$LIBS -lkafs"
5599 if test ! -z "$AFS_LIBS" ; then
5600 LIBS="$LIBS $AFS_LIBS"
5601 fi
5602 cat >> confdefs.h <<\EOF
5603#define AFS 1
5604EOF
5605
5606 AFS_MSG="yes"
5607 fi
5608
5609
5610fi
5611
5612LIBS="$LIBS $KLIBS"
5613
5614# Check whether user wants S/Key support
5615SKEY_MSG="no"
5616# Check whether --with-skey or --without-skey was given.
5617if test "${with_skey+set}" = set; then
5618 withval="$with_skey"
5619
5620 if test "x$withval" != "xno" ; then
5621 cat >> confdefs.h <<\EOF
5622#define SKEY 1
5623EOF
5624
5625 LIBS="$LIBS -lskey"
5626 SKEY_MSG="yes"
5627 fi
5628
5629
5630fi
5631
5632
5633# Check whether user wants TCP wrappers support
5634TCPW_MSG="no"
5635# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
5636if test "${with_tcp_wrappers+set}" = set; then
5637 withval="$with_tcp_wrappers"
5638
5639 if test "x$withval" != "xno" ; then
5640 saved_LIBS="$LIBS"
5641 LIBS="$LIBS -lwrap"
5642 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
5643echo "configure:5644: checking for libwrap" >&5
5644 cat > conftest.$ac_ext <<EOF
5645#line 5646 "configure"
5646#include "confdefs.h"
5647
5648#include <tcpd.h>
5649 int deny_severity = 0, allow_severity = 0;
5650
5651int main() {
5652hosts_access(0);
5653; return 0; }
5654EOF
5655if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5656 rm -rf conftest*
5657
5658 echo "$ac_t""yes" 1>&6
5659 cat >> confdefs.h <<\EOF
5660#define LIBWRAP 1
5661EOF
5662
5663 TCPW_MSG="yes"
5664
5665else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669
5670 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
5671
5672
5673fi
5674rm -f conftest*
5675 fi
5676
5677
5678fi
5679
5680
5681# Check whether to enable MD5 passwords
5682MD5_MSG="no"
5683# Check whether --with-md5-passwords or --without-md5-passwords was given.
5684if test "${with_md5_passwords+set}" = set; then
5685 withval="$with_md5_passwords"
5686
5687 if test "x$withval" != "xno" ; then
5688 cat >> confdefs.h <<\EOF
5689#define HAVE_MD5_PASSWORDS 1
5690EOF
5691
5692 MD5_MSG="yes"
5693 fi
5694
5695
5696fi
5697
5698
5699# Whether to disable shadow password support
5700# Check whether --with-shadow or --without-shadow was given.
5701if test "${with_shadow+set}" = set; then
5702 withval="$with_shadow"
5703
5704 if test "x$withval" = "xno" ; then
5705 cat >> confdefs.h <<\EOF
5706#define DISABLE_SHADOW 1
5707EOF
5708
5709 disable_shadow=yes
5710 fi
5711
5712
5713fi
5714
5715
5716if test -z "$disable_shadow" ; then
5717 echo $ac_n "checking if the systems has expire shadow information""... $ac_c" 1>&6
5718echo "configure:5719: checking if the systems has expire shadow information" >&5
5719 cat > conftest.$ac_ext <<EOF
5720#line 5721 "configure"
5721#include "confdefs.h"
5722
5723#include <sys/types.h>
5724#include <shadow.h>
5725 struct spwd sp;
5726
5727int main() {
5728 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
5729; return 0; }
5730EOF
5731if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5732 rm -rf conftest*
5733 sp_expire_available=yes
5734else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738
5739
5740fi
5741rm -f conftest*
5742
5743 if test "x$sp_expire_available" = "xyes" ; then
5744 echo "$ac_t""yes" 1>&6
5745 cat >> confdefs.h <<\EOF
5746#define HAS_SHADOW_EXPIRE 1
5747EOF
5748
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752fi
5753
5754# Use ip address instead of hostname in $DISPLAY
5755DISPLAY_HACK_MSG="no"
5756# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
5757if test "${with_ipaddr_display+set}" = set; then
5758 withval="$with_ipaddr_display"
5759
5760 if test "x$withval" = "xno" ; then
5761 cat >> confdefs.h <<\EOF
5762#define IPADDR_IN_DISPLAY 1
5763EOF
5764
5765 DISPLAY_HACK_MSG="yes"
5766 fi
5767
5768
5769fi
5770
5771
5772# Whether to mess with the default path
5773SERVER_PATH_MSG="(default)"
5774# Check whether --with-default-path or --without-default-path was given.
5775if test "${with_default_path+set}" = set; then
5776 withval="$with_default_path"
5777
5778 if test "x$withval" != "xno" ; then
5779 cat >> confdefs.h <<EOF
5780#define USER_PATH "$withval"
5781EOF
5782
5783 SERVER_PATH_MSG="$withval"
5784 fi
5785
5786
5787fi
5788
5789
5790# Whether to force IPv4 by default (needed on broken glibc Linux)
5791IPV4_HACK_MSG="no"
5792# Check whether --with-ipv4-default or --without-ipv4-default was given.
5793if test "${with_ipv4_default+set}" = set; then
5794 withval="$with_ipv4_default"
5795
5796 if test "x$withval" != "xno" ; then
5797 cat >> confdefs.h <<\EOF
5798#define IPV4_DEFAULT 1
5799EOF
5800
5801 IPV4_HACK_MSG="yes"
5802 fi
5803
5804
5805fi
5806
5807
5808echo $ac_n "checking if we need to convert IPv4 in IPv6-mapped addresses""... $ac_c" 1>&6
5809echo "configure:5810: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
5810IPV4_IN6_HACK_MSG="no"
5811# Check whether --with-4in6 or --without-4in6 was given.
5812if test "${with_4in6+set}" = set; then
5813 withval="$with_4in6"
5814
5815 if test "x$withval" != "xno" ; then
5816 echo "$ac_t""yes" 1>&6
5817 cat >> confdefs.h <<\EOF
5818#define IPV4_IN_IPV6 1
5819EOF
5820
5821 IPV4_IN6_HACK_MSG="yes"
5822 else
5823 echo "$ac_t""no" 1>&6
5824 fi
5825
5826else
5827
5828 if test "x$inet6_default_4in6" = "xyes"; then
5829 echo "$ac_t""yes (default)" 1>&6
5830 cat >> confdefs.h <<\EOF
5831#define IPV4_IN_IPV6 1
5832EOF
5833
5834 IPV4_IN6_HACK_MSG="yes"
5835 else
5836 echo "$ac_t""no (default)" 1>&6
5837 fi
5838
5839
5840fi
5841
5842
5843# Where to place sshd.pid
5844piddir=/var/run
5845# Check whether --with-pid-dir or --without-pid-dir was given.
5846if test "${with_pid_dir+set}" = set; then
5847 withval="$with_pid_dir"
5848
5849 if test "x$withval" != "xno" ; then
5850 piddir=$withval
5851 fi
5852
5853
5854fi
5855
5856
5857cat >> confdefs.h <<EOF
5858#define PIDDIR "$piddir"
5859EOF
5860
5861
5862
5863# Check whether --enable-lastlog or --disable-lastlog was given.
5864if test "${enable_lastlog+set}" = set; then
5865 enableval="$enable_lastlog"
5866 cat >> confdefs.h <<\EOF
5867#define DISABLE_LASTLOG 1
5868EOF
5869
5870
5871fi
5872
5873# Check whether --enable-utmp or --disable-utmp was given.
5874if test "${enable_utmp+set}" = set; then
5875 enableval="$enable_utmp"
5876 cat >> confdefs.h <<\EOF
5877#define DISABLE_UTMP 1
5878EOF
5879
5880
5881fi
5882
5883# Check whether --enable-utmpx or --disable-utmpx was given.
5884if test "${enable_utmpx+set}" = set; then
5885 enableval="$enable_utmpx"
5886 cat >> confdefs.h <<\EOF
5887#define DISABLE_UTMPX 1
5888EOF
5889
5890
5891fi
5892
5893# Check whether --enable-wtmp or --disable-wtmp was given.
5894if test "${enable_wtmp+set}" = set; then
5895 enableval="$enable_wtmp"
5896 cat >> confdefs.h <<\EOF
5897#define DISABLE_WTMP 1
5898EOF
5899
5900
5901fi
5902
5903# Check whether --enable-wtmpx or --disable-wtmpx was given.
5904if test "${enable_wtmpx+set}" = set; then
5905 enableval="$enable_wtmpx"
5906 cat >> confdefs.h <<\EOF
5907#define DISABLE_WTMPX 1
5908EOF
5909
5910
5911fi
5912
5913# Check whether --enable-libutil or --disable-libutil was given.
5914if test "${enable_libutil+set}" = set; then
5915 enableval="$enable_libutil"
5916 cat >> confdefs.h <<\EOF
5917#define DISABLE_LOGIN 1
5918EOF
5919
5920
5921fi
5922
5923# Check whether --enable-pututline or --disable-pututline was given.
5924if test "${enable_pututline+set}" = set; then
5925 enableval="$enable_pututline"
5926 cat >> confdefs.h <<\EOF
5927#define DISABLE_PUTUTLINE 1
5928EOF
5929
5930
5931fi
5932
5933# Check whether --enable-pututxline or --disable-pututxline was given.
5934if test "${enable_pututxline+set}" = set; then
5935 enableval="$enable_pututxline"
5936 cat >> confdefs.h <<\EOF
5937#define DISABLE_PUTUTXLINE 1
5938EOF
5939
5940
5941fi
5942
5943# Check whether --with-lastlog or --without-lastlog was given.
5944if test "${with_lastlog+set}" = set; then
5945 withval="$with_lastlog"
5946 conf_lastlog_location="$withval";
5947fi
5948
5949
5950
5951echo $ac_n "checking if your system defines LASTLOG_FILE""... $ac_c" 1>&6
5952echo "configure:5953: checking if your system defines LASTLOG_FILE" >&5
5953cat > conftest.$ac_ext <<EOF
5954#line 5955 "configure"
5955#include "confdefs.h"
5956
5957#include <sys/types.h>
5958#include <utmp.h>
5959#ifdef HAVE_LASTLOG_H
5960# include <lastlog.h>
5961#endif
5962#ifdef HAVE_PATHS_H
5963# include <paths.h>
5964#endif
5965
5966int main() {
5967 char *lastlog = LASTLOG_FILE;
5968; return 0; }
5969EOF
5970if { (eval echo configure:5971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5971 rm -rf conftest*
5972 echo "$ac_t""yes" 1>&6
5973else
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 rm -rf conftest*
5977
5978 echo "$ac_t""no" 1>&6
5979 echo $ac_n "checking if your system defines _PATH_LASTLOG""... $ac_c" 1>&6
5980echo "configure:5981: checking if your system defines _PATH_LASTLOG" >&5
5981 cat > conftest.$ac_ext <<EOF
5982#line 5983 "configure"
5983#include "confdefs.h"
5984
5985#include <sys/types.h>
5986#include <utmp.h>
5987#ifdef HAVE_LASTLOG_H
5988# include <lastlog.h>
5989#endif
5990#ifdef HAVE_PATHS_H
5991# include <paths.h>
5992#endif
5993
5994int main() {
5995 char *lastlog = _PATH_LASTLOG;
5996; return 0; }
5997EOF
5998if { (eval echo configure:5999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5999 rm -rf conftest*
6000 echo "$ac_t""yes" 1>&6
6001else
6002 echo "configure: failed program was:" >&5
6003 cat conftest.$ac_ext >&5
6004 rm -rf conftest*
6005
6006 echo "$ac_t""no" 1>&6
6007 system_lastlog_path=no
6008
6009fi
6010rm -f conftest*
6011
6012
6013fi
6014rm -f conftest*
6015
6016if test -z "$conf_lastlog_location"; then
6017 if test x"$system_lastlog_path" = x"no" ; then
6018 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
6019 if (test -d "$f" || test -f "$f") ; then
6020 conf_lastlog_location=$f
6021 fi
6022 done
6023 if test -z "$conf_lastlog_location"; then
6024 echo "configure: warning: ** Cannot find lastlog **" 1>&2
6025 fi
6026 fi
6027fi
6028
6029if test -n "$conf_lastlog_location"; then
6030 cat >> confdefs.h <<EOF
6031#define CONF_LASTLOG_FILE "$conf_lastlog_location"
6032EOF
6033
6034fi
6035
6036echo $ac_n "checking if your system defines UTMP_FILE""... $ac_c" 1>&6
6037echo "configure:6038: checking if your system defines UTMP_FILE" >&5
6038cat > conftest.$ac_ext <<EOF
6039#line 6040 "configure"
6040#include "confdefs.h"
6041
6042#include <sys/types.h>
6043#include <utmp.h>
6044#ifdef HAVE_PATHS_H
6045# include <paths.h>
6046#endif
6047
6048int main() {
6049 char *utmp = UTMP_FILE;
6050; return 0; }
6051EOF
6052if { (eval echo configure:6053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6053 rm -rf conftest*
6054 echo "$ac_t""yes" 1>&6
6055else
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6058 rm -rf conftest*
6059 echo "$ac_t""no" 1>&6
6060 system_utmp_path=no
6061
6062fi
6063rm -f conftest*
6064if test -z "$conf_utmp_location"; then
6065 if test x"$system_utmp_path" = x"no" ; then
6066 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
6067 if test -f $f ; then
6068 conf_utmp_location=$f
6069 fi
6070 done
6071 if test -z "$conf_utmp_location"; then
6072 cat >> confdefs.h <<\EOF
6073#define DISABLE_UTMP 1
6074EOF
6075
6076 fi
6077 fi
6078fi
6079if test -n "$conf_utmp_location"; then
6080 cat >> confdefs.h <<EOF
6081#define CONF_UTMP_FILE "$conf_utmp_location"
6082EOF
6083
6084fi
6085
6086echo $ac_n "checking if your system defines WTMP_FILE""... $ac_c" 1>&6
6087echo "configure:6088: checking if your system defines WTMP_FILE" >&5
6088cat > conftest.$ac_ext <<EOF
6089#line 6090 "configure"
6090#include "confdefs.h"
6091
6092#include <sys/types.h>
6093#include <utmp.h>
6094#ifdef HAVE_PATHS_H
6095# include <paths.h>
6096#endif
6097
6098int main() {
6099 char *wtmp = WTMP_FILE;
6100; return 0; }
6101EOF
6102if { (eval echo configure:6103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6103 rm -rf conftest*
6104 echo "$ac_t""yes" 1>&6
6105else
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6108 rm -rf conftest*
6109 echo "$ac_t""no" 1>&6
6110 system_wtmp_path=no
6111
6112fi
6113rm -f conftest*
6114if test -z "$conf_wtmp_location"; then
6115 if test x"$system_wtmp_path" = x"no" ; then
6116 for f in /usr/adm/wtmp /var/log/wtmp; do
6117 if test -f $f ; then
6118 conf_wtmp_location=$f
6119 fi
6120 done
6121 if test -z "$conf_wtmp_location"; then
6122 cat >> confdefs.h <<\EOF
6123#define DISABLE_WTMP 1
6124EOF
6125
6126 fi
6127 fi
6128fi
6129if test -n "$conf_wtmp_location"; then
6130 cat >> confdefs.h <<EOF
6131#define CONF_WTMP_FILE "$conf_wtmp_location"
6132EOF
6133
6134fi
6135
6136
6137echo $ac_n "checking if your system defines UTMPX_FILE""... $ac_c" 1>&6
6138echo "configure:6139: checking if your system defines UTMPX_FILE" >&5
6139cat > conftest.$ac_ext <<EOF
6140#line 6141 "configure"
6141#include "confdefs.h"
6142
6143#include <sys/types.h>
6144#include <utmp.h>
6145#ifdef HAVE_UTMPX_H
6146#include <utmpx.h>
6147#endif
6148#ifdef HAVE_PATHS_H
6149# include <paths.h>
6150#endif
6151
6152int main() {
6153 char *utmpx = UTMPX_FILE;
6154; return 0; }
6155EOF
6156if { (eval echo configure:6157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6157 rm -rf conftest*
6158 echo "$ac_t""yes" 1>&6
6159else
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6162 rm -rf conftest*
6163 echo "$ac_t""no" 1>&6
6164 system_utmpx_path=no
6165
6166fi
6167rm -f conftest*
6168if test -z "$conf_utmpx_location"; then
6169 if test x"$system_utmpx_path" = x"no" ; then
6170 cat >> confdefs.h <<\EOF
6171#define DISABLE_UTMPX 1
6172EOF
6173
6174 fi
6175else
6176 cat >> confdefs.h <<EOF
6177#define CONF_UTMPX_FILE "$conf_utmpx_location"
6178EOF
6179
6180fi
6181
6182echo $ac_n "checking if your system defines WTMPX_FILE""... $ac_c" 1>&6
6183echo "configure:6184: checking if your system defines WTMPX_FILE" >&5
6184cat > conftest.$ac_ext <<EOF
6185#line 6186 "configure"
6186#include "confdefs.h"
6187
6188#include <sys/types.h>
6189#include <utmp.h>
6190#ifdef HAVE_UTMPX_H
6191#include <utmpx.h>
6192#endif
6193#ifdef HAVE_PATHS_H
6194# include <paths.h>
6195#endif
6196
6197int main() {
6198 char *wtmpx = WTMPX_FILE;
6199; return 0; }
6200EOF
6201if { (eval echo configure:6202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6202 rm -rf conftest*
6203 echo "$ac_t""yes" 1>&6
6204else
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6207 rm -rf conftest*
6208 echo "$ac_t""no" 1>&6
6209 system_wtmpx_path=no
6210
6211fi
6212rm -f conftest*
6213if test -z "$conf_wtmpx_location"; then
6214 if test x"$system_wtmpx_path" = x"no" ; then
6215 cat >> confdefs.h <<\EOF
6216#define DISABLE_WTMPX 1
6217EOF
6218
6219 fi
6220else
6221 cat >> confdefs.h <<EOF
6222#define CONF_WTMPX_FILE "$conf_wtmpx_location"
6223EOF
6224
6225fi
6226
6227
6228# Change default command timeout for builtin PRNG
6229entropy_timeout=200
6230# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
6231if test "${with_entropy_timeout+set}" = set; then
6232 withval="$with_entropy_timeout"
6233
6234 if test "x$withval" != "xno" ; then
6235 entropy_timeout=$withval
6236 fi
6237
6238
6239fi
6240
6241cat >> confdefs.h <<EOF
6242#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
6243EOF
6244
6245
6246
6247if test ! -z "$blibpath" ; then
6248 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
6249 echo "configure: warning: Please check and edit -blibpath in LDFLAGS in Makefile" 1>&2
6250fi
6251
6252trap '' 1 2 15
6253cat > confcache <<\EOF
6254# This file is a shell script that caches the results of configure
6255# tests run on this system so they can be shared between configure
6256# scripts and configure runs. It is not useful on other systems.
6257# If it contains results you don't want to keep, you may remove or edit it.
6258#
6259# By default, configure uses ./config.cache as the cache file,
6260# creating it if it does not exist already. You can give configure
6261# the --cache-file=FILE option to use a different cache file; that is
6262# what configure does when it calls configure scripts in
6263# subdirectories, so they share the cache.
6264# Giving --cache-file=/dev/null disables caching, for debugging configure.
6265# config.status only pays attention to the cache file if you give it the
6266# --recheck option to rerun configure.
6267#
6268EOF
6269# The following way of writing the cache mishandles newlines in values,
6270# but we know of no workaround that is simple, portable, and efficient.
6271# So, don't put newlines in cache variables' values.
6272# Ultrix sh set writes to stderr and can't be redirected directly,
6273# and sets the high bit in the cache file unless we assign to the vars.
6274(set) 2>&1 |
6275 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6276 *ac_space=\ *)
6277 # `set' does not quote correctly, so add quotes (double-quote substitution
6278 # turns \\\\ into \\, and sed turns \\ into \).
6279 sed -n \
6280 -e "s/'/'\\\\''/g" \
6281 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6282 ;;
6283 *)
6284 # `set' quotes correctly as required by POSIX, so do not add quotes.
6285 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6286 ;;
6287 esac >> confcache
6288if cmp -s $cache_file confcache; then
6289 :
6290else
6291 if test -w $cache_file; then
6292 echo "updating cache $cache_file"
6293 cat confcache > $cache_file
6294 else
6295 echo "not updating unwritable cache $cache_file"
6296 fi
6297fi
6298rm -f confcache
6299
6300trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6301
6302test "x$prefix" = xNONE && prefix=$ac_default_prefix
6303# Let make expand exec_prefix.
6304test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6305
6306# Any assignment to VPATH causes Sun make to only execute
6307# the first set of double-colon rules, so remove it if not needed.
6308# If there is a colon in the path, we need to keep it.
6309if test "x$srcdir" = x.; then
6310 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6311fi
6312
6313trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6314
6315DEFS=-DHAVE_CONFIG_H
6316
6317# Without the "./", some shells look in PATH for config.status.
6318: ${CONFIG_STATUS=./config.status}
6319
6320echo creating $CONFIG_STATUS
6321rm -f $CONFIG_STATUS
6322cat > $CONFIG_STATUS <<EOF
6323#! /bin/sh
6324# Generated automatically by configure.
6325# Run this file to recreate the current configuration.
6326# This directory was configured as follows,
6327# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6328#
6329# $0 $ac_configure_args
6330#
6331# Compiler output produced by configure, useful for debugging
6332# configure, is in ./config.log if it exists.
6333
6334ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6335for ac_option
6336do
6337 case "\$ac_option" in
6338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6339 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6340 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6341 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6342 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6343 exit 0 ;;
6344 -help | --help | --hel | --he | --h)
6345 echo "\$ac_cs_usage"; exit 0 ;;
6346 *) echo "\$ac_cs_usage"; exit 1 ;;
6347 esac
6348done
6349
6350ac_given_srcdir=$srcdir
6351ac_given_INSTALL="$INSTALL"
6352
6353trap 'rm -fr `echo "Makefile ssh_prng_cmds config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6354EOF
6355cat >> $CONFIG_STATUS <<EOF
6356
6357# Protect against being on the right side of a sed subst in config.status.
6358sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6359 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6360$ac_vpsub
6361$extrasub
6362s%@SHELL@%$SHELL%g
6363s%@CFLAGS@%$CFLAGS%g
6364s%@CPPFLAGS@%$CPPFLAGS%g
6365s%@CXXFLAGS@%$CXXFLAGS%g
6366s%@FFLAGS@%$FFLAGS%g
6367s%@DEFS@%$DEFS%g
6368s%@LDFLAGS@%$LDFLAGS%g
6369s%@LIBS@%$LIBS%g
6370s%@exec_prefix@%$exec_prefix%g
6371s%@prefix@%$prefix%g
6372s%@program_transform_name@%$program_transform_name%g
6373s%@bindir@%$bindir%g
6374s%@sbindir@%$sbindir%g
6375s%@libexecdir@%$libexecdir%g
6376s%@datadir@%$datadir%g
6377s%@sysconfdir@%$sysconfdir%g
6378s%@sharedstatedir@%$sharedstatedir%g
6379s%@localstatedir@%$localstatedir%g
6380s%@libdir@%$libdir%g
6381s%@includedir@%$includedir%g
6382s%@oldincludedir@%$oldincludedir%g
6383s%@infodir@%$infodir%g
6384s%@mandir@%$mandir%g
6385s%@CC@%$CC%g
6386s%@host@%$host%g
6387s%@host_alias@%$host_alias%g
6388s%@host_cpu@%$host_cpu%g
6389s%@host_vendor@%$host_vendor%g
6390s%@host_os@%$host_os%g
6391s%@CPP@%$CPP%g
6392s%@RANLIB@%$RANLIB%g
6393s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6394s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6395s%@INSTALL_DATA@%$INSTALL_DATA%g
6396s%@AR@%$AR%g
6397s%@PERL@%$PERL%g
6398s%@ENT@%$ENT%g
6399s%@LD@%$LD%g
6400s%@rsh_path@%$rsh_path%g
6401s%@xauth_path@%$xauth_path%g
6402s%@RANDOM_POOL@%$RANDOM_POOL%g
6403s%@PROG_LS@%$PROG_LS%g
6404s%@PROG_NETSTAT@%$PROG_NETSTAT%g
6405s%@PROG_ARP@%$PROG_ARP%g
6406s%@PROG_IFCONFIG@%$PROG_IFCONFIG%g
6407s%@PROG_PS@%$PROG_PS%g
6408s%@PROG_W@%$PROG_W%g
6409s%@PROG_WHO@%$PROG_WHO%g
6410s%@PROG_LAST@%$PROG_LAST%g
6411s%@PROG_LASTLOG@%$PROG_LASTLOG%g
6412s%@PROG_DF@%$PROG_DF%g
6413s%@PROG_VMSTAT@%$PROG_VMSTAT%g
6414s%@PROG_UPTIME@%$PROG_UPTIME%g
6415s%@PROG_IPCS@%$PROG_IPCS%g
6416s%@PROG_TAIL@%$PROG_TAIL%g
6417s%@INSTALL_SSH_PRNG_CMDS@%$INSTALL_SSH_PRNG_CMDS%g
6418s%@MANTYPE@%$MANTYPE%g
6419s%@mansubdir@%$mansubdir%g
6420s%@piddir@%$piddir%g
6421
6422CEOF
6423EOF
6424
6425cat >> $CONFIG_STATUS <<\EOF
6426
6427# Split the substitutions into bite-sized pieces for seds with
6428# small command number limits, like on Digital OSF/1 and HP-UX.
6429ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6430ac_file=1 # Number of current file.
6431ac_beg=1 # First line for current file.
6432ac_end=$ac_max_sed_cmds # Line after last line for current file.
6433ac_more_lines=:
6434ac_sed_cmds=""
6435while $ac_more_lines; do
6436 if test $ac_beg -gt 1; then
6437 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6438 else
6439 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6440 fi
6441 if test ! -s conftest.s$ac_file; then
6442 ac_more_lines=false
6443 rm -f conftest.s$ac_file
6444 else
6445 if test -z "$ac_sed_cmds"; then
6446 ac_sed_cmds="sed -f conftest.s$ac_file"
6447 else
6448 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6449 fi
6450 ac_file=`expr $ac_file + 1`
6451 ac_beg=$ac_end
6452 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6453 fi
6454done
6455if test -z "$ac_sed_cmds"; then
6456 ac_sed_cmds=cat
6457fi
6458EOF
6459
6460cat >> $CONFIG_STATUS <<EOF
6461
6462CONFIG_FILES=\${CONFIG_FILES-"Makefile ssh_prng_cmds"}
6463EOF
6464cat >> $CONFIG_STATUS <<\EOF
6465for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6467 case "$ac_file" in
6468 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6469 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6470 *) ac_file_in="${ac_file}.in" ;;
6471 esac
6472
6473 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6474
6475 # Remove last slash and all that follows it. Not all systems have dirname.
6476 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6477 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6478 # The file is in a subdirectory.
6479 test ! -d "$ac_dir" && mkdir "$ac_dir"
6480 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6481 # A "../" for each directory in $ac_dir_suffix.
6482 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6483 else
6484 ac_dir_suffix= ac_dots=
6485 fi
6486
6487 case "$ac_given_srcdir" in
6488 .) srcdir=.
6489 if test -z "$ac_dots"; then top_srcdir=.
6490 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6491 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6492 *) # Relative path.
6493 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6494 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6495 esac
6496
6497 case "$ac_given_INSTALL" in
6498 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6499 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6500 esac
6501
6502 echo creating "$ac_file"
6503 rm -f "$ac_file"
6504 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6505 case "$ac_file" in
6506 *Makefile*) ac_comsub="1i\\
6507# $configure_input" ;;
6508 *) ac_comsub= ;;
6509 esac
6510
6511 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6512 sed -e "$ac_comsub
6513s%@configure_input@%$configure_input%g
6514s%@srcdir@%$srcdir%g
6515s%@top_srcdir@%$top_srcdir%g
6516s%@INSTALL@%$INSTALL%g
6517" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6518fi; done
6519rm -f conftest.s*
6520
6521# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6522# NAME is the cpp macro being defined and VALUE is the value it is being given.
6523#
6524# ac_d sets the value in "#define NAME VALUE" lines.
6525ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6526ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6527ac_dC='\3'
6528ac_dD='%g'
6529# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6530ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6531ac_uB='\([ ]\)%\1#\2define\3'
6532ac_uC=' '
6533ac_uD='\4%g'
6534# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6535ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6536ac_eB='$%\1#\2define\3'
6537ac_eC=' '
6538ac_eD='%g'
6539
6540if test "${CONFIG_HEADERS+set}" != set; then
6541EOF
6542cat >> $CONFIG_STATUS <<EOF
6543 CONFIG_HEADERS="config.h"
6544EOF
6545cat >> $CONFIG_STATUS <<\EOF
6546fi
6547for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6549 case "$ac_file" in
6550 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6551 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6552 *) ac_file_in="${ac_file}.in" ;;
6553 esac
6554
6555 echo creating $ac_file
6556
6557 rm -f conftest.frag conftest.in conftest.out
6558 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6559 cat $ac_file_inputs > conftest.in
6560
6561EOF
6562
6563# Transform confdefs.h into a sed script conftest.vals that substitutes
6564# the proper values into config.h.in to produce config.h. And first:
6565# Protect against being on the right side of a sed subst in config.status.
6566# Protect against being in an unquoted here document in config.status.
6567rm -f conftest.vals
6568cat > conftest.hdr <<\EOF
6569s/[\\&%]/\\&/g
6570s%[\\$`]%\\&%g
6571s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6572s%ac_d%ac_u%gp
6573s%ac_u%ac_e%gp
6574EOF
6575sed -n -f conftest.hdr confdefs.h > conftest.vals
6576rm -f conftest.hdr
6577
6578# This sed command replaces #undef with comments. This is necessary, for
6579# example, in the case of _POSIX_SOURCE, which is predefined and required
6580# on some systems where configure will not decide to define it.
6581cat >> conftest.vals <<\EOF
6582s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6583EOF
6584
6585# Break up conftest.vals because some shells have a limit on
6586# the size of here documents, and old seds have small limits too.
6587
6588rm -f conftest.tail
6589while :
6590do
6591 ac_lines=`grep -c . conftest.vals`
6592 # grep -c gives empty output for an empty file on some AIX systems.
6593 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6594 # Write a limited-size here document to conftest.frag.
6595 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6596 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6597 echo 'CEOF
6598 sed -f conftest.frag conftest.in > conftest.out
6599 rm -f conftest.in
6600 mv conftest.out conftest.in
6601' >> $CONFIG_STATUS
6602 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6603 rm -f conftest.vals
6604 mv conftest.tail conftest.vals
6605done
6606rm -f conftest.vals
6607
6608cat >> $CONFIG_STATUS <<\EOF
6609 rm -f conftest.frag conftest.h
6610 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6611 cat conftest.in >> conftest.h
6612 rm -f conftest.in
6613 if cmp -s $ac_file conftest.h 2>/dev/null; then
6614 echo "$ac_file is unchanged"
6615 rm -f conftest.h
6616 else
6617 # Remove last slash and all that follows it. Not all systems have dirname.
6618 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6619 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6620 # The file is in a subdirectory.
6621 test ! -d "$ac_dir" && mkdir "$ac_dir"
6622 fi
6623 rm -f $ac_file
6624 mv conftest.h $ac_file
6625 fi
6626fi; done
6627
6628EOF
6629cat >> $CONFIG_STATUS <<EOF
6630
6631EOF
6632cat >> $CONFIG_STATUS <<\EOF
6633
6634exit 0
6635EOF
6636chmod +x $CONFIG_STATUS
6637rm -fr confdefs* $ac_clean_files
6638test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6639
6640
6641# Print summary of options
6642
6643if test x$MANTYPE = x'$(CATMAN)' ; then
6644 MAN_MSG=cat
6645else
6646 MAN_MSG=man
6647fi
6648if test ! -z "$RANDOM_POOL" ; then
6649 RAND_MSG="Device ($RANDOM_POOL)"
6650else
6651 if test ! -z "$EGD_SOCKET" ; then
6652 RAND_MSG="EGD ($EGD_SOCKET)"
6653 else
6654 RAND_MSG="Builtin (timeout $entropy_timeout)"
6655 fi
6656fi
6657
6658# Someone please show me a better way :)
6659A=`eval echo ${prefix}` ; A=`eval echo ${A}`
6660B=`eval echo ${bindir}` ; B=`eval echo ${B}`
6661C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
6662D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
6663E=`eval echo ${libexecdir}/ssh/ssh-askpass` ; E=`eval echo ${E}`
6664F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
6665G=`eval echo ${piddir}` ; G=`eval echo ${G}`
6666
6667echo ""
6668echo "OpenSSH configured has been configured with the following options."
6669echo " User binaries: $B"
6670echo " System binaries: $C"
6671echo " Configuration files: $D"
6672echo " Askpass program: $E"
6673echo " Manual pages: $F"
6674echo " PID file: $G"
6675echo " Random number collection: $RAND_MSG"
6676echo " Manpage format: $MAN_MSG"
6677echo " PAM support: ${PAM_MSG}"
6678echo " KerberosIV support: $KRB4_MSG"
6679echo " AFS support: $AFS_MSG"
6680echo " S/KEY support: $SKEY_MSG"
6681echo " TCP Wrappers support: $TCPW_MSG"
6682echo " MD5 password support: $MD5_MSG"
6683echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
6684echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
6685echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
6686
6687echo ""
6688
6689echo "Compiler flags: ${CFLAGS}"
6690echo "Linker flags: ${LDFLAGS}"
6691echo "Libraries: ${LIBS}"
6692
6693echo ""
6694