summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-01 01:47:17 +0000
committerColin Watson <cjwatson@debian.org>2003-09-01 01:47:17 +0000
commit58657d96514cd6f16d82add8d6f4adbb36765758 (patch)
treeb618adf8cafe8afd07b90ea24120d986b1d67dee /configure
parent1c992c4c13ea6c8fcd80093b340bc49753e17a4f (diff)
parentd984a3c6658e950881edcfb2aae464add93f68d4 (diff)
Import OpenSSH 3.5p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17911
1 files changed, 17911 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..565e9ee79
--- /dev/null
+++ b/configure
@@ -0,0 +1,17911 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="ssh.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785 cat <<_ACEOF
786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812_ACEOF
813
814 cat <<\_ACEOF
815
816System types:
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
819_ACEOF
820fi
821
822if test -n "$ac_init_help"; then
823
824 cat <<\_ACEOF
825
826Optional Features:
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
829 --disable-largefile omit support for large files
830 --disable-lastlog disable use of lastlog even if detected no
831 --disable-utmp disable use of utmp even if detected no
832 --disable-utmpx disable use of utmpx even if detected no
833 --disable-wtmp disable use of wtmp even if detected no
834 --disable-wtmpx disable use of wtmpx even if detected no
835 --disable-libutil disable use of libutil (login() etc.) no
836 --disable-pututline disable use of pututline() etc. (uwtmp) no
837 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
838
839Optional Packages:
840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842 --with-osfsia Enable Digital Unix SIA
843 --with-cflags Specify additional flags to pass to compiler
844 --with-cppflags Specify additional flags to pass to preprocessor
845 --with-ldflags Specify additional flags to pass to linker
846 --with-libs Specify additional libraries to link with
847 --without-rpath Disable auto-added -R linker paths
848 --with-zlib=PATH Use zlib in PATH
849 --with-skey[=PATH] Enable S/Key support
850 (optionally in PATH)
851 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
852 (optionally in PATH)
853 --with-pam Enable PAM support
854 --with-ssl-dir=PATH Specify path to OpenSSL installation
855 --with-rand-helper Use subprocess to gather strong randomness
856 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
857 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
858 --with-entropy-timeout Specify entropy gathering command timeout (msec)
859 --with-privsep-user=user Specify non-privileged user for privilege separation
860 --with-sectok Enable smartcard support using libsectok
861 --with-opensc=PFX Enable smartcard support using OpenSC
862 --with-kerberos5=PATH Enable Kerberos 5 support
863 --with-kerberos4=PATH Enable Kerberos 4 support
864 --with-afs=PATH Enable AFS support
865 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
866 --with-xauth=PATH Specify path to xauth program
867 --with-mantype=man|cat|doc Set man page type
868 --with-md5-passwords Enable use of MD5 passwords
869 --without-shadow Disable shadow password support
870 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
871 --with-default-path= Specify default \$PATH environment for server
872 --with-superuser-path= Specify different path for super-user
873 --with-ipv4-default Use IPv4 by connections unless '-6' specified
874 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
875 --with-bsd-auth Enable BSD auth support
876 --with-pid-dir=PATH Specify location of ssh.pid file
877 --with-lastlog=FILE|DIR specify lastlog location common locations
878
879Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
891_ACEOF
892fi
893
894if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
900
901if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
908
909case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923esac
924# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925# absolute.
926ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931 cd $ac_dir
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
934 echo
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
937 echo
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
941 echo
942 $ac_configure --help
943 else
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 fi
946 cd $ac_popdir
947 done
948fi
949
950test -n "$ac_init_help" && exit 0
951if $ac_init_version; then
952 cat <<\_ACEOF
953
954Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955Free Software Foundation, Inc.
956This configure script is free software; the Free Software Foundation
957gives unlimited permission to copy, distribute and modify it.
958_ACEOF
959 exit 0
960fi
961exec 5>config.log
962cat >&5 <<_ACEOF
963This file contains any messages produced by compilers while
964running configure, to aid debugging if configure makes a mistake.
965
966It was created by $as_me, which was
967generated by GNU Autoconf 2.53. Invocation command line was
968
969 $ $0 $@
970
971_ACEOF
972{
973cat <<_ASUNAME
974## --------- ##
975## Platform. ##
976## --------- ##
977
978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979uname -m = `(uname -m) 2>/dev/null || echo unknown`
980uname -r = `(uname -r) 2>/dev/null || echo unknown`
981uname -s = `(uname -s) 2>/dev/null || echo unknown`
982uname -v = `(uname -v) 2>/dev/null || echo unknown`
983
984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986
987/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994
995_ASUNAME
996
997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998for as_dir in $PATH
999do
1000 IFS=$as_save_IFS
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1003done
1004
1005} >&5
1006
1007cat >&5 <<_ACEOF
1008
1009
1010## ----------- ##
1011## Core tests. ##
1012## ----------- ##
1013
1014_ACEOF
1015
1016
1017# Keep a trace of the command line.
1018# Strip out --no-create and --no-recursion so they do not pile up.
1019# Also quote any args containing shell meta-characters.
1020ac_configure_args=
1021ac_sep=
1022for ac_arg
1023do
1024 case $ac_arg in
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n ) continue ;;
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 continue ;;
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032 esac
1033 case " $ac_configure_args " in
1034 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1035 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036 ac_sep=" " ;;
1037 esac
1038 # Get rid of the leading space.
1039done
1040
1041# When interrupted or exit'd, cleanup temporary files, and complete
1042# config.log. We remove comments because anyway the quotes in there
1043# would cause problems or look ugly.
1044# WARNING: Be sure not to use single quotes in there, as some shells,
1045# such as our DU 5.0 friend, will then `close' the trap.
1046trap 'exit_status=$?
1047 # Save into config.log some information that might help in debugging.
1048 {
1049 echo
1050 cat <<\_ASBOX
1051## ---------------- ##
1052## Cache variables. ##
1053## ---------------- ##
1054_ASBOX
1055 echo
1056 # The following way of writing the cache mishandles newlines in values,
1057{
1058 (set) 2>&1 |
1059 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1060 *ac_space=\ *)
1061 sed -n \
1062 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1064 ;;
1065 *)
1066 sed -n \
1067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1068 ;;
1069 esac;
1070}
1071 echo
1072 if test -s confdefs.h; then
1073 cat <<\_ASBOX
1074## ----------- ##
1075## confdefs.h. ##
1076## ----------- ##
1077_ASBOX
1078 echo
1079 sed "/^$/d" confdefs.h
1080 echo
1081 fi
1082 test "$ac_signal" != 0 &&
1083 echo "$as_me: caught signal $ac_signal"
1084 echo "$as_me: exit $exit_status"
1085 } >&5
1086 rm -f core core.* *.core &&
1087 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1088 exit $exit_status
1089 ' 0
1090for ac_signal in 1 2 13 15; do
1091 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1092done
1093ac_signal=0
1094
1095# confdefs.h avoids OS command line length limits that DEFS can exceed.
1096rm -rf conftest* confdefs.h
1097# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1098echo >confdefs.h
1099
1100# Predefined preprocessor variables.
1101
1102cat >>confdefs.h <<_ACEOF
1103#define PACKAGE_NAME "$PACKAGE_NAME"
1104_ACEOF
1105
1106
1107cat >>confdefs.h <<_ACEOF
1108#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1109_ACEOF
1110
1111
1112cat >>confdefs.h <<_ACEOF
1113#define PACKAGE_VERSION "$PACKAGE_VERSION"
1114_ACEOF
1115
1116
1117cat >>confdefs.h <<_ACEOF
1118#define PACKAGE_STRING "$PACKAGE_STRING"
1119_ACEOF
1120
1121
1122cat >>confdefs.h <<_ACEOF
1123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1124_ACEOF
1125
1126
1127# Let the site file select an alternate cache file if it wants to.
1128# Prefer explicitly selected file to automatically selected ones.
1129if test -z "$CONFIG_SITE"; then
1130 if test "x$prefix" != xNONE; then
1131 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1132 else
1133 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1134 fi
1135fi
1136for ac_site_file in $CONFIG_SITE; do
1137 if test -r "$ac_site_file"; then
1138 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1139echo "$as_me: loading site script $ac_site_file" >&6;}
1140 sed 's/^/| /' "$ac_site_file" >&5
1141 . "$ac_site_file"
1142 fi
1143done
1144
1145if test -r "$cache_file"; then
1146 # Some versions of bash will fail to source /dev/null (special
1147 # files actually), so we avoid doing that.
1148 if test -f "$cache_file"; then
1149 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1150echo "$as_me: loading cache $cache_file" >&6;}
1151 case $cache_file in
1152 [\\/]* | ?:[\\/]* ) . $cache_file;;
1153 *) . ./$cache_file;;
1154 esac
1155 fi
1156else
1157 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1158echo "$as_me: creating cache $cache_file" >&6;}
1159 >$cache_file
1160fi
1161
1162# Check that the precious variables saved in the cache have kept the same
1163# value.
1164ac_cache_corrupted=false
1165for ac_var in `(set) 2>&1 |
1166 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1168 eval ac_new_set=\$ac_env_${ac_var}_set
1169 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1170 eval ac_new_val="\$ac_env_${ac_var}_value"
1171 case $ac_old_set,$ac_new_set in
1172 set,)
1173 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1174echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1175 ac_cache_corrupted=: ;;
1176 ,set)
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1178echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1180 ,);;
1181 *)
1182 if test "x$ac_old_val" != "x$ac_new_val"; then
1183 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1184echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1185 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1186echo "$as_me: former value: $ac_old_val" >&2;}
1187 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1188echo "$as_me: current value: $ac_new_val" >&2;}
1189 ac_cache_corrupted=:
1190 fi;;
1191 esac
1192 # Pass precious variables to config.status.
1193 if test "$ac_new_set" = set; then
1194 case $ac_new_val in
1195 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1196 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 *) ac_arg=$ac_var=$ac_new_val ;;
1198 esac
1199 case " $ac_configure_args " in
1200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1201 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1202 esac
1203 fi
1204done
1205if $ac_cache_corrupted; then
1206 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1207echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1208 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1209echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1210 { (exit 1); exit 1; }; }
1211fi
1212
1213ac_ext=c
1214ac_cpp='$CPP $CPPFLAGS'
1215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1217ac_compiler_gnu=$ac_cv_c_compiler_gnu
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238ac_config_headers="$ac_config_headers config.h"
1239
1240ac_ext=c
1241ac_cpp='$CPP $CPPFLAGS'
1242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1244ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245if test -n "$ac_tool_prefix"; then
1246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1247set dummy ${ac_tool_prefix}gcc; ac_word=$2
1248echo "$as_me:$LINENO: checking for $ac_word" >&5
1249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1250if test "${ac_cv_prog_CC+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1252else
1253 if test -n "$CC"; then
1254 ac_cv_prog_CC="$CC" # Let the user override the test.
1255else
1256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257for as_dir in $PATH
1258do
1259 IFS=$as_save_IFS
1260 test -z "$as_dir" && as_dir=.
1261 for ac_exec_ext in '' $ac_executable_extensions; do
1262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1265 break 2
1266 fi
1267done
1268done
1269
1270fi
1271fi
1272CC=$ac_cv_prog_CC
1273if test -n "$CC"; then
1274 echo "$as_me:$LINENO: result: $CC" >&5
1275echo "${ECHO_T}$CC" >&6
1276else
1277 echo "$as_me:$LINENO: result: no" >&5
1278echo "${ECHO_T}no" >&6
1279fi
1280
1281fi
1282if test -z "$ac_cv_prog_CC"; then
1283 ac_ct_CC=$CC
1284 # Extract the first word of "gcc", so it can be a program name with args.
1285set dummy gcc; ac_word=$2
1286echo "$as_me:$LINENO: checking for $ac_word" >&5
1287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290else
1291 if test -n "$ac_ct_CC"; then
1292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1293else
1294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295for as_dir in $PATH
1296do
1297 IFS=$as_save_IFS
1298 test -z "$as_dir" && as_dir=.
1299 for ac_exec_ext in '' $ac_executable_extensions; do
1300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1301 ac_cv_prog_ac_ct_CC="gcc"
1302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1303 break 2
1304 fi
1305done
1306done
1307
1308fi
1309fi
1310ac_ct_CC=$ac_cv_prog_ac_ct_CC
1311if test -n "$ac_ct_CC"; then
1312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1313echo "${ECHO_T}$ac_ct_CC" >&6
1314else
1315 echo "$as_me:$LINENO: result: no" >&5
1316echo "${ECHO_T}no" >&6
1317fi
1318
1319 CC=$ac_ct_CC
1320else
1321 CC="$ac_cv_prog_CC"
1322fi
1323
1324if test -z "$CC"; then
1325 if test -n "$ac_tool_prefix"; then
1326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1327set dummy ${ac_tool_prefix}cc; ac_word=$2
1328echo "$as_me:$LINENO: checking for $ac_word" >&5
1329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1330if test "${ac_cv_prog_CC+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332else
1333 if test -n "$CC"; then
1334 ac_cv_prog_CC="$CC" # Let the user override the test.
1335else
1336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337for as_dir in $PATH
1338do
1339 IFS=$as_save_IFS
1340 test -z "$as_dir" && as_dir=.
1341 for ac_exec_ext in '' $ac_executable_extensions; do
1342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1343 ac_cv_prog_CC="${ac_tool_prefix}cc"
1344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1345 break 2
1346 fi
1347done
1348done
1349
1350fi
1351fi
1352CC=$ac_cv_prog_CC
1353if test -n "$CC"; then
1354 echo "$as_me:$LINENO: result: $CC" >&5
1355echo "${ECHO_T}$CC" >&6
1356else
1357 echo "$as_me:$LINENO: result: no" >&5
1358echo "${ECHO_T}no" >&6
1359fi
1360
1361fi
1362if test -z "$ac_cv_prog_CC"; then
1363 ac_ct_CC=$CC
1364 # Extract the first word of "cc", so it can be a program name with args.
1365set dummy cc; ac_word=$2
1366echo "$as_me:$LINENO: checking for $ac_word" >&5
1367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371 if test -n "$ac_ct_CC"; then
1372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1373else
1374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375for as_dir in $PATH
1376do
1377 IFS=$as_save_IFS
1378 test -z "$as_dir" && as_dir=.
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381 ac_cv_prog_ac_ct_CC="cc"
1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 break 2
1384 fi
1385done
1386done
1387
1388fi
1389fi
1390ac_ct_CC=$ac_cv_prog_ac_ct_CC
1391if test -n "$ac_ct_CC"; then
1392 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1393echo "${ECHO_T}$ac_ct_CC" >&6
1394else
1395 echo "$as_me:$LINENO: result: no" >&5
1396echo "${ECHO_T}no" >&6
1397fi
1398
1399 CC=$ac_ct_CC
1400else
1401 CC="$ac_cv_prog_CC"
1402fi
1403
1404fi
1405if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407set dummy cc; ac_word=$2
1408echo "$as_me:$LINENO: checking for $ac_word" >&5
1409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1415else
1416 ac_prog_rejected=no
1417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418for as_dir in $PATH
1419do
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1425 ac_prog_rejected=yes
1426 continue
1427 fi
1428 ac_cv_prog_CC="cc"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 break 2
1431 fi
1432done
1433done
1434
1435if test $ac_prog_rejected = yes; then
1436 # We found a bogon in the path, so make sure we never use it.
1437 set dummy $ac_cv_prog_CC
1438 shift
1439 if test $# != 0; then
1440 # We chose a different compiler from the bogus one.
1441 # However, it has the same basename, so the bogon will be chosen
1442 # first if we set CC to just the basename; use the full file name.
1443 shift
1444 set dummy "$as_dir/$ac_word" ${1+"$@"}
1445 shift
1446 ac_cv_prog_CC="$@"
1447 fi
1448fi
1449fi
1450fi
1451CC=$ac_cv_prog_CC
1452if test -n "$CC"; then
1453 echo "$as_me:$LINENO: result: $CC" >&5
1454echo "${ECHO_T}$CC" >&6
1455else
1456 echo "$as_me:$LINENO: result: no" >&5
1457echo "${ECHO_T}no" >&6
1458fi
1459
1460fi
1461if test -z "$CC"; then
1462 if test -n "$ac_tool_prefix"; then
1463 for ac_prog in cl
1464 do
1465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1467echo "$as_me:$LINENO: checking for $ac_word" >&5
1468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469if test "${ac_cv_prog_CC+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 if test -n "$CC"; then
1473 ac_cv_prog_CC="$CC" # Let the user override the test.
1474else
1475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 for ac_exec_ext in '' $ac_executable_extensions; do
1481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484 break 2
1485 fi
1486done
1487done
1488
1489fi
1490fi
1491CC=$ac_cv_prog_CC
1492if test -n "$CC"; then
1493 echo "$as_me:$LINENO: result: $CC" >&5
1494echo "${ECHO_T}$CC" >&6
1495else
1496 echo "$as_me:$LINENO: result: no" >&5
1497echo "${ECHO_T}no" >&6
1498fi
1499
1500 test -n "$CC" && break
1501 done
1502fi
1503if test -z "$CC"; then
1504 ac_ct_CC=$CC
1505 for ac_prog in cl
1506do
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508set dummy $ac_prog; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_ac_ct_CC="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1527 fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538 echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542 test -n "$ac_ct_CC" && break
1543done
1544
1545 CC=$ac_ct_CC
1546fi
1547
1548fi
1549
1550
1551test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1552echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1553 { (exit 1); exit 1; }; }
1554
1555# Provide some information about the compiler.
1556echo "$as_me:$LINENO:" \
1557 "checking for C compiler version" >&5
1558ac_compiler=`set X $ac_compile; echo $2`
1559{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1560 (eval $ac_compiler --version </dev/null >&5) 2>&5
1561 ac_status=$?
1562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1563 (exit $ac_status); }
1564{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1565 (eval $ac_compiler -v </dev/null >&5) 2>&5
1566 ac_status=$?
1567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1568 (exit $ac_status); }
1569{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1570 (eval $ac_compiler -V </dev/null >&5) 2>&5
1571 ac_status=$?
1572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1573 (exit $ac_status); }
1574
1575cat >conftest.$ac_ext <<_ACEOF
1576#line $LINENO "configure"
1577#include "confdefs.h"
1578
1579#ifdef F77_DUMMY_MAIN
1580# ifdef __cplusplus
1581 extern "C"
1582# endif
1583 int F77_DUMMY_MAIN() { return 1; }
1584#endif
1585int
1586main ()
1587{
1588
1589 ;
1590 return 0;
1591}
1592_ACEOF
1593ac_clean_files_save=$ac_clean_files
1594ac_clean_files="$ac_clean_files a.out a.exe"
1595# Try to create an executable without -o first, disregard a.out.
1596# It will help us diagnose broken compilers, and finding out an intuition
1597# of exeext.
1598echo "$as_me:$LINENO: checking for C compiler default output" >&5
1599echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1600ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1601if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1602 (eval $ac_link_default) 2>&5
1603 ac_status=$?
1604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605 (exit $ac_status); }; then
1606 # Find the output, starting from the most likely. This scheme is
1607# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1608# resort.
1609
1610# Be careful to initialize this variable, since it used to be cached.
1611# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1612ac_cv_exeext=
1613for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1614 ls a.out conftest 2>/dev/null;
1615 ls a.* conftest.* 2>/dev/null`; do
1616 case $ac_file in
1617 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1618 a.out ) # We found the default executable, but exeext='' is most
1619 # certainly right.
1620 break;;
1621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1622 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1623 export ac_cv_exeext
1624 break;;
1625 * ) break;;
1626 esac
1627done
1628else
1629 echo "$as_me: failed program was:" >&5
1630cat conftest.$ac_ext >&5
1631{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1632echo "$as_me: error: C compiler cannot create executables" >&2;}
1633 { (exit 77); exit 77; }; }
1634fi
1635
1636ac_exeext=$ac_cv_exeext
1637echo "$as_me:$LINENO: result: $ac_file" >&5
1638echo "${ECHO_T}$ac_file" >&6
1639
1640# Check the compiler produces executables we can run. If not, either
1641# the compiler is broken, or we cross compile.
1642echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1643echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1644# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1645# If not cross compiling, check that we can run a simple program.
1646if test "$cross_compiling" != yes; then
1647 if { ac_try='./$ac_file'
1648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1649 (eval $ac_try) 2>&5
1650 ac_status=$?
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); }; }; then
1653 cross_compiling=no
1654 else
1655 if test "$cross_compiling" = maybe; then
1656 cross_compiling=yes
1657 else
1658 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1659If you meant to cross compile, use \`--host'." >&5
1660echo "$as_me: error: cannot run C compiled programs.
1661If you meant to cross compile, use \`--host'." >&2;}
1662 { (exit 1); exit 1; }; }
1663 fi
1664 fi
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668
1669rm -f a.out a.exe conftest$ac_cv_exeext
1670ac_clean_files=$ac_clean_files_save
1671# Check the compiler produces executables we can run. If not, either
1672# the compiler is broken, or we cross compile.
1673echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1674echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1675echo "$as_me:$LINENO: result: $cross_compiling" >&5
1676echo "${ECHO_T}$cross_compiling" >&6
1677
1678echo "$as_me:$LINENO: checking for suffix of executables" >&5
1679echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1681 (eval $ac_link) 2>&5
1682 ac_status=$?
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1686# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1687# work properly (i.e., refer to `conftest.exe'), while it won't with
1688# `rm'.
1689for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1690 case $ac_file in
1691 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693 export ac_cv_exeext
1694 break;;
1695 * ) break;;
1696 esac
1697done
1698else
1699 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1700echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1701 { (exit 1); exit 1; }; }
1702fi
1703
1704rm -f conftest$ac_cv_exeext
1705echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1706echo "${ECHO_T}$ac_cv_exeext" >&6
1707
1708rm -f conftest.$ac_ext
1709EXEEXT=$ac_cv_exeext
1710ac_exeext=$EXEEXT
1711echo "$as_me:$LINENO: checking for suffix of object files" >&5
1712echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1713if test "${ac_cv_objext+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716 cat >conftest.$ac_ext <<_ACEOF
1717#line $LINENO "configure"
1718#include "confdefs.h"
1719
1720#ifdef F77_DUMMY_MAIN
1721# ifdef __cplusplus
1722 extern "C"
1723# endif
1724 int F77_DUMMY_MAIN() { return 1; }
1725#endif
1726int
1727main ()
1728{
1729
1730 ;
1731 return 0;
1732}
1733_ACEOF
1734rm -f conftest.o conftest.obj
1735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1741 case $ac_file in
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1744 break;;
1745 esac
1746done
1747else
1748 echo "$as_me: failed program was:" >&5
1749cat conftest.$ac_ext >&5
1750{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1751echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1752 { (exit 1); exit 1; }; }
1753fi
1754
1755rm -f conftest.$ac_cv_objext conftest.$ac_ext
1756fi
1757echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1758echo "${ECHO_T}$ac_cv_objext" >&6
1759OBJEXT=$ac_cv_objext
1760ac_objext=$OBJEXT
1761echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1762echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1763if test "${ac_cv_c_compiler_gnu+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 cat >conftest.$ac_ext <<_ACEOF
1767#line $LINENO "configure"
1768#include "confdefs.h"
1769
1770#ifdef F77_DUMMY_MAIN
1771# ifdef __cplusplus
1772 extern "C"
1773# endif
1774 int F77_DUMMY_MAIN() { return 1; }
1775#endif
1776int
1777main ()
1778{
1779#ifndef __GNUC__
1780 choke me
1781#endif
1782
1783 ;
1784 return 0;
1785}
1786_ACEOF
1787rm -f conftest.$ac_objext
1788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); } &&
1793 { ac_try='test -s conftest.$ac_objext'
1794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 (eval $ac_try) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1799 ac_compiler_gnu=yes
1800else
1801 echo "$as_me: failed program was:" >&5
1802cat conftest.$ac_ext >&5
1803ac_compiler_gnu=no
1804fi
1805rm -f conftest.$ac_objext conftest.$ac_ext
1806ac_cv_c_compiler_gnu=$ac_compiler_gnu
1807
1808fi
1809echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1810echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1811GCC=`test $ac_compiler_gnu = yes && echo yes`
1812ac_test_CFLAGS=${CFLAGS+set}
1813ac_save_CFLAGS=$CFLAGS
1814CFLAGS="-g"
1815echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1816echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1817if test "${ac_cv_prog_cc_g+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 cat >conftest.$ac_ext <<_ACEOF
1821#line $LINENO "configure"
1822#include "confdefs.h"
1823
1824#ifdef F77_DUMMY_MAIN
1825# ifdef __cplusplus
1826 extern "C"
1827# endif
1828 int F77_DUMMY_MAIN() { return 1; }
1829#endif
1830int
1831main ()
1832{
1833
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838rm -f conftest.$ac_objext
1839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); } &&
1844 { ac_try='test -s conftest.$ac_objext'
1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1850 ac_cv_prog_cc_g=yes
1851else
1852 echo "$as_me: failed program was:" >&5
1853cat conftest.$ac_ext >&5
1854ac_cv_prog_cc_g=no
1855fi
1856rm -f conftest.$ac_objext conftest.$ac_ext
1857fi
1858echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1859echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1860if test "$ac_test_CFLAGS" = set; then
1861 CFLAGS=$ac_save_CFLAGS
1862elif test $ac_cv_prog_cc_g = yes; then
1863 if test "$GCC" = yes; then
1864 CFLAGS="-g -O2"
1865 else
1866 CFLAGS="-g"
1867 fi
1868else
1869 if test "$GCC" = yes; then
1870 CFLAGS="-O2"
1871 else
1872 CFLAGS=
1873 fi
1874fi
1875# Some people use a C++ compiler to compile C. Since we use `exit',
1876# in C++ we need to declare it. In case someone uses the same compiler
1877# for both compiling C and C++ we need to have the C++ compiler decide
1878# the declaration of exit, since it's the most demanding environment.
1879cat >conftest.$ac_ext <<_ACEOF
1880#ifndef __cplusplus
1881 choke me
1882#endif
1883_ACEOF
1884rm -f conftest.$ac_objext
1885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 for ac_declaration in \
1897 ''\
1898 '#include <stdlib.h>' \
1899 'extern "C" void std::exit (int) throw (); using std::exit;' \
1900 'extern "C" void std::exit (int); using std::exit;' \
1901 'extern "C" void exit (int) throw ();' \
1902 'extern "C" void exit (int);' \
1903 'void exit (int);'
1904do
1905 cat >conftest.$ac_ext <<_ACEOF
1906#line $LINENO "configure"
1907#include "confdefs.h"
1908#include <stdlib.h>
1909$ac_declaration
1910#ifdef F77_DUMMY_MAIN
1911# ifdef __cplusplus
1912 extern "C"
1913# endif
1914 int F77_DUMMY_MAIN() { return 1; }
1915#endif
1916int
1917main ()
1918{
1919exit (42);
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924rm -f conftest.$ac_objext
1925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932 (eval $ac_try) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1936 :
1937else
1938 echo "$as_me: failed program was:" >&5
1939cat conftest.$ac_ext >&5
1940continue
1941fi
1942rm -f conftest.$ac_objext conftest.$ac_ext
1943 cat >conftest.$ac_ext <<_ACEOF
1944#line $LINENO "configure"
1945#include "confdefs.h"
1946$ac_declaration
1947#ifdef F77_DUMMY_MAIN
1948# ifdef __cplusplus
1949 extern "C"
1950# endif
1951 int F77_DUMMY_MAIN() { return 1; }
1952#endif
1953int
1954main ()
1955{
1956exit (42);
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961rm -f conftest.$ac_objext
1962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 (eval $ac_try) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1973 break
1974else
1975 echo "$as_me: failed program was:" >&5
1976cat conftest.$ac_ext >&5
1977fi
1978rm -f conftest.$ac_objext conftest.$ac_ext
1979done
1980rm -f conftest*
1981if test -n "$ac_declaration"; then
1982 echo '#ifdef __cplusplus' >>confdefs.h
1983 echo $ac_declaration >>confdefs.h
1984 echo '#endif' >>confdefs.h
1985fi
1986
1987else
1988 echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990fi
1991rm -f conftest.$ac_objext conftest.$ac_ext
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998ac_aux_dir=
1999for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2000 if test -f $ac_dir/install-sh; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f $ac_dir/install.sh; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f $ac_dir/shtool; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2012 fi
2013done
2014if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2016echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2017 { (exit 1); exit 1; }; }
2018fi
2019ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2020ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2021ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2022
2023# Make sure we can run config.sub.
2024$ac_config_sub sun4 >/dev/null 2>&1 ||
2025 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2026echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2027 { (exit 1); exit 1; }; }
2028
2029echo "$as_me:$LINENO: checking build system type" >&5
2030echo $ECHO_N "checking build system type... $ECHO_C" >&6
2031if test "${ac_cv_build+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034 ac_cv_build_alias=$build_alias
2035test -z "$ac_cv_build_alias" &&
2036 ac_cv_build_alias=`$ac_config_guess`
2037test -z "$ac_cv_build_alias" &&
2038 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040 { (exit 1); exit 1; }; }
2041ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2042 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2043echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2045
2046fi
2047echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048echo "${ECHO_T}$ac_cv_build" >&6
2049build=$ac_cv_build
2050build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2051build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2052build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2053
2054
2055echo "$as_me:$LINENO: checking host system type" >&5
2056echo $ECHO_N "checking host system type... $ECHO_C" >&6
2057if test "${ac_cv_host+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 ac_cv_host_alias=$host_alias
2061test -z "$ac_cv_host_alias" &&
2062 ac_cv_host_alias=$ac_cv_build_alias
2063ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2064 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2065echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2067
2068fi
2069echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2070echo "${ECHO_T}$ac_cv_host" >&6
2071host=$ac_cv_host
2072host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2073host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2074host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2075
2076
2077
2078echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2079echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2080if test "${ac_cv_c_bigendian+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 # See if sys/param.h defines the BYTE_ORDER macro.
2084cat >conftest.$ac_ext <<_ACEOF
2085#line $LINENO "configure"
2086#include "confdefs.h"
2087#include <sys/types.h>
2088#include <sys/param.h>
2089
2090#ifdef F77_DUMMY_MAIN
2091# ifdef __cplusplus
2092 extern "C"
2093# endif
2094 int F77_DUMMY_MAIN() { return 1; }
2095#endif
2096int
2097main ()
2098{
2099#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2100 bogus endian macros
2101#endif
2102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -s conftest.$ac_objext'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2119 # It does; now see whether it defined to BIG_ENDIAN or not.
2120cat >conftest.$ac_ext <<_ACEOF
2121#line $LINENO "configure"
2122#include "confdefs.h"
2123#include <sys/types.h>
2124#include <sys/param.h>
2125
2126#ifdef F77_DUMMY_MAIN
2127# ifdef __cplusplus
2128 extern "C"
2129# endif
2130 int F77_DUMMY_MAIN() { return 1; }
2131#endif
2132int
2133main ()
2134{
2135#if BYTE_ORDER != BIG_ENDIAN
2136 not big endian
2137#endif
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_cv_c_bigendian=yes
2156else
2157 echo "$as_me: failed program was:" >&5
2158cat conftest.$ac_ext >&5
2159ac_cv_c_bigendian=no
2160fi
2161rm -f conftest.$ac_objext conftest.$ac_ext
2162else
2163 echo "$as_me: failed program was:" >&5
2164cat conftest.$ac_ext >&5
2165# It does not; compile a test program.
2166if test "$cross_compiling" = yes; then
2167 # try to guess the endianess by grep'ing values into an object file
2168 ac_cv_c_bigendian=unknown
2169 cat >conftest.$ac_ext <<_ACEOF
2170#line $LINENO "configure"
2171#include "confdefs.h"
2172short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2173short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2174void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2175short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2176short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2177void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2178#ifdef F77_DUMMY_MAIN
2179# ifdef __cplusplus
2180 extern "C"
2181# endif
2182 int F77_DUMMY_MAIN() { return 1; }
2183#endif
2184int
2185main ()
2186{
2187 _ascii (); _ebcdic ();
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2205 ac_cv_c_bigendian=yes
2206fi
2207if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2208 if test "$ac_cv_c_bigendian" = unknown; then
2209 ac_cv_c_bigendian=no
2210 else
2211 # finding both strings is unlikely to happen, but who knows?
2212 ac_cv_c_bigendian=unknown
2213 fi
2214fi
2215else
2216 echo "$as_me: failed program was:" >&5
2217cat conftest.$ac_ext >&5
2218fi
2219rm -f conftest.$ac_objext conftest.$ac_ext
2220else
2221 cat >conftest.$ac_ext <<_ACEOF
2222#line $LINENO "configure"
2223#include "confdefs.h"
2224int
2225main ()
2226{
2227 /* Are we little or big endian? From Harbison&Steele. */
2228 union
2229 {
2230 long l;
2231 char c[sizeof (long)];
2232 } u;
2233 u.l = 1;
2234 exit (u.c[sizeof (long) - 1] == 1);
2235}
2236_ACEOF
2237rm -f conftest$ac_exeext
2238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_c_bigendian=no
2249else
2250 echo "$as_me: program exited with status $ac_status" >&5
2251echo "$as_me: failed program was:" >&5
2252cat conftest.$ac_ext >&5
2253( exit $ac_status )
2254ac_cv_c_bigendian=yes
2255fi
2256rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2257fi
2258fi
2259rm -f conftest.$ac_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2262echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2263case $ac_cv_c_bigendian in
2264 yes)
2265
2266cat >>confdefs.h <<\_ACEOF
2267#define WORDS_BIGENDIAN 1
2268_ACEOF
2269 ;;
2270 no)
2271 ;;
2272 *)
2273 { { echo "$as_me:$LINENO: error: unknown endianess
2274presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2275echo "$as_me: error: unknown endianess
2276presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2277 { (exit 1); exit 1; }; } ;;
2278esac
2279
2280
2281# Checks for programs.
2282ac_ext=c
2283ac_cpp='$CPP $CPPFLAGS'
2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2288echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2289# On Suns, sometimes $CPP names a directory.
2290if test -n "$CPP" && test -d "$CPP"; then
2291 CPP=
2292fi
2293if test -z "$CPP"; then
2294 if test "${ac_cv_prog_CPP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 # Double quotes because CPP needs to be expanded
2298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 do
2300 ac_preproc_ok=false
2301for ac_c_preproc_warn_flag in '' yes
2302do
2303 # Use a header file that comes with gcc, so configuring glibc
2304 # with a fresh cross-compiler works.
2305 # On the NeXT, cc -E runs the code through the compiler's parser,
2306 # not just through cpp. "Syntax error" is here to catch this case.
2307 cat >conftest.$ac_ext <<_ACEOF
2308#line $LINENO "configure"
2309#include "confdefs.h"
2310#include <assert.h>
2311 Syntax error
2312_ACEOF
2313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2315 ac_status=$?
2316 egrep -v '^ *\+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2323 else
2324 ac_cpp_err=
2325 fi
2326else
2327 ac_cpp_err=yes
2328fi
2329if test -z "$ac_cpp_err"; then
2330 :
2331else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Broken: fails on valid input.
2335continue
2336fi
2337rm -f conftest.err conftest.$ac_ext
2338
2339 # OK, works on sane cases. Now check whether non-existent headers
2340 # can be detected and how.
2341 cat >conftest.$ac_ext <<_ACEOF
2342#line $LINENO "configure"
2343#include "confdefs.h"
2344#include <ac_nonexistent.h>
2345_ACEOF
2346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2348 ac_status=$?
2349 egrep -v '^ *\+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } >/dev/null; then
2354 if test -s conftest.err; then
2355 ac_cpp_err=$ac_c_preproc_warn_flag
2356 else
2357 ac_cpp_err=
2358 fi
2359else
2360 ac_cpp_err=yes
2361fi
2362if test -z "$ac_cpp_err"; then
2363 # Broken: success on invalid input.
2364continue
2365else
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 # Passes both tests.
2369ac_preproc_ok=:
2370break
2371fi
2372rm -f conftest.err conftest.$ac_ext
2373
2374done
2375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2376rm -f conftest.err conftest.$ac_ext
2377if $ac_preproc_ok; then
2378 break
2379fi
2380
2381 done
2382 ac_cv_prog_CPP=$CPP
2383
2384fi
2385 CPP=$ac_cv_prog_CPP
2386else
2387 ac_cv_prog_CPP=$CPP
2388fi
2389echo "$as_me:$LINENO: result: $CPP" >&5
2390echo "${ECHO_T}$CPP" >&6
2391ac_preproc_ok=false
2392for ac_c_preproc_warn_flag in '' yes
2393do
2394 # Use a header file that comes with gcc, so configuring glibc
2395 # with a fresh cross-compiler works.
2396 # On the NeXT, cc -E runs the code through the compiler's parser,
2397 # not just through cpp. "Syntax error" is here to catch this case.
2398 cat >conftest.$ac_ext <<_ACEOF
2399#line $LINENO "configure"
2400#include "confdefs.h"
2401#include <assert.h>
2402 Syntax error
2403_ACEOF
2404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2406 ac_status=$?
2407 egrep -v '^ *\+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } >/dev/null; then
2412 if test -s conftest.err; then
2413 ac_cpp_err=$ac_c_preproc_warn_flag
2414 else
2415 ac_cpp_err=
2416 fi
2417else
2418 ac_cpp_err=yes
2419fi
2420if test -z "$ac_cpp_err"; then
2421 :
2422else
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 # Broken: fails on valid input.
2426continue
2427fi
2428rm -f conftest.err conftest.$ac_ext
2429
2430 # OK, works on sane cases. Now check whether non-existent headers
2431 # can be detected and how.
2432 cat >conftest.$ac_ext <<_ACEOF
2433#line $LINENO "configure"
2434#include "confdefs.h"
2435#include <ac_nonexistent.h>
2436_ACEOF
2437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2439 ac_status=$?
2440 egrep -v '^ *\+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } >/dev/null; then
2445 if test -s conftest.err; then
2446 ac_cpp_err=$ac_c_preproc_warn_flag
2447 else
2448 ac_cpp_err=
2449 fi
2450else
2451 ac_cpp_err=yes
2452fi
2453if test -z "$ac_cpp_err"; then
2454 # Broken: success on invalid input.
2455continue
2456else
2457 echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 # Passes both tests.
2460ac_preproc_ok=:
2461break
2462fi
2463rm -f conftest.err conftest.$ac_ext
2464
2465done
2466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2467rm -f conftest.err conftest.$ac_ext
2468if $ac_preproc_ok; then
2469 :
2470else
2471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2472echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2473 { (exit 1); exit 1; }; }
2474fi
2475
2476ac_ext=c
2477ac_cpp='$CPP $CPPFLAGS'
2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2484set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2485echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487if test "${ac_cv_prog_RANLIB+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 if test -n "$RANLIB"; then
2491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504done
2505done
2506
2507fi
2508fi
2509RANLIB=$ac_cv_prog_RANLIB
2510if test -n "$RANLIB"; then
2511 echo "$as_me:$LINENO: result: $RANLIB" >&5
2512echo "${ECHO_T}$RANLIB" >&6
2513else
2514 echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516fi
2517
2518fi
2519if test -z "$ac_cv_prog_RANLIB"; then
2520 ac_ct_RANLIB=$RANLIB
2521 # Extract the first word of "ranlib", so it can be a program name with args.
2522set dummy ranlib; ac_word=$2
2523echo "$as_me:$LINENO: checking for $ac_word" >&5
2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 if test -n "$ac_ct_RANLIB"; then
2529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_ac_ct_RANLIB="ranlib"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543done
2544
2545 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2546fi
2547fi
2548ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2549if test -n "$ac_ct_RANLIB"; then
2550 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2551echo "${ECHO_T}$ac_ct_RANLIB" >&6
2552else
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
2555fi
2556
2557 RANLIB=$ac_ct_RANLIB
2558else
2559 RANLIB="$ac_cv_prog_RANLIB"
2560fi
2561
2562# Find a good install program. We prefer a C program (faster),
2563# so one script is as good as another. But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# ./install, which can be erroneously created by make from ./install.sh.
2574echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2575echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2576if test -z "$INSTALL"; then
2577if test "${ac_cv_path_install+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 # Account for people who put trailing slashes in PATH elements.
2586case $as_dir/ in
2587 ./ | .// | /cC/* | \
2588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2607 break 3
2608 fi
2609 fi
2610 done
2611 done
2612 ;;
2613esac
2614done
2615
2616
2617fi
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. We don't cache a
2622 # path for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the path is relative.
2625 INSTALL=$ac_install_sh
2626 fi
2627fi
2628echo "$as_me:$LINENO: result: $INSTALL" >&5
2629echo "${ECHO_T}$INSTALL" >&6
2630
2631# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632# It thinks the first close brace ends the variable substitution.
2633test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2634
2635test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2636
2637test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2638
2639# Extract the first word of "ar", so it can be a program name with args.
2640set dummy ar; ac_word=$2
2641echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643if test "${ac_cv_path_AR+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 case $AR in
2647 [\\/]* | ?:[\\/]*)
2648 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2649 ;;
2650 *)
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662done
2663done
2664
2665 ;;
2666esac
2667fi
2668AR=$ac_cv_path_AR
2669
2670if test -n "$AR"; then
2671 echo "$as_me:$LINENO: result: $AR" >&5
2672echo "${ECHO_T}$AR" >&6
2673else
2674 echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6
2676fi
2677
2678for ac_prog in perl5 perl
2679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
2682echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684if test "${ac_cv_path_PERL+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 case $PERL in
2688 [\\/]* | ?:[\\/]*)
2689 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2690 ;;
2691 *)
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704done
2705
2706 ;;
2707esac
2708fi
2709PERL=$ac_cv_path_PERL
2710
2711if test -n "$PERL"; then
2712 echo "$as_me:$LINENO: result: $PERL" >&5
2713echo "${ECHO_T}$PERL" >&6
2714else
2715 echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6
2717fi
2718
2719 test -n "$PERL" && break
2720done
2721
2722
2723# Extract the first word of "ent", so it can be a program name with args.
2724set dummy ent; ac_word=$2
2725echo "$as_me:$LINENO: checking for $ac_word" >&5
2726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727if test "${ac_cv_path_ENT+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 case $ENT in
2731 [\\/]* | ?:[\\/]*)
2732 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2733 ;;
2734 *)
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747done
2748
2749 ;;
2750esac
2751fi
2752ENT=$ac_cv_path_ENT
2753
2754if test -n "$ENT"; then
2755 echo "$as_me:$LINENO: result: $ENT" >&5
2756echo "${ECHO_T}$ENT" >&6
2757else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2762
2763# Extract the first word of "bash", so it can be a program name with args.
2764set dummy bash; ac_word=$2
2765echo "$as_me:$LINENO: checking for $ac_word" >&5
2766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
2770 case $TEST_MINUS_S_SH in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2773 ;;
2774 *)
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788
2789 ;;
2790esac
2791fi
2792TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2793
2794if test -n "$TEST_MINUS_S_SH"; then
2795 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2796echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2797else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800fi
2801
2802# Extract the first word of "ksh", so it can be a program name with args.
2803set dummy ksh; ac_word=$2
2804echo "$as_me:$LINENO: checking for $ac_word" >&5
2805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 case $TEST_MINUS_S_SH in
2810 [\\/]* | ?:[\\/]*)
2811 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2812 ;;
2813 *)
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828 ;;
2829esac
2830fi
2831TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2832
2833if test -n "$TEST_MINUS_S_SH"; then
2834 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2835echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2836else
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839fi
2840
2841# Extract the first word of "sh", so it can be a program name with args.
2842set dummy sh; ac_word=$2
2843echo "$as_me:$LINENO: checking for $ac_word" >&5
2844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 case $TEST_MINUS_S_SH in
2849 [\\/]* | ?:[\\/]*)
2850 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2851 ;;
2852 *)
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864done
2865done
2866
2867 ;;
2868esac
2869fi
2870TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2871
2872if test -n "$TEST_MINUS_S_SH"; then
2873 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2874echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880# Extract the first word of "sh", so it can be a program name with args.
2881set dummy sh; ac_word=$2
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884if test "${ac_cv_path_SH+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 case $SH in
2888 [\\/]* | ?:[\\/]*)
2889 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2890 ;;
2891 *)
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
2905
2906 ;;
2907esac
2908fi
2909SH=$ac_cv_path_SH
2910
2911if test -n "$SH"; then
2912 echo "$as_me:$LINENO: result: $SH" >&5
2913echo "${ECHO_T}$SH" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919
2920# System features
2921# Check whether --enable-largefile or --disable-largefile was given.
2922if test "${enable_largefile+set}" = set; then
2923 enableval="$enable_largefile"
2924
2925fi;
2926if test "$enable_largefile" != no; then
2927
2928 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2929echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2930if test "${ac_cv_sys_largefile_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 ac_cv_sys_largefile_CC=no
2934 if test "$GCC" != yes; then
2935 ac_save_CC=$CC
2936 while :; do
2937 # IRIX 6.2 and later do not support large files by default,
2938 # so use the C compiler's -n32 option if that helps.
2939 cat >conftest.$ac_ext <<_ACEOF
2940#line $LINENO "configure"
2941#include "confdefs.h"
2942#include <sys/types.h>
2943 /* Check that off_t can represent 2**63 - 1 correctly.
2944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2945 since some C++ compilers masquerading as C compilers
2946 incorrectly reject 9223372036854775807. */
2947#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2949 && LARGE_OFF_T % 2147483647 == 1)
2950 ? 1 : -1];
2951#ifdef F77_DUMMY_MAIN
2952# ifdef __cplusplus
2953 extern "C"
2954# endif
2955 int F77_DUMMY_MAIN() { return 1; }
2956#endif
2957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965 rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 break
2978else
2979 echo "$as_me: failed program was:" >&5
2980cat conftest.$ac_ext >&5
2981fi
2982rm -f conftest.$ac_objext
2983 CC="$CC -n32"
2984 rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_sys_largefile_CC=' -n32'; break
2997else
2998 echo "$as_me: failed program was:" >&5
2999cat conftest.$ac_ext >&5
3000fi
3001rm -f conftest.$ac_objext
3002 break
3003 done
3004 CC=$ac_save_CC
3005 rm -f conftest.$ac_ext
3006 fi
3007fi
3008echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3009echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3010 if test "$ac_cv_sys_largefile_CC" != no; then
3011 CC=$CC$ac_cv_sys_largefile_CC
3012 fi
3013
3014 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3015echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3016if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 while :; do
3020 ac_cv_sys_file_offset_bits=no
3021 cat >conftest.$ac_ext <<_ACEOF
3022#line $LINENO "configure"
3023#include "confdefs.h"
3024#include <sys/types.h>
3025 /* Check that off_t can represent 2**63 - 1 correctly.
3026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3027 since some C++ compilers masquerading as C compilers
3028 incorrectly reject 9223372036854775807. */
3029#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3031 && LARGE_OFF_T % 2147483647 == 1)
3032 ? 1 : -1];
3033#ifdef F77_DUMMY_MAIN
3034# ifdef __cplusplus
3035 extern "C"
3036# endif
3037 int F77_DUMMY_MAIN() { return 1; }
3038#endif
3039int
3040main ()
3041{
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext
3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 break
3060else
3061 echo "$as_me: failed program was:" >&5
3062cat conftest.$ac_ext >&5
3063fi
3064rm -f conftest.$ac_objext conftest.$ac_ext
3065 cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067#include "confdefs.h"
3068#define _FILE_OFFSET_BITS 64
3069#include <sys/types.h>
3070 /* Check that off_t can represent 2**63 - 1 correctly.
3071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3072 since some C++ compilers masquerading as C compilers
3073 incorrectly reject 9223372036854775807. */
3074#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3076 && LARGE_OFF_T % 2147483647 == 1)
3077 ? 1 : -1];
3078#ifdef F77_DUMMY_MAIN
3079# ifdef __cplusplus
3080 extern "C"
3081# endif
3082 int F77_DUMMY_MAIN() { return 1; }
3083#endif
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_sys_file_offset_bits=64; break
3105else
3106 echo "$as_me: failed program was:" >&5
3107cat conftest.$ac_ext >&5
3108fi
3109rm -f conftest.$ac_objext conftest.$ac_ext
3110 break
3111done
3112fi
3113echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3114echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3115if test "$ac_cv_sys_file_offset_bits" != no; then
3116
3117cat >>confdefs.h <<_ACEOF
3118#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3119_ACEOF
3120
3121fi
3122rm -f conftest*
3123 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3124echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3125if test "${ac_cv_sys_large_files+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 while :; do
3129 ac_cv_sys_large_files=no
3130 cat >conftest.$ac_ext <<_ACEOF
3131#line $LINENO "configure"
3132#include "confdefs.h"
3133#include <sys/types.h>
3134 /* Check that off_t can represent 2**63 - 1 correctly.
3135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3136 since some C++ compilers masquerading as C compilers
3137 incorrectly reject 9223372036854775807. */
3138#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3140 && LARGE_OFF_T % 2147483647 == 1)
3141 ? 1 : -1];
3142#ifdef F77_DUMMY_MAIN
3143# ifdef __cplusplus
3144 extern "C"
3145# endif
3146 int F77_DUMMY_MAIN() { return 1; }
3147#endif
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 break
3169else
3170 echo "$as_me: failed program was:" >&5
3171cat conftest.$ac_ext >&5
3172fi
3173rm -f conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175#line $LINENO "configure"
3176#include "confdefs.h"
3177#define _LARGE_FILES 1
3178#include <sys/types.h>
3179 /* Check that off_t can represent 2**63 - 1 correctly.
3180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3181 since some C++ compilers masquerading as C compilers
3182 incorrectly reject 9223372036854775807. */
3183#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3185 && LARGE_OFF_T % 2147483647 == 1)
3186 ? 1 : -1];
3187#ifdef F77_DUMMY_MAIN
3188# ifdef __cplusplus
3189 extern "C"
3190# endif
3191 int F77_DUMMY_MAIN() { return 1; }
3192#endif
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 ac_cv_sys_large_files=1; break
3214else
3215 echo "$as_me: failed program was:" >&5
3216cat conftest.$ac_ext >&5
3217fi
3218rm -f conftest.$ac_objext conftest.$ac_ext
3219 break
3220done
3221fi
3222echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3223echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3224if test "$ac_cv_sys_large_files" != no; then
3225
3226cat >>confdefs.h <<_ACEOF
3227#define _LARGE_FILES $ac_cv_sys_large_files
3228_ACEOF
3229
3230fi
3231rm -f conftest*
3232fi
3233
3234
3235if test -z "$AR" ; then
3236 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3237echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3238 { (exit 1); exit 1; }; }
3239fi
3240
3241# Use LOGIN_PROGRAM from environment if possible
3242if test ! -z "$LOGIN_PROGRAM" ; then
3243 cat >>confdefs.h <<_ACEOF
3244#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3245_ACEOF
3246
3247else
3248 # Search for login
3249 # Extract the first word of "login", so it can be a program name with args.
3250set dummy login; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 case $LOGIN_PROGRAM_FALLBACK in
3257 [\\/]* | ?:[\\/]*)
3258 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3259 ;;
3260 *)
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
3275 ;;
3276esac
3277fi
3278LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3279
3280if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3281 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3282echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3283else
3284 echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3289 cat >>confdefs.h <<_ACEOF
3290#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3291_ACEOF
3292
3293 fi
3294fi
3295
3296if test -z "$LD" ; then
3297 LD=$CC
3298fi
3299
3300
3301echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3302echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3303if test "${ac_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 ac_cv_prog_cc_stdc=no
3307ac_save_CC=$CC
3308cat >conftest.$ac_ext <<_ACEOF
3309#line $LINENO "configure"
3310#include "confdefs.h"
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319 char **p;
3320 int i;
3321{
3322 return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3332}
3333int test (int i, double x);
3334struct s1 {int (*f) (int a);};
3335struct s2 {int (*f) (double a);};
3336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337int argc;
3338char **argv;
3339#ifdef F77_DUMMY_MAIN
3340# ifdef __cplusplus
3341 extern "C"
3342# endif
3343 int F77_DUMMY_MAIN() { return 1; }
3344#endif
3345int
3346main ()
3347{
3348return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353# Don't try gcc -ansi; that turns off useful extensions and
3354# breaks some systems' header files.
3355# AIX -qlanglvl=ansi
3356# Ultrix and OSF/1 -std1
3357# HP-UX 10.20 and later -Ae
3358# HP-UX older versions -Aa -D_HPUX_SOURCE
3359# SVR4 -Xc -D__EXTENSIONS__
3360for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361do
3362 CC="$ac_save_CC $ac_arg"
3363 rm -f conftest.$ac_objext
3364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_cc_stdc=$ac_arg
3376break
3377else
3378 echo "$as_me: failed program was:" >&5
3379cat conftest.$ac_ext >&5
3380fi
3381rm -f conftest.$ac_objext
3382done
3383rm -f conftest.$ac_ext conftest.$ac_objext
3384CC=$ac_save_CC
3385
3386fi
3387
3388case "x$ac_cv_prog_cc_stdc" in
3389 x|xno)
3390 echo "$as_me:$LINENO: result: none needed" >&5
3391echo "${ECHO_T}none needed" >&6 ;;
3392 *)
3393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3394echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3395 CC="$CC $ac_cv_prog_cc_stdc" ;;
3396esac
3397
3398echo "$as_me:$LINENO: checking for inline" >&5
3399echo $ECHO_N "checking for inline... $ECHO_C" >&6
3400if test "${ac_cv_c_inline+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 ac_cv_c_inline=no
3404for ac_kw in inline __inline__ __inline; do
3405 cat >conftest.$ac_ext <<_ACEOF
3406#line $LINENO "configure"
3407#include "confdefs.h"
3408#ifndef __cplusplus
3409static $ac_kw int static_foo () {return 0; }
3410$ac_kw int foo () {return 0; }
3411#endif
3412
3413_ACEOF
3414rm -f conftest.$ac_objext
3415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_c_inline=$ac_kw; break
3427else
3428 echo "$as_me: failed program was:" >&5
3429cat conftest.$ac_ext >&5
3430fi
3431rm -f conftest.$ac_objext conftest.$ac_ext
3432done
3433
3434fi
3435echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3436echo "${ECHO_T}$ac_cv_c_inline" >&6
3437case $ac_cv_c_inline in
3438 inline | yes) ;;
3439 no)
3440cat >>confdefs.h <<\_ACEOF
3441#define inline
3442_ACEOF
3443 ;;
3444 *) cat >>confdefs.h <<_ACEOF
3445#define inline $ac_cv_c_inline
3446_ACEOF
3447 ;;
3448esac
3449
3450if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3451 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3452fi
3453
3454# Check for some target-specific stuff
3455case "$host" in
3456*-*-aix*)
3457 AFS_LIBS="-lld"
3458 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3459 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3460 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3461 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3462echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3463 saved_LDFLAGS="$LDFLAGS"
3464 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3465 cat >conftest.$ac_ext <<_ACEOF
3466#line $LINENO "configure"
3467#include "confdefs.h"
3468
3469#ifdef F77_DUMMY_MAIN
3470# ifdef __cplusplus
3471 extern "C"
3472# endif
3473 int F77_DUMMY_MAIN() { return 1; }
3474#endif
3475int
3476main ()
3477{
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext conftest$ac_exeext
3484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
3498 blibpath="/usr/lib:/lib:/usr/local/lib"
3499
3500else
3501 echo "$as_me: failed program was:" >&5
3502cat conftest.$ac_ext >&5
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505
3506fi
3507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3508 LDFLAGS="$saved_LDFLAGS"
3509 fi
3510 echo "$as_me:$LINENO: checking for authenticate" >&5
3511echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3512if test "${ac_cv_func_authenticate+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 cat >conftest.$ac_ext <<_ACEOF
3516#line $LINENO "configure"
3517#include "confdefs.h"
3518/* System header to define __stub macros and hopefully few prototypes,
3519 which can conflict with char authenticate (); below. */
3520#include <assert.h>
3521/* Override any gcc2 internal prototype to avoid an error. */
3522#ifdef __cplusplus
3523extern "C"
3524#endif
3525/* We use char because int might match the return type of a gcc2
3526 builtin and then its argument prototype would still apply. */
3527char authenticate ();
3528char (*f) ();
3529
3530#ifdef F77_DUMMY_MAIN
3531# ifdef __cplusplus
3532 extern "C"
3533# endif
3534 int F77_DUMMY_MAIN() { return 1; }
3535#endif
3536int
3537main ()
3538{
3539/* The GNU C library defines this for functions which it implements
3540 to always fail with ENOSYS. Some functions are actually named
3541 something starting with __ and the normal name is an alias. */
3542#if defined (__stub_authenticate) || defined (__stub___authenticate)
3543choke me
3544#else
3545f = authenticate;
3546#endif
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554 (eval $ac_link) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -s conftest$ac_exeext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_func_authenticate=yes
3565else
3566 echo "$as_me: failed program was:" >&5
3567cat conftest.$ac_ext >&5
3568ac_cv_func_authenticate=no
3569fi
3570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3573echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3574if test $ac_cv_func_authenticate = yes; then
3575 cat >>confdefs.h <<\_ACEOF
3576#define WITH_AIXAUTHENTICATE 1
3577_ACEOF
3578
3579else
3580 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
3581echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3582if test "${ac_cv_lib_s_authenticate+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 ac_check_lib_save_LIBS=$LIBS
3586LIBS="-ls $LIBS"
3587cat >conftest.$ac_ext <<_ACEOF
3588#line $LINENO "configure"
3589#include "confdefs.h"
3590
3591/* Override any gcc2 internal prototype to avoid an error. */
3592#ifdef __cplusplus
3593extern "C"
3594#endif
3595/* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597char authenticate ();
3598#ifdef F77_DUMMY_MAIN
3599# ifdef __cplusplus
3600 extern "C"
3601# endif
3602 int F77_DUMMY_MAIN() { return 1; }
3603#endif
3604int
3605main ()
3606{
3607authenticate ();
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612rm -f conftest.$ac_objext conftest$ac_exeext
3613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614 (eval $ac_link) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest$ac_exeext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_lib_s_authenticate=yes
3625else
3626 echo "$as_me: failed program was:" >&5
3627cat conftest.$ac_ext >&5
3628ac_cv_lib_s_authenticate=no
3629fi
3630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3631LIBS=$ac_check_lib_save_LIBS
3632fi
3633echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
3634echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3635if test $ac_cv_lib_s_authenticate = yes; then
3636 cat >>confdefs.h <<\_ACEOF
3637#define WITH_AIXAUTHENTICATE 1
3638_ACEOF
3639
3640 LIBS="$LIBS -ls"
3641
3642fi
3643
3644
3645fi
3646
3647 cat >>confdefs.h <<\_ACEOF
3648#define BROKEN_GETADDRINFO 1
3649_ACEOF
3650
3651 cat >>confdefs.h <<\_ACEOF
3652#define BROKEN_REALPATH 1
3653_ACEOF
3654
3655 cat >>confdefs.h <<\_ACEOF
3656#define DISABLE_LASTLOG 1
3657_ACEOF
3658
3659 cat >>confdefs.h <<\_ACEOF
3660#define LOGIN_NEEDS_UTMPX 1
3661_ACEOF
3662
3663 ;;
3664*-*-cygwin*)
3665 LIBS="$LIBS /usr/lib/textmode.o"
3666 cat >>confdefs.h <<\_ACEOF
3667#define HAVE_CYGWIN 1
3668_ACEOF
3669
3670 cat >>confdefs.h <<\_ACEOF
3671#define USE_PIPES 1
3672_ACEOF
3673
3674 cat >>confdefs.h <<\_ACEOF
3675#define DISABLE_SHADOW 1
3676_ACEOF
3677
3678 cat >>confdefs.h <<\_ACEOF
3679#define IPV4_DEFAULT 1
3680_ACEOF
3681
3682 cat >>confdefs.h <<\_ACEOF
3683#define IP_TOS_IS_BROKEN 1
3684_ACEOF
3685
3686 cat >>confdefs.h <<\_ACEOF
3687#define NO_X11_UNIX_SOCKETS 1
3688_ACEOF
3689
3690 cat >>confdefs.h <<\_ACEOF
3691#define NO_IPPORT_RESERVED_CONCEPT 1
3692_ACEOF
3693
3694 cat >>confdefs.h <<\_ACEOF
3695#define DISABLE_FD_PASSING 1
3696_ACEOF
3697
3698 cat >>confdefs.h <<\_ACEOF
3699#define SETGROUPS_NOOP 1
3700_ACEOF
3701
3702 ;;
3703*-*-dgux*)
3704 cat >>confdefs.h <<\_ACEOF
3705#define IP_TOS_IS_BROKEN 1
3706_ACEOF
3707
3708 ;;
3709*-*-darwin*)
3710 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
3711echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3712 if test "$cross_compiling" = yes; then
3713 echo "$as_me:$LINENO: result: assume it is working" >&5
3714echo "${ECHO_T}assume it is working" >&6
3715else
3716 cat >conftest.$ac_ext <<_ACEOF
3717#line $LINENO "configure"
3718#include "confdefs.h"
3719#include <mach-o/dyld.h>
3720main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3721 exit(0);
3722 else
3723 exit(1);
3724}
3725_ACEOF
3726rm -f conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728 (eval $ac_link) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 echo "$as_me:$LINENO: result: working" >&5
3738echo "${ECHO_T}working" >&6
3739else
3740 echo "$as_me: program exited with status $ac_status" >&5
3741echo "$as_me: failed program was:" >&5
3742cat conftest.$ac_ext >&5
3743( exit $ac_status )
3744echo "$as_me:$LINENO: result: buggy" >&5
3745echo "${ECHO_T}buggy" >&6
3746 cat >>confdefs.h <<\_ACEOF
3747#define BROKEN_GETADDRINFO 1
3748_ACEOF
3749
3750fi
3751rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752fi
3753 ;;
3754*-*-hpux10.26)
3755 if test -z "$GCC"; then
3756 CFLAGS="$CFLAGS -Ae"
3757 fi
3758 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3759 IPADDR_IN_DISPLAY=yes
3760 cat >>confdefs.h <<\_ACEOF
3761#define HAVE_SECUREWARE 1
3762_ACEOF
3763
3764 cat >>confdefs.h <<\_ACEOF
3765#define USE_PIPES 1
3766_ACEOF
3767
3768 cat >>confdefs.h <<\_ACEOF
3769#define LOGIN_NO_ENDOPT 1
3770_ACEOF
3771
3772 cat >>confdefs.h <<\_ACEOF
3773#define LOGIN_NEEDS_UTMPX 1
3774_ACEOF
3775
3776 cat >>confdefs.h <<\_ACEOF
3777#define DISABLE_SHADOW 1
3778_ACEOF
3779
3780 cat >>confdefs.h <<\_ACEOF
3781#define DISABLE_UTMP 1
3782_ACEOF
3783
3784 cat >>confdefs.h <<\_ACEOF
3785#define SPT_TYPE SPT_PSTAT
3786_ACEOF
3787
3788 LIBS="$LIBS -lsec -lsecpw"
3789
3790echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3791echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3792if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_check_lib_save_LIBS=$LIBS
3796LIBS="-lxnet $LIBS"
3797cat >conftest.$ac_ext <<_ACEOF
3798#line $LINENO "configure"
3799#include "confdefs.h"
3800
3801/* Override any gcc2 internal prototype to avoid an error. */
3802#ifdef __cplusplus
3803extern "C"
3804#endif
3805/* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807char t_error ();
3808#ifdef F77_DUMMY_MAIN
3809# ifdef __cplusplus
3810 extern "C"
3811# endif
3812 int F77_DUMMY_MAIN() { return 1; }
3813#endif
3814int
3815main ()
3816{
3817t_error ();
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822rm -f conftest.$ac_objext conftest$ac_exeext
3823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -s conftest$ac_exeext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_lib_xnet_t_error=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837cat conftest.$ac_ext >&5
3838ac_cv_lib_xnet_t_error=no
3839fi
3840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841LIBS=$ac_check_lib_save_LIBS
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3844echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3845if test $ac_cv_lib_xnet_t_error = yes; then
3846 cat >>confdefs.h <<_ACEOF
3847#define HAVE_LIBXNET 1
3848_ACEOF
3849
3850 LIBS="-lxnet $LIBS"
3851
3852else
3853 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3854echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3855 { (exit 1); exit 1; }; }
3856fi
3857
3858 disable_ptmx_check=yes
3859 ;;
3860*-*-hpux10*)
3861 if test -z "$GCC"; then
3862 CFLAGS="$CFLAGS -Ae"
3863 fi
3864 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3865 IPADDR_IN_DISPLAY=yes
3866 cat >>confdefs.h <<\_ACEOF
3867#define USE_PIPES 1
3868_ACEOF
3869
3870 cat >>confdefs.h <<\_ACEOF
3871#define LOGIN_NO_ENDOPT 1
3872_ACEOF
3873
3874 cat >>confdefs.h <<\_ACEOF
3875#define LOGIN_NEEDS_UTMPX 1
3876_ACEOF
3877
3878 cat >>confdefs.h <<\_ACEOF
3879#define DISABLE_SHADOW 1
3880_ACEOF
3881
3882 cat >>confdefs.h <<\_ACEOF
3883#define DISABLE_UTMP 1
3884_ACEOF
3885
3886 cat >>confdefs.h <<\_ACEOF
3887#define SPT_TYPE SPT_PSTAT
3888_ACEOF
3889
3890 LIBS="$LIBS -lsec"
3891
3892echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3893echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3894if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897 ac_check_lib_save_LIBS=$LIBS
3898LIBS="-lxnet $LIBS"
3899cat >conftest.$ac_ext <<_ACEOF
3900#line $LINENO "configure"
3901#include "confdefs.h"
3902
3903/* Override any gcc2 internal prototype to avoid an error. */
3904#ifdef __cplusplus
3905extern "C"
3906#endif
3907/* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909char t_error ();
3910#ifdef F77_DUMMY_MAIN
3911# ifdef __cplusplus
3912 extern "C"
3913# endif
3914 int F77_DUMMY_MAIN() { return 1; }
3915#endif
3916int
3917main ()
3918{
3919t_error ();
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext conftest$ac_exeext
3925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_xnet_t_error=yes
3937else
3938 echo "$as_me: failed program was:" >&5
3939cat conftest.$ac_ext >&5
3940ac_cv_lib_xnet_t_error=no
3941fi
3942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943LIBS=$ac_check_lib_save_LIBS
3944fi
3945echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3946echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3947if test $ac_cv_lib_xnet_t_error = yes; then
3948 cat >>confdefs.h <<_ACEOF
3949#define HAVE_LIBXNET 1
3950_ACEOF
3951
3952 LIBS="-lxnet $LIBS"
3953
3954else
3955 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3956echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3957 { (exit 1); exit 1; }; }
3958fi
3959
3960 ;;
3961*-*-hpux11*)
3962 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3963 IPADDR_IN_DISPLAY=yes
3964 cat >>confdefs.h <<\_ACEOF
3965#define PAM_SUN_CODEBASE 1
3966_ACEOF
3967
3968 cat >>confdefs.h <<\_ACEOF
3969#define USE_PIPES 1
3970_ACEOF
3971
3972 cat >>confdefs.h <<\_ACEOF
3973#define LOGIN_NO_ENDOPT 1
3974_ACEOF
3975
3976 cat >>confdefs.h <<\_ACEOF
3977#define LOGIN_NEEDS_UTMPX 1
3978_ACEOF
3979
3980 cat >>confdefs.h <<\_ACEOF
3981#define DISABLE_SHADOW 1
3982_ACEOF
3983
3984 cat >>confdefs.h <<\_ACEOF
3985#define DISABLE_UTMP 1
3986_ACEOF
3987
3988 cat >>confdefs.h <<\_ACEOF
3989#define SPT_TYPE SPT_PSTAT
3990_ACEOF
3991
3992 LIBS="$LIBS -lsec"
3993
3994echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3995echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3996if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 ac_check_lib_save_LIBS=$LIBS
4000LIBS="-lxnet $LIBS"
4001cat >conftest.$ac_ext <<_ACEOF
4002#line $LINENO "configure"
4003#include "confdefs.h"
4004
4005/* Override any gcc2 internal prototype to avoid an error. */
4006#ifdef __cplusplus
4007extern "C"
4008#endif
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char t_error ();
4012#ifdef F77_DUMMY_MAIN
4013# ifdef __cplusplus
4014 extern "C"
4015# endif
4016 int F77_DUMMY_MAIN() { return 1; }
4017#endif
4018int
4019main ()
4020{
4021t_error ();
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -s conftest$ac_exeext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_lib_xnet_t_error=yes
4039else
4040 echo "$as_me: failed program was:" >&5
4041cat conftest.$ac_ext >&5
4042ac_cv_lib_xnet_t_error=no
4043fi
4044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4045LIBS=$ac_check_lib_save_LIBS
4046fi
4047echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4048echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4049if test $ac_cv_lib_xnet_t_error = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051#define HAVE_LIBXNET 1
4052_ACEOF
4053
4054 LIBS="-lxnet $LIBS"
4055
4056else
4057 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4058echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4059 { (exit 1); exit 1; }; }
4060fi
4061
4062 ;;
4063*-*-irix5*)
4064 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4065 LDFLAGS="$LDFLAGS"
4066 PATH="$PATH:/usr/etc"
4067 cat >>confdefs.h <<\_ACEOF
4068#define BROKEN_INET_NTOA 1
4069_ACEOF
4070
4071 cat >>confdefs.h <<\_ACEOF
4072#define WITH_ABBREV_NO_TTY 1
4073_ACEOF
4074
4075 ;;
4076*-*-irix6*)
4077 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4078 LDFLAGS="$LDFLAGS"
4079 PATH="$PATH:/usr/etc"
4080 cat >>confdefs.h <<\_ACEOF
4081#define WITH_IRIX_ARRAY 1
4082_ACEOF
4083
4084 cat >>confdefs.h <<\_ACEOF
4085#define WITH_IRIX_PROJECT 1
4086_ACEOF
4087
4088 cat >>confdefs.h <<\_ACEOF
4089#define WITH_IRIX_AUDIT 1
4090_ACEOF
4091
4092 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
4093echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
4094if test "${ac_cv_func_jlimit_startjob+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 cat >conftest.$ac_ext <<_ACEOF
4098#line $LINENO "configure"
4099#include "confdefs.h"
4100/* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char jlimit_startjob (); below. */
4102#include <assert.h>
4103/* Override any gcc2 internal prototype to avoid an error. */
4104#ifdef __cplusplus
4105extern "C"
4106#endif
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char jlimit_startjob ();
4110char (*f) ();
4111
4112#ifdef F77_DUMMY_MAIN
4113# ifdef __cplusplus
4114 extern "C"
4115# endif
4116 int F77_DUMMY_MAIN() { return 1; }
4117#endif
4118int
4119main ()
4120{
4121/* The GNU C library defines this for functions which it implements
4122 to always fail with ENOSYS. Some functions are actually named
4123 something starting with __ and the normal name is an alias. */
4124#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
4125choke me
4126#else
4127f = jlimit_startjob;
4128#endif
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext conftest$ac_exeext
4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -s conftest$ac_exeext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_func_jlimit_startjob=yes
4147else
4148 echo "$as_me: failed program was:" >&5
4149cat conftest.$ac_ext >&5
4150ac_cv_func_jlimit_startjob=no
4151fi
4152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
4155echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4156if test $ac_cv_func_jlimit_startjob = yes; then
4157 cat >>confdefs.h <<\_ACEOF
4158#define WITH_IRIX_JOBS 1
4159_ACEOF
4160
4161fi
4162
4163 cat >>confdefs.h <<\_ACEOF
4164#define BROKEN_INET_NTOA 1
4165_ACEOF
4166
4167 cat >>confdefs.h <<\_ACEOF
4168#define WITH_ABBREV_NO_TTY 1
4169_ACEOF
4170
4171 ;;
4172*-*-linux*)
4173 no_dev_ptmx=1
4174 check_for_libcrypt_later=1
4175 cat >>confdefs.h <<\_ACEOF
4176#define DONT_TRY_OTHER_AF 1
4177_ACEOF
4178
4179 cat >>confdefs.h <<\_ACEOF
4180#define PAM_TTY_KLUDGE 1
4181_ACEOF
4182
4183 inet6_default_4in6=yes
4184 ;;
4185mips-sony-bsd|mips-sony-newsos4)
4186 cat >>confdefs.h <<\_ACEOF
4187#define HAVE_NEWS4 1
4188_ACEOF
4189
4190 SONY=1
4191 ;;
4192*-*-netbsd*)
4193 check_for_libcrypt_before=1
4194 need_dash_r=1
4195 ;;
4196*-*-freebsd*)
4197 check_for_libcrypt_later=1
4198 ;;
4199*-next-*)
4200 conf_lastlog_location="/usr/adm/lastlog"
4201 conf_utmp_location=/etc/utmp
4202 conf_wtmp_location=/usr/adm/wtmp
4203 MAIL=/usr/spool/mail
4204 cat >>confdefs.h <<\_ACEOF
4205#define HAVE_NEXT 1
4206_ACEOF
4207
4208 cat >>confdefs.h <<\_ACEOF
4209#define BROKEN_REALPATH 1
4210_ACEOF
4211
4212 cat >>confdefs.h <<\_ACEOF
4213#define USE_PIPES 1
4214_ACEOF
4215
4216 cat >>confdefs.h <<\_ACEOF
4217#define BROKEN_SAVED_UIDS 1
4218_ACEOF
4219
4220 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4221 CFLAGS="$CFLAGS"
4222 ;;
4223*-*-solaris*)
4224 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4225 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4226 need_dash_r=1
4227 cat >>confdefs.h <<\_ACEOF
4228#define PAM_SUN_CODEBASE 1
4229_ACEOF
4230
4231 cat >>confdefs.h <<\_ACEOF
4232#define LOGIN_NEEDS_UTMPX 1
4233_ACEOF
4234
4235 cat >>confdefs.h <<\_ACEOF
4236#define LOGIN_NEEDS_TERM 1
4237_ACEOF
4238
4239 cat >>confdefs.h <<\_ACEOF
4240#define PAM_TTY_KLUDGE 1
4241_ACEOF
4242
4243 # hardwire lastlog location (can't detect it on some versions)
4244 conf_lastlog_location="/var/adm/lastlog"
4245 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
4246echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4247 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4248 if test "$sol2ver" -ge 8; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251 cat >>confdefs.h <<\_ACEOF
4252#define DISABLE_UTMP 1
4253_ACEOF
4254
4255 cat >>confdefs.h <<\_ACEOF
4256#define DISABLE_WTMP 1
4257_ACEOF
4258
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263 ;;
4264*-*-sunos4*)
4265 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4266
4267for ac_func in getpwanam
4268do
4269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4270echo "$as_me:$LINENO: checking for $ac_func" >&5
4271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4272if eval "test \"\${$as_ac_var+set}\" = set"; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276#line $LINENO "configure"
4277#include "confdefs.h"
4278/* System header to define __stub macros and hopefully few prototypes,
4279 which can conflict with char $ac_func (); below. */
4280#include <assert.h>
4281/* Override any gcc2 internal prototype to avoid an error. */
4282#ifdef __cplusplus
4283extern "C"
4284#endif
4285/* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4287char $ac_func ();
4288char (*f) ();
4289
4290#ifdef F77_DUMMY_MAIN
4291# ifdef __cplusplus
4292 extern "C"
4293# endif
4294 int F77_DUMMY_MAIN() { return 1; }
4295#endif
4296int
4297main ()
4298{
4299/* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4303choke me
4304#else
4305f = $ac_func;
4306#endif
4307
4308 ;
4309 return 0;
4310}
4311_ACEOF
4312rm -f conftest.$ac_objext conftest$ac_exeext
4313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4314 (eval $ac_link) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_var=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327cat conftest.$ac_ext >&5
4328eval "$as_ac_var=no"
4329fi
4330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4334if test `eval echo '${'$as_ac_var'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340done
4341
4342 cat >>confdefs.h <<\_ACEOF
4343#define PAM_SUN_CODEBASE 1
4344_ACEOF
4345
4346 conf_utmp_location=/etc/utmp
4347 conf_wtmp_location=/var/adm/wtmp
4348 conf_lastlog_location=/var/adm/lastlog
4349 cat >>confdefs.h <<\_ACEOF
4350#define USE_PIPES 1
4351_ACEOF
4352
4353 ;;
4354*-ncr-sysv*)
4355 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4356 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4357 LIBS="$LIBS -lc89"
4358 cat >>confdefs.h <<\_ACEOF
4359#define USE_PIPES 1
4360_ACEOF
4361
4362 ;;
4363*-sni-sysv*)
4364 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4365 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4366 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4367 IPADDR_IN_DISPLAY=yes
4368 cat >>confdefs.h <<\_ACEOF
4369#define USE_PIPES 1
4370_ACEOF
4371
4372 cat >>confdefs.h <<\_ACEOF
4373#define IP_TOS_IS_BROKEN 1
4374_ACEOF
4375
4376 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4377 # Attention: always take care to bind libsocket and libnsl before libc,
4378 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4379 ;;
4380*-*-sysv4.2*)
4381 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4382 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4383 cat >>confdefs.h <<\_ACEOF
4384#define USE_PIPES 1
4385_ACEOF
4386
4387 ;;
4388*-*-sysv5*)
4389 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4390 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4391 cat >>confdefs.h <<\_ACEOF
4392#define USE_PIPES 1
4393_ACEOF
4394
4395 ;;
4396*-*-sysv*)
4397 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4398 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4399 ;;
4400*-*-sco3.2v4*)
4401 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4402 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4403 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4404 RANLIB=true
4405 no_dev_ptmx=1
4406 cat >>confdefs.h <<\_ACEOF
4407#define BROKEN_SYS_TERMIO_H 1
4408_ACEOF
4409
4410 cat >>confdefs.h <<\_ACEOF
4411#define USE_PIPES 1
4412_ACEOF
4413
4414 cat >>confdefs.h <<\_ACEOF
4415#define HAVE_SECUREWARE 1
4416_ACEOF
4417
4418 cat >>confdefs.h <<\_ACEOF
4419#define DISABLE_SHADOW 1
4420_ACEOF
4421
4422 cat >>confdefs.h <<\_ACEOF
4423#define BROKEN_SAVED_UIDS 1
4424_ACEOF
4425
4426
4427
4428for ac_func in getluid setluid
4429do
4430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4431echo "$as_me:$LINENO: checking for $ac_func" >&5
4432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4433if eval "test \"\${$as_ac_var+set}\" = set"; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437#line $LINENO "configure"
4438#include "confdefs.h"
4439/* System header to define __stub macros and hopefully few prototypes,
4440 which can conflict with char $ac_func (); below. */
4441#include <assert.h>
4442/* Override any gcc2 internal prototype to avoid an error. */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446/* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4448char $ac_func ();
4449char (*f) ();
4450
4451#ifdef F77_DUMMY_MAIN
4452# ifdef __cplusplus
4453 extern "C"
4454# endif
4455 int F77_DUMMY_MAIN() { return 1; }
4456#endif
4457int
4458main ()
4459{
4460/* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464choke me
4465#else
4466f = $ac_func;
4467#endif
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -s conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_var=yes"
4486else
4487 echo "$as_me: failed program was:" >&5
4488cat conftest.$ac_ext >&5
4489eval "$as_ac_var=no"
4490fi
4491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4495if test `eval echo '${'$as_ac_var'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4498_ACEOF
4499
4500fi
4501done
4502
4503 MANTYPE=man
4504 do_sco3_extra_lib_check=yes
4505 ;;
4506*-*-sco3.2v5*)
4507 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4508 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4509 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4510 no_dev_ptmx=1
4511 cat >>confdefs.h <<\_ACEOF
4512#define USE_PIPES 1
4513_ACEOF
4514
4515 cat >>confdefs.h <<\_ACEOF
4516#define HAVE_SECUREWARE 1
4517_ACEOF
4518
4519 cat >>confdefs.h <<\_ACEOF
4520#define DISABLE_SHADOW 1
4521_ACEOF
4522
4523 cat >>confdefs.h <<\_ACEOF
4524#define DISABLE_FD_PASSING 1
4525_ACEOF
4526
4527
4528
4529for ac_func in getluid setluid
4530do
4531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4532echo "$as_me:$LINENO: checking for $ac_func" >&5
4533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4534if eval "test \"\${$as_ac_var+set}\" = set"; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 cat >conftest.$ac_ext <<_ACEOF
4538#line $LINENO "configure"
4539#include "confdefs.h"
4540/* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char $ac_func (); below. */
4542#include <assert.h>
4543/* Override any gcc2 internal prototype to avoid an error. */
4544#ifdef __cplusplus
4545extern "C"
4546#endif
4547/* We use char because int might match the return type of a gcc2
4548 builtin and then its argument prototype would still apply. */
4549char $ac_func ();
4550char (*f) ();
4551
4552#ifdef F77_DUMMY_MAIN
4553# ifdef __cplusplus
4554 extern "C"
4555# endif
4556 int F77_DUMMY_MAIN() { return 1; }
4557#endif
4558int
4559main ()
4560{
4561/* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565choke me
4566#else
4567f = $ac_func;
4568#endif
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574rm -f conftest.$ac_objext conftest$ac_exeext
4575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 eval "$as_ac_var=yes"
4587else
4588 echo "$as_me: failed program was:" >&5
4589cat conftest.$ac_ext >&5
4590eval "$as_ac_var=no"
4591fi
4592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593fi
4594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4596if test `eval echo '${'$as_ac_var'}'` = yes; then
4597 cat >>confdefs.h <<_ACEOF
4598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4599_ACEOF
4600
4601fi
4602done
4603
4604 MANTYPE=man
4605 ;;
4606*-*-unicosmk*)
4607 no_libsocket=1
4608 no_libnsl=1
4609 cat >>confdefs.h <<\_ACEOF
4610#define USE_PIPES 1
4611_ACEOF
4612
4613 cat >>confdefs.h <<\_ACEOF
4614#define DISABLE_FD_PASSING 1
4615_ACEOF
4616
4617 LDFLAGS="$LDFLAGS"
4618 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4619 MANTYPE=cat
4620 ;;
4621*-*-unicos*)
4622 no_libsocket=1
4623 no_libnsl=1
4624 cat >>confdefs.h <<\_ACEOF
4625#define USE_PIPES 1
4626_ACEOF
4627
4628 cat >>confdefs.h <<\_ACEOF
4629#define DISABLE_FD_PASSING 1
4630_ACEOF
4631
4632 cat >>confdefs.h <<\_ACEOF
4633#define NO_SSH_LASTLOG 1
4634_ACEOF
4635
4636 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4637 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4638 MANTYPE=cat
4639 ;;
4640*-dec-osf*)
4641 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4642echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4643 no_osfsia=""
4644
4645# Check whether --with-osfsia or --without-osfsia was given.
4646if test "${with_osfsia+set}" = set; then
4647 withval="$with_osfsia"
4648
4649 if test "x$withval" = "xno" ; then
4650 echo "$as_me:$LINENO: result: disabled" >&5
4651echo "${ECHO_T}disabled" >&6
4652 no_osfsia=1
4653 fi
4654
4655fi;
4656 if test -z "$no_osfsia" ; then
4657 if test -f /etc/sia/matrix.conf; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 cat >>confdefs.h <<\_ACEOF
4661#define HAVE_OSF_SIA 1
4662_ACEOF
4663
4664 cat >>confdefs.h <<\_ACEOF
4665#define DISABLE_LOGIN 1
4666_ACEOF
4667
4668 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672 fi
4673 fi
4674 ;;
4675
4676*-*-nto-qnx)
4677 cat >>confdefs.h <<\_ACEOF
4678#define USE_PIPES 1
4679_ACEOF
4680
4681 cat >>confdefs.h <<\_ACEOF
4682#define NO_X11_UNIX_SOCKETS 1
4683_ACEOF
4684
4685 cat >>confdefs.h <<\_ACEOF
4686#define MISSING_NFDBITS 1
4687_ACEOF
4688
4689 cat >>confdefs.h <<\_ACEOF
4690#define MISSING_HOWMANY 1
4691_ACEOF
4692
4693 cat >>confdefs.h <<\_ACEOF
4694#define MISSING_FD_MASK 1
4695_ACEOF
4696
4697 ;;
4698esac
4699
4700# Allow user to specify flags
4701
4702# Check whether --with-cflags or --without-cflags was given.
4703if test "${with_cflags+set}" = set; then
4704 withval="$with_cflags"
4705
4706 if test "x$withval" != "xno" ; then
4707 CFLAGS="$CFLAGS $withval"
4708 fi
4709
4710
4711fi;
4712
4713# Check whether --with-cppflags or --without-cppflags was given.
4714if test "${with_cppflags+set}" = set; then
4715 withval="$with_cppflags"
4716
4717 if test "x$withval" != "xno"; then
4718 CPPFLAGS="$CPPFLAGS $withval"
4719 fi
4720
4721
4722fi;
4723
4724# Check whether --with-ldflags or --without-ldflags was given.
4725if test "${with_ldflags+set}" = set; then
4726 withval="$with_ldflags"
4727
4728 if test "x$withval" != "xno" ; then
4729 LDFLAGS="$LDFLAGS $withval"
4730 fi
4731
4732
4733fi;
4734
4735# Check whether --with-libs or --without-libs was given.
4736if test "${with_libs+set}" = set; then
4737 withval="$with_libs"
4738
4739 if test "x$withval" != "xno" ; then
4740 LIBS="$LIBS $withval"
4741 fi
4742
4743
4744fi;
4745
4746# Checks for header files.
4747
4748echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4749echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4750if test "${ac_cv_header_stdc+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 cat >conftest.$ac_ext <<_ACEOF
4754#line $LINENO "configure"
4755#include "confdefs.h"
4756#include <stdlib.h>
4757#include <stdarg.h>
4758#include <string.h>
4759#include <float.h>
4760
4761_ACEOF
4762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4764 ac_status=$?
4765 egrep -v '^ *\+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null; then
4770 if test -s conftest.err; then
4771 ac_cpp_err=$ac_c_preproc_warn_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_cv_header_stdc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 ac_cv_header_stdc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786
4787if test $ac_cv_header_stdc = yes; then
4788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4789 cat >conftest.$ac_ext <<_ACEOF
4790#line $LINENO "configure"
4791#include "confdefs.h"
4792#include <string.h>
4793
4794_ACEOF
4795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 egrep "memchr" >/dev/null 2>&1; then
4797 :
4798else
4799 ac_cv_header_stdc=no
4800fi
4801rm -f conftest*
4802
4803fi
4804
4805if test $ac_cv_header_stdc = yes; then
4806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4807 cat >conftest.$ac_ext <<_ACEOF
4808#line $LINENO "configure"
4809#include "confdefs.h"
4810#include <stdlib.h>
4811
4812_ACEOF
4813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 egrep "free" >/dev/null 2>&1; then
4815 :
4816else
4817 ac_cv_header_stdc=no
4818fi
4819rm -f conftest*
4820
4821fi
4822
4823if test $ac_cv_header_stdc = yes; then
4824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4825 if test "$cross_compiling" = yes; then
4826 :
4827else
4828 cat >conftest.$ac_ext <<_ACEOF
4829#line $LINENO "configure"
4830#include "confdefs.h"
4831#include <ctype.h>
4832#if ((' ' & 0x0FF) == 0x020)
4833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4835#else
4836# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4837 || ('j' <= (c) && (c) <= 'r') \
4838 || ('s' <= (c) && (c) <= 'z'))
4839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840#endif
4841
4842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843int
4844main ()
4845{
4846 int i;
4847 for (i = 0; i < 256; i++)
4848 if (XOR (islower (i), ISLOWER (i))
4849 || toupper (i) != TOUPPER (i))
4850 exit(2);
4851 exit (0);
4852}
4853_ACEOF
4854rm -f conftest$ac_exeext
4855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 :
4866else
4867 echo "$as_me: program exited with status $ac_status" >&5
4868echo "$as_me: failed program was:" >&5
4869cat conftest.$ac_ext >&5
4870( exit $ac_status )
4871ac_cv_header_stdc=no
4872fi
4873rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874fi
4875fi
4876fi
4877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4878echo "${ECHO_T}$ac_cv_header_stdc" >&6
4879if test $ac_cv_header_stdc = yes; then
4880
4881cat >>confdefs.h <<\_ACEOF
4882#define STDC_HEADERS 1
4883_ACEOF
4884
4885fi
4886
4887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4898 inttypes.h stdint.h unistd.h
4899do
4900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901echo "$as_me:$LINENO: checking for $ac_header" >&5
4902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4903if eval "test \"\${$as_ac_Header+set}\" = set"; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 cat >conftest.$ac_ext <<_ACEOF
4907#line $LINENO "configure"
4908#include "confdefs.h"
4909$ac_includes_default
4910
4911#include <$ac_header>
4912_ACEOF
4913rm -f conftest.$ac_objext
4914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -s conftest.$ac_objext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 eval "$as_ac_Header=yes"
4926else
4927 echo "$as_me: failed program was:" >&5
4928cat conftest.$ac_ext >&5
4929eval "$as_ac_Header=no"
4930fi
4931rm -f conftest.$ac_objext conftest.$ac_ext
4932fi
4933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4935if test `eval echo '${'$as_ac_Header'}'` = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938_ACEOF
4939
4940fi
4941
4942done
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4988 getopt.h glob.h ia.h lastlog.h limits.h login.h \
4989 login_cap.h maillock.h netdb.h netgroup.h \
4990 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4991 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4992 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4993 sys/mman.h sys/select.h sys/stat.h \
4994 sys/stropts.h sys/sysmacros.h sys/time.h \
4995 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
4996 util.h utime.h utmp.h utmpx.h
4997do
4998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999if eval "test \"\${$as_ac_Header+set}\" = set"; then
5000 echo "$as_me:$LINENO: checking for $ac_header" >&5
5001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004fi
5005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5007else
5008 # Is the header compilable?
5009echo "$as_me:$LINENO: checking $ac_header usability" >&5
5010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5011cat >conftest.$ac_ext <<_ACEOF
5012#line $LINENO "configure"
5013#include "confdefs.h"
5014$ac_includes_default
5015#include <$ac_header>
5016_ACEOF
5017rm -f conftest.$ac_objext
5018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_header_compiler=yes
5030else
5031 echo "$as_me: failed program was:" >&5
5032cat conftest.$ac_ext >&5
5033ac_header_compiler=no
5034fi
5035rm -f conftest.$ac_objext conftest.$ac_ext
5036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037echo "${ECHO_T}$ac_header_compiler" >&6
5038
5039# Is the header present?
5040echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
5044#include "confdefs.h"
5045#include <$ac_header>
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
5050 egrep -v '^ *\+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_c_preproc_warn_flag
5057 else
5058 ac_cpp_err=
5059 fi
5060else
5061 ac_cpp_err=yes
5062fi
5063if test -z "$ac_cpp_err"; then
5064 ac_header_preproc=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 ac_header_preproc=no
5069fi
5070rm -f conftest.err conftest.$ac_ext
5071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072echo "${ECHO_T}$ac_header_preproc" >&6
5073
5074# So? What about this header?
5075case $ac_header_compiler:$ac_header_preproc in
5076 yes:no )
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5081 no:yes )
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5088esac
5089echo "$as_me:$LINENO: checking for $ac_header" >&5
5090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 eval "$as_ac_Header=$ac_header_preproc"
5095fi
5096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098
5099fi
5100if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103_ACEOF
5104
5105fi
5106
5107done
5108
5109
5110# Checks for libraries.
5111echo "$as_me:$LINENO: checking for yp_match" >&5
5112echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
5113if test "${ac_cv_func_yp_match+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117#line $LINENO "configure"
5118#include "confdefs.h"
5119/* System header to define __stub macros and hopefully few prototypes,
5120 which can conflict with char yp_match (); below. */
5121#include <assert.h>
5122/* Override any gcc2 internal prototype to avoid an error. */
5123#ifdef __cplusplus
5124extern "C"
5125#endif
5126/* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5128char yp_match ();
5129char (*f) ();
5130
5131#ifdef F77_DUMMY_MAIN
5132# ifdef __cplusplus
5133 extern "C"
5134# endif
5135 int F77_DUMMY_MAIN() { return 1; }
5136#endif
5137int
5138main ()
5139{
5140/* The GNU C library defines this for functions which it implements
5141 to always fail with ENOSYS. Some functions are actually named
5142 something starting with __ and the normal name is an alias. */
5143#if defined (__stub_yp_match) || defined (__stub___yp_match)
5144choke me
5145#else
5146f = yp_match;
5147#endif
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153rm -f conftest.$ac_objext conftest$ac_exeext
5154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -s conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_func_yp_match=yes
5166else
5167 echo "$as_me: failed program was:" >&5
5168cat conftest.$ac_ext >&5
5169ac_cv_func_yp_match=no
5170fi
5171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5172fi
5173echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
5174echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5175if test $ac_cv_func_yp_match = yes; then
5176 :
5177else
5178
5179echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
5180echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5181if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 ac_check_lib_save_LIBS=$LIBS
5185LIBS="-lnsl $LIBS"
5186cat >conftest.$ac_ext <<_ACEOF
5187#line $LINENO "configure"
5188#include "confdefs.h"
5189
5190/* Override any gcc2 internal prototype to avoid an error. */
5191#ifdef __cplusplus
5192extern "C"
5193#endif
5194/* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5196char yp_match ();
5197#ifdef F77_DUMMY_MAIN
5198# ifdef __cplusplus
5199 extern "C"
5200# endif
5201 int F77_DUMMY_MAIN() { return 1; }
5202#endif
5203int
5204main ()
5205{
5206yp_match ();
5207 ;
5208 return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_nsl_yp_match=yes
5224else
5225 echo "$as_me: failed program was:" >&5
5226cat conftest.$ac_ext >&5
5227ac_cv_lib_nsl_yp_match=no
5228fi
5229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230LIBS=$ac_check_lib_save_LIBS
5231fi
5232echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
5233echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5234if test $ac_cv_lib_nsl_yp_match = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236#define HAVE_LIBNSL 1
5237_ACEOF
5238
5239 LIBS="-lnsl $LIBS"
5240
5241fi
5242
5243fi
5244
5245echo "$as_me:$LINENO: checking for setsockopt" >&5
5246echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5247if test "${ac_cv_func_setsockopt+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 cat >conftest.$ac_ext <<_ACEOF
5251#line $LINENO "configure"
5252#include "confdefs.h"
5253/* System header to define __stub macros and hopefully few prototypes,
5254 which can conflict with char setsockopt (); below. */
5255#include <assert.h>
5256/* Override any gcc2 internal prototype to avoid an error. */
5257#ifdef __cplusplus
5258extern "C"
5259#endif
5260/* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262char setsockopt ();
5263char (*f) ();
5264
5265#ifdef F77_DUMMY_MAIN
5266# ifdef __cplusplus
5267 extern "C"
5268# endif
5269 int F77_DUMMY_MAIN() { return 1; }
5270#endif
5271int
5272main ()
5273{
5274/* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5278choke me
5279#else
5280f = setsockopt;
5281#endif
5282
5283 ;
5284 return 0;
5285}
5286_ACEOF
5287rm -f conftest.$ac_objext conftest$ac_exeext
5288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_func_setsockopt=yes
5300else
5301 echo "$as_me: failed program was:" >&5
5302cat conftest.$ac_ext >&5
5303ac_cv_func_setsockopt=no
5304fi
5305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5308echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5309if test $ac_cv_func_setsockopt = yes; then
5310 :
5311else
5312
5313echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5314echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5315if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 ac_check_lib_save_LIBS=$LIBS
5319LIBS="-lsocket $LIBS"
5320cat >conftest.$ac_ext <<_ACEOF
5321#line $LINENO "configure"
5322#include "confdefs.h"
5323
5324/* Override any gcc2 internal prototype to avoid an error. */
5325#ifdef __cplusplus
5326extern "C"
5327#endif
5328/* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330char setsockopt ();
5331#ifdef F77_DUMMY_MAIN
5332# ifdef __cplusplus
5333 extern "C"
5334# endif
5335 int F77_DUMMY_MAIN() { return 1; }
5336#endif
5337int
5338main ()
5339{
5340setsockopt ();
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345rm -f conftest.$ac_objext conftest$ac_exeext
5346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_lib_socket_setsockopt=yes
5358else
5359 echo "$as_me: failed program was:" >&5
5360cat conftest.$ac_ext >&5
5361ac_cv_lib_socket_setsockopt=no
5362fi
5363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364LIBS=$ac_check_lib_save_LIBS
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5367echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5368if test $ac_cv_lib_socket_setsockopt = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370#define HAVE_LIBSOCKET 1
5371_ACEOF
5372
5373 LIBS="-lsocket $LIBS"
5374
5375fi
5376
5377fi
5378
5379
5380if test "x$with_tcp_wrappers" != "xno" ; then
5381 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5382 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5383echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5384if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 ac_check_lib_save_LIBS=$LIBS
5388LIBS="-lrpc -lyp -lrpc $LIBS"
5389cat >conftest.$ac_ext <<_ACEOF
5390#line $LINENO "configure"
5391#include "confdefs.h"
5392
5393/* Override any gcc2 internal prototype to avoid an error. */
5394#ifdef __cplusplus
5395extern "C"
5396#endif
5397/* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5399char innetgr ();
5400#ifdef F77_DUMMY_MAIN
5401# ifdef __cplusplus
5402 extern "C"
5403# endif
5404 int F77_DUMMY_MAIN() { return 1; }
5405#endif
5406int
5407main ()
5408{
5409innetgr ();
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414rm -f conftest.$ac_objext conftest$ac_exeext
5415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -s conftest$ac_exeext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_lib_rpc_innetgr=yes
5427else
5428 echo "$as_me: failed program was:" >&5
5429cat conftest.$ac_ext >&5
5430ac_cv_lib_rpc_innetgr=no
5431fi
5432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5433LIBS=$ac_check_lib_save_LIBS
5434fi
5435echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5436echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5437if test $ac_cv_lib_rpc_innetgr = yes; then
5438 LIBS="-lrpc -lyp -lrpc $LIBS"
5439fi
5440
5441 fi
5442fi
5443
5444echo "$as_me:$LINENO: checking for getspnam" >&5
5445echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5446if test "${ac_cv_func_getspnam+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449 cat >conftest.$ac_ext <<_ACEOF
5450#line $LINENO "configure"
5451#include "confdefs.h"
5452/* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char getspnam (); below. */
5454#include <assert.h>
5455/* Override any gcc2 internal prototype to avoid an error. */
5456#ifdef __cplusplus
5457extern "C"
5458#endif
5459/* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461char getspnam ();
5462char (*f) ();
5463
5464#ifdef F77_DUMMY_MAIN
5465# ifdef __cplusplus
5466 extern "C"
5467# endif
5468 int F77_DUMMY_MAIN() { return 1; }
5469#endif
5470int
5471main ()
5472{
5473/* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476#if defined (__stub_getspnam) || defined (__stub___getspnam)
5477choke me
5478#else
5479f = getspnam;
5480#endif
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486rm -f conftest.$ac_objext conftest$ac_exeext
5487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_func_getspnam=yes
5499else
5500 echo "$as_me: failed program was:" >&5
5501cat conftest.$ac_ext >&5
5502ac_cv_func_getspnam=no
5503fi
5504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505fi
5506echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5507echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5508if test $ac_cv_func_getspnam = yes; then
5509 :
5510else
5511 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5512echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5513if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 ac_check_lib_save_LIBS=$LIBS
5517LIBS="-lgen $LIBS"
5518cat >conftest.$ac_ext <<_ACEOF
5519#line $LINENO "configure"
5520#include "confdefs.h"
5521
5522/* Override any gcc2 internal prototype to avoid an error. */
5523#ifdef __cplusplus
5524extern "C"
5525#endif
5526/* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5528char getspnam ();
5529#ifdef F77_DUMMY_MAIN
5530# ifdef __cplusplus
5531 extern "C"
5532# endif
5533 int F77_DUMMY_MAIN() { return 1; }
5534#endif
5535int
5536main ()
5537{
5538getspnam ();
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext conftest$ac_exeext
5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_gen_getspnam=yes
5556else
5557 echo "$as_me: failed program was:" >&5
5558cat conftest.$ac_ext >&5
5559ac_cv_lib_gen_getspnam=no
5560fi
5561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
5564echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5565echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5566if test $ac_cv_lib_gen_getspnam = yes; then
5567 LIBS="$LIBS -lgen"
5568fi
5569
5570fi
5571
5572
5573
5574# Check whether --with-rpath or --without-rpath was given.
5575if test "${with_rpath+set}" = set; then
5576 withval="$with_rpath"
5577
5578 if test "x$withval" = "xno" ; then
5579 need_dash_r=""
5580 fi
5581 if test "x$withval" = "xyes" ; then
5582 need_dash_r=1
5583 fi
5584
5585
5586fi;
5587
5588
5589# Check whether --with-zlib or --without-zlib was given.
5590if test "${with_zlib+set}" = set; then
5591 withval="$with_zlib"
5592
5593 if test "x$withval" = "xno" ; then
5594 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5595echo "$as_me: error: *** zlib is required ***" >&2;}
5596 { (exit 1); exit 1; }; }
5597 fi
5598 if test -d "$withval/lib"; then
5599 if test -n "${need_dash_r}"; then
5600 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5601 else
5602 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5603 fi
5604 else
5605 if test -n "${need_dash_r}"; then
5606 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5607 else
5608 LDFLAGS="-L${withval} ${LDFLAGS}"
5609 fi
5610 fi
5611 if test -d "$withval/include"; then
5612 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5613 else
5614 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5615 fi
5616
5617
5618fi;
5619
5620
5621echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5622echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5623if test "${ac_cv_lib_z_deflate+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626 ac_check_lib_save_LIBS=$LIBS
5627LIBS="-lz $LIBS"
5628cat >conftest.$ac_ext <<_ACEOF
5629#line $LINENO "configure"
5630#include "confdefs.h"
5631
5632/* Override any gcc2 internal prototype to avoid an error. */
5633#ifdef __cplusplus
5634extern "C"
5635#endif
5636/* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5638char deflate ();
5639#ifdef F77_DUMMY_MAIN
5640# ifdef __cplusplus
5641 extern "C"
5642# endif
5643 int F77_DUMMY_MAIN() { return 1; }
5644#endif
5645int
5646main ()
5647{
5648deflate ();
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext conftest$ac_exeext
5654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_lib_z_deflate=yes
5666else
5667 echo "$as_me: failed program was:" >&5
5668cat conftest.$ac_ext >&5
5669ac_cv_lib_z_deflate=no
5670fi
5671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672LIBS=$ac_check_lib_save_LIBS
5673fi
5674echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5675echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5676if test $ac_cv_lib_z_deflate = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678#define HAVE_LIBZ 1
5679_ACEOF
5680
5681 LIBS="-lz $LIBS"
5682
5683else
5684 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5685echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5686 { (exit 1); exit 1; }; }
5687fi
5688
5689
5690echo "$as_me:$LINENO: checking for strcasecmp" >&5
5691echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5692if test "${ac_cv_func_strcasecmp+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 cat >conftest.$ac_ext <<_ACEOF
5696#line $LINENO "configure"
5697#include "confdefs.h"
5698/* System header to define __stub macros and hopefully few prototypes,
5699 which can conflict with char strcasecmp (); below. */
5700#include <assert.h>
5701/* Override any gcc2 internal prototype to avoid an error. */
5702#ifdef __cplusplus
5703extern "C"
5704#endif
5705/* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5707char strcasecmp ();
5708char (*f) ();
5709
5710#ifdef F77_DUMMY_MAIN
5711# ifdef __cplusplus
5712 extern "C"
5713# endif
5714 int F77_DUMMY_MAIN() { return 1; }
5715#endif
5716int
5717main ()
5718{
5719/* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5723choke me
5724#else
5725f = strcasecmp;
5726#endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext conftest$ac_exeext
5733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_func_strcasecmp=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747cat conftest.$ac_ext >&5
5748ac_cv_func_strcasecmp=no
5749fi
5750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5753echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5754if test $ac_cv_func_strcasecmp = yes; then
5755 :
5756else
5757 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5758echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5759if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 ac_check_lib_save_LIBS=$LIBS
5763LIBS="-lresolv $LIBS"
5764cat >conftest.$ac_ext <<_ACEOF
5765#line $LINENO "configure"
5766#include "confdefs.h"
5767
5768/* Override any gcc2 internal prototype to avoid an error. */
5769#ifdef __cplusplus
5770extern "C"
5771#endif
5772/* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5774char strcasecmp ();
5775#ifdef F77_DUMMY_MAIN
5776# ifdef __cplusplus
5777 extern "C"
5778# endif
5779 int F77_DUMMY_MAIN() { return 1; }
5780#endif
5781int
5782main ()
5783{
5784strcasecmp ();
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext conftest$ac_exeext
5790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_resolv_strcasecmp=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804cat conftest.$ac_ext >&5
5805ac_cv_lib_resolv_strcasecmp=no
5806fi
5807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808LIBS=$ac_check_lib_save_LIBS
5809fi
5810echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5811echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5812if test $ac_cv_lib_resolv_strcasecmp = yes; then
5813 LIBS="$LIBS -lresolv"
5814fi
5815
5816
5817fi
5818
5819echo "$as_me:$LINENO: checking for utimes" >&5
5820echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5821if test "${ac_cv_func_utimes+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 cat >conftest.$ac_ext <<_ACEOF
5825#line $LINENO "configure"
5826#include "confdefs.h"
5827/* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char utimes (); below. */
5829#include <assert.h>
5830/* Override any gcc2 internal prototype to avoid an error. */
5831#ifdef __cplusplus
5832extern "C"
5833#endif
5834/* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5836char utimes ();
5837char (*f) ();
5838
5839#ifdef F77_DUMMY_MAIN
5840# ifdef __cplusplus
5841 extern "C"
5842# endif
5843 int F77_DUMMY_MAIN() { return 1; }
5844#endif
5845int
5846main ()
5847{
5848/* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851#if defined (__stub_utimes) || defined (__stub___utimes)
5852choke me
5853#else
5854f = utimes;
5855#endif
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861rm -f conftest.$ac_objext conftest$ac_exeext
5862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_func_utimes=yes
5874else
5875 echo "$as_me: failed program was:" >&5
5876cat conftest.$ac_ext >&5
5877ac_cv_func_utimes=no
5878fi
5879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5882echo "${ECHO_T}$ac_cv_func_utimes" >&6
5883if test $ac_cv_func_utimes = yes; then
5884 :
5885else
5886 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5887echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5888if test "${ac_cv_lib_c89_utimes+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 ac_check_lib_save_LIBS=$LIBS
5892LIBS="-lc89 $LIBS"
5893cat >conftest.$ac_ext <<_ACEOF
5894#line $LINENO "configure"
5895#include "confdefs.h"
5896
5897/* Override any gcc2 internal prototype to avoid an error. */
5898#ifdef __cplusplus
5899extern "C"
5900#endif
5901/* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903char utimes ();
5904#ifdef F77_DUMMY_MAIN
5905# ifdef __cplusplus
5906 extern "C"
5907# endif
5908 int F77_DUMMY_MAIN() { return 1; }
5909#endif
5910int
5911main ()
5912{
5913utimes ();
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext conftest$ac_exeext
5919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920 (eval $ac_link) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_lib_c89_utimes=yes
5931else
5932 echo "$as_me: failed program was:" >&5
5933cat conftest.$ac_ext >&5
5934ac_cv_lib_c89_utimes=no
5935fi
5936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5937LIBS=$ac_check_lib_save_LIBS
5938fi
5939echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5940echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5941if test $ac_cv_lib_c89_utimes = yes; then
5942 cat >>confdefs.h <<\_ACEOF
5943#define HAVE_UTIMES 1
5944_ACEOF
5945
5946 LIBS="$LIBS -lc89"
5947fi
5948
5949
5950fi
5951
5952
5953
5954for ac_header in libutil.h
5955do
5956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo "$as_me:$LINENO: checking for $ac_header" >&5
5959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962fi
5963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965else
5966 # Is the header compilable?
5967echo "$as_me:$LINENO: checking $ac_header usability" >&5
5968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5969cat >conftest.$ac_ext <<_ACEOF
5970#line $LINENO "configure"
5971#include "confdefs.h"
5972$ac_includes_default
5973#include <$ac_header>
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_header_compiler=yes
5988else
5989 echo "$as_me: failed program was:" >&5
5990cat conftest.$ac_ext >&5
5991ac_header_compiler=no
5992fi
5993rm -f conftest.$ac_objext conftest.$ac_ext
5994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5995echo "${ECHO_T}$ac_header_compiler" >&6
5996
5997# Is the header present?
5998echo "$as_me:$LINENO: checking $ac_header presence" >&5
5999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6000cat >conftest.$ac_ext <<_ACEOF
6001#line $LINENO "configure"
6002#include "confdefs.h"
6003#include <$ac_header>
6004_ACEOF
6005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007 ac_status=$?
6008 egrep -v '^ *\+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null; then
6013 if test -s conftest.err; then
6014 ac_cpp_err=$ac_c_preproc_warn_flag
6015 else
6016 ac_cpp_err=
6017 fi
6018else
6019 ac_cpp_err=yes
6020fi
6021if test -z "$ac_cpp_err"; then
6022 ac_header_preproc=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_header_preproc=no
6027fi
6028rm -f conftest.err conftest.$ac_ext
6029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6030echo "${ECHO_T}$ac_header_preproc" >&6
6031
6032# So? What about this header?
6033case $ac_header_compiler:$ac_header_preproc in
6034 yes:no )
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6039 no:yes )
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6046esac
6047echo "$as_me:$LINENO: checking for $ac_header" >&5
6048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6049if eval "test \"\${$as_ac_Header+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 eval "$as_ac_Header=$ac_header_preproc"
6053fi
6054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6056
6057fi
6058if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061_ACEOF
6062
6063fi
6064
6065done
6066
6067echo "$as_me:$LINENO: checking for library containing login" >&5
6068echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6069if test "${ac_cv_search_login+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 ac_func_search_save_LIBS=$LIBS
6073ac_cv_search_login=no
6074cat >conftest.$ac_ext <<_ACEOF
6075#line $LINENO "configure"
6076#include "confdefs.h"
6077
6078/* Override any gcc2 internal prototype to avoid an error. */
6079#ifdef __cplusplus
6080extern "C"
6081#endif
6082/* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084char login ();
6085#ifdef F77_DUMMY_MAIN
6086# ifdef __cplusplus
6087 extern "C"
6088# endif
6089 int F77_DUMMY_MAIN() { return 1; }
6090#endif
6091int
6092main ()
6093{
6094login ();
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_search_login="none required"
6112else
6113 echo "$as_me: failed program was:" >&5
6114cat conftest.$ac_ext >&5
6115fi
6116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6117if test "$ac_cv_search_login" = no; then
6118 for ac_lib in util bsd; do
6119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6121#line $LINENO "configure"
6122#include "confdefs.h"
6123
6124/* Override any gcc2 internal prototype to avoid an error. */
6125#ifdef __cplusplus
6126extern "C"
6127#endif
6128/* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6130char login ();
6131#ifdef F77_DUMMY_MAIN
6132# ifdef __cplusplus
6133 extern "C"
6134# endif
6135 int F77_DUMMY_MAIN() { return 1; }
6136#endif
6137int
6138main ()
6139{
6140login ();
6141 ;
6142 return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_login="-l$ac_lib"
6158break
6159else
6160 echo "$as_me: failed program was:" >&5
6161cat conftest.$ac_ext >&5
6162fi
6163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 done
6165fi
6166LIBS=$ac_func_search_save_LIBS
6167fi
6168echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
6169echo "${ECHO_T}$ac_cv_search_login" >&6
6170if test "$ac_cv_search_login" != no; then
6171 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6172 cat >>confdefs.h <<\_ACEOF
6173#define HAVE_LOGIN 1
6174_ACEOF
6175
6176fi
6177
6178
6179
6180
6181for ac_func in logout updwtmp logwtmp
6182do
6183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6184echo "$as_me:$LINENO: checking for $ac_func" >&5
6185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6186if eval "test \"\${$as_ac_var+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189 cat >conftest.$ac_ext <<_ACEOF
6190#line $LINENO "configure"
6191#include "confdefs.h"
6192/* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func (); below. */
6194#include <assert.h>
6195/* Override any gcc2 internal prototype to avoid an error. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199/* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201char $ac_func ();
6202char (*f) ();
6203
6204#ifdef F77_DUMMY_MAIN
6205# ifdef __cplusplus
6206 extern "C"
6207# endif
6208 int F77_DUMMY_MAIN() { return 1; }
6209#endif
6210int
6211main ()
6212{
6213/* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217choke me
6218#else
6219f = $ac_func;
6220#endif
6221
6222 ;
6223 return 0;
6224}
6225_ACEOF
6226rm -f conftest.$ac_objext conftest$ac_exeext
6227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 eval "$as_ac_var=yes"
6239else
6240 echo "$as_me: failed program was:" >&5
6241cat conftest.$ac_ext >&5
6242eval "$as_ac_var=no"
6243fi
6244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6245fi
6246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6248if test `eval echo '${'$as_ac_var'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6251_ACEOF
6252
6253fi
6254done
6255
6256
6257
6258for ac_func in strftime
6259do
6260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261echo "$as_me:$LINENO: checking for $ac_func" >&5
6262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6263if eval "test \"\${$as_ac_var+set}\" = set"; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 cat >conftest.$ac_ext <<_ACEOF
6267#line $LINENO "configure"
6268#include "confdefs.h"
6269/* System header to define __stub macros and hopefully few prototypes,
6270 which can conflict with char $ac_func (); below. */
6271#include <assert.h>
6272/* Override any gcc2 internal prototype to avoid an error. */
6273#ifdef __cplusplus
6274extern "C"
6275#endif
6276/* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6278char $ac_func ();
6279char (*f) ();
6280
6281#ifdef F77_DUMMY_MAIN
6282# ifdef __cplusplus
6283 extern "C"
6284# endif
6285 int F77_DUMMY_MAIN() { return 1; }
6286#endif
6287int
6288main ()
6289{
6290/* The GNU C library defines this for functions which it implements
6291 to always fail with ENOSYS. Some functions are actually named
6292 something starting with __ and the normal name is an alias. */
6293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294choke me
6295#else
6296f = $ac_func;
6297#endif
6298
6299 ;
6300 return 0;
6301}
6302_ACEOF
6303rm -f conftest.$ac_objext conftest$ac_exeext
6304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 eval "$as_ac_var=yes"
6316else
6317 echo "$as_me: failed program was:" >&5
6318cat conftest.$ac_ext >&5
6319eval "$as_ac_var=no"
6320fi
6321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322fi
6323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6325if test `eval echo '${'$as_ac_var'}'` = yes; then
6326 cat >>confdefs.h <<_ACEOF
6327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6328_ACEOF
6329
6330else
6331 # strftime is in -lintl on SCO UNIX.
6332echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6333echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6334if test "${ac_cv_lib_intl_strftime+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 ac_check_lib_save_LIBS=$LIBS
6338LIBS="-lintl $LIBS"
6339cat >conftest.$ac_ext <<_ACEOF
6340#line $LINENO "configure"
6341#include "confdefs.h"
6342
6343/* Override any gcc2 internal prototype to avoid an error. */
6344#ifdef __cplusplus
6345extern "C"
6346#endif
6347/* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349char strftime ();
6350#ifdef F77_DUMMY_MAIN
6351# ifdef __cplusplus
6352 extern "C"
6353# endif
6354 int F77_DUMMY_MAIN() { return 1; }
6355#endif
6356int
6357main ()
6358{
6359strftime ();
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext conftest$ac_exeext
6365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_lib_intl_strftime=yes
6377else
6378 echo "$as_me: failed program was:" >&5
6379cat conftest.$ac_ext >&5
6380ac_cv_lib_intl_strftime=no
6381fi
6382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_check_lib_save_LIBS
6384fi
6385echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6386echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6387if test $ac_cv_lib_intl_strftime = yes; then
6388 cat >>confdefs.h <<\_ACEOF
6389#define HAVE_STRFTIME 1
6390_ACEOF
6391
6392LIBS="-lintl $LIBS"
6393fi
6394
6395fi
6396done
6397
6398
6399# Check for ALTDIRFUNC glob() extension
6400echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6401echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6402cat >conftest.$ac_ext <<_ACEOF
6403#line $LINENO "configure"
6404#include "confdefs.h"
6405
6406 #include <glob.h>
6407 #ifdef GLOB_ALTDIRFUNC
6408 FOUNDIT
6409 #endif
6410
6411_ACEOF
6412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 egrep "FOUNDIT" >/dev/null 2>&1; then
6414
6415 cat >>confdefs.h <<\_ACEOF
6416#define GLOB_HAS_ALTDIRFUNC 1
6417_ACEOF
6418
6419 echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
6421
6422else
6423
6424 echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426
6427
6428fi
6429rm -f conftest*
6430
6431
6432# Check for g.gl_matchc glob() extension
6433echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6434echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436#line $LINENO "configure"
6437#include "confdefs.h"
6438
6439 #include <glob.h>
6440 int main(void){glob_t g; g.gl_matchc = 1;}
6441
6442_ACEOF
6443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 egrep "FOUNDIT" >/dev/null 2>&1; then
6445
6446 cat >>confdefs.h <<\_ACEOF
6447#define GLOB_HAS_GL_MATCHC 1
6448_ACEOF
6449
6450 echo "$as_me:$LINENO: result: yes" >&5
6451echo "${ECHO_T}yes" >&6
6452
6453else
6454
6455 echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6
6457
6458
6459fi
6460rm -f conftest*
6461
6462
6463echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6464echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6465if test "$cross_compiling" = yes; then
6466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6467echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6468 { (exit 1); exit 1; }; }
6469else
6470 cat >conftest.$ac_ext <<_ACEOF
6471#line $LINENO "configure"
6472#include "confdefs.h"
6473
6474#include <sys/types.h>
6475#include <dirent.h>
6476int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6477
6478_ACEOF
6479rm -f conftest$ac_exeext
6480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6
6492else
6493 echo "$as_me: program exited with status $ac_status" >&5
6494echo "$as_me: failed program was:" >&5
6495cat conftest.$ac_ext >&5
6496( exit $ac_status )
6497
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
6500 cat >>confdefs.h <<\_ACEOF
6501#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6502_ACEOF
6503
6504
6505
6506fi
6507rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508fi
6509
6510# Check whether user wants S/Key support
6511SKEY_MSG="no"
6512
6513# Check whether --with-skey or --without-skey was given.
6514if test "${with_skey+set}" = set; then
6515 withval="$with_skey"
6516
6517 if test "x$withval" != "xno" ; then
6518
6519 if test "x$withval" != "xyes" ; then
6520 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6521 LDFLAGS="$LDFLAGS -L${withval}/lib"
6522 fi
6523
6524 cat >>confdefs.h <<\_ACEOF
6525#define SKEY 1
6526_ACEOF
6527
6528 LIBS="-lskey $LIBS"
6529 SKEY_MSG="yes"
6530
6531 echo "$as_me:$LINENO: checking for s/key support" >&5
6532echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6535echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6536 { (exit 1); exit 1; }; }
6537else
6538 cat >conftest.$ac_ext <<_ACEOF
6539#line $LINENO "configure"
6540#include "confdefs.h"
6541
6542#include <stdio.h>
6543#include <skey.h>
6544int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6545
6546_ACEOF
6547rm -f conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 echo "$as_me:$LINENO: result: yes" >&5
6559echo "${ECHO_T}yes" >&6
6560else
6561 echo "$as_me: program exited with status $ac_status" >&5
6562echo "$as_me: failed program was:" >&5
6563cat conftest.$ac_ext >&5
6564( exit $ac_status )
6565
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6569echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6570 { (exit 1); exit 1; }; }
6571
6572fi
6573rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6574fi
6575 fi
6576
6577
6578fi;
6579
6580# Check whether user wants TCP wrappers support
6581TCPW_MSG="no"
6582
6583# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6584if test "${with_tcp_wrappers+set}" = set; then
6585 withval="$with_tcp_wrappers"
6586
6587 if test "x$withval" != "xno" ; then
6588 saved_LIBS="$LIBS"
6589 saved_LDFLAGS="$LDFLAGS"
6590 saved_CPPFLAGS="$CPPFLAGS"
6591 if test -n "${withval}" -a "${withval}" != "yes"; then
6592 if test -d "${withval}/lib"; then
6593 if test -n "${need_dash_r}"; then
6594 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6595 else
6596 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6597 fi
6598 else
6599 if test -n "${need_dash_r}"; then
6600 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6601 else
6602 LDFLAGS="-L${withval} ${LDFLAGS}"
6603 fi
6604 fi
6605 if test -d "${withval}/include"; then
6606 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6607 else
6608 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6609 fi
6610 fi
6611 LIBWRAP="-lwrap"
6612 LIBS="$LIBWRAP $LIBS"
6613 echo "$as_me:$LINENO: checking for libwrap" >&5
6614echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616#line $LINENO "configure"
6617#include "confdefs.h"
6618
6619#include <tcpd.h>
6620 int deny_severity = 0, allow_severity = 0;
6621
6622#ifdef F77_DUMMY_MAIN
6623# ifdef __cplusplus
6624 extern "C"
6625# endif
6626 int F77_DUMMY_MAIN() { return 1; }
6627#endif
6628int
6629main ()
6630{
6631hosts_access(0);
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext conftest$ac_exeext
6637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648
6649 echo "$as_me:$LINENO: result: yes" >&5
6650echo "${ECHO_T}yes" >&6
6651 cat >>confdefs.h <<\_ACEOF
6652#define LIBWRAP 1
6653_ACEOF
6654
6655
6656 TCPW_MSG="yes"
6657
6658else
6659 echo "$as_me: failed program was:" >&5
6660cat conftest.$ac_ext >&5
6661
6662 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6663echo "$as_me: error: *** libwrap missing" >&2;}
6664 { (exit 1); exit 1; }; }
6665
6666
6667fi
6668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669 LIBS="$saved_LIBS"
6670 fi
6671
6672
6673fi;
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6744 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6745 getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\
6746 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6747 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6748 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6749 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
6750 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
6751 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
6752 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
6753 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty
6754do
6755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756echo "$as_me:$LINENO: checking for $ac_func" >&5
6757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758if eval "test \"\${$as_ac_var+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762#line $LINENO "configure"
6763#include "confdefs.h"
6764/* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func (); below. */
6766#include <assert.h>
6767/* Override any gcc2 internal prototype to avoid an error. */
6768#ifdef __cplusplus
6769extern "C"
6770#endif
6771/* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6773char $ac_func ();
6774char (*f) ();
6775
6776#ifdef F77_DUMMY_MAIN
6777# ifdef __cplusplus
6778 extern "C"
6779# endif
6780 int F77_DUMMY_MAIN() { return 1; }
6781#endif
6782int
6783main ()
6784{
6785/* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6789choke me
6790#else
6791f = $ac_func;
6792#endif
6793
6794 ;
6795 return 0;
6796}
6797_ACEOF
6798rm -f conftest.$ac_objext conftest$ac_exeext
6799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 eval "$as_ac_var=yes"
6811else
6812 echo "$as_me: failed program was:" >&5
6813cat conftest.$ac_ext >&5
6814eval "$as_ac_var=no"
6815fi
6816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817fi
6818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6820if test `eval echo '${'$as_ac_var'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6823_ACEOF
6824
6825fi
6826done
6827
6828
6829
6830for ac_func in dirname
6831do
6832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833echo "$as_me:$LINENO: checking for $ac_func" >&5
6834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 cat >conftest.$ac_ext <<_ACEOF
6839#line $LINENO "configure"
6840#include "confdefs.h"
6841/* System header to define __stub macros and hopefully few prototypes,
6842 which can conflict with char $ac_func (); below. */
6843#include <assert.h>
6844/* Override any gcc2 internal prototype to avoid an error. */
6845#ifdef __cplusplus
6846extern "C"
6847#endif
6848/* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6850char $ac_func ();
6851char (*f) ();
6852
6853#ifdef F77_DUMMY_MAIN
6854# ifdef __cplusplus
6855 extern "C"
6856# endif
6857 int F77_DUMMY_MAIN() { return 1; }
6858#endif
6859int
6860main ()
6861{
6862/* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866choke me
6867#else
6868f = $ac_func;
6869#endif
6870
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6888else
6889 echo "$as_me: failed program was:" >&5
6890cat conftest.$ac_ext >&5
6891eval "$as_ac_var=no"
6892fi
6893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6894fi
6895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6897if test `eval echo '${'$as_ac_var'}'` = yes; then
6898 cat >>confdefs.h <<_ACEOF
6899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6900_ACEOF
6901
6902for ac_header in libgen.h
6903do
6904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6905if eval "test \"\${$as_ac_Header+set}\" = set"; then
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910fi
6911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6913else
6914 # Is the header compilable?
6915echo "$as_me:$LINENO: checking $ac_header usability" >&5
6916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6917cat >conftest.$ac_ext <<_ACEOF
6918#line $LINENO "configure"
6919#include "confdefs.h"
6920$ac_includes_default
6921#include <$ac_header>
6922_ACEOF
6923rm -f conftest.$ac_objext
6924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_header_compiler=yes
6936else
6937 echo "$as_me: failed program was:" >&5
6938cat conftest.$ac_ext >&5
6939ac_header_compiler=no
6940fi
6941rm -f conftest.$ac_objext conftest.$ac_ext
6942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6943echo "${ECHO_T}$ac_header_compiler" >&6
6944
6945# Is the header present?
6946echo "$as_me:$LINENO: checking $ac_header presence" >&5
6947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6948cat >conftest.$ac_ext <<_ACEOF
6949#line $LINENO "configure"
6950#include "confdefs.h"
6951#include <$ac_header>
6952_ACEOF
6953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6955 ac_status=$?
6956 egrep -v '^ *\+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } >/dev/null; then
6961 if test -s conftest.err; then
6962 ac_cpp_err=$ac_c_preproc_warn_flag
6963 else
6964 ac_cpp_err=
6965 fi
6966else
6967 ac_cpp_err=yes
6968fi
6969if test -z "$ac_cpp_err"; then
6970 ac_header_preproc=yes
6971else
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 ac_header_preproc=no
6975fi
6976rm -f conftest.err conftest.$ac_ext
6977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978echo "${ECHO_T}$ac_header_preproc" >&6
6979
6980# So? What about this header?
6981case $ac_header_compiler:$ac_header_preproc in
6982 yes:no )
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6987 no:yes )
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6994esac
6995echo "$as_me:$LINENO: checking for $ac_header" >&5
6996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 eval "$as_ac_Header=$ac_header_preproc"
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004
7005fi
7006if test `eval echo '${'$as_ac_Header'}'` = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009_ACEOF
7010
7011fi
7012
7013done
7014
7015else
7016
7017 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7018echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7019if test "${ac_cv_lib_gen_dirname+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 ac_check_lib_save_LIBS=$LIBS
7023LIBS="-lgen $LIBS"
7024cat >conftest.$ac_ext <<_ACEOF
7025#line $LINENO "configure"
7026#include "confdefs.h"
7027
7028/* Override any gcc2 internal prototype to avoid an error. */
7029#ifdef __cplusplus
7030extern "C"
7031#endif
7032/* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034char dirname ();
7035#ifdef F77_DUMMY_MAIN
7036# ifdef __cplusplus
7037 extern "C"
7038# endif
7039 int F77_DUMMY_MAIN() { return 1; }
7040#endif
7041int
7042main ()
7043{
7044dirname ();
7045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext conftest$ac_exeext
7050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_gen_dirname=yes
7062else
7063 echo "$as_me: failed program was:" >&5
7064cat conftest.$ac_ext >&5
7065ac_cv_lib_gen_dirname=no
7066fi
7067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7068LIBS=$ac_check_lib_save_LIBS
7069fi
7070echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7071echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7072if test $ac_cv_lib_gen_dirname = yes; then
7073
7074 echo "$as_me:$LINENO: checking for broken dirname" >&5
7075echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7076if test "${ac_cv_have_broken_dirname+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079
7080 save_LIBS="$LIBS"
7081 LIBS="$LIBS -lgen"
7082 if test "$cross_compiling" = yes; then
7083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7084echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7085 { (exit 1); exit 1; }; }
7086else
7087 cat >conftest.$ac_ext <<_ACEOF
7088#line $LINENO "configure"
7089#include "confdefs.h"
7090
7091#include <libgen.h>
7092#include <string.h>
7093
7094int main(int argc, char **argv) {
7095 char *s, buf[32];
7096
7097 strncpy(buf,"/etc", 32);
7098 s = dirname(buf);
7099 if (!s || strncmp(s, "/", 32) != 0) {
7100 exit(1);
7101 } else {
7102 exit(0);
7103 }
7104}
7105
7106_ACEOF
7107rm -f conftest$ac_exeext
7108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_have_broken_dirname="no"
7119else
7120 echo "$as_me: program exited with status $ac_status" >&5
7121echo "$as_me: failed program was:" >&5
7122cat conftest.$ac_ext >&5
7123( exit $ac_status )
7124 ac_cv_have_broken_dirname="yes"
7125
7126fi
7127rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7128fi
7129 LIBS="$save_LIBS"
7130
7131fi
7132echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7133echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7134 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7135 LIBS="$LIBS -lgen"
7136 cat >>confdefs.h <<\_ACEOF
7137#define HAVE_DIRNAME 1
7138_ACEOF
7139
7140
7141for ac_header in libgen.h
7142do
7143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo "$as_me:$LINENO: checking for $ac_header" >&5
7146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7147if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149fi
7150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7152else
7153 # Is the header compilable?
7154echo "$as_me:$LINENO: checking $ac_header usability" >&5
7155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7156cat >conftest.$ac_ext <<_ACEOF
7157#line $LINENO "configure"
7158#include "confdefs.h"
7159$ac_includes_default
7160#include <$ac_header>
7161_ACEOF
7162rm -f conftest.$ac_objext
7163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_header_compiler=yes
7175else
7176 echo "$as_me: failed program was:" >&5
7177cat conftest.$ac_ext >&5
7178ac_header_compiler=no
7179fi
7180rm -f conftest.$ac_objext conftest.$ac_ext
7181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182echo "${ECHO_T}$ac_header_compiler" >&6
7183
7184# Is the header present?
7185echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187cat >conftest.$ac_ext <<_ACEOF
7188#line $LINENO "configure"
7189#include "confdefs.h"
7190#include <$ac_header>
7191_ACEOF
7192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194 ac_status=$?
7195 egrep -v '^ *\+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } >/dev/null; then
7200 if test -s conftest.err; then
7201 ac_cpp_err=$ac_c_preproc_warn_flag
7202 else
7203 ac_cpp_err=
7204 fi
7205else
7206 ac_cpp_err=yes
7207fi
7208if test -z "$ac_cpp_err"; then
7209 ac_header_preproc=yes
7210else
7211 echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 ac_header_preproc=no
7214fi
7215rm -f conftest.err conftest.$ac_ext
7216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7217echo "${ECHO_T}$ac_header_preproc" >&6
7218
7219# So? What about this header?
7220case $ac_header_compiler:$ac_header_preproc in
7221 yes:no )
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7226 no:yes )
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7233esac
7234echo "$as_me:$LINENO: checking for $ac_header" >&5
7235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7236if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 eval "$as_ac_Header=$ac_header_preproc"
7240fi
7241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243
7244fi
7245if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248_ACEOF
7249
7250fi
7251
7252done
7253
7254 fi
7255
7256fi
7257
7258
7259fi
7260done
7261
7262
7263
7264
7265for ac_func in gettimeofday time
7266do
7267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7268echo "$as_me:$LINENO: checking for $ac_func" >&5
7269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7270if eval "test \"\${$as_ac_var+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 cat >conftest.$ac_ext <<_ACEOF
7274#line $LINENO "configure"
7275#include "confdefs.h"
7276/* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func (); below. */
7278#include <assert.h>
7279/* Override any gcc2 internal prototype to avoid an error. */
7280#ifdef __cplusplus
7281extern "C"
7282#endif
7283/* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7285char $ac_func ();
7286char (*f) ();
7287
7288#ifdef F77_DUMMY_MAIN
7289# ifdef __cplusplus
7290 extern "C"
7291# endif
7292 int F77_DUMMY_MAIN() { return 1; }
7293#endif
7294int
7295main ()
7296{
7297/* The GNU C library defines this for functions which it implements
7298 to always fail with ENOSYS. Some functions are actually named
7299 something starting with __ and the normal name is an alias. */
7300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7301choke me
7302#else
7303f = $ac_func;
7304#endif
7305
7306 ;
7307 return 0;
7308}
7309_ACEOF
7310rm -f conftest.$ac_objext conftest$ac_exeext
7311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_var=yes"
7323else
7324 echo "$as_me: failed program was:" >&5
7325cat conftest.$ac_ext >&5
7326eval "$as_ac_var=no"
7327fi
7328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7329fi
7330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7332if test `eval echo '${'$as_ac_var'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7335_ACEOF
7336
7337fi
7338done
7339
7340
7341
7342
7343
7344
7345
7346for ac_func in endutent getutent getutid getutline pututline setutent
7347do
7348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7349echo "$as_me:$LINENO: checking for $ac_func" >&5
7350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7351if eval "test \"\${$as_ac_var+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 cat >conftest.$ac_ext <<_ACEOF
7355#line $LINENO "configure"
7356#include "confdefs.h"
7357/* System header to define __stub macros and hopefully few prototypes,
7358 which can conflict with char $ac_func (); below. */
7359#include <assert.h>
7360/* Override any gcc2 internal prototype to avoid an error. */
7361#ifdef __cplusplus
7362extern "C"
7363#endif
7364/* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366char $ac_func ();
7367char (*f) ();
7368
7369#ifdef F77_DUMMY_MAIN
7370# ifdef __cplusplus
7371 extern "C"
7372# endif
7373 int F77_DUMMY_MAIN() { return 1; }
7374#endif
7375int
7376main ()
7377{
7378/* The GNU C library defines this for functions which it implements
7379 to always fail with ENOSYS. Some functions are actually named
7380 something starting with __ and the normal name is an alias. */
7381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7382choke me
7383#else
7384f = $ac_func;
7385#endif
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext conftest$ac_exeext
7392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 eval "$as_ac_var=yes"
7404else
7405 echo "$as_me: failed program was:" >&5
7406cat conftest.$ac_ext >&5
7407eval "$as_ac_var=no"
7408fi
7409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410fi
7411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7413if test `eval echo '${'$as_ac_var'}'` = yes; then
7414 cat >>confdefs.h <<_ACEOF
7415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7416_ACEOF
7417
7418fi
7419done
7420
7421
7422for ac_func in utmpname
7423do
7424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7425echo "$as_me:$LINENO: checking for $ac_func" >&5
7426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7427if eval "test \"\${$as_ac_var+set}\" = set"; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 cat >conftest.$ac_ext <<_ACEOF
7431#line $LINENO "configure"
7432#include "confdefs.h"
7433/* System header to define __stub macros and hopefully few prototypes,
7434 which can conflict with char $ac_func (); below. */
7435#include <assert.h>
7436/* Override any gcc2 internal prototype to avoid an error. */
7437#ifdef __cplusplus
7438extern "C"
7439#endif
7440/* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7442char $ac_func ();
7443char (*f) ();
7444
7445#ifdef F77_DUMMY_MAIN
7446# ifdef __cplusplus
7447 extern "C"
7448# endif
7449 int F77_DUMMY_MAIN() { return 1; }
7450#endif
7451int
7452main ()
7453{
7454/* The GNU C library defines this for functions which it implements
7455 to always fail with ENOSYS. Some functions are actually named
7456 something starting with __ and the normal name is an alias. */
7457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7458choke me
7459#else
7460f = $ac_func;
7461#endif
7462
7463 ;
7464 return 0;
7465}
7466_ACEOF
7467rm -f conftest.$ac_objext conftest$ac_exeext
7468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469 (eval $ac_link) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -s conftest$ac_exeext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 eval "$as_ac_var=yes"
7480else
7481 echo "$as_me: failed program was:" >&5
7482cat conftest.$ac_ext >&5
7483eval "$as_ac_var=no"
7484fi
7485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486fi
7487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7489if test `eval echo '${'$as_ac_var'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7492_ACEOF
7493
7494fi
7495done
7496
7497
7498
7499
7500
7501
7502for ac_func in endutxent getutxent getutxid getutxline pututxline
7503do
7504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7505echo "$as_me:$LINENO: checking for $ac_func" >&5
7506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7507if eval "test \"\${$as_ac_var+set}\" = set"; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 cat >conftest.$ac_ext <<_ACEOF
7511#line $LINENO "configure"
7512#include "confdefs.h"
7513/* System header to define __stub macros and hopefully few prototypes,
7514 which can conflict with char $ac_func (); below. */
7515#include <assert.h>
7516/* Override any gcc2 internal prototype to avoid an error. */
7517#ifdef __cplusplus
7518extern "C"
7519#endif
7520/* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7522char $ac_func ();
7523char (*f) ();
7524
7525#ifdef F77_DUMMY_MAIN
7526# ifdef __cplusplus
7527 extern "C"
7528# endif
7529 int F77_DUMMY_MAIN() { return 1; }
7530#endif
7531int
7532main ()
7533{
7534/* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7538choke me
7539#else
7540f = $ac_func;
7541#endif
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
7547rm -f conftest.$ac_objext conftest$ac_exeext
7548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 eval "$as_ac_var=yes"
7560else
7561 echo "$as_me: failed program was:" >&5
7562cat conftest.$ac_ext >&5
7563eval "$as_ac_var=no"
7564fi
7565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7566fi
7567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7569if test `eval echo '${'$as_ac_var'}'` = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7572_ACEOF
7573
7574fi
7575done
7576
7577
7578
7579for ac_func in setutxent utmpxname
7580do
7581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7582echo "$as_me:$LINENO: checking for $ac_func" >&5
7583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7584if eval "test \"\${$as_ac_var+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 cat >conftest.$ac_ext <<_ACEOF
7588#line $LINENO "configure"
7589#include "confdefs.h"
7590/* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func (); below. */
7592#include <assert.h>
7593/* Override any gcc2 internal prototype to avoid an error. */
7594#ifdef __cplusplus
7595extern "C"
7596#endif
7597/* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599char $ac_func ();
7600char (*f) ();
7601
7602#ifdef F77_DUMMY_MAIN
7603# ifdef __cplusplus
7604 extern "C"
7605# endif
7606 int F77_DUMMY_MAIN() { return 1; }
7607#endif
7608int
7609main ()
7610{
7611/* The GNU C library defines this for functions which it implements
7612 to always fail with ENOSYS. Some functions are actually named
7613 something starting with __ and the normal name is an alias. */
7614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7615choke me
7616#else
7617f = $ac_func;
7618#endif
7619
7620 ;
7621 return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext conftest$ac_exeext
7625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 eval "$as_ac_var=yes"
7637else
7638 echo "$as_me: failed program was:" >&5
7639cat conftest.$ac_ext >&5
7640eval "$as_ac_var=no"
7641fi
7642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643fi
7644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7646if test `eval echo '${'$as_ac_var'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652done
7653
7654
7655echo "$as_me:$LINENO: checking for daemon" >&5
7656echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7657if test "${ac_cv_func_daemon+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 cat >conftest.$ac_ext <<_ACEOF
7661#line $LINENO "configure"
7662#include "confdefs.h"
7663/* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char daemon (); below. */
7665#include <assert.h>
7666/* Override any gcc2 internal prototype to avoid an error. */
7667#ifdef __cplusplus
7668extern "C"
7669#endif
7670/* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672char daemon ();
7673char (*f) ();
7674
7675#ifdef F77_DUMMY_MAIN
7676# ifdef __cplusplus
7677 extern "C"
7678# endif
7679 int F77_DUMMY_MAIN() { return 1; }
7680#endif
7681int
7682main ()
7683{
7684/* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687#if defined (__stub_daemon) || defined (__stub___daemon)
7688choke me
7689#else
7690f = daemon;
7691#endif
7692
7693 ;
7694 return 0;
7695}
7696_ACEOF
7697rm -f conftest.$ac_objext conftest$ac_exeext
7698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_func_daemon=yes
7710else
7711 echo "$as_me: failed program was:" >&5
7712cat conftest.$ac_ext >&5
7713ac_cv_func_daemon=no
7714fi
7715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7716fi
7717echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7718echo "${ECHO_T}$ac_cv_func_daemon" >&6
7719if test $ac_cv_func_daemon = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721#define HAVE_DAEMON 1
7722_ACEOF
7723
7724else
7725 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7726echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7727if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 ac_check_lib_save_LIBS=$LIBS
7731LIBS="-lbsd $LIBS"
7732cat >conftest.$ac_ext <<_ACEOF
7733#line $LINENO "configure"
7734#include "confdefs.h"
7735
7736/* Override any gcc2 internal prototype to avoid an error. */
7737#ifdef __cplusplus
7738extern "C"
7739#endif
7740/* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742char daemon ();
7743#ifdef F77_DUMMY_MAIN
7744# ifdef __cplusplus
7745 extern "C"
7746# endif
7747 int F77_DUMMY_MAIN() { return 1; }
7748#endif
7749int
7750main ()
7751{
7752daemon ();
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_lib_bsd_daemon=yes
7770else
7771 echo "$as_me: failed program was:" >&5
7772cat conftest.$ac_ext >&5
7773ac_cv_lib_bsd_daemon=no
7774fi
7775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776LIBS=$ac_check_lib_save_LIBS
7777fi
7778echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7779echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7780if test $ac_cv_lib_bsd_daemon = yes; then
7781 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7782#define HAVE_DAEMON 1
7783_ACEOF
7784
7785fi
7786
7787
7788fi
7789
7790
7791echo "$as_me:$LINENO: checking for getpagesize" >&5
7792echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7793if test "${ac_cv_func_getpagesize+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 cat >conftest.$ac_ext <<_ACEOF
7797#line $LINENO "configure"
7798#include "confdefs.h"
7799/* System header to define __stub macros and hopefully few prototypes,
7800 which can conflict with char getpagesize (); below. */
7801#include <assert.h>
7802/* Override any gcc2 internal prototype to avoid an error. */
7803#ifdef __cplusplus
7804extern "C"
7805#endif
7806/* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808char getpagesize ();
7809char (*f) ();
7810
7811#ifdef F77_DUMMY_MAIN
7812# ifdef __cplusplus
7813 extern "C"
7814# endif
7815 int F77_DUMMY_MAIN() { return 1; }
7816#endif
7817int
7818main ()
7819{
7820/* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7824choke me
7825#else
7826f = getpagesize;
7827#endif
7828
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_getpagesize=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848cat conftest.$ac_ext >&5
7849ac_cv_func_getpagesize=no
7850fi
7851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852fi
7853echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7854echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7855if test $ac_cv_func_getpagesize = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7857#define HAVE_GETPAGESIZE 1
7858_ACEOF
7859
7860else
7861 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7862echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7863if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 ac_check_lib_save_LIBS=$LIBS
7867LIBS="-lucb $LIBS"
7868cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
7870#include "confdefs.h"
7871
7872/* Override any gcc2 internal prototype to avoid an error. */
7873#ifdef __cplusplus
7874extern "C"
7875#endif
7876/* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7878char getpagesize ();
7879#ifdef F77_DUMMY_MAIN
7880# ifdef __cplusplus
7881 extern "C"
7882# endif
7883 int F77_DUMMY_MAIN() { return 1; }
7884#endif
7885int
7886main ()
7887{
7888getpagesize ();
7889 ;
7890 return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext conftest$ac_exeext
7894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_ucb_getpagesize=yes
7906else
7907 echo "$as_me: failed program was:" >&5
7908cat conftest.$ac_ext >&5
7909ac_cv_lib_ucb_getpagesize=no
7910fi
7911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912LIBS=$ac_check_lib_save_LIBS
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7915echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7916if test $ac_cv_lib_ucb_getpagesize = yes; then
7917 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7918#define HAVE_GETPAGESIZE 1
7919_ACEOF
7920
7921fi
7922
7923
7924fi
7925
7926
7927# Check for broken snprintf
7928if test "x$ac_cv_func_snprintf" = "xyes" ; then
7929 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7930echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7931 if test "$cross_compiling" = yes; then
7932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7933echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7934 { (exit 1); exit 1; }; }
7935else
7936 cat >conftest.$ac_ext <<_ACEOF
7937#line $LINENO "configure"
7938#include "confdefs.h"
7939
7940#include <stdio.h>
7941int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
7942
7943_ACEOF
7944rm -f conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
7957else
7958 echo "$as_me: program exited with status $ac_status" >&5
7959echo "$as_me: failed program was:" >&5
7960cat conftest.$ac_ext >&5
7961( exit $ac_status )
7962
7963 echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6
7965 cat >>confdefs.h <<\_ACEOF
7966#define BROKEN_SNPRINTF 1
7967_ACEOF
7968
7969 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7970echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7971
7972
7973fi
7974rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975fi
7976fi
7977
7978echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7979echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7980if test "${ac_cv_func_getpgrp_void+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 # Use it with a single arg.
7984cat >conftest.$ac_ext <<_ACEOF
7985#line $LINENO "configure"
7986#include "confdefs.h"
7987$ac_includes_default
7988#ifdef F77_DUMMY_MAIN
7989# ifdef __cplusplus
7990 extern "C"
7991# endif
7992 int F77_DUMMY_MAIN() { return 1; }
7993#endif
7994int
7995main ()
7996{
7997getpgrp (0);
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
8003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_func_getpgrp_void=no
8015else
8016 echo "$as_me: failed program was:" >&5
8017cat conftest.$ac_ext >&5
8018ac_cv_func_getpgrp_void=yes
8019fi
8020rm -f conftest.$ac_objext conftest.$ac_ext
8021
8022fi
8023echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8024echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8025if test $ac_cv_func_getpgrp_void = yes; then
8026
8027cat >>confdefs.h <<\_ACEOF
8028#define GETPGRP_VOID 1
8029_ACEOF
8030
8031fi
8032
8033
8034# Check for PAM libs
8035PAM_MSG="no"
8036
8037# Check whether --with-pam or --without-pam was given.
8038if test "${with_pam+set}" = set; then
8039 withval="$with_pam"
8040
8041 if test "x$withval" != "xno" ; then
8042 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
8043 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
8044echo "$as_me: error: PAM headers not found" >&2;}
8045 { (exit 1); exit 1; }; }
8046 fi
8047
8048
8049echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8051if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 ac_check_lib_save_LIBS=$LIBS
8055LIBS="-ldl $LIBS"
8056cat >conftest.$ac_ext <<_ACEOF
8057#line $LINENO "configure"
8058#include "confdefs.h"
8059
8060/* Override any gcc2 internal prototype to avoid an error. */
8061#ifdef __cplusplus
8062extern "C"
8063#endif
8064/* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8066char dlopen ();
8067#ifdef F77_DUMMY_MAIN
8068# ifdef __cplusplus
8069 extern "C"
8070# endif
8071 int F77_DUMMY_MAIN() { return 1; }
8072#endif
8073int
8074main ()
8075{
8076dlopen ();
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext conftest$ac_exeext
8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_dl_dlopen=yes
8094else
8095 echo "$as_me: failed program was:" >&5
8096cat conftest.$ac_ext >&5
8097ac_cv_lib_dl_dlopen=no
8098fi
8099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100LIBS=$ac_check_lib_save_LIBS
8101fi
8102echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8103echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8104if test $ac_cv_lib_dl_dlopen = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106#define HAVE_LIBDL 1
8107_ACEOF
8108
8109 LIBS="-ldl $LIBS"
8110
8111fi
8112
8113
8114echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
8115echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8116if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 ac_check_lib_save_LIBS=$LIBS
8120LIBS="-lpam $LIBS"
8121cat >conftest.$ac_ext <<_ACEOF
8122#line $LINENO "configure"
8123#include "confdefs.h"
8124
8125/* Override any gcc2 internal prototype to avoid an error. */
8126#ifdef __cplusplus
8127extern "C"
8128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char pam_set_item ();
8132#ifdef F77_DUMMY_MAIN
8133# ifdef __cplusplus
8134 extern "C"
8135# endif
8136 int F77_DUMMY_MAIN() { return 1; }
8137#endif
8138int
8139main ()
8140{
8141pam_set_item ();
8142 ;
8143 return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext conftest$ac_exeext
8147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_lib_pam_pam_set_item=yes
8159else
8160 echo "$as_me: failed program was:" >&5
8161cat conftest.$ac_ext >&5
8162ac_cv_lib_pam_pam_set_item=no
8163fi
8164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8165LIBS=$ac_check_lib_save_LIBS
8166fi
8167echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
8168echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8169if test $ac_cv_lib_pam_pam_set_item = yes; then
8170 cat >>confdefs.h <<_ACEOF
8171#define HAVE_LIBPAM 1
8172_ACEOF
8173
8174 LIBS="-lpam $LIBS"
8175
8176else
8177 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8178echo "$as_me: error: *** libpam missing" >&2;}
8179 { (exit 1); exit 1; }; }
8180fi
8181
8182
8183for ac_func in pam_getenvlist
8184do
8185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186echo "$as_me:$LINENO: checking for $ac_func" >&5
8187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8188if eval "test \"\${$as_ac_var+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 cat >conftest.$ac_ext <<_ACEOF
8192#line $LINENO "configure"
8193#include "confdefs.h"
8194/* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func (); below. */
8196#include <assert.h>
8197/* Override any gcc2 internal prototype to avoid an error. */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201/* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203char $ac_func ();
8204char (*f) ();
8205
8206#ifdef F77_DUMMY_MAIN
8207# ifdef __cplusplus
8208 extern "C"
8209# endif
8210 int F77_DUMMY_MAIN() { return 1; }
8211#endif
8212int
8213main ()
8214{
8215/* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8219choke me
8220#else
8221f = $ac_func;
8222#endif
8223
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 eval "$as_ac_var=yes"
8241else
8242 echo "$as_me: failed program was:" >&5
8243cat conftest.$ac_ext >&5
8244eval "$as_ac_var=no"
8245fi
8246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247fi
8248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8250if test `eval echo '${'$as_ac_var'}'` = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8253_ACEOF
8254
8255fi
8256done
8257
8258
8259 disable_shadow=yes
8260 PAM_MSG="yes"
8261
8262 cat >>confdefs.h <<\_ACEOF
8263#define USE_PAM 1
8264_ACEOF
8265
8266 if test $ac_cv_lib_dl_dlopen = yes; then
8267 LIBPAM="-lpam -ldl"
8268 else
8269 LIBPAM="-lpam"
8270 fi
8271
8272 fi
8273
8274
8275fi;
8276
8277# Check for older PAM
8278if test "x$PAM_MSG" = "xyes" ; then
8279 # Check PAM strerror arguments (old PAM)
8280 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8281echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8283#line $LINENO "configure"
8284#include "confdefs.h"
8285
8286#include <stdlib.h>
8287#include <security/pam_appl.h>
8288
8289#ifdef F77_DUMMY_MAIN
8290# ifdef __cplusplus
8291 extern "C"
8292# endif
8293 int F77_DUMMY_MAIN() { return 1; }
8294#endif
8295int
8296main ()
8297{
8298(void)pam_strerror((pam_handle_t *)NULL, -1);
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext
8304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317else
8318 echo "$as_me: failed program was:" >&5
8319cat conftest.$ac_ext >&5
8320
8321 cat >>confdefs.h <<\_ACEOF
8322#define HAVE_OLD_PAM 1
8323_ACEOF
8324
8325 echo "$as_me:$LINENO: result: yes" >&5
8326echo "${ECHO_T}yes" >&6
8327 PAM_MSG="yes (old library)"
8328
8329
8330fi
8331rm -f conftest.$ac_objext conftest.$ac_ext
8332fi
8333
8334# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
8335# because the system crypt() is more featureful.
8336if test "x$check_for_libcrypt_before" = "x1"; then
8337
8338echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8339echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8340if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342else
8343 ac_check_lib_save_LIBS=$LIBS
8344LIBS="-lcrypt $LIBS"
8345cat >conftest.$ac_ext <<_ACEOF
8346#line $LINENO "configure"
8347#include "confdefs.h"
8348
8349/* Override any gcc2 internal prototype to avoid an error. */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353/* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8355char crypt ();
8356#ifdef F77_DUMMY_MAIN
8357# ifdef __cplusplus
8358 extern "C"
8359# endif
8360 int F77_DUMMY_MAIN() { return 1; }
8361#endif
8362int
8363main ()
8364{
8365crypt ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_crypt_crypt=yes
8383else
8384 echo "$as_me: failed program was:" >&5
8385cat conftest.$ac_ext >&5
8386ac_cv_lib_crypt_crypt=no
8387fi
8388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389LIBS=$ac_check_lib_save_LIBS
8390fi
8391echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8392echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8393if test $ac_cv_lib_crypt_crypt = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395#define HAVE_LIBCRYPT 1
8396_ACEOF
8397
8398 LIBS="-lcrypt $LIBS"
8399
8400fi
8401
8402fi
8403
8404# Search for OpenSSL
8405saved_CPPFLAGS="$CPPFLAGS"
8406saved_LDFLAGS="$LDFLAGS"
8407
8408# Check whether --with-ssl-dir or --without-ssl-dir was given.
8409if test "${with_ssl_dir+set}" = set; then
8410 withval="$with_ssl_dir"
8411
8412 if test "x$withval" != "xno" ; then
8413 if test -d "$withval/lib"; then
8414 if test -n "${need_dash_r}"; then
8415 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8416 else
8417 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8418 fi
8419 else
8420 if test -n "${need_dash_r}"; then
8421 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8422 else
8423 LDFLAGS="-L${withval} ${LDFLAGS}"
8424 fi
8425 fi
8426 if test -d "$withval/include"; then
8427 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8428 else
8429 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8430 fi
8431 fi
8432
8433
8434fi;
8435LIBS="$LIBS -lcrypto"
8436cat >conftest.$ac_ext <<_ACEOF
8437#line $LINENO "configure"
8438#include "confdefs.h"
8439
8440/* Override any gcc2 internal prototype to avoid an error. */
8441#ifdef __cplusplus
8442extern "C"
8443#endif
8444/* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446char RAND_add ();
8447#ifdef F77_DUMMY_MAIN
8448# ifdef __cplusplus
8449 extern "C"
8450# endif
8451 int F77_DUMMY_MAIN() { return 1; }
8452#endif
8453int
8454main ()
8455{
8456RAND_add ();
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 cat >>confdefs.h <<\_ACEOF
8474#define HAVE_OPENSSL 1
8475_ACEOF
8476
8477else
8478 echo "$as_me: failed program was:" >&5
8479cat conftest.$ac_ext >&5
8480
8481 if test -n "${need_dash_r}"; then
8482 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8483 else
8484 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8485 fi
8486 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8487 cat >conftest.$ac_ext <<_ACEOF
8488#line $LINENO "configure"
8489#include "confdefs.h"
8490
8491/* Override any gcc2 internal prototype to avoid an error. */
8492#ifdef __cplusplus
8493extern "C"
8494#endif
8495/* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8497char RAND_add ();
8498#ifdef F77_DUMMY_MAIN
8499# ifdef __cplusplus
8500 extern "C"
8501# endif
8502 int F77_DUMMY_MAIN() { return 1; }
8503#endif
8504int
8505main ()
8506{
8507RAND_add ();
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 cat >>confdefs.h <<\_ACEOF
8525#define HAVE_OPENSSL 1
8526_ACEOF
8527
8528else
8529 echo "$as_me: failed program was:" >&5
8530cat conftest.$ac_ext >&5
8531
8532 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8533echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8534 { (exit 1); exit 1; }; }
8535
8536
8537fi
8538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539
8540
8541fi
8542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8543
8544# Determine OpenSSL header version
8545echo "$as_me:$LINENO: checking OpenSSL header version" >&5
8546echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
8547if test "$cross_compiling" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8549echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8550 { (exit 1); exit 1; }; }
8551else
8552 cat >conftest.$ac_ext <<_ACEOF
8553#line $LINENO "configure"
8554#include "confdefs.h"
8555
8556#include <stdio.h>
8557#include <string.h>
8558#include <openssl/opensslv.h>
8559#define DATA "conftest.sslincver"
8560int main(void) {
8561 FILE *fd;
8562 int rc;
8563
8564 fd = fopen(DATA,"w");
8565 if(fd == NULL)
8566 exit(1);
8567
8568 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
8569 exit(1);
8570
8571 exit(0);
8572}
8573
8574_ACEOF
8575rm -f conftest$ac_exeext
8576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586
8587 ssl_header_ver=`cat conftest.sslincver`
8588 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
8589echo "${ECHO_T}$ssl_header_ver" >&6
8590
8591else
8592 echo "$as_me: program exited with status $ac_status" >&5
8593echo "$as_me: failed program was:" >&5
8594cat conftest.$ac_ext >&5
8595( exit $ac_status )
8596
8597 echo "$as_me:$LINENO: result: not found" >&5
8598echo "${ECHO_T}not found" >&6
8599 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
8600echo "$as_me: error: OpenSSL version header not found." >&2;}
8601 { (exit 1); exit 1; }; }
8602
8603
8604fi
8605rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8606fi
8607
8608# Determine OpenSSL library version
8609echo "$as_me:$LINENO: checking OpenSSL library version" >&5
8610echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
8611if test "$cross_compiling" = yes; then
8612 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8613echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8614 { (exit 1); exit 1; }; }
8615else
8616 cat >conftest.$ac_ext <<_ACEOF
8617#line $LINENO "configure"
8618#include "confdefs.h"
8619
8620#include <stdio.h>
8621#include <string.h>
8622#include <openssl/opensslv.h>
8623#include <openssl/crypto.h>
8624#define DATA "conftest.ssllibver"
8625int main(void) {
8626 FILE *fd;
8627 int rc;
8628
8629 fd = fopen(DATA,"w");
8630 if(fd == NULL)
8631 exit(1);
8632
8633 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
8634 exit(1);
8635
8636 exit(0);
8637}
8638
8639_ACEOF
8640rm -f conftest$ac_exeext
8641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651
8652 ssl_library_ver=`cat conftest.ssllibver`
8653 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
8654echo "${ECHO_T}$ssl_library_ver" >&6
8655
8656else
8657 echo "$as_me: program exited with status $ac_status" >&5
8658echo "$as_me: failed program was:" >&5
8659cat conftest.$ac_ext >&5
8660( exit $ac_status )
8661
8662 echo "$as_me:$LINENO: result: not found" >&5
8663echo "${ECHO_T}not found" >&6
8664 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
8665echo "$as_me: error: OpenSSL library not found." >&2;}
8666 { (exit 1); exit 1; }; }
8667
8668
8669fi
8670rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8671fi
8672
8673# Sanity check OpenSSL headers
8674echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8675echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8676if test "$cross_compiling" = yes; then
8677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8678echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8679 { (exit 1); exit 1; }; }
8680else
8681 cat >conftest.$ac_ext <<_ACEOF
8682#line $LINENO "configure"
8683#include "confdefs.h"
8684
8685#include <string.h>
8686#include <openssl/opensslv.h>
8687int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8688
8689_ACEOF
8690rm -f conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701
8702 echo "$as_me:$LINENO: result: yes" >&5
8703echo "${ECHO_T}yes" >&6
8704
8705else
8706 echo "$as_me: program exited with status $ac_status" >&5
8707echo "$as_me: failed program was:" >&5
8708cat conftest.$ac_ext >&5
8709( exit $ac_status )
8710
8711 echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6
8713 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8714echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8715 { (exit 1); exit 1; }; }
8716
8717
8718fi
8719rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8720fi
8721
8722# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8723# version in OpenSSL. Skip this for PAM
8724if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8725 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8726echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8727if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730 ac_check_lib_save_LIBS=$LIBS
8731LIBS="-lcrypt $LIBS"
8732cat >conftest.$ac_ext <<_ACEOF
8733#line $LINENO "configure"
8734#include "confdefs.h"
8735
8736/* Override any gcc2 internal prototype to avoid an error. */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742char crypt ();
8743#ifdef F77_DUMMY_MAIN
8744# ifdef __cplusplus
8745 extern "C"
8746# endif
8747 int F77_DUMMY_MAIN() { return 1; }
8748#endif
8749int
8750main ()
8751{
8752crypt ();
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
8758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_lib_crypt_crypt=yes
8770else
8771 echo "$as_me: failed program was:" >&5
8772cat conftest.$ac_ext >&5
8773ac_cv_lib_crypt_crypt=no
8774fi
8775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8776LIBS=$ac_check_lib_save_LIBS
8777fi
8778echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8779echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8780if test $ac_cv_lib_crypt_crypt = yes; then
8781 LIBS="$LIBS -lcrypt"
8782fi
8783
8784fi
8785
8786
8787### Configure cryptographic random number support
8788
8789# Check wheter OpenSSL seeds itself
8790echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8791echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8792if test "$cross_compiling" = yes; then
8793 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8794echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8795 { (exit 1); exit 1; }; }
8796else
8797 cat >conftest.$ac_ext <<_ACEOF
8798#line $LINENO "configure"
8799#include "confdefs.h"
8800
8801#include <string.h>
8802#include <openssl/rand.h>
8803int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
8804
8805_ACEOF
8806rm -f conftest$ac_exeext
8807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817
8818 OPENSSL_SEEDS_ITSELF=yes
8819 echo "$as_me:$LINENO: result: yes" >&5
8820echo "${ECHO_T}yes" >&6
8821
8822else
8823 echo "$as_me: program exited with status $ac_status" >&5
8824echo "$as_me: failed program was:" >&5
8825cat conftest.$ac_ext >&5
8826( exit $ac_status )
8827
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
8830 # Default to use of the rand helper if OpenSSL doesn't
8831 # seed itself
8832 USE_RAND_HELPER=yes
8833
8834
8835fi
8836rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8837fi
8838
8839
8840# Do we want to force the use of the rand helper?
8841
8842# Check whether --with-rand-helper or --without-rand-helper was given.
8843if test "${with_rand_helper+set}" = set; then
8844 withval="$with_rand_helper"
8845
8846 if test "x$withval" = "xno" ; then
8847 # Force use of OpenSSL's internal RNG, even if
8848 # the previous test showed it to be unseeded.
8849 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8850 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8851echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8852 OPENSSL_SEEDS_ITSELF=yes
8853 USE_RAND_HELPER=""
8854 fi
8855 else
8856 USE_RAND_HELPER=yes
8857 fi
8858
8859fi;
8860
8861# Which randomness source do we use?
8862if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8863 # OpenSSL only
8864 cat >>confdefs.h <<\_ACEOF
8865#define OPENSSL_PRNG_ONLY 1
8866_ACEOF
8867
8868 RAND_MSG="OpenSSL internal ONLY"
8869 INSTALL_SSH_RAND_HELPER=""
8870elif test ! -z "$USE_RAND_HELPER" ; then
8871 # install rand helper
8872 RAND_MSG="ssh-rand-helper"
8873 INSTALL_SSH_RAND_HELPER="yes"
8874fi
8875
8876
8877### Configuration of ssh-rand-helper
8878
8879# PRNGD TCP socket
8880
8881# Check whether --with-prngd-port or --without-prngd-port was given.
8882if test "${with_prngd_port+set}" = set; then
8883 withval="$with_prngd_port"
8884
8885 case "$withval" in
8886 no)
8887 withval=""
8888 ;;
8889 [0-9]*)
8890 ;;
8891 *)
8892 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8893echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8894 { (exit 1); exit 1; }; }
8895 ;;
8896 esac
8897 if test ! -z "$withval" ; then
8898 PRNGD_PORT="$withval"
8899 cat >>confdefs.h <<_ACEOF
8900#define PRNGD_PORT $PRNGD_PORT
8901_ACEOF
8902
8903 fi
8904
8905
8906fi;
8907
8908# PRNGD Unix domain socket
8909
8910# Check whether --with-prngd-socket or --without-prngd-socket was given.
8911if test "${with_prngd_socket+set}" = set; then
8912 withval="$with_prngd_socket"
8913
8914 case "$withval" in
8915 yes)
8916 withval="/var/run/egd-pool"
8917 ;;
8918 no)
8919 withval=""
8920 ;;
8921 /*)
8922 ;;
8923 *)
8924 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8925echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8926 { (exit 1); exit 1; }; }
8927 ;;
8928 esac
8929
8930 if test ! -z "$withval" ; then
8931 if test ! -z "$PRNGD_PORT" ; then
8932 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8933echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8934 { (exit 1); exit 1; }; }
8935 fi
8936 if test ! -r "$withval" ; then
8937 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8938echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8939 fi
8940 PRNGD_SOCKET="$withval"
8941 cat >>confdefs.h <<_ACEOF
8942#define PRNGD_SOCKET "$PRNGD_SOCKET"
8943_ACEOF
8944
8945 fi
8946
8947else
8948
8949 # Check for existing socket only if we don't have a random device already
8950 if test "$USE_RAND_HELPER" = yes ; then
8951 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8952echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8953 # Insert other locations here
8954 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8955 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8956 PRNGD_SOCKET="$sock"
8957 cat >>confdefs.h <<_ACEOF
8958#define PRNGD_SOCKET "$PRNGD_SOCKET"
8959_ACEOF
8960
8961 break;
8962 fi
8963 done
8964 if test ! -z "$PRNGD_SOCKET" ; then
8965 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8966echo "${ECHO_T}$PRNGD_SOCKET" >&6
8967 else
8968 echo "$as_me:$LINENO: result: not found" >&5
8969echo "${ECHO_T}not found" >&6
8970 fi
8971 fi
8972
8973
8974fi;
8975
8976# Change default command timeout for hashing entropy source
8977entropy_timeout=200
8978
8979# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8980if test "${with_entropy_timeout+set}" = set; then
8981 withval="$with_entropy_timeout"
8982
8983 if test "x$withval" != "xno" ; then
8984 entropy_timeout=$withval
8985 fi
8986
8987
8988fi;
8989cat >>confdefs.h <<_ACEOF
8990#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8991_ACEOF
8992
8993
8994SSH_PRIVSEP_USER=sshd
8995
8996# Check whether --with-privsep-user or --without-privsep-user was given.
8997if test "${with_privsep_user+set}" = set; then
8998 withval="$with_privsep_user"
8999
9000 if test -n "$withval"; then
9001 SSH_PRIVSEP_USER=$withval
9002 fi
9003
9004
9005fi;
9006cat >>confdefs.h <<_ACEOF
9007#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9008_ACEOF
9009
9010
9011
9012# We do this little dance with the search path to insure
9013# that programs that we select for use by installed programs
9014# (which may be run by the super-user) come from trusted
9015# locations before they come from the user's private area.
9016# This should help avoid accidentally configuring some
9017# random version of a program in someone's personal bin.
9018
9019OPATH=$PATH
9020PATH=/bin:/usr/bin
9021test -h /bin 2> /dev/null && PATH=/usr/bin
9022test -d /sbin && PATH=$PATH:/sbin
9023test -d /usr/sbin && PATH=$PATH:/usr/sbin
9024PATH=$PATH:/etc:$OPATH
9025
9026# These programs are used by the command hashing source to gather entropy
9027
9028 # Extract the first word of "ls", so it can be a program name with args.
9029set dummy ls; ac_word=$2
9030echo "$as_me:$LINENO: checking for $ac_word" >&5
9031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9032if test "${ac_cv_path_PROG_LS+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035 case $PROG_LS in
9036 [\\/]* | ?:[\\/]*)
9037 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9038 ;;
9039 *)
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
9048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9050 fi
9051done
9052done
9053
9054 ;;
9055esac
9056fi
9057PROG_LS=$ac_cv_path_PROG_LS
9058
9059if test -n "$PROG_LS"; then
9060 echo "$as_me:$LINENO: result: $PROG_LS" >&5
9061echo "${ECHO_T}$PROG_LS" >&6
9062else
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
9065fi
9066
9067 if test -z "$PROG_LS" ; then
9068 PROG_LS="undef"
9069 fi
9070
9071
9072
9073 # Extract the first word of "netstat", so it can be a program name with args.
9074set dummy netstat; ac_word=$2
9075echo "$as_me:$LINENO: checking for $ac_word" >&5
9076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080 case $PROG_NETSTAT in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097done
9098
9099 ;;
9100esac
9101fi
9102PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9103
9104if test -n "$PROG_NETSTAT"; then
9105 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
9106echo "${ECHO_T}$PROG_NETSTAT" >&6
9107else
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
9110fi
9111
9112 if test -z "$PROG_NETSTAT" ; then
9113 PROG_NETSTAT="undef"
9114 fi
9115
9116
9117
9118 # Extract the first word of "arp", so it can be a program name with args.
9119set dummy arp; ac_word=$2
9120echo "$as_me:$LINENO: checking for $ac_word" >&5
9121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9122if test "${ac_cv_path_PROG_ARP+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 case $PROG_ARP in
9126 [\\/]* | ?:[\\/]*)
9127 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9128 ;;
9129 *)
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131for as_dir in $PATH
9132do
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
9138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 break 2
9140 fi
9141done
9142done
9143
9144 ;;
9145esac
9146fi
9147PROG_ARP=$ac_cv_path_PROG_ARP
9148
9149if test -n "$PROG_ARP"; then
9150 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
9151echo "${ECHO_T}$PROG_ARP" >&6
9152else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155fi
9156
9157 if test -z "$PROG_ARP" ; then
9158 PROG_ARP="undef"
9159 fi
9160
9161
9162
9163 # Extract the first word of "ifconfig", so it can be a program name with args.
9164set dummy ifconfig; ac_word=$2
9165echo "$as_me:$LINENO: checking for $ac_word" >&5
9166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169else
9170 case $PROG_IFCONFIG in
9171 [\\/]* | ?:[\\/]*)
9172 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9173 ;;
9174 *)
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
9183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186done
9187done
9188
9189 ;;
9190esac
9191fi
9192PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
9193
9194if test -n "$PROG_IFCONFIG"; then
9195 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
9196echo "${ECHO_T}$PROG_IFCONFIG" >&6
9197else
9198 echo "$as_me:$LINENO: result: no" >&5
9199echo "${ECHO_T}no" >&6
9200fi
9201
9202 if test -z "$PROG_IFCONFIG" ; then
9203 PROG_IFCONFIG="undef"
9204 fi
9205
9206
9207
9208 # Extract the first word of "jstat", so it can be a program name with args.
9209set dummy jstat; ac_word=$2
9210echo "$as_me:$LINENO: checking for $ac_word" >&5
9211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 case $PROG_JSTAT in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
9218 ;;
9219 *)
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
9228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232done
9233
9234 ;;
9235esac
9236fi
9237PROG_JSTAT=$ac_cv_path_PROG_JSTAT
9238
9239if test -n "$PROG_JSTAT"; then
9240 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
9241echo "${ECHO_T}$PROG_JSTAT" >&6
9242else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245fi
9246
9247 if test -z "$PROG_JSTAT" ; then
9248 PROG_JSTAT="undef"
9249 fi
9250
9251
9252
9253 # Extract the first word of "ps", so it can be a program name with args.
9254set dummy ps; ac_word=$2
9255echo "$as_me:$LINENO: checking for $ac_word" >&5
9256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9257if test "${ac_cv_path_PROG_PS+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 case $PROG_PS in
9261 [\\/]* | ?:[\\/]*)
9262 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
9263 ;;
9264 *)
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266for as_dir in $PATH
9267do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
9273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276done
9277done
9278
9279 ;;
9280esac
9281fi
9282PROG_PS=$ac_cv_path_PROG_PS
9283
9284if test -n "$PROG_PS"; then
9285 echo "$as_me:$LINENO: result: $PROG_PS" >&5
9286echo "${ECHO_T}$PROG_PS" >&6
9287else
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290fi
9291
9292 if test -z "$PROG_PS" ; then
9293 PROG_PS="undef"
9294 fi
9295
9296
9297
9298 # Extract the first word of "sar", so it can be a program name with args.
9299set dummy sar; ac_word=$2
9300echo "$as_me:$LINENO: checking for $ac_word" >&5
9301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9302if test "${ac_cv_path_PROG_SAR+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305 case $PROG_SAR in
9306 [\\/]* | ?:[\\/]*)
9307 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
9308 ;;
9309 *)
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
9318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321done
9322done
9323
9324 ;;
9325esac
9326fi
9327PROG_SAR=$ac_cv_path_PROG_SAR
9328
9329if test -n "$PROG_SAR"; then
9330 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
9331echo "${ECHO_T}$PROG_SAR" >&6
9332else
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335fi
9336
9337 if test -z "$PROG_SAR" ; then
9338 PROG_SAR="undef"
9339 fi
9340
9341
9342
9343 # Extract the first word of "w", so it can be a program name with args.
9344set dummy w; ac_word=$2
9345echo "$as_me:$LINENO: checking for $ac_word" >&5
9346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347if test "${ac_cv_path_PROG_W+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350 case $PROG_W in
9351 [\\/]* | ?:[\\/]*)
9352 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
9353 ;;
9354 *)
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356for as_dir in $PATH
9357do
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
9363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9365 fi
9366done
9367done
9368
9369 ;;
9370esac
9371fi
9372PROG_W=$ac_cv_path_PROG_W
9373
9374if test -n "$PROG_W"; then
9375 echo "$as_me:$LINENO: result: $PROG_W" >&5
9376echo "${ECHO_T}$PROG_W" >&6
9377else
9378 echo "$as_me:$LINENO: result: no" >&5
9379echo "${ECHO_T}no" >&6
9380fi
9381
9382 if test -z "$PROG_W" ; then
9383 PROG_W="undef"
9384 fi
9385
9386
9387
9388 # Extract the first word of "who", so it can be a program name with args.
9389set dummy who; ac_word=$2
9390echo "$as_me:$LINENO: checking for $ac_word" >&5
9391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392if test "${ac_cv_path_PROG_WHO+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 case $PROG_WHO in
9396 [\\/]* | ?:[\\/]*)
9397 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9398 ;;
9399 *)
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401for as_dir in $PATH
9402do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9407 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
9408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 break 2
9410 fi
9411done
9412done
9413
9414 ;;
9415esac
9416fi
9417PROG_WHO=$ac_cv_path_PROG_WHO
9418
9419if test -n "$PROG_WHO"; then
9420 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9421echo "${ECHO_T}$PROG_WHO" >&6
9422else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425fi
9426
9427 if test -z "$PROG_WHO" ; then
9428 PROG_WHO="undef"
9429 fi
9430
9431
9432
9433 # Extract the first word of "last", so it can be a program name with args.
9434set dummy last; ac_word=$2
9435echo "$as_me:$LINENO: checking for $ac_word" >&5
9436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9437if test "${ac_cv_path_PROG_LAST+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 case $PROG_LAST in
9441 [\\/]* | ?:[\\/]*)
9442 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9443 ;;
9444 *)
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446for as_dir in $PATH
9447do
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456done
9457done
9458
9459 ;;
9460esac
9461fi
9462PROG_LAST=$ac_cv_path_PROG_LAST
9463
9464if test -n "$PROG_LAST"; then
9465 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9466echo "${ECHO_T}$PROG_LAST" >&6
9467else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470fi
9471
9472 if test -z "$PROG_LAST" ; then
9473 PROG_LAST="undef"
9474 fi
9475
9476
9477
9478 # Extract the first word of "lastlog", so it can be a program name with args.
9479set dummy lastlog; ac_word=$2
9480echo "$as_me:$LINENO: checking for $ac_word" >&5
9481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9482if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 case $PROG_LASTLOG in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9488 ;;
9489 *)
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502done
9503
9504 ;;
9505esac
9506fi
9507PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9508
9509if test -n "$PROG_LASTLOG"; then
9510 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9511echo "${ECHO_T}$PROG_LASTLOG" >&6
9512else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515fi
9516
9517 if test -z "$PROG_LASTLOG" ; then
9518 PROG_LASTLOG="undef"
9519 fi
9520
9521
9522
9523 # Extract the first word of "df", so it can be a program name with args.
9524set dummy df; ac_word=$2
9525echo "$as_me:$LINENO: checking for $ac_word" >&5
9526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9527if test "${ac_cv_path_PROG_DF+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 case $PROG_DF in
9531 [\\/]* | ?:[\\/]*)
9532 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9533 ;;
9534 *)
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
9549 ;;
9550esac
9551fi
9552PROG_DF=$ac_cv_path_PROG_DF
9553
9554if test -n "$PROG_DF"; then
9555 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9556echo "${ECHO_T}$PROG_DF" >&6
9557else
9558 echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6
9560fi
9561
9562 if test -z "$PROG_DF" ; then
9563 PROG_DF="undef"
9564 fi
9565
9566
9567
9568 # Extract the first word of "vmstat", so it can be a program name with args.
9569set dummy vmstat; ac_word=$2
9570echo "$as_me:$LINENO: checking for $ac_word" >&5
9571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9572if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 case $PROG_VMSTAT in
9576 [\\/]* | ?:[\\/]*)
9577 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9578 ;;
9579 *)
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591done
9592done
9593
9594 ;;
9595esac
9596fi
9597PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9598
9599if test -n "$PROG_VMSTAT"; then
9600 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9601echo "${ECHO_T}$PROG_VMSTAT" >&6
9602else
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
9605fi
9606
9607 if test -z "$PROG_VMSTAT" ; then
9608 PROG_VMSTAT="undef"
9609 fi
9610
9611
9612
9613 # Extract the first word of "uptime", so it can be a program name with args.
9614set dummy uptime; ac_word=$2
9615echo "$as_me:$LINENO: checking for $ac_word" >&5
9616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9617if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 case $PROG_UPTIME in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9623 ;;
9624 *)
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9635 fi
9636done
9637done
9638
9639 ;;
9640esac
9641fi
9642PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9643
9644if test -n "$PROG_UPTIME"; then
9645 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9646echo "${ECHO_T}$PROG_UPTIME" >&6
9647else
9648 echo "$as_me:$LINENO: result: no" >&5
9649echo "${ECHO_T}no" >&6
9650fi
9651
9652 if test -z "$PROG_UPTIME" ; then
9653 PROG_UPTIME="undef"
9654 fi
9655
9656
9657
9658 # Extract the first word of "ipcs", so it can be a program name with args.
9659set dummy ipcs; ac_word=$2
9660echo "$as_me:$LINENO: checking for $ac_word" >&5
9661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9662if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 case $PROG_IPCS in
9666 [\\/]* | ?:[\\/]*)
9667 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9668 ;;
9669 *)
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9677 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681done
9682done
9683
9684 ;;
9685esac
9686fi
9687PROG_IPCS=$ac_cv_path_PROG_IPCS
9688
9689if test -n "$PROG_IPCS"; then
9690 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9691echo "${ECHO_T}$PROG_IPCS" >&6
9692else
9693 echo "$as_me:$LINENO: result: no" >&5
9694echo "${ECHO_T}no" >&6
9695fi
9696
9697 if test -z "$PROG_IPCS" ; then
9698 PROG_IPCS="undef"
9699 fi
9700
9701
9702
9703 # Extract the first word of "tail", so it can be a program name with args.
9704set dummy tail; ac_word=$2
9705echo "$as_me:$LINENO: checking for $ac_word" >&5
9706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710 case $PROG_TAIL in
9711 [\\/]* | ?:[\\/]*)
9712 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9713 ;;
9714 *)
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716for as_dir in $PATH
9717do
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9725 fi
9726done
9727done
9728
9729 ;;
9730esac
9731fi
9732PROG_TAIL=$ac_cv_path_PROG_TAIL
9733
9734if test -n "$PROG_TAIL"; then
9735 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9736echo "${ECHO_T}$PROG_TAIL" >&6
9737else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740fi
9741
9742 if test -z "$PROG_TAIL" ; then
9743 PROG_TAIL="undef"
9744 fi
9745
9746
9747# restore PATH
9748PATH=$OPATH
9749
9750# Where does ssh-rand-helper get its randomness from?
9751INSTALL_SSH_PRNG_CMDS=""
9752if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9753 if test ! -z "$PRNGD_PORT" ; then
9754 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9755 elif test ! -z "$PRNGD_SOCKET" ; then
9756 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9757 else
9758 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9759 RAND_HELPER_CMDHASH=yes
9760 INSTALL_SSH_PRNG_CMDS="yes"
9761 fi
9762fi
9763
9764
9765
9766# Cheap hack to ensure NEWS-OS libraries are arranged right.
9767if test ! -z "$SONY" ; then
9768 LIBS="$LIBS -liberty";
9769fi
9770
9771# Checks for data types
9772echo "$as_me:$LINENO: checking for char" >&5
9773echo $ECHO_N "checking for char... $ECHO_C" >&6
9774if test "${ac_cv_type_char+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777 cat >conftest.$ac_ext <<_ACEOF
9778#line $LINENO "configure"
9779#include "confdefs.h"
9780$ac_includes_default
9781#ifdef F77_DUMMY_MAIN
9782# ifdef __cplusplus
9783 extern "C"
9784# endif
9785 int F77_DUMMY_MAIN() { return 1; }
9786#endif
9787int
9788main ()
9789{
9790if ((char *) 0)
9791 return 0;
9792if (sizeof (char))
9793 return 0;
9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext
9799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_type_char=yes
9811else
9812 echo "$as_me: failed program was:" >&5
9813cat conftest.$ac_ext >&5
9814ac_cv_type_char=no
9815fi
9816rm -f conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9819echo "${ECHO_T}$ac_cv_type_char" >&6
9820
9821echo "$as_me:$LINENO: checking size of char" >&5
9822echo $ECHO_N "checking size of char... $ECHO_C" >&6
9823if test "${ac_cv_sizeof_char+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826 if test "$ac_cv_type_char" = yes; then
9827 # The cast to unsigned long works around a bug in the HP C Compiler
9828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9830 # This bug is HP SR number 8606223364.
9831 if test "$cross_compiling" = yes; then
9832 # Depending upon the size, compute the lo and hi bounds.
9833cat >conftest.$ac_ext <<_ACEOF
9834#line $LINENO "configure"
9835#include "confdefs.h"
9836$ac_includes_default
9837#ifdef F77_DUMMY_MAIN
9838# ifdef __cplusplus
9839 extern "C"
9840# endif
9841 int F77_DUMMY_MAIN() { return 1; }
9842#endif
9843int
9844main ()
9845{
9846static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
9847test_array [0] = 0
9848
9849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext
9854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_lo=0 ac_mid=0
9866 while :; do
9867 cat >conftest.$ac_ext <<_ACEOF
9868#line $LINENO "configure"
9869#include "confdefs.h"
9870$ac_includes_default
9871#ifdef F77_DUMMY_MAIN
9872# ifdef __cplusplus
9873 extern "C"
9874# endif
9875 int F77_DUMMY_MAIN() { return 1; }
9876#endif
9877int
9878main ()
9879{
9880static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
9881test_array [0] = 0
9882
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext
9888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_hi=$ac_mid; break
9900else
9901 echo "$as_me: failed program was:" >&5
9902cat conftest.$ac_ext >&5
9903ac_lo=`expr $ac_mid + 1`
9904 if test $ac_lo -le $ac_mid; then
9905 ac_lo= ac_hi=
9906 break
9907 fi
9908 ac_mid=`expr 2 '*' $ac_mid + 1`
9909fi
9910rm -f conftest.$ac_objext conftest.$ac_ext
9911 done
9912else
9913 echo "$as_me: failed program was:" >&5
9914cat conftest.$ac_ext >&5
9915cat >conftest.$ac_ext <<_ACEOF
9916#line $LINENO "configure"
9917#include "confdefs.h"
9918$ac_includes_default
9919#ifdef F77_DUMMY_MAIN
9920# ifdef __cplusplus
9921 extern "C"
9922# endif
9923 int F77_DUMMY_MAIN() { return 1; }
9924#endif
9925int
9926main ()
9927{
9928static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
9929test_array [0] = 0
9930
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_hi=-1 ac_mid=-1
9948 while :; do
9949 cat >conftest.$ac_ext <<_ACEOF
9950#line $LINENO "configure"
9951#include "confdefs.h"
9952$ac_includes_default
9953#ifdef F77_DUMMY_MAIN
9954# ifdef __cplusplus
9955 extern "C"
9956# endif
9957 int F77_DUMMY_MAIN() { return 1; }
9958#endif
9959int
9960main ()
9961{
9962static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
9963test_array [0] = 0
9964
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext
9970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_lo=$ac_mid; break
9982else
9983 echo "$as_me: failed program was:" >&5
9984cat conftest.$ac_ext >&5
9985ac_hi=`expr '(' $ac_mid ')' - 1`
9986 if test $ac_mid -le $ac_hi; then
9987 ac_lo= ac_hi=
9988 break
9989 fi
9990 ac_mid=`expr 2 '*' $ac_mid`
9991fi
9992rm -f conftest.$ac_objext conftest.$ac_ext
9993 done
9994else
9995 echo "$as_me: failed program was:" >&5
9996cat conftest.$ac_ext >&5
9997ac_lo= ac_hi=
9998fi
9999rm -f conftest.$ac_objext conftest.$ac_ext
10000fi
10001rm -f conftest.$ac_objext conftest.$ac_ext
10002# Binary search between lo and hi bounds.
10003while test "x$ac_lo" != "x$ac_hi"; do
10004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10005 cat >conftest.$ac_ext <<_ACEOF
10006#line $LINENO "configure"
10007#include "confdefs.h"
10008$ac_includes_default
10009#ifdef F77_DUMMY_MAIN
10010# ifdef __cplusplus
10011 extern "C"
10012# endif
10013 int F77_DUMMY_MAIN() { return 1; }
10014#endif
10015int
10016main ()
10017{
10018static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10019test_array [0] = 0
10020
10021 ;
10022 return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext
10026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_hi=$ac_mid
10038else
10039 echo "$as_me: failed program was:" >&5
10040cat conftest.$ac_ext >&5
10041ac_lo=`expr '(' $ac_mid ')' + 1`
10042fi
10043rm -f conftest.$ac_objext conftest.$ac_ext
10044done
10045case $ac_lo in
10046?*) ac_cv_sizeof_char=$ac_lo;;
10047'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10048echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10049 { (exit 1); exit 1; }; } ;;
10050esac
10051else
10052 if test "$cross_compiling" = yes; then
10053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10054echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10055 { (exit 1); exit 1; }; }
10056else
10057 cat >conftest.$ac_ext <<_ACEOF
10058#line $LINENO "configure"
10059#include "confdefs.h"
10060$ac_includes_default
10061long longval () { return (long) (sizeof (char)); }
10062unsigned long ulongval () { return (long) (sizeof (char)); }
10063#include <stdio.h>
10064#include <stdlib.h>
10065#ifdef F77_DUMMY_MAIN
10066# ifdef __cplusplus
10067 extern "C"
10068# endif
10069 int F77_DUMMY_MAIN() { return 1; }
10070#endif
10071int
10072main ()
10073{
10074
10075 FILE *f = fopen ("conftest.val", "w");
10076 if (! f)
10077 exit (1);
10078 if (((long) (sizeof (char))) < 0)
10079 {
10080 long i = longval ();
10081 if (i != ((long) (sizeof (char))))
10082 exit (1);
10083 fprintf (f, "%ld\n", i);
10084 }
10085 else
10086 {
10087 unsigned long i = ulongval ();
10088 if (i != ((long) (sizeof (char))))
10089 exit (1);
10090 fprintf (f, "%lu\n", i);
10091 }
10092 exit (ferror (f) || fclose (f) != 0);
10093
10094 ;
10095 return 0;
10096}
10097_ACEOF
10098rm -f conftest$ac_exeext
10099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_sizeof_char=`cat conftest.val`
10110else
10111 echo "$as_me: program exited with status $ac_status" >&5
10112echo "$as_me: failed program was:" >&5
10113cat conftest.$ac_ext >&5
10114( exit $ac_status )
10115{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10116echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10117 { (exit 1); exit 1; }; }
10118fi
10119rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10120fi
10121fi
10122rm -f conftest.val
10123else
10124 ac_cv_sizeof_char=0
10125fi
10126fi
10127echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10128echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10129cat >>confdefs.h <<_ACEOF
10130#define SIZEOF_CHAR $ac_cv_sizeof_char
10131_ACEOF
10132
10133
10134echo "$as_me:$LINENO: checking for short int" >&5
10135echo $ECHO_N "checking for short int... $ECHO_C" >&6
10136if test "${ac_cv_type_short_int+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 cat >conftest.$ac_ext <<_ACEOF
10140#line $LINENO "configure"
10141#include "confdefs.h"
10142$ac_includes_default
10143#ifdef F77_DUMMY_MAIN
10144# ifdef __cplusplus
10145 extern "C"
10146# endif
10147 int F77_DUMMY_MAIN() { return 1; }
10148#endif
10149int
10150main ()
10151{
10152if ((short int *) 0)
10153 return 0;
10154if (sizeof (short int))
10155 return 0;
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext
10161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_type_short_int=yes
10173else
10174 echo "$as_me: failed program was:" >&5
10175cat conftest.$ac_ext >&5
10176ac_cv_type_short_int=no
10177fi
10178rm -f conftest.$ac_objext conftest.$ac_ext
10179fi
10180echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
10181echo "${ECHO_T}$ac_cv_type_short_int" >&6
10182
10183echo "$as_me:$LINENO: checking size of short int" >&5
10184echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10185if test "${ac_cv_sizeof_short_int+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188 if test "$ac_cv_type_short_int" = yes; then
10189 # The cast to unsigned long works around a bug in the HP C Compiler
10190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10192 # This bug is HP SR number 8606223364.
10193 if test "$cross_compiling" = yes; then
10194 # Depending upon the size, compute the lo and hi bounds.
10195cat >conftest.$ac_ext <<_ACEOF
10196#line $LINENO "configure"
10197#include "confdefs.h"
10198$ac_includes_default
10199#ifdef F77_DUMMY_MAIN
10200# ifdef __cplusplus
10201 extern "C"
10202# endif
10203 int F77_DUMMY_MAIN() { return 1; }
10204#endif
10205int
10206main ()
10207{
10208static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
10209test_array [0] = 0
10210
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext
10216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_lo=0 ac_mid=0
10228 while :; do
10229 cat >conftest.$ac_ext <<_ACEOF
10230#line $LINENO "configure"
10231#include "confdefs.h"
10232$ac_includes_default
10233#ifdef F77_DUMMY_MAIN
10234# ifdef __cplusplus
10235 extern "C"
10236# endif
10237 int F77_DUMMY_MAIN() { return 1; }
10238#endif
10239int
10240main ()
10241{
10242static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
10243test_array [0] = 0
10244
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext
10250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_hi=$ac_mid; break
10262else
10263 echo "$as_me: failed program was:" >&5
10264cat conftest.$ac_ext >&5
10265ac_lo=`expr $ac_mid + 1`
10266 if test $ac_lo -le $ac_mid; then
10267 ac_lo= ac_hi=
10268 break
10269 fi
10270 ac_mid=`expr 2 '*' $ac_mid + 1`
10271fi
10272rm -f conftest.$ac_objext conftest.$ac_ext
10273 done
10274else
10275 echo "$as_me: failed program was:" >&5
10276cat conftest.$ac_ext >&5
10277cat >conftest.$ac_ext <<_ACEOF
10278#line $LINENO "configure"
10279#include "confdefs.h"
10280$ac_includes_default
10281#ifdef F77_DUMMY_MAIN
10282# ifdef __cplusplus
10283 extern "C"
10284# endif
10285 int F77_DUMMY_MAIN() { return 1; }
10286#endif
10287int
10288main ()
10289{
10290static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
10291test_array [0] = 0
10292
10293 ;
10294 return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext
10298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -s conftest.$ac_objext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_hi=-1 ac_mid=-1
10310 while :; do
10311 cat >conftest.$ac_ext <<_ACEOF
10312#line $LINENO "configure"
10313#include "confdefs.h"
10314$ac_includes_default
10315#ifdef F77_DUMMY_MAIN
10316# ifdef __cplusplus
10317 extern "C"
10318# endif
10319 int F77_DUMMY_MAIN() { return 1; }
10320#endif
10321int
10322main ()
10323{
10324static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
10325test_array [0] = 0
10326
10327 ;
10328 return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext
10332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_lo=$ac_mid; break
10344else
10345 echo "$as_me: failed program was:" >&5
10346cat conftest.$ac_ext >&5
10347ac_hi=`expr '(' $ac_mid ')' - 1`
10348 if test $ac_mid -le $ac_hi; then
10349 ac_lo= ac_hi=
10350 break
10351 fi
10352 ac_mid=`expr 2 '*' $ac_mid`
10353fi
10354rm -f conftest.$ac_objext conftest.$ac_ext
10355 done
10356else
10357 echo "$as_me: failed program was:" >&5
10358cat conftest.$ac_ext >&5
10359ac_lo= ac_hi=
10360fi
10361rm -f conftest.$ac_objext conftest.$ac_ext
10362fi
10363rm -f conftest.$ac_objext conftest.$ac_ext
10364# Binary search between lo and hi bounds.
10365while test "x$ac_lo" != "x$ac_hi"; do
10366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10367 cat >conftest.$ac_ext <<_ACEOF
10368#line $LINENO "configure"
10369#include "confdefs.h"
10370$ac_includes_default
10371#ifdef F77_DUMMY_MAIN
10372# ifdef __cplusplus
10373 extern "C"
10374# endif
10375 int F77_DUMMY_MAIN() { return 1; }
10376#endif
10377int
10378main ()
10379{
10380static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
10381test_array [0] = 0
10382
10383 ;
10384 return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext
10388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_hi=$ac_mid
10400else
10401 echo "$as_me: failed program was:" >&5
10402cat conftest.$ac_ext >&5
10403ac_lo=`expr '(' $ac_mid ')' + 1`
10404fi
10405rm -f conftest.$ac_objext conftest.$ac_ext
10406done
10407case $ac_lo in
10408?*) ac_cv_sizeof_short_int=$ac_lo;;
10409'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10410echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10411 { (exit 1); exit 1; }; } ;;
10412esac
10413else
10414 if test "$cross_compiling" = yes; then
10415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10416echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10417 { (exit 1); exit 1; }; }
10418else
10419 cat >conftest.$ac_ext <<_ACEOF
10420#line $LINENO "configure"
10421#include "confdefs.h"
10422$ac_includes_default
10423long longval () { return (long) (sizeof (short int)); }
10424unsigned long ulongval () { return (long) (sizeof (short int)); }
10425#include <stdio.h>
10426#include <stdlib.h>
10427#ifdef F77_DUMMY_MAIN
10428# ifdef __cplusplus
10429 extern "C"
10430# endif
10431 int F77_DUMMY_MAIN() { return 1; }
10432#endif
10433int
10434main ()
10435{
10436
10437 FILE *f = fopen ("conftest.val", "w");
10438 if (! f)
10439 exit (1);
10440 if (((long) (sizeof (short int))) < 0)
10441 {
10442 long i = longval ();
10443 if (i != ((long) (sizeof (short int))))
10444 exit (1);
10445 fprintf (f, "%ld\n", i);
10446 }
10447 else
10448 {
10449 unsigned long i = ulongval ();
10450 if (i != ((long) (sizeof (short int))))
10451 exit (1);
10452 fprintf (f, "%lu\n", i);
10453 }
10454 exit (ferror (f) || fclose (f) != 0);
10455
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest$ac_exeext
10461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_sizeof_short_int=`cat conftest.val`
10472else
10473 echo "$as_me: program exited with status $ac_status" >&5
10474echo "$as_me: failed program was:" >&5
10475cat conftest.$ac_ext >&5
10476( exit $ac_status )
10477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10478echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10479 { (exit 1); exit 1; }; }
10480fi
10481rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10482fi
10483fi
10484rm -f conftest.val
10485else
10486 ac_cv_sizeof_short_int=0
10487fi
10488fi
10489echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10490echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10491cat >>confdefs.h <<_ACEOF
10492#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10493_ACEOF
10494
10495
10496echo "$as_me:$LINENO: checking for int" >&5
10497echo $ECHO_N "checking for int... $ECHO_C" >&6
10498if test "${ac_cv_type_int+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 cat >conftest.$ac_ext <<_ACEOF
10502#line $LINENO "configure"
10503#include "confdefs.h"
10504$ac_includes_default
10505#ifdef F77_DUMMY_MAIN
10506# ifdef __cplusplus
10507 extern "C"
10508# endif
10509 int F77_DUMMY_MAIN() { return 1; }
10510#endif
10511int
10512main ()
10513{
10514if ((int *) 0)
10515 return 0;
10516if (sizeof (int))
10517 return 0;
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 (eval $ac_compile) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -s conftest.$ac_objext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_cv_type_int=yes
10535else
10536 echo "$as_me: failed program was:" >&5
10537cat conftest.$ac_ext >&5
10538ac_cv_type_int=no
10539fi
10540rm -f conftest.$ac_objext conftest.$ac_ext
10541fi
10542echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10543echo "${ECHO_T}$ac_cv_type_int" >&6
10544
10545echo "$as_me:$LINENO: checking size of int" >&5
10546echo $ECHO_N "checking size of int... $ECHO_C" >&6
10547if test "${ac_cv_sizeof_int+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549else
10550 if test "$ac_cv_type_int" = yes; then
10551 # The cast to unsigned long works around a bug in the HP C Compiler
10552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10554 # This bug is HP SR number 8606223364.
10555 if test "$cross_compiling" = yes; then
10556 # Depending upon the size, compute the lo and hi bounds.
10557cat >conftest.$ac_ext <<_ACEOF
10558#line $LINENO "configure"
10559#include "confdefs.h"
10560$ac_includes_default
10561#ifdef F77_DUMMY_MAIN
10562# ifdef __cplusplus
10563 extern "C"
10564# endif
10565 int F77_DUMMY_MAIN() { return 1; }
10566#endif
10567int
10568main ()
10569{
10570static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10571test_array [0] = 0
10572
10573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext
10578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_lo=0 ac_mid=0
10590 while :; do
10591 cat >conftest.$ac_ext <<_ACEOF
10592#line $LINENO "configure"
10593#include "confdefs.h"
10594$ac_includes_default
10595#ifdef F77_DUMMY_MAIN
10596# ifdef __cplusplus
10597 extern "C"
10598# endif
10599 int F77_DUMMY_MAIN() { return 1; }
10600#endif
10601int
10602main ()
10603{
10604static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10605test_array [0] = 0
10606
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext
10612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_hi=$ac_mid; break
10624else
10625 echo "$as_me: failed program was:" >&5
10626cat conftest.$ac_ext >&5
10627ac_lo=`expr $ac_mid + 1`
10628 if test $ac_lo -le $ac_mid; then
10629 ac_lo= ac_hi=
10630 break
10631 fi
10632 ac_mid=`expr 2 '*' $ac_mid + 1`
10633fi
10634rm -f conftest.$ac_objext conftest.$ac_ext
10635 done
10636else
10637 echo "$as_me: failed program was:" >&5
10638cat conftest.$ac_ext >&5
10639cat >conftest.$ac_ext <<_ACEOF
10640#line $LINENO "configure"
10641#include "confdefs.h"
10642$ac_includes_default
10643#ifdef F77_DUMMY_MAIN
10644# ifdef __cplusplus
10645 extern "C"
10646# endif
10647 int F77_DUMMY_MAIN() { return 1; }
10648#endif
10649int
10650main ()
10651{
10652static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10653test_array [0] = 0
10654
10655 ;
10656 return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext
10660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_hi=-1 ac_mid=-1
10672 while :; do
10673 cat >conftest.$ac_ext <<_ACEOF
10674#line $LINENO "configure"
10675#include "confdefs.h"
10676$ac_includes_default
10677#ifdef F77_DUMMY_MAIN
10678# ifdef __cplusplus
10679 extern "C"
10680# endif
10681 int F77_DUMMY_MAIN() { return 1; }
10682#endif
10683int
10684main ()
10685{
10686static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10687test_array [0] = 0
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_lo=$ac_mid; break
10706else
10707 echo "$as_me: failed program was:" >&5
10708cat conftest.$ac_ext >&5
10709ac_hi=`expr '(' $ac_mid ')' - 1`
10710 if test $ac_mid -le $ac_hi; then
10711 ac_lo= ac_hi=
10712 break
10713 fi
10714 ac_mid=`expr 2 '*' $ac_mid`
10715fi
10716rm -f conftest.$ac_objext conftest.$ac_ext
10717 done
10718else
10719 echo "$as_me: failed program was:" >&5
10720cat conftest.$ac_ext >&5
10721ac_lo= ac_hi=
10722fi
10723rm -f conftest.$ac_objext conftest.$ac_ext
10724fi
10725rm -f conftest.$ac_objext conftest.$ac_ext
10726# Binary search between lo and hi bounds.
10727while test "x$ac_lo" != "x$ac_hi"; do
10728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10729 cat >conftest.$ac_ext <<_ACEOF
10730#line $LINENO "configure"
10731#include "confdefs.h"
10732$ac_includes_default
10733#ifdef F77_DUMMY_MAIN
10734# ifdef __cplusplus
10735 extern "C"
10736# endif
10737 int F77_DUMMY_MAIN() { return 1; }
10738#endif
10739int
10740main ()
10741{
10742static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10743test_array [0] = 0
10744
10745 ;
10746 return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext
10750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_hi=$ac_mid
10762else
10763 echo "$as_me: failed program was:" >&5
10764cat conftest.$ac_ext >&5
10765ac_lo=`expr '(' $ac_mid ')' + 1`
10766fi
10767rm -f conftest.$ac_objext conftest.$ac_ext
10768done
10769case $ac_lo in
10770?*) ac_cv_sizeof_int=$ac_lo;;
10771'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10772echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10773 { (exit 1); exit 1; }; } ;;
10774esac
10775else
10776 if test "$cross_compiling" = yes; then
10777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10778echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10779 { (exit 1); exit 1; }; }
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782#line $LINENO "configure"
10783#include "confdefs.h"
10784$ac_includes_default
10785long longval () { return (long) (sizeof (int)); }
10786unsigned long ulongval () { return (long) (sizeof (int)); }
10787#include <stdio.h>
10788#include <stdlib.h>
10789#ifdef F77_DUMMY_MAIN
10790# ifdef __cplusplus
10791 extern "C"
10792# endif
10793 int F77_DUMMY_MAIN() { return 1; }
10794#endif
10795int
10796main ()
10797{
10798
10799 FILE *f = fopen ("conftest.val", "w");
10800 if (! f)
10801 exit (1);
10802 if (((long) (sizeof (int))) < 0)
10803 {
10804 long i = longval ();
10805 if (i != ((long) (sizeof (int))))
10806 exit (1);
10807 fprintf (f, "%ld\n", i);
10808 }
10809 else
10810 {
10811 unsigned long i = ulongval ();
10812 if (i != ((long) (sizeof (int))))
10813 exit (1);
10814 fprintf (f, "%lu\n", i);
10815 }
10816 exit (ferror (f) || fclose (f) != 0);
10817
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822rm -f conftest$ac_exeext
10823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824 (eval $ac_link) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_sizeof_int=`cat conftest.val`
10834else
10835 echo "$as_me: program exited with status $ac_status" >&5
10836echo "$as_me: failed program was:" >&5
10837cat conftest.$ac_ext >&5
10838( exit $ac_status )
10839{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10840echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10841 { (exit 1); exit 1; }; }
10842fi
10843rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10844fi
10845fi
10846rm -f conftest.val
10847else
10848 ac_cv_sizeof_int=0
10849fi
10850fi
10851echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10852echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10853cat >>confdefs.h <<_ACEOF
10854#define SIZEOF_INT $ac_cv_sizeof_int
10855_ACEOF
10856
10857
10858echo "$as_me:$LINENO: checking for long int" >&5
10859echo $ECHO_N "checking for long int... $ECHO_C" >&6
10860if test "${ac_cv_type_long_int+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else
10863 cat >conftest.$ac_ext <<_ACEOF
10864#line $LINENO "configure"
10865#include "confdefs.h"
10866$ac_includes_default
10867#ifdef F77_DUMMY_MAIN
10868# ifdef __cplusplus
10869 extern "C"
10870# endif
10871 int F77_DUMMY_MAIN() { return 1; }
10872#endif
10873int
10874main ()
10875{
10876if ((long int *) 0)
10877 return 0;
10878if (sizeof (long int))
10879 return 0;
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_type_long_int=yes
10897else
10898 echo "$as_me: failed program was:" >&5
10899cat conftest.$ac_ext >&5
10900ac_cv_type_long_int=no
10901fi
10902rm -f conftest.$ac_objext conftest.$ac_ext
10903fi
10904echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10905echo "${ECHO_T}$ac_cv_type_long_int" >&6
10906
10907echo "$as_me:$LINENO: checking size of long int" >&5
10908echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10909if test "${ac_cv_sizeof_long_int+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 if test "$ac_cv_type_long_int" = yes; then
10913 # The cast to unsigned long works around a bug in the HP C Compiler
10914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10916 # This bug is HP SR number 8606223364.
10917 if test "$cross_compiling" = yes; then
10918 # Depending upon the size, compute the lo and hi bounds.
10919cat >conftest.$ac_ext <<_ACEOF
10920#line $LINENO "configure"
10921#include "confdefs.h"
10922$ac_includes_default
10923#ifdef F77_DUMMY_MAIN
10924# ifdef __cplusplus
10925 extern "C"
10926# endif
10927 int F77_DUMMY_MAIN() { return 1; }
10928#endif
10929int
10930main ()
10931{
10932static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
10933test_array [0] = 0
10934
10935 ;
10936 return 0;
10937}
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_lo=0 ac_mid=0
10952 while :; do
10953 cat >conftest.$ac_ext <<_ACEOF
10954#line $LINENO "configure"
10955#include "confdefs.h"
10956$ac_includes_default
10957#ifdef F77_DUMMY_MAIN
10958# ifdef __cplusplus
10959 extern "C"
10960# endif
10961 int F77_DUMMY_MAIN() { return 1; }
10962#endif
10963int
10964main ()
10965{
10966static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
10967test_array [0] = 0
10968
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973rm -f conftest.$ac_objext
10974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_hi=$ac_mid; break
10986else
10987 echo "$as_me: failed program was:" >&5
10988cat conftest.$ac_ext >&5
10989ac_lo=`expr $ac_mid + 1`
10990 if test $ac_lo -le $ac_mid; then
10991 ac_lo= ac_hi=
10992 break
10993 fi
10994 ac_mid=`expr 2 '*' $ac_mid + 1`
10995fi
10996rm -f conftest.$ac_objext conftest.$ac_ext
10997 done
10998else
10999 echo "$as_me: failed program was:" >&5
11000cat conftest.$ac_ext >&5
11001cat >conftest.$ac_ext <<_ACEOF
11002#line $LINENO "configure"
11003#include "confdefs.h"
11004$ac_includes_default
11005#ifdef F77_DUMMY_MAIN
11006# ifdef __cplusplus
11007 extern "C"
11008# endif
11009 int F77_DUMMY_MAIN() { return 1; }
11010#endif
11011int
11012main ()
11013{
11014static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
11015test_array [0] = 0
11016
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021rm -f conftest.$ac_objext
11022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023 (eval $ac_compile) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_hi=-1 ac_mid=-1
11034 while :; do
11035 cat >conftest.$ac_ext <<_ACEOF
11036#line $LINENO "configure"
11037#include "confdefs.h"
11038$ac_includes_default
11039#ifdef F77_DUMMY_MAIN
11040# ifdef __cplusplus
11041 extern "C"
11042# endif
11043 int F77_DUMMY_MAIN() { return 1; }
11044#endif
11045int
11046main ()
11047{
11048static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
11049test_array [0] = 0
11050
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext
11056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_lo=$ac_mid; break
11068else
11069 echo "$as_me: failed program was:" >&5
11070cat conftest.$ac_ext >&5
11071ac_hi=`expr '(' $ac_mid ')' - 1`
11072 if test $ac_mid -le $ac_hi; then
11073 ac_lo= ac_hi=
11074 break
11075 fi
11076 ac_mid=`expr 2 '*' $ac_mid`
11077fi
11078rm -f conftest.$ac_objext conftest.$ac_ext
11079 done
11080else
11081 echo "$as_me: failed program was:" >&5
11082cat conftest.$ac_ext >&5
11083ac_lo= ac_hi=
11084fi
11085rm -f conftest.$ac_objext conftest.$ac_ext
11086fi
11087rm -f conftest.$ac_objext conftest.$ac_ext
11088# Binary search between lo and hi bounds.
11089while test "x$ac_lo" != "x$ac_hi"; do
11090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11091 cat >conftest.$ac_ext <<_ACEOF
11092#line $LINENO "configure"
11093#include "confdefs.h"
11094$ac_includes_default
11095#ifdef F77_DUMMY_MAIN
11096# ifdef __cplusplus
11097 extern "C"
11098# endif
11099 int F77_DUMMY_MAIN() { return 1; }
11100#endif
11101int
11102main ()
11103{
11104static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
11105test_array [0] = 0
11106
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext
11112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_hi=$ac_mid
11124else
11125 echo "$as_me: failed program was:" >&5
11126cat conftest.$ac_ext >&5
11127ac_lo=`expr '(' $ac_mid ')' + 1`
11128fi
11129rm -f conftest.$ac_objext conftest.$ac_ext
11130done
11131case $ac_lo in
11132?*) ac_cv_sizeof_long_int=$ac_lo;;
11133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11134echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11135 { (exit 1); exit 1; }; } ;;
11136esac
11137else
11138 if test "$cross_compiling" = yes; then
11139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11140echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11141 { (exit 1); exit 1; }; }
11142else
11143 cat >conftest.$ac_ext <<_ACEOF
11144#line $LINENO "configure"
11145#include "confdefs.h"
11146$ac_includes_default
11147long longval () { return (long) (sizeof (long int)); }
11148unsigned long ulongval () { return (long) (sizeof (long int)); }
11149#include <stdio.h>
11150#include <stdlib.h>
11151#ifdef F77_DUMMY_MAIN
11152# ifdef __cplusplus
11153 extern "C"
11154# endif
11155 int F77_DUMMY_MAIN() { return 1; }
11156#endif
11157int
11158main ()
11159{
11160
11161 FILE *f = fopen ("conftest.val", "w");
11162 if (! f)
11163 exit (1);
11164 if (((long) (sizeof (long int))) < 0)
11165 {
11166 long i = longval ();
11167 if (i != ((long) (sizeof (long int))))
11168 exit (1);
11169 fprintf (f, "%ld\n", i);
11170 }
11171 else
11172 {
11173 unsigned long i = ulongval ();
11174 if (i != ((long) (sizeof (long int))))
11175 exit (1);
11176 fprintf (f, "%lu\n", i);
11177 }
11178 exit (ferror (f) || fclose (f) != 0);
11179
11180 ;
11181 return 0;
11182}
11183_ACEOF
11184rm -f conftest$ac_exeext
11185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_sizeof_long_int=`cat conftest.val`
11196else
11197 echo "$as_me: program exited with status $ac_status" >&5
11198echo "$as_me: failed program was:" >&5
11199cat conftest.$ac_ext >&5
11200( exit $ac_status )
11201{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11202echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11203 { (exit 1); exit 1; }; }
11204fi
11205rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11206fi
11207fi
11208rm -f conftest.val
11209else
11210 ac_cv_sizeof_long_int=0
11211fi
11212fi
11213echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
11214echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11215cat >>confdefs.h <<_ACEOF
11216#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11217_ACEOF
11218
11219
11220echo "$as_me:$LINENO: checking for long long int" >&5
11221echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11222if test "${ac_cv_type_long_long_int+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 cat >conftest.$ac_ext <<_ACEOF
11226#line $LINENO "configure"
11227#include "confdefs.h"
11228$ac_includes_default
11229#ifdef F77_DUMMY_MAIN
11230# ifdef __cplusplus
11231 extern "C"
11232# endif
11233 int F77_DUMMY_MAIN() { return 1; }
11234#endif
11235int
11236main ()
11237{
11238if ((long long int *) 0)
11239 return 0;
11240if (sizeof (long long int))
11241 return 0;
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248 (eval $ac_compile) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_type_long_long_int=yes
11259else
11260 echo "$as_me: failed program was:" >&5
11261cat conftest.$ac_ext >&5
11262ac_cv_type_long_long_int=no
11263fi
11264rm -f conftest.$ac_objext conftest.$ac_ext
11265fi
11266echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
11267echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11268
11269echo "$as_me:$LINENO: checking size of long long int" >&5
11270echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11271if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 if test "$ac_cv_type_long_long_int" = yes; then
11275 # The cast to unsigned long works around a bug in the HP C Compiler
11276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11278 # This bug is HP SR number 8606223364.
11279 if test "$cross_compiling" = yes; then
11280 # Depending upon the size, compute the lo and hi bounds.
11281cat >conftest.$ac_ext <<_ACEOF
11282#line $LINENO "configure"
11283#include "confdefs.h"
11284$ac_includes_default
11285#ifdef F77_DUMMY_MAIN
11286# ifdef __cplusplus
11287 extern "C"
11288# endif
11289 int F77_DUMMY_MAIN() { return 1; }
11290#endif
11291int
11292main ()
11293{
11294static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
11295test_array [0] = 0
11296
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext
11302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_lo=0 ac_mid=0
11314 while :; do
11315 cat >conftest.$ac_ext <<_ACEOF
11316#line $LINENO "configure"
11317#include "confdefs.h"
11318$ac_includes_default
11319#ifdef F77_DUMMY_MAIN
11320# ifdef __cplusplus
11321 extern "C"
11322# endif
11323 int F77_DUMMY_MAIN() { return 1; }
11324#endif
11325int
11326main ()
11327{
11328static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
11329test_array [0] = 0
11330
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_hi=$ac_mid; break
11348else
11349 echo "$as_me: failed program was:" >&5
11350cat conftest.$ac_ext >&5
11351ac_lo=`expr $ac_mid + 1`
11352 if test $ac_lo -le $ac_mid; then
11353 ac_lo= ac_hi=
11354 break
11355 fi
11356 ac_mid=`expr 2 '*' $ac_mid + 1`
11357fi
11358rm -f conftest.$ac_objext conftest.$ac_ext
11359 done
11360else
11361 echo "$as_me: failed program was:" >&5
11362cat conftest.$ac_ext >&5
11363cat >conftest.$ac_ext <<_ACEOF
11364#line $LINENO "configure"
11365#include "confdefs.h"
11366$ac_includes_default
11367#ifdef F77_DUMMY_MAIN
11368# ifdef __cplusplus
11369 extern "C"
11370# endif
11371 int F77_DUMMY_MAIN() { return 1; }
11372#endif
11373int
11374main ()
11375{
11376static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
11377test_array [0] = 0
11378
11379 ;
11380 return 0;
11381}
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_hi=-1 ac_mid=-1
11396 while :; do
11397 cat >conftest.$ac_ext <<_ACEOF
11398#line $LINENO "configure"
11399#include "confdefs.h"
11400$ac_includes_default
11401#ifdef F77_DUMMY_MAIN
11402# ifdef __cplusplus
11403 extern "C"
11404# endif
11405 int F77_DUMMY_MAIN() { return 1; }
11406#endif
11407int
11408main ()
11409{
11410static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
11411test_array [0] = 0
11412
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext
11418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11419 (eval $ac_compile) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_lo=$ac_mid; break
11430else
11431 echo "$as_me: failed program was:" >&5
11432cat conftest.$ac_ext >&5
11433ac_hi=`expr '(' $ac_mid ')' - 1`
11434 if test $ac_mid -le $ac_hi; then
11435 ac_lo= ac_hi=
11436 break
11437 fi
11438 ac_mid=`expr 2 '*' $ac_mid`
11439fi
11440rm -f conftest.$ac_objext conftest.$ac_ext
11441 done
11442else
11443 echo "$as_me: failed program was:" >&5
11444cat conftest.$ac_ext >&5
11445ac_lo= ac_hi=
11446fi
11447rm -f conftest.$ac_objext conftest.$ac_ext
11448fi
11449rm -f conftest.$ac_objext conftest.$ac_ext
11450# Binary search between lo and hi bounds.
11451while test "x$ac_lo" != "x$ac_hi"; do
11452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11453 cat >conftest.$ac_ext <<_ACEOF
11454#line $LINENO "configure"
11455#include "confdefs.h"
11456$ac_includes_default
11457#ifdef F77_DUMMY_MAIN
11458# ifdef __cplusplus
11459 extern "C"
11460# endif
11461 int F77_DUMMY_MAIN() { return 1; }
11462#endif
11463int
11464main ()
11465{
11466static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
11467test_array [0] = 0
11468
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext
11474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_hi=$ac_mid
11486else
11487 echo "$as_me: failed program was:" >&5
11488cat conftest.$ac_ext >&5
11489ac_lo=`expr '(' $ac_mid ')' + 1`
11490fi
11491rm -f conftest.$ac_objext conftest.$ac_ext
11492done
11493case $ac_lo in
11494?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11495'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11496echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11497 { (exit 1); exit 1; }; } ;;
11498esac
11499else
11500 if test "$cross_compiling" = yes; then
11501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11502echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11503 { (exit 1); exit 1; }; }
11504else
11505 cat >conftest.$ac_ext <<_ACEOF
11506#line $LINENO "configure"
11507#include "confdefs.h"
11508$ac_includes_default
11509long longval () { return (long) (sizeof (long long int)); }
11510unsigned long ulongval () { return (long) (sizeof (long long int)); }
11511#include <stdio.h>
11512#include <stdlib.h>
11513#ifdef F77_DUMMY_MAIN
11514# ifdef __cplusplus
11515 extern "C"
11516# endif
11517 int F77_DUMMY_MAIN() { return 1; }
11518#endif
11519int
11520main ()
11521{
11522
11523 FILE *f = fopen ("conftest.val", "w");
11524 if (! f)
11525 exit (1);
11526 if (((long) (sizeof (long long int))) < 0)
11527 {
11528 long i = longval ();
11529 if (i != ((long) (sizeof (long long int))))
11530 exit (1);
11531 fprintf (f, "%ld\n", i);
11532 }
11533 else
11534 {
11535 unsigned long i = ulongval ();
11536 if (i != ((long) (sizeof (long long int))))
11537 exit (1);
11538 fprintf (f, "%lu\n", i);
11539 }
11540 exit (ferror (f) || fclose (f) != 0);
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest$ac_exeext
11547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_sizeof_long_long_int=`cat conftest.val`
11558else
11559 echo "$as_me: program exited with status $ac_status" >&5
11560echo "$as_me: failed program was:" >&5
11561cat conftest.$ac_ext >&5
11562( exit $ac_status )
11563{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11564echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11565 { (exit 1); exit 1; }; }
11566fi
11567rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11568fi
11569fi
11570rm -f conftest.val
11571else
11572 ac_cv_sizeof_long_long_int=0
11573fi
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11576echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11577cat >>confdefs.h <<_ACEOF
11578#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11579_ACEOF
11580
11581
11582
11583# Sanity check long long for some platforms (AIX)
11584if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11585 ac_cv_sizeof_long_long_int=0
11586fi
11587
11588# More checks for data types
11589echo "$as_me:$LINENO: checking for u_int type" >&5
11590echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11591if test "${ac_cv_have_u_int+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594
11595 cat >conftest.$ac_ext <<_ACEOF
11596#line $LINENO "configure"
11597#include "confdefs.h"
11598 #include <sys/types.h>
11599#ifdef F77_DUMMY_MAIN
11600# ifdef __cplusplus
11601 extern "C"
11602# endif
11603 int F77_DUMMY_MAIN() { return 1; }
11604#endif
11605int
11606main ()
11607{
11608 u_int a; a = 1;
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_have_u_int="yes"
11626else
11627 echo "$as_me: failed program was:" >&5
11628cat conftest.$ac_ext >&5
11629 ac_cv_have_u_int="no"
11630
11631fi
11632rm -f conftest.$ac_objext conftest.$ac_ext
11633
11634fi
11635echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11636echo "${ECHO_T}$ac_cv_have_u_int" >&6
11637if test "x$ac_cv_have_u_int" = "xyes" ; then
11638 cat >>confdefs.h <<\_ACEOF
11639#define HAVE_U_INT 1
11640_ACEOF
11641
11642 have_u_int=1
11643fi
11644
11645echo "$as_me:$LINENO: checking for intXX_t types" >&5
11646echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11647if test "${ac_cv_have_intxx_t+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650
11651 cat >conftest.$ac_ext <<_ACEOF
11652#line $LINENO "configure"
11653#include "confdefs.h"
11654 #include <sys/types.h>
11655#ifdef F77_DUMMY_MAIN
11656# ifdef __cplusplus
11657 extern "C"
11658# endif
11659 int F77_DUMMY_MAIN() { return 1; }
11660#endif
11661int
11662main ()
11663{
11664 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669rm -f conftest.$ac_objext
11670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_have_intxx_t="yes"
11682else
11683 echo "$as_me: failed program was:" >&5
11684cat conftest.$ac_ext >&5
11685 ac_cv_have_intxx_t="no"
11686
11687fi
11688rm -f conftest.$ac_objext conftest.$ac_ext
11689
11690fi
11691echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11692echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11693if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11694 cat >>confdefs.h <<\_ACEOF
11695#define HAVE_INTXX_T 1
11696_ACEOF
11697
11698 have_intxx_t=1
11699fi
11700
11701if (test -z "$have_intxx_t" && \
11702 test "x$ac_cv_header_stdint_h" = "xyes")
11703then
11704 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11705echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11706 cat >conftest.$ac_ext <<_ACEOF
11707#line $LINENO "configure"
11708#include "confdefs.h"
11709 #include <stdint.h>
11710#ifdef F77_DUMMY_MAIN
11711# ifdef __cplusplus
11712 extern "C"
11713# endif
11714 int F77_DUMMY_MAIN() { return 1; }
11715#endif
11716int
11717main ()
11718{
11719 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest.$ac_objext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738#define HAVE_INTXX_T 1
11739_ACEOF
11740
11741 echo "$as_me:$LINENO: result: yes" >&5
11742echo "${ECHO_T}yes" >&6
11743
11744else
11745 echo "$as_me: failed program was:" >&5
11746cat conftest.$ac_ext >&5
11747 echo "$as_me:$LINENO: result: no" >&5
11748echo "${ECHO_T}no" >&6
11749
11750fi
11751rm -f conftest.$ac_objext conftest.$ac_ext
11752fi
11753
11754echo "$as_me:$LINENO: checking for int64_t type" >&5
11755echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11756if test "${ac_cv_have_int64_t+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759
11760 cat >conftest.$ac_ext <<_ACEOF
11761#line $LINENO "configure"
11762#include "confdefs.h"
11763
11764#include <sys/types.h>
11765#ifdef HAVE_STDINT_H
11766# include <stdint.h>
11767#endif
11768#include <sys/socket.h>
11769#ifdef HAVE_SYS_BITYPES_H
11770# include <sys/bitypes.h>
11771#endif
11772
11773#ifdef F77_DUMMY_MAIN
11774# ifdef __cplusplus
11775 extern "C"
11776# endif
11777 int F77_DUMMY_MAIN() { return 1; }
11778#endif
11779int
11780main ()
11781{
11782 int64_t a; a = 1;
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_have_int64_t="yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802cat conftest.$ac_ext >&5
11803 ac_cv_have_int64_t="no"
11804
11805fi
11806rm -f conftest.$ac_objext conftest.$ac_ext
11807
11808fi
11809echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11810echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11811if test "x$ac_cv_have_int64_t" = "xyes" ; then
11812 cat >>confdefs.h <<\_ACEOF
11813#define HAVE_INT64_T 1
11814_ACEOF
11815
11816fi
11817
11818echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11819echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11820if test "${ac_cv_have_u_intxx_t+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822else
11823
11824 cat >conftest.$ac_ext <<_ACEOF
11825#line $LINENO "configure"
11826#include "confdefs.h"
11827 #include <sys/types.h>
11828#ifdef F77_DUMMY_MAIN
11829# ifdef __cplusplus
11830 extern "C"
11831# endif
11832 int F77_DUMMY_MAIN() { return 1; }
11833#endif
11834int
11835main ()
11836{
11837 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11838 ;
11839 return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext
11843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_have_u_intxx_t="yes"
11855else
11856 echo "$as_me: failed program was:" >&5
11857cat conftest.$ac_ext >&5
11858 ac_cv_have_u_intxx_t="no"
11859
11860fi
11861rm -f conftest.$ac_objext conftest.$ac_ext
11862
11863fi
11864echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11865echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11866if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11867 cat >>confdefs.h <<\_ACEOF
11868#define HAVE_U_INTXX_T 1
11869_ACEOF
11870
11871 have_u_intxx_t=1
11872fi
11873
11874if test -z "$have_u_intxx_t" ; then
11875 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11876echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11877 cat >conftest.$ac_ext <<_ACEOF
11878#line $LINENO "configure"
11879#include "confdefs.h"
11880 #include <sys/socket.h>
11881#ifdef F77_DUMMY_MAIN
11882# ifdef __cplusplus
11883 extern "C"
11884# endif
11885 int F77_DUMMY_MAIN() { return 1; }
11886#endif
11887int
11888main ()
11889{
11890 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext
11896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11897 (eval $ac_compile) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907
11908 cat >>confdefs.h <<\_ACEOF
11909#define HAVE_U_INTXX_T 1
11910_ACEOF
11911
11912 echo "$as_me:$LINENO: result: yes" >&5
11913echo "${ECHO_T}yes" >&6
11914
11915else
11916 echo "$as_me: failed program was:" >&5
11917cat conftest.$ac_ext >&5
11918 echo "$as_me:$LINENO: result: no" >&5
11919echo "${ECHO_T}no" >&6
11920
11921fi
11922rm -f conftest.$ac_objext conftest.$ac_ext
11923fi
11924
11925echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11926echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11927if test "${ac_cv_have_u_int64_t+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929else
11930
11931 cat >conftest.$ac_ext <<_ACEOF
11932#line $LINENO "configure"
11933#include "confdefs.h"
11934 #include <sys/types.h>
11935#ifdef F77_DUMMY_MAIN
11936# ifdef __cplusplus
11937 extern "C"
11938# endif
11939 int F77_DUMMY_MAIN() { return 1; }
11940#endif
11941int
11942main ()
11943{
11944 u_int64_t a; a = 1;
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext
11950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_have_u_int64_t="yes"
11962else
11963 echo "$as_me: failed program was:" >&5
11964cat conftest.$ac_ext >&5
11965 ac_cv_have_u_int64_t="no"
11966
11967fi
11968rm -f conftest.$ac_objext conftest.$ac_ext
11969
11970fi
11971echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11972echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11973if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11974 cat >>confdefs.h <<\_ACEOF
11975#define HAVE_U_INT64_T 1
11976_ACEOF
11977
11978 have_u_int64_t=1
11979fi
11980
11981if test -z "$have_u_int64_t" ; then
11982 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11983echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11985#line $LINENO "configure"
11986#include "confdefs.h"
11987 #include <sys/bitypes.h>
11988#ifdef F77_DUMMY_MAIN
11989# ifdef __cplusplus
11990 extern "C"
11991# endif
11992 int F77_DUMMY_MAIN() { return 1; }
11993#endif
11994int
11995main ()
11996{
11997 u_int64_t a; a = 1
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext
12003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014
12015 cat >>confdefs.h <<\_ACEOF
12016#define HAVE_U_INT64_T 1
12017_ACEOF
12018
12019 echo "$as_me:$LINENO: result: yes" >&5
12020echo "${ECHO_T}yes" >&6
12021
12022else
12023 echo "$as_me: failed program was:" >&5
12024cat conftest.$ac_ext >&5
12025 echo "$as_me:$LINENO: result: no" >&5
12026echo "${ECHO_T}no" >&6
12027
12028fi
12029rm -f conftest.$ac_objext conftest.$ac_ext
12030fi
12031
12032if test -z "$have_u_intxx_t" ; then
12033 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
12034echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12035if test "${ac_cv_have_uintxx_t+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038
12039 cat >conftest.$ac_ext <<_ACEOF
12040#line $LINENO "configure"
12041#include "confdefs.h"
12042
12043#include <sys/types.h>
12044
12045#ifdef F77_DUMMY_MAIN
12046# ifdef __cplusplus
12047 extern "C"
12048# endif
12049 int F77_DUMMY_MAIN() { return 1; }
12050#endif
12051int
12052main ()
12053{
12054 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext
12060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_have_uintxx_t="yes"
12072else
12073 echo "$as_me: failed program was:" >&5
12074cat conftest.$ac_ext >&5
12075 ac_cv_have_uintxx_t="no"
12076
12077fi
12078rm -f conftest.$ac_objext conftest.$ac_ext
12079
12080fi
12081echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
12082echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
12083 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12084 cat >>confdefs.h <<\_ACEOF
12085#define HAVE_UINTXX_T 1
12086_ACEOF
12087
12088 fi
12089fi
12090
12091if test -z "$have_uintxx_t" ; then
12092 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
12093echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12095#line $LINENO "configure"
12096#include "confdefs.h"
12097 #include <stdint.h>
12098#ifdef F77_DUMMY_MAIN
12099# ifdef __cplusplus
12100 extern "C"
12101# endif
12102 int F77_DUMMY_MAIN() { return 1; }
12103#endif
12104int
12105main ()
12106{
12107 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12108 ;
12109 return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124
12125 cat >>confdefs.h <<\_ACEOF
12126#define HAVE_UINTXX_T 1
12127_ACEOF
12128
12129 echo "$as_me:$LINENO: result: yes" >&5
12130echo "${ECHO_T}yes" >&6
12131
12132else
12133 echo "$as_me: failed program was:" >&5
12134cat conftest.$ac_ext >&5
12135 echo "$as_me:$LINENO: result: no" >&5
12136echo "${ECHO_T}no" >&6
12137
12138fi
12139rm -f conftest.$ac_objext conftest.$ac_ext
12140fi
12141
12142if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12143 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12144then
12145 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12146echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12148#line $LINENO "configure"
12149#include "confdefs.h"
12150
12151#include <sys/bitypes.h>
12152
12153#ifdef F77_DUMMY_MAIN
12154# ifdef __cplusplus
12155 extern "C"
12156# endif
12157 int F77_DUMMY_MAIN() { return 1; }
12158#endif
12159int
12160main ()
12161{
12162
12163 int8_t a; int16_t b; int32_t c;
12164 u_int8_t e; u_int16_t f; u_int32_t g;
12165 a = b = c = e = f = g = 1;
12166
12167 ;
12168 return 0;
12169}
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183
12184 cat >>confdefs.h <<\_ACEOF
12185#define HAVE_U_INTXX_T 1
12186_ACEOF
12187
12188 cat >>confdefs.h <<\_ACEOF
12189#define HAVE_INTXX_T 1
12190_ACEOF
12191
12192 echo "$as_me:$LINENO: result: yes" >&5
12193echo "${ECHO_T}yes" >&6
12194
12195else
12196 echo "$as_me: failed program was:" >&5
12197cat conftest.$ac_ext >&5
12198echo "$as_me:$LINENO: result: no" >&5
12199echo "${ECHO_T}no" >&6
12200
12201fi
12202rm -f conftest.$ac_objext conftest.$ac_ext
12203fi
12204
12205
12206echo "$as_me:$LINENO: checking for u_char" >&5
12207echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12208if test "${ac_cv_have_u_char+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211
12212 cat >conftest.$ac_ext <<_ACEOF
12213#line $LINENO "configure"
12214#include "confdefs.h"
12215
12216#include <sys/types.h>
12217
12218#ifdef F77_DUMMY_MAIN
12219# ifdef __cplusplus
12220 extern "C"
12221# endif
12222 int F77_DUMMY_MAIN() { return 1; }
12223#endif
12224int
12225main ()
12226{
12227 u_char foo; foo = 125;
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext
12233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_have_u_char="yes"
12245else
12246 echo "$as_me: failed program was:" >&5
12247cat conftest.$ac_ext >&5
12248 ac_cv_have_u_char="no"
12249
12250fi
12251rm -f conftest.$ac_objext conftest.$ac_ext
12252
12253fi
12254echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
12255echo "${ECHO_T}$ac_cv_have_u_char" >&6
12256if test "x$ac_cv_have_u_char" = "xyes" ; then
12257 cat >>confdefs.h <<\_ACEOF
12258#define HAVE_U_CHAR 1
12259_ACEOF
12260
12261fi
12262
12263
12264 echo "$as_me:$LINENO: checking for socklen_t" >&5
12265echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12266if test "${ac_cv_type_socklen_t+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270#line $LINENO "configure"
12271#include "confdefs.h"
12272#include <sys/types.h>
12273#include <sys/socket.h>
12274
12275#ifdef F77_DUMMY_MAIN
12276# ifdef __cplusplus
12277 extern "C"
12278# endif
12279 int F77_DUMMY_MAIN() { return 1; }
12280#endif
12281int
12282main ()
12283{
12284if ((socklen_t *) 0)
12285 return 0;
12286if (sizeof (socklen_t))
12287 return 0;
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_type_socklen_t=yes
12305else
12306 echo "$as_me: failed program was:" >&5
12307cat conftest.$ac_ext >&5
12308ac_cv_type_socklen_t=no
12309fi
12310rm -f conftest.$ac_objext conftest.$ac_ext
12311fi
12312echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12313echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12314if test $ac_cv_type_socklen_t = yes; then
12315 :
12316else
12317
12318 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12319echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12320 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323
12324 # Systems have either "struct sockaddr *" or
12325 # "void *" as the second argument to getpeername
12326 curl_cv_socklen_t_equiv=
12327 for arg2 in "struct sockaddr" void; do
12328 for t in int size_t unsigned long "unsigned long"; do
12329 cat >conftest.$ac_ext <<_ACEOF
12330#line $LINENO "configure"
12331#include "confdefs.h"
12332
12333 #include <sys/types.h>
12334 #include <sys/socket.h>
12335
12336 int getpeername (int, $arg2 *, $t *);
12337
12338#ifdef F77_DUMMY_MAIN
12339# ifdef __cplusplus
12340 extern "C"
12341# endif
12342 int F77_DUMMY_MAIN() { return 1; }
12343#endif
12344int
12345main ()
12346{
12347
12348 $t len;
12349 getpeername(0,0,&len);
12350
12351 ;
12352 return 0;
12353}
12354_ACEOF
12355rm -f conftest.$ac_objext
12356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -s conftest.$ac_objext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367
12368 curl_cv_socklen_t_equiv="$t"
12369 break
12370
12371else
12372 echo "$as_me: failed program was:" >&5
12373cat conftest.$ac_ext >&5
12374fi
12375rm -f conftest.$ac_objext conftest.$ac_ext
12376 done
12377 done
12378
12379 if test "x$curl_cv_socklen_t_equiv" = x; then
12380 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12381echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12382 { (exit 1); exit 1; }; }
12383 fi
12384
12385fi
12386
12387 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12388echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12389
12390cat >>confdefs.h <<_ACEOF
12391#define socklen_t $curl_cv_socklen_t_equiv
12392_ACEOF
12393
12394fi
12395
12396
12397
12398echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12399echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12400if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 cat >conftest.$ac_ext <<_ACEOF
12404#line $LINENO "configure"
12405#include "confdefs.h"
12406#include <signal.h>
12407
12408#ifdef F77_DUMMY_MAIN
12409# ifdef __cplusplus
12410 extern "C"
12411# endif
12412 int F77_DUMMY_MAIN() { return 1; }
12413#endif
12414int
12415main ()
12416{
12417if ((sig_atomic_t *) 0)
12418 return 0;
12419if (sizeof (sig_atomic_t))
12420 return 0;
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_type_sig_atomic_t=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440cat conftest.$ac_ext >&5
12441ac_cv_type_sig_atomic_t=no
12442fi
12443rm -f conftest.$ac_objext conftest.$ac_ext
12444fi
12445echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12446echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12447if test $ac_cv_type_sig_atomic_t = yes; then
12448
12449cat >>confdefs.h <<_ACEOF
12450#define HAVE_SIG_ATOMIC_T 1
12451_ACEOF
12452
12453
12454fi
12455
12456
12457echo "$as_me:$LINENO: checking for size_t" >&5
12458echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12459if test "${ac_cv_have_size_t+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462
12463 cat >conftest.$ac_ext <<_ACEOF
12464#line $LINENO "configure"
12465#include "confdefs.h"
12466
12467#include <sys/types.h>
12468
12469#ifdef F77_DUMMY_MAIN
12470# ifdef __cplusplus
12471 extern "C"
12472# endif
12473 int F77_DUMMY_MAIN() { return 1; }
12474#endif
12475int
12476main ()
12477{
12478 size_t foo; foo = 1235;
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_have_size_t="yes"
12496else
12497 echo "$as_me: failed program was:" >&5
12498cat conftest.$ac_ext >&5
12499 ac_cv_have_size_t="no"
12500
12501fi
12502rm -f conftest.$ac_objext conftest.$ac_ext
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12506echo "${ECHO_T}$ac_cv_have_size_t" >&6
12507if test "x$ac_cv_have_size_t" = "xyes" ; then
12508 cat >>confdefs.h <<\_ACEOF
12509#define HAVE_SIZE_T 1
12510_ACEOF
12511
12512fi
12513
12514echo "$as_me:$LINENO: checking for ssize_t" >&5
12515echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12516if test "${ac_cv_have_ssize_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519
12520 cat >conftest.$ac_ext <<_ACEOF
12521#line $LINENO "configure"
12522#include "confdefs.h"
12523
12524#include <sys/types.h>
12525
12526#ifdef F77_DUMMY_MAIN
12527# ifdef __cplusplus
12528 extern "C"
12529# endif
12530 int F77_DUMMY_MAIN() { return 1; }
12531#endif
12532int
12533main ()
12534{
12535 ssize_t foo; foo = 1235;
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_have_ssize_t="yes"
12553else
12554 echo "$as_me: failed program was:" >&5
12555cat conftest.$ac_ext >&5
12556 ac_cv_have_ssize_t="no"
12557
12558fi
12559rm -f conftest.$ac_objext conftest.$ac_ext
12560
12561fi
12562echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12563echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12564if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12565 cat >>confdefs.h <<\_ACEOF
12566#define HAVE_SSIZE_T 1
12567_ACEOF
12568
12569fi
12570
12571echo "$as_me:$LINENO: checking for clock_t" >&5
12572echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12573if test "${ac_cv_have_clock_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575else
12576
12577 cat >conftest.$ac_ext <<_ACEOF
12578#line $LINENO "configure"
12579#include "confdefs.h"
12580
12581#include <time.h>
12582
12583#ifdef F77_DUMMY_MAIN
12584# ifdef __cplusplus
12585 extern "C"
12586# endif
12587 int F77_DUMMY_MAIN() { return 1; }
12588#endif
12589int
12590main ()
12591{
12592 clock_t foo; foo = 1235;
12593 ;
12594 return 0;
12595}
12596_ACEOF
12597rm -f conftest.$ac_objext
12598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_have_clock_t="yes"
12610else
12611 echo "$as_me: failed program was:" >&5
12612cat conftest.$ac_ext >&5
12613 ac_cv_have_clock_t="no"
12614
12615fi
12616rm -f conftest.$ac_objext conftest.$ac_ext
12617
12618fi
12619echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12620echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12621if test "x$ac_cv_have_clock_t" = "xyes" ; then
12622 cat >>confdefs.h <<\_ACEOF
12623#define HAVE_CLOCK_T 1
12624_ACEOF
12625
12626fi
12627
12628echo "$as_me:$LINENO: checking for sa_family_t" >&5
12629echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12630if test "${ac_cv_have_sa_family_t+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633
12634 cat >conftest.$ac_ext <<_ACEOF
12635#line $LINENO "configure"
12636#include "confdefs.h"
12637
12638#include <sys/types.h>
12639#include <sys/socket.h>
12640
12641#ifdef F77_DUMMY_MAIN
12642# ifdef __cplusplus
12643 extern "C"
12644# endif
12645 int F77_DUMMY_MAIN() { return 1; }
12646#endif
12647int
12648main ()
12649{
12650 sa_family_t foo; foo = 1235;
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655rm -f conftest.$ac_objext
12656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_have_sa_family_t="yes"
12668else
12669 echo "$as_me: failed program was:" >&5
12670cat conftest.$ac_ext >&5
12671 cat >conftest.$ac_ext <<_ACEOF
12672#line $LINENO "configure"
12673#include "confdefs.h"
12674
12675#include <sys/types.h>
12676#include <sys/socket.h>
12677#include <netinet/in.h>
12678
12679#ifdef F77_DUMMY_MAIN
12680# ifdef __cplusplus
12681 extern "C"
12682# endif
12683 int F77_DUMMY_MAIN() { return 1; }
12684#endif
12685int
12686main ()
12687{
12688 sa_family_t foo; foo = 1235;
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_have_sa_family_t="yes"
12706else
12707 echo "$as_me: failed program was:" >&5
12708cat conftest.$ac_ext >&5
12709 ac_cv_have_sa_family_t="no"
12710
12711fi
12712rm -f conftest.$ac_objext conftest.$ac_ext
12713
12714fi
12715rm -f conftest.$ac_objext conftest.$ac_ext
12716
12717fi
12718echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12719echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12720if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12721 cat >>confdefs.h <<\_ACEOF
12722#define HAVE_SA_FAMILY_T 1
12723_ACEOF
12724
12725fi
12726
12727echo "$as_me:$LINENO: checking for pid_t" >&5
12728echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12729if test "${ac_cv_have_pid_t+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732
12733 cat >conftest.$ac_ext <<_ACEOF
12734#line $LINENO "configure"
12735#include "confdefs.h"
12736
12737#include <sys/types.h>
12738
12739#ifdef F77_DUMMY_MAIN
12740# ifdef __cplusplus
12741 extern "C"
12742# endif
12743 int F77_DUMMY_MAIN() { return 1; }
12744#endif
12745int
12746main ()
12747{
12748 pid_t foo; foo = 1235;
12749 ;
12750 return 0;
12751}
12752_ACEOF
12753rm -f conftest.$ac_objext
12754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_have_pid_t="yes"
12766else
12767 echo "$as_me: failed program was:" >&5
12768cat conftest.$ac_ext >&5
12769 ac_cv_have_pid_t="no"
12770
12771fi
12772rm -f conftest.$ac_objext conftest.$ac_ext
12773
12774fi
12775echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12776echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12777if test "x$ac_cv_have_pid_t" = "xyes" ; then
12778 cat >>confdefs.h <<\_ACEOF
12779#define HAVE_PID_T 1
12780_ACEOF
12781
12782fi
12783
12784echo "$as_me:$LINENO: checking for mode_t" >&5
12785echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12786if test "${ac_cv_have_mode_t+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789
12790 cat >conftest.$ac_ext <<_ACEOF
12791#line $LINENO "configure"
12792#include "confdefs.h"
12793
12794#include <sys/types.h>
12795
12796#ifdef F77_DUMMY_MAIN
12797# ifdef __cplusplus
12798 extern "C"
12799# endif
12800 int F77_DUMMY_MAIN() { return 1; }
12801#endif
12802int
12803main ()
12804{
12805 mode_t foo; foo = 1235;
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_have_mode_t="yes"
12823else
12824 echo "$as_me: failed program was:" >&5
12825cat conftest.$ac_ext >&5
12826 ac_cv_have_mode_t="no"
12827
12828fi
12829rm -f conftest.$ac_objext conftest.$ac_ext
12830
12831fi
12832echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12833echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12834if test "x$ac_cv_have_mode_t" = "xyes" ; then
12835 cat >>confdefs.h <<\_ACEOF
12836#define HAVE_MODE_T 1
12837_ACEOF
12838
12839fi
12840
12841
12842echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12843echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12844if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847
12848 cat >conftest.$ac_ext <<_ACEOF
12849#line $LINENO "configure"
12850#include "confdefs.h"
12851
12852#include <sys/types.h>
12853#include <sys/socket.h>
12854
12855#ifdef F77_DUMMY_MAIN
12856# ifdef __cplusplus
12857 extern "C"
12858# endif
12859 int F77_DUMMY_MAIN() { return 1; }
12860#endif
12861int
12862main ()
12863{
12864 struct sockaddr_storage s;
12865 ;
12866 return 0;
12867}
12868_ACEOF
12869rm -f conftest.$ac_objext
12870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_have_struct_sockaddr_storage="yes"
12882else
12883 echo "$as_me: failed program was:" >&5
12884cat conftest.$ac_ext >&5
12885 ac_cv_have_struct_sockaddr_storage="no"
12886
12887fi
12888rm -f conftest.$ac_objext conftest.$ac_ext
12889
12890fi
12891echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12892echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12893if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12894 cat >>confdefs.h <<\_ACEOF
12895#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12896_ACEOF
12897
12898fi
12899
12900echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12901echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12902if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905
12906 cat >conftest.$ac_ext <<_ACEOF
12907#line $LINENO "configure"
12908#include "confdefs.h"
12909
12910#include <sys/types.h>
12911#include <netinet/in.h>
12912
12913#ifdef F77_DUMMY_MAIN
12914# ifdef __cplusplus
12915 extern "C"
12916# endif
12917 int F77_DUMMY_MAIN() { return 1; }
12918#endif
12919int
12920main ()
12921{
12922 struct sockaddr_in6 s; s.sin6_family = 0;
12923 ;
12924 return 0;
12925}
12926_ACEOF
12927rm -f conftest.$ac_objext
12928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_have_struct_sockaddr_in6="yes"
12940else
12941 echo "$as_me: failed program was:" >&5
12942cat conftest.$ac_ext >&5
12943 ac_cv_have_struct_sockaddr_in6="no"
12944
12945fi
12946rm -f conftest.$ac_objext conftest.$ac_ext
12947
12948fi
12949echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12950echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12951if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12952 cat >>confdefs.h <<\_ACEOF
12953#define HAVE_STRUCT_SOCKADDR_IN6 1
12954_ACEOF
12955
12956fi
12957
12958echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12959echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12960if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
12963
12964 cat >conftest.$ac_ext <<_ACEOF
12965#line $LINENO "configure"
12966#include "confdefs.h"
12967
12968#include <sys/types.h>
12969#include <netinet/in.h>
12970
12971#ifdef F77_DUMMY_MAIN
12972# ifdef __cplusplus
12973 extern "C"
12974# endif
12975 int F77_DUMMY_MAIN() { return 1; }
12976#endif
12977int
12978main ()
12979{
12980 struct in6_addr s; s.s6_addr[0] = 0;
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext
12986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_have_struct_in6_addr="yes"
12998else
12999 echo "$as_me: failed program was:" >&5
13000cat conftest.$ac_ext >&5
13001 ac_cv_have_struct_in6_addr="no"
13002
13003fi
13004rm -f conftest.$ac_objext conftest.$ac_ext
13005
13006fi
13007echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
13008echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13009if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13010 cat >>confdefs.h <<\_ACEOF
13011#define HAVE_STRUCT_IN6_ADDR 1
13012_ACEOF
13013
13014fi
13015
13016echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13017echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13018if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021
13022 cat >conftest.$ac_ext <<_ACEOF
13023#line $LINENO "configure"
13024#include "confdefs.h"
13025
13026#include <sys/types.h>
13027#include <sys/socket.h>
13028#include <netdb.h>
13029
13030#ifdef F77_DUMMY_MAIN
13031# ifdef __cplusplus
13032 extern "C"
13033# endif
13034 int F77_DUMMY_MAIN() { return 1; }
13035#endif
13036int
13037main ()
13038{
13039 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13040 ;
13041 return 0;
13042}
13043_ACEOF
13044rm -f conftest.$ac_objext
13045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_have_struct_addrinfo="yes"
13057else
13058 echo "$as_me: failed program was:" >&5
13059cat conftest.$ac_ext >&5
13060 ac_cv_have_struct_addrinfo="no"
13061
13062fi
13063rm -f conftest.$ac_objext conftest.$ac_ext
13064
13065fi
13066echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
13067echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13068if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13069 cat >>confdefs.h <<\_ACEOF
13070#define HAVE_STRUCT_ADDRINFO 1
13071_ACEOF
13072
13073fi
13074
13075echo "$as_me:$LINENO: checking for struct timeval" >&5
13076echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13077if test "${ac_cv_have_struct_timeval+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080
13081 cat >conftest.$ac_ext <<_ACEOF
13082#line $LINENO "configure"
13083#include "confdefs.h"
13084 #include <sys/time.h>
13085#ifdef F77_DUMMY_MAIN
13086# ifdef __cplusplus
13087 extern "C"
13088# endif
13089 int F77_DUMMY_MAIN() { return 1; }
13090#endif
13091int
13092main ()
13093{
13094 struct timeval tv; tv.tv_sec = 1;
13095 ;
13096 return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext
13100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_have_struct_timeval="yes"
13112else
13113 echo "$as_me: failed program was:" >&5
13114cat conftest.$ac_ext >&5
13115 ac_cv_have_struct_timeval="no"
13116
13117fi
13118rm -f conftest.$ac_objext conftest.$ac_ext
13119
13120fi
13121echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
13122echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13123if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13124 cat >>confdefs.h <<\_ACEOF
13125#define HAVE_STRUCT_TIMEVAL 1
13126_ACEOF
13127
13128 have_struct_timeval=1
13129fi
13130
13131# If we don't have int64_t then we can't compile sftp-server. So don't
13132# even attempt to do it.
13133if test "x$ac_cv_have_int64_t" = "xno" -a \
13134 "x$ac_cv_sizeof_long_int" != "x8" -a \
13135 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13136 NO_SFTP='#'
13137else
13138 if test "$cross_compiling" = yes; then
13139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13140echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13141 { (exit 1); exit 1; }; }
13142else
13143 cat >conftest.$ac_ext <<_ACEOF
13144#line $LINENO "configure"
13145#include "confdefs.h"
13146
13147#include <stdio.h>
13148#include <string.h>
13149#ifdef HAVE_SNPRINTF
13150main()
13151{
13152 char buf[50];
13153 char expected_out[50];
13154 int mazsize = 50 ;
13155#if (SIZEOF_LONG_INT == 8)
13156 long int num = 0x7fffffffffffffff;
13157#else
13158 long long num = 0x7fffffffffffffffll;
13159#endif
13160 strcpy(expected_out, "9223372036854775807");
13161 snprintf(buf, mazsize, "%lld", num);
13162 if(strcmp(buf, expected_out) != 0)
13163 exit(1);
13164 exit(0);
13165}
13166#else
13167main() { exit(0); }
13168#endif
13169
13170_ACEOF
13171rm -f conftest$ac_exeext
13172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 true
13183else
13184 echo "$as_me: program exited with status $ac_status" >&5
13185echo "$as_me: failed program was:" >&5
13186cat conftest.$ac_ext >&5
13187( exit $ac_status )
13188 cat >>confdefs.h <<\_ACEOF
13189#define BROKEN_SNPRINTF 1
13190_ACEOF
13191
13192
13193fi
13194rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195fi
13196fi
13197
13198
13199
13200# look for field 'ut_host' in header 'utmp.h'
13201 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13202 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13203 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
13204echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
13205 if eval "test \"\${$ossh_varname+set}\" = set"; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208
13209 cat >conftest.$ac_ext <<_ACEOF
13210#line $LINENO "configure"
13211#include "confdefs.h"
13212#include <utmp.h>
13213
13214_ACEOF
13215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 egrep "ut_host" >/dev/null 2>&1; then
13217 eval "$ossh_varname=yes"
13218else
13219 eval "$ossh_varname=no"
13220fi
13221rm -f conftest*
13222
13223fi
13224
13225 ossh_result=`eval 'echo $'"$ossh_varname"`
13226 if test -n "`echo $ossh_varname`"; then
13227 echo "$as_me:$LINENO: result: $ossh_result" >&5
13228echo "${ECHO_T}$ossh_result" >&6
13229 if test "x$ossh_result" = "xyes"; then
13230 cat >>confdefs.h <<\_ACEOF
13231#define HAVE_HOST_IN_UTMP 1
13232_ACEOF
13233
13234 fi
13235 else
13236 echo "$as_me:$LINENO: result: no" >&5
13237echo "${ECHO_T}no" >&6
13238 fi
13239
13240
13241# look for field 'ut_host' in header 'utmpx.h'
13242 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13243 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13244 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
13245echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
13246 if eval "test \"\${$ossh_varname+set}\" = set"; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248else
13249
13250 cat >conftest.$ac_ext <<_ACEOF
13251#line $LINENO "configure"
13252#include "confdefs.h"
13253#include <utmpx.h>
13254
13255_ACEOF
13256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257 egrep "ut_host" >/dev/null 2>&1; then
13258 eval "$ossh_varname=yes"
13259else
13260 eval "$ossh_varname=no"
13261fi
13262rm -f conftest*
13263
13264fi
13265
13266 ossh_result=`eval 'echo $'"$ossh_varname"`
13267 if test -n "`echo $ossh_varname`"; then
13268 echo "$as_me:$LINENO: result: $ossh_result" >&5
13269echo "${ECHO_T}$ossh_result" >&6
13270 if test "x$ossh_result" = "xyes"; then
13271 cat >>confdefs.h <<\_ACEOF
13272#define HAVE_HOST_IN_UTMPX 1
13273_ACEOF
13274
13275 fi
13276 else
13277 echo "$as_me:$LINENO: result: no" >&5
13278echo "${ECHO_T}no" >&6
13279 fi
13280
13281
13282# look for field 'syslen' in header 'utmpx.h'
13283 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13284 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13285 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
13286echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13287 if eval "test \"\${$ossh_varname+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289else
13290
13291 cat >conftest.$ac_ext <<_ACEOF
13292#line $LINENO "configure"
13293#include "confdefs.h"
13294#include <utmpx.h>
13295
13296_ACEOF
13297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298 egrep "syslen" >/dev/null 2>&1; then
13299 eval "$ossh_varname=yes"
13300else
13301 eval "$ossh_varname=no"
13302fi
13303rm -f conftest*
13304
13305fi
13306
13307 ossh_result=`eval 'echo $'"$ossh_varname"`
13308 if test -n "`echo $ossh_varname`"; then
13309 echo "$as_me:$LINENO: result: $ossh_result" >&5
13310echo "${ECHO_T}$ossh_result" >&6
13311 if test "x$ossh_result" = "xyes"; then
13312 cat >>confdefs.h <<\_ACEOF
13313#define HAVE_SYSLEN_IN_UTMPX 1
13314_ACEOF
13315
13316 fi
13317 else
13318 echo "$as_me:$LINENO: result: no" >&5
13319echo "${ECHO_T}no" >&6
13320 fi
13321
13322
13323# look for field 'ut_pid' in header 'utmp.h'
13324 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13325 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13326 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
13327echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13328 if eval "test \"\${$ossh_varname+set}\" = set"; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331
13332 cat >conftest.$ac_ext <<_ACEOF
13333#line $LINENO "configure"
13334#include "confdefs.h"
13335#include <utmp.h>
13336
13337_ACEOF
13338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13339 egrep "ut_pid" >/dev/null 2>&1; then
13340 eval "$ossh_varname=yes"
13341else
13342 eval "$ossh_varname=no"
13343fi
13344rm -f conftest*
13345
13346fi
13347
13348 ossh_result=`eval 'echo $'"$ossh_varname"`
13349 if test -n "`echo $ossh_varname`"; then
13350 echo "$as_me:$LINENO: result: $ossh_result" >&5
13351echo "${ECHO_T}$ossh_result" >&6
13352 if test "x$ossh_result" = "xyes"; then
13353 cat >>confdefs.h <<\_ACEOF
13354#define HAVE_PID_IN_UTMP 1
13355_ACEOF
13356
13357 fi
13358 else
13359 echo "$as_me:$LINENO: result: no" >&5
13360echo "${ECHO_T}no" >&6
13361 fi
13362
13363
13364# look for field 'ut_type' in header 'utmp.h'
13365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13367 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13368echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13369 if eval "test \"\${$ossh_varname+set}\" = set"; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372
13373 cat >conftest.$ac_ext <<_ACEOF
13374#line $LINENO "configure"
13375#include "confdefs.h"
13376#include <utmp.h>
13377
13378_ACEOF
13379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13380 egrep "ut_type" >/dev/null 2>&1; then
13381 eval "$ossh_varname=yes"
13382else
13383 eval "$ossh_varname=no"
13384fi
13385rm -f conftest*
13386
13387fi
13388
13389 ossh_result=`eval 'echo $'"$ossh_varname"`
13390 if test -n "`echo $ossh_varname`"; then
13391 echo "$as_me:$LINENO: result: $ossh_result" >&5
13392echo "${ECHO_T}$ossh_result" >&6
13393 if test "x$ossh_result" = "xyes"; then
13394 cat >>confdefs.h <<\_ACEOF
13395#define HAVE_TYPE_IN_UTMP 1
13396_ACEOF
13397
13398 fi
13399 else
13400 echo "$as_me:$LINENO: result: no" >&5
13401echo "${ECHO_T}no" >&6
13402 fi
13403
13404
13405# look for field 'ut_type' in header 'utmpx.h'
13406 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13407 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13408 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13409echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13410 if eval "test \"\${$ossh_varname+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
13413
13414 cat >conftest.$ac_ext <<_ACEOF
13415#line $LINENO "configure"
13416#include "confdefs.h"
13417#include <utmpx.h>
13418
13419_ACEOF
13420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 egrep "ut_type" >/dev/null 2>&1; then
13422 eval "$ossh_varname=yes"
13423else
13424 eval "$ossh_varname=no"
13425fi
13426rm -f conftest*
13427
13428fi
13429
13430 ossh_result=`eval 'echo $'"$ossh_varname"`
13431 if test -n "`echo $ossh_varname`"; then
13432 echo "$as_me:$LINENO: result: $ossh_result" >&5
13433echo "${ECHO_T}$ossh_result" >&6
13434 if test "x$ossh_result" = "xyes"; then
13435 cat >>confdefs.h <<\_ACEOF
13436#define HAVE_TYPE_IN_UTMPX 1
13437_ACEOF
13438
13439 fi
13440 else
13441 echo "$as_me:$LINENO: result: no" >&5
13442echo "${ECHO_T}no" >&6
13443 fi
13444
13445
13446# look for field 'ut_tv' in header 'utmp.h'
13447 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13448 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13449 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13450echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13451 if eval "test \"\${$ossh_varname+set}\" = set"; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454
13455 cat >conftest.$ac_ext <<_ACEOF
13456#line $LINENO "configure"
13457#include "confdefs.h"
13458#include <utmp.h>
13459
13460_ACEOF
13461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 egrep "ut_tv" >/dev/null 2>&1; then
13463 eval "$ossh_varname=yes"
13464else
13465 eval "$ossh_varname=no"
13466fi
13467rm -f conftest*
13468
13469fi
13470
13471 ossh_result=`eval 'echo $'"$ossh_varname"`
13472 if test -n "`echo $ossh_varname`"; then
13473 echo "$as_me:$LINENO: result: $ossh_result" >&5
13474echo "${ECHO_T}$ossh_result" >&6
13475 if test "x$ossh_result" = "xyes"; then
13476 cat >>confdefs.h <<\_ACEOF
13477#define HAVE_TV_IN_UTMP 1
13478_ACEOF
13479
13480 fi
13481 else
13482 echo "$as_me:$LINENO: result: no" >&5
13483echo "${ECHO_T}no" >&6
13484 fi
13485
13486
13487# look for field 'ut_id' in header 'utmp.h'
13488 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13489 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13490 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13491echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13492 if eval "test \"\${$ossh_varname+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495
13496 cat >conftest.$ac_ext <<_ACEOF
13497#line $LINENO "configure"
13498#include "confdefs.h"
13499#include <utmp.h>
13500
13501_ACEOF
13502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13503 egrep "ut_id" >/dev/null 2>&1; then
13504 eval "$ossh_varname=yes"
13505else
13506 eval "$ossh_varname=no"
13507fi
13508rm -f conftest*
13509
13510fi
13511
13512 ossh_result=`eval 'echo $'"$ossh_varname"`
13513 if test -n "`echo $ossh_varname`"; then
13514 echo "$as_me:$LINENO: result: $ossh_result" >&5
13515echo "${ECHO_T}$ossh_result" >&6
13516 if test "x$ossh_result" = "xyes"; then
13517 cat >>confdefs.h <<\_ACEOF
13518#define HAVE_ID_IN_UTMP 1
13519_ACEOF
13520
13521 fi
13522 else
13523 echo "$as_me:$LINENO: result: no" >&5
13524echo "${ECHO_T}no" >&6
13525 fi
13526
13527
13528# look for field 'ut_id' in header 'utmpx.h'
13529 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13530 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13531 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13532echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13533 if eval "test \"\${$ossh_varname+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536
13537 cat >conftest.$ac_ext <<_ACEOF
13538#line $LINENO "configure"
13539#include "confdefs.h"
13540#include <utmpx.h>
13541
13542_ACEOF
13543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13544 egrep "ut_id" >/dev/null 2>&1; then
13545 eval "$ossh_varname=yes"
13546else
13547 eval "$ossh_varname=no"
13548fi
13549rm -f conftest*
13550
13551fi
13552
13553 ossh_result=`eval 'echo $'"$ossh_varname"`
13554 if test -n "`echo $ossh_varname`"; then
13555 echo "$as_me:$LINENO: result: $ossh_result" >&5
13556echo "${ECHO_T}$ossh_result" >&6
13557 if test "x$ossh_result" = "xyes"; then
13558 cat >>confdefs.h <<\_ACEOF
13559#define HAVE_ID_IN_UTMPX 1
13560_ACEOF
13561
13562 fi
13563 else
13564 echo "$as_me:$LINENO: result: no" >&5
13565echo "${ECHO_T}no" >&6
13566 fi
13567
13568
13569# look for field 'ut_addr' in header 'utmp.h'
13570 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13571 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13572 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13573echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13574 if eval "test \"\${$ossh_varname+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
13577
13578 cat >conftest.$ac_ext <<_ACEOF
13579#line $LINENO "configure"
13580#include "confdefs.h"
13581#include <utmp.h>
13582
13583_ACEOF
13584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585 egrep "ut_addr" >/dev/null 2>&1; then
13586 eval "$ossh_varname=yes"
13587else
13588 eval "$ossh_varname=no"
13589fi
13590rm -f conftest*
13591
13592fi
13593
13594 ossh_result=`eval 'echo $'"$ossh_varname"`
13595 if test -n "`echo $ossh_varname`"; then
13596 echo "$as_me:$LINENO: result: $ossh_result" >&5
13597echo "${ECHO_T}$ossh_result" >&6
13598 if test "x$ossh_result" = "xyes"; then
13599 cat >>confdefs.h <<\_ACEOF
13600#define HAVE_ADDR_IN_UTMP 1
13601_ACEOF
13602
13603 fi
13604 else
13605 echo "$as_me:$LINENO: result: no" >&5
13606echo "${ECHO_T}no" >&6
13607 fi
13608
13609
13610# look for field 'ut_addr' in header 'utmpx.h'
13611 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13612 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13613 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13614echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13615 if eval "test \"\${$ossh_varname+set}\" = set"; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618
13619 cat >conftest.$ac_ext <<_ACEOF
13620#line $LINENO "configure"
13621#include "confdefs.h"
13622#include <utmpx.h>
13623
13624_ACEOF
13625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 egrep "ut_addr" >/dev/null 2>&1; then
13627 eval "$ossh_varname=yes"
13628else
13629 eval "$ossh_varname=no"
13630fi
13631rm -f conftest*
13632
13633fi
13634
13635 ossh_result=`eval 'echo $'"$ossh_varname"`
13636 if test -n "`echo $ossh_varname`"; then
13637 echo "$as_me:$LINENO: result: $ossh_result" >&5
13638echo "${ECHO_T}$ossh_result" >&6
13639 if test "x$ossh_result" = "xyes"; then
13640 cat >>confdefs.h <<\_ACEOF
13641#define HAVE_ADDR_IN_UTMPX 1
13642_ACEOF
13643
13644 fi
13645 else
13646 echo "$as_me:$LINENO: result: no" >&5
13647echo "${ECHO_T}no" >&6
13648 fi
13649
13650
13651# look for field 'ut_addr_v6' in header 'utmp.h'
13652 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13653 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13654 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13655echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13656 if eval "test \"\${$ossh_varname+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659
13660 cat >conftest.$ac_ext <<_ACEOF
13661#line $LINENO "configure"
13662#include "confdefs.h"
13663#include <utmp.h>
13664
13665_ACEOF
13666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 egrep "ut_addr_v6" >/dev/null 2>&1; then
13668 eval "$ossh_varname=yes"
13669else
13670 eval "$ossh_varname=no"
13671fi
13672rm -f conftest*
13673
13674fi
13675
13676 ossh_result=`eval 'echo $'"$ossh_varname"`
13677 if test -n "`echo $ossh_varname`"; then
13678 echo "$as_me:$LINENO: result: $ossh_result" >&5
13679echo "${ECHO_T}$ossh_result" >&6
13680 if test "x$ossh_result" = "xyes"; then
13681 cat >>confdefs.h <<\_ACEOF
13682#define HAVE_ADDR_V6_IN_UTMP 1
13683_ACEOF
13684
13685 fi
13686 else
13687 echo "$as_me:$LINENO: result: no" >&5
13688echo "${ECHO_T}no" >&6
13689 fi
13690
13691
13692# look for field 'ut_addr_v6' in header 'utmpx.h'
13693 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13694 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13695 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13696echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13697 if eval "test \"\${$ossh_varname+set}\" = set"; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700
13701 cat >conftest.$ac_ext <<_ACEOF
13702#line $LINENO "configure"
13703#include "confdefs.h"
13704#include <utmpx.h>
13705
13706_ACEOF
13707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708 egrep "ut_addr_v6" >/dev/null 2>&1; then
13709 eval "$ossh_varname=yes"
13710else
13711 eval "$ossh_varname=no"
13712fi
13713rm -f conftest*
13714
13715fi
13716
13717 ossh_result=`eval 'echo $'"$ossh_varname"`
13718 if test -n "`echo $ossh_varname`"; then
13719 echo "$as_me:$LINENO: result: $ossh_result" >&5
13720echo "${ECHO_T}$ossh_result" >&6
13721 if test "x$ossh_result" = "xyes"; then
13722 cat >>confdefs.h <<\_ACEOF
13723#define HAVE_ADDR_V6_IN_UTMPX 1
13724_ACEOF
13725
13726 fi
13727 else
13728 echo "$as_me:$LINENO: result: no" >&5
13729echo "${ECHO_T}no" >&6
13730 fi
13731
13732
13733# look for field 'ut_exit' in header 'utmp.h'
13734 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13735 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13736 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13737echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13738 if eval "test \"\${$ossh_varname+set}\" = set"; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741
13742 cat >conftest.$ac_ext <<_ACEOF
13743#line $LINENO "configure"
13744#include "confdefs.h"
13745#include <utmp.h>
13746
13747_ACEOF
13748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 egrep "ut_exit" >/dev/null 2>&1; then
13750 eval "$ossh_varname=yes"
13751else
13752 eval "$ossh_varname=no"
13753fi
13754rm -f conftest*
13755
13756fi
13757
13758 ossh_result=`eval 'echo $'"$ossh_varname"`
13759 if test -n "`echo $ossh_varname`"; then
13760 echo "$as_me:$LINENO: result: $ossh_result" >&5
13761echo "${ECHO_T}$ossh_result" >&6
13762 if test "x$ossh_result" = "xyes"; then
13763 cat >>confdefs.h <<\_ACEOF
13764#define HAVE_EXIT_IN_UTMP 1
13765_ACEOF
13766
13767 fi
13768 else
13769 echo "$as_me:$LINENO: result: no" >&5
13770echo "${ECHO_T}no" >&6
13771 fi
13772
13773
13774# look for field 'ut_time' in header 'utmp.h'
13775 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13777 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13778echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13779 if eval "test \"\${$ossh_varname+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782
13783 cat >conftest.$ac_ext <<_ACEOF
13784#line $LINENO "configure"
13785#include "confdefs.h"
13786#include <utmp.h>
13787
13788_ACEOF
13789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 egrep "ut_time" >/dev/null 2>&1; then
13791 eval "$ossh_varname=yes"
13792else
13793 eval "$ossh_varname=no"
13794fi
13795rm -f conftest*
13796
13797fi
13798
13799 ossh_result=`eval 'echo $'"$ossh_varname"`
13800 if test -n "`echo $ossh_varname`"; then
13801 echo "$as_me:$LINENO: result: $ossh_result" >&5
13802echo "${ECHO_T}$ossh_result" >&6
13803 if test "x$ossh_result" = "xyes"; then
13804 cat >>confdefs.h <<\_ACEOF
13805#define HAVE_TIME_IN_UTMP 1
13806_ACEOF
13807
13808 fi
13809 else
13810 echo "$as_me:$LINENO: result: no" >&5
13811echo "${ECHO_T}no" >&6
13812 fi
13813
13814
13815# look for field 'ut_time' in header 'utmpx.h'
13816 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13817 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13818 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13819echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13820 if eval "test \"\${$ossh_varname+set}\" = set"; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822else
13823
13824 cat >conftest.$ac_ext <<_ACEOF
13825#line $LINENO "configure"
13826#include "confdefs.h"
13827#include <utmpx.h>
13828
13829_ACEOF
13830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 egrep "ut_time" >/dev/null 2>&1; then
13832 eval "$ossh_varname=yes"
13833else
13834 eval "$ossh_varname=no"
13835fi
13836rm -f conftest*
13837
13838fi
13839
13840 ossh_result=`eval 'echo $'"$ossh_varname"`
13841 if test -n "`echo $ossh_varname`"; then
13842 echo "$as_me:$LINENO: result: $ossh_result" >&5
13843echo "${ECHO_T}$ossh_result" >&6
13844 if test "x$ossh_result" = "xyes"; then
13845 cat >>confdefs.h <<\_ACEOF
13846#define HAVE_TIME_IN_UTMPX 1
13847_ACEOF
13848
13849 fi
13850 else
13851 echo "$as_me:$LINENO: result: no" >&5
13852echo "${ECHO_T}no" >&6
13853 fi
13854
13855
13856# look for field 'ut_tv' in header 'utmpx.h'
13857 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13858 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13859 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13860echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13861 if eval "test \"\${$ossh_varname+set}\" = set"; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863else
13864
13865 cat >conftest.$ac_ext <<_ACEOF
13866#line $LINENO "configure"
13867#include "confdefs.h"
13868#include <utmpx.h>
13869
13870_ACEOF
13871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13872 egrep "ut_tv" >/dev/null 2>&1; then
13873 eval "$ossh_varname=yes"
13874else
13875 eval "$ossh_varname=no"
13876fi
13877rm -f conftest*
13878
13879fi
13880
13881 ossh_result=`eval 'echo $'"$ossh_varname"`
13882 if test -n "`echo $ossh_varname`"; then
13883 echo "$as_me:$LINENO: result: $ossh_result" >&5
13884echo "${ECHO_T}$ossh_result" >&6
13885 if test "x$ossh_result" = "xyes"; then
13886 cat >>confdefs.h <<\_ACEOF
13887#define HAVE_TV_IN_UTMPX 1
13888_ACEOF
13889
13890 fi
13891 else
13892 echo "$as_me:$LINENO: result: no" >&5
13893echo "${ECHO_T}no" >&6
13894 fi
13895
13896
13897echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13898echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13899if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 cat >conftest.$ac_ext <<_ACEOF
13903#line $LINENO "configure"
13904#include "confdefs.h"
13905$ac_includes_default
13906#ifdef F77_DUMMY_MAIN
13907# ifdef __cplusplus
13908 extern "C"
13909# endif
13910 int F77_DUMMY_MAIN() { return 1; }
13911#endif
13912int
13913main ()
13914{
13915static struct stat ac_aggr;
13916if (ac_aggr.st_blksize)
13917return 0;
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_member_struct_stat_st_blksize=yes
13935else
13936 echo "$as_me: failed program was:" >&5
13937cat conftest.$ac_ext >&5
13938ac_cv_member_struct_stat_st_blksize=no
13939fi
13940rm -f conftest.$ac_objext conftest.$ac_ext
13941fi
13942echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13943echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13944if test $ac_cv_member_struct_stat_st_blksize = yes; then
13945
13946cat >>confdefs.h <<_ACEOF
13947#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13948_ACEOF
13949
13950
13951fi
13952
13953
13954echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13955echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13956if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959
13960 cat >conftest.$ac_ext <<_ACEOF
13961#line $LINENO "configure"
13962#include "confdefs.h"
13963
13964#include <sys/types.h>
13965#include <sys/socket.h>
13966
13967#ifdef F77_DUMMY_MAIN
13968# ifdef __cplusplus
13969 extern "C"
13970# endif
13971 int F77_DUMMY_MAIN() { return 1; }
13972#endif
13973int
13974main ()
13975{
13976 struct sockaddr_storage s; s.ss_family = 1;
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
13982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_have_ss_family_in_struct_ss="yes"
13994else
13995 echo "$as_me: failed program was:" >&5
13996cat conftest.$ac_ext >&5
13997 ac_cv_have_ss_family_in_struct_ss="no"
13998fi
13999rm -f conftest.$ac_objext conftest.$ac_ext
14000
14001fi
14002echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14003echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
14004if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14005 cat >>confdefs.h <<\_ACEOF
14006#define HAVE_SS_FAMILY_IN_SS 1
14007_ACEOF
14008
14009fi
14010
14011echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
14012echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14013if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016
14017 cat >conftest.$ac_ext <<_ACEOF
14018#line $LINENO "configure"
14019#include "confdefs.h"
14020
14021#include <sys/types.h>
14022#include <sys/socket.h>
14023
14024#ifdef F77_DUMMY_MAIN
14025# ifdef __cplusplus
14026 extern "C"
14027# endif
14028 int F77_DUMMY_MAIN() { return 1; }
14029#endif
14030int
14031main ()
14032{
14033 struct sockaddr_storage s; s.__ss_family = 1;
14034 ;
14035 return 0;
14036}
14037_ACEOF
14038rm -f conftest.$ac_objext
14039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_have___ss_family_in_struct_ss="yes"
14051else
14052 echo "$as_me: failed program was:" >&5
14053cat conftest.$ac_ext >&5
14054 ac_cv_have___ss_family_in_struct_ss="no"
14055
14056fi
14057rm -f conftest.$ac_objext conftest.$ac_ext
14058
14059fi
14060echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14061echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14062if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14063 cat >>confdefs.h <<\_ACEOF
14064#define HAVE___SS_FAMILY_IN_SS 1
14065_ACEOF
14066
14067fi
14068
14069echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
14070echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14071if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074
14075 cat >conftest.$ac_ext <<_ACEOF
14076#line $LINENO "configure"
14077#include "confdefs.h"
14078
14079#include <pwd.h>
14080
14081#ifdef F77_DUMMY_MAIN
14082# ifdef __cplusplus
14083 extern "C"
14084# endif
14085 int F77_DUMMY_MAIN() { return 1; }
14086#endif
14087int
14088main ()
14089{
14090 struct passwd p; p.pw_class = 0;
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest.$ac_objext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_have_pw_class_in_struct_passwd="yes"
14108else
14109 echo "$as_me: failed program was:" >&5
14110cat conftest.$ac_ext >&5
14111 ac_cv_have_pw_class_in_struct_passwd="no"
14112
14113fi
14114rm -f conftest.$ac_objext conftest.$ac_ext
14115
14116fi
14117echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14118echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14119if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14120 cat >>confdefs.h <<\_ACEOF
14121#define HAVE_PW_CLASS_IN_PASSWD 1
14122_ACEOF
14123
14124fi
14125
14126echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
14127echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14128if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131
14132 cat >conftest.$ac_ext <<_ACEOF
14133#line $LINENO "configure"
14134#include "confdefs.h"
14135
14136#include <pwd.h>
14137
14138#ifdef F77_DUMMY_MAIN
14139# ifdef __cplusplus
14140 extern "C"
14141# endif
14142 int F77_DUMMY_MAIN() { return 1; }
14143#endif
14144int
14145main ()
14146{
14147 struct passwd p; p.pw_expire = 0;
14148 ;
14149 return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext
14153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_have_pw_expire_in_struct_passwd="yes"
14165else
14166 echo "$as_me: failed program was:" >&5
14167cat conftest.$ac_ext >&5
14168 ac_cv_have_pw_expire_in_struct_passwd="no"
14169
14170fi
14171rm -f conftest.$ac_objext conftest.$ac_ext
14172
14173fi
14174echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14175echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14176if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14177 cat >>confdefs.h <<\_ACEOF
14178#define HAVE_PW_EXPIRE_IN_PASSWD 1
14179_ACEOF
14180
14181fi
14182
14183echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
14184echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14185if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188
14189 cat >conftest.$ac_ext <<_ACEOF
14190#line $LINENO "configure"
14191#include "confdefs.h"
14192
14193#include <pwd.h>
14194
14195#ifdef F77_DUMMY_MAIN
14196# ifdef __cplusplus
14197 extern "C"
14198# endif
14199 int F77_DUMMY_MAIN() { return 1; }
14200#endif
14201int
14202main ()
14203{
14204 struct passwd p; p.pw_change = 0;
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209rm -f conftest.$ac_objext
14210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 ac_cv_have_pw_change_in_struct_passwd="yes"
14222else
14223 echo "$as_me: failed program was:" >&5
14224cat conftest.$ac_ext >&5
14225 ac_cv_have_pw_change_in_struct_passwd="no"
14226
14227fi
14228rm -f conftest.$ac_objext conftest.$ac_ext
14229
14230fi
14231echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14232echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14233if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14234 cat >>confdefs.h <<\_ACEOF
14235#define HAVE_PW_CHANGE_IN_PASSWD 1
14236_ACEOF
14237
14238fi
14239
14240echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
14241echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14242if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
14245
14246 if test "$cross_compiling" = yes; then
14247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14248echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14249 { (exit 1); exit 1; }; }
14250else
14251 cat >conftest.$ac_ext <<_ACEOF
14252#line $LINENO "configure"
14253#include "confdefs.h"
14254
14255#include <sys/types.h>
14256#include <sys/socket.h>
14257#include <sys/uio.h>
14258int main() {
14259#ifdef msg_accrights
14260exit(1);
14261#endif
14262struct msghdr m;
14263m.msg_accrights = 0;
14264exit(0);
14265}
14266
14267_ACEOF
14268rm -f conftest$ac_exeext
14269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14270 (eval $ac_link) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_have_accrights_in_msghdr="yes"
14280else
14281 echo "$as_me: program exited with status $ac_status" >&5
14282echo "$as_me: failed program was:" >&5
14283cat conftest.$ac_ext >&5
14284( exit $ac_status )
14285 ac_cv_have_accrights_in_msghdr="no"
14286
14287fi
14288rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14289fi
14290
14291fi
14292echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14293echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14294if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14295 cat >>confdefs.h <<\_ACEOF
14296#define HAVE_ACCRIGHTS_IN_MSGHDR 1
14297_ACEOF
14298
14299fi
14300
14301echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14302echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14303if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306
14307 if test "$cross_compiling" = yes; then
14308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14309echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14310 { (exit 1); exit 1; }; }
14311else
14312 cat >conftest.$ac_ext <<_ACEOF
14313#line $LINENO "configure"
14314#include "confdefs.h"
14315
14316#include <sys/types.h>
14317#include <sys/socket.h>
14318#include <sys/uio.h>
14319int main() {
14320#ifdef msg_control
14321exit(1);
14322#endif
14323struct msghdr m;
14324m.msg_control = 0;
14325exit(0);
14326}
14327
14328_ACEOF
14329rm -f conftest$ac_exeext
14330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_have_control_in_msghdr="yes"
14341else
14342 echo "$as_me: program exited with status $ac_status" >&5
14343echo "$as_me: failed program was:" >&5
14344cat conftest.$ac_ext >&5
14345( exit $ac_status )
14346 ac_cv_have_control_in_msghdr="no"
14347
14348fi
14349rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14350fi
14351
14352fi
14353echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14354echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14355if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14356 cat >>confdefs.h <<\_ACEOF
14357#define HAVE_CONTROL_IN_MSGHDR 1
14358_ACEOF
14359
14360fi
14361
14362echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14363echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14364if test "${ac_cv_libc_defines___progname+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366else
14367
14368 cat >conftest.$ac_ext <<_ACEOF
14369#line $LINENO "configure"
14370#include "confdefs.h"
14371
14372#ifdef F77_DUMMY_MAIN
14373# ifdef __cplusplus
14374 extern "C"
14375# endif
14376 int F77_DUMMY_MAIN() { return 1; }
14377#endif
14378int
14379main ()
14380{
14381 extern char *__progname; printf("%s", __progname);
14382 ;
14383 return 0;
14384}
14385_ACEOF
14386rm -f conftest.$ac_objext conftest$ac_exeext
14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_libc_defines___progname="yes"
14399else
14400 echo "$as_me: failed program was:" >&5
14401cat conftest.$ac_ext >&5
14402 ac_cv_libc_defines___progname="no"
14403
14404fi
14405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14406
14407fi
14408echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14409echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14410if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14411 cat >>confdefs.h <<\_ACEOF
14412#define HAVE___PROGNAME 1
14413_ACEOF
14414
14415fi
14416
14417echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14418echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14419if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422
14423 cat >conftest.$ac_ext <<_ACEOF
14424#line $LINENO "configure"
14425#include "confdefs.h"
14426
14427#include <stdio.h>
14428
14429#ifdef F77_DUMMY_MAIN
14430# ifdef __cplusplus
14431 extern "C"
14432# endif
14433 int F77_DUMMY_MAIN() { return 1; }
14434#endif
14435int
14436main ()
14437{
14438 printf("%s", __FUNCTION__);
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext conftest$ac_exeext
14444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest$ac_exeext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_cc_implements___FUNCTION__="yes"
14456else
14457 echo "$as_me: failed program was:" >&5
14458cat conftest.$ac_ext >&5
14459 ac_cv_cc_implements___FUNCTION__="no"
14460
14461fi
14462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14463
14464fi
14465echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14466echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14467if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14468 cat >>confdefs.h <<\_ACEOF
14469#define HAVE___FUNCTION__ 1
14470_ACEOF
14471
14472fi
14473
14474echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14475echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14476if test "${ac_cv_cc_implements___func__+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479
14480 cat >conftest.$ac_ext <<_ACEOF
14481#line $LINENO "configure"
14482#include "confdefs.h"
14483
14484#include <stdio.h>
14485
14486#ifdef F77_DUMMY_MAIN
14487# ifdef __cplusplus
14488 extern "C"
14489# endif
14490 int F77_DUMMY_MAIN() { return 1; }
14491#endif
14492int
14493main ()
14494{
14495 printf("%s", __func__);
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext conftest$ac_exeext
14501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_cc_implements___func__="yes"
14513else
14514 echo "$as_me: failed program was:" >&5
14515cat conftest.$ac_ext >&5
14516 ac_cv_cc_implements___func__="no"
14517
14518fi
14519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14520
14521fi
14522echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14523echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14524if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14525 cat >>confdefs.h <<\_ACEOF
14526#define HAVE___func__ 1
14527_ACEOF
14528
14529fi
14530
14531echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14532echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14533if test "${ac_cv_have_getopt_optreset+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535else
14536
14537 cat >conftest.$ac_ext <<_ACEOF
14538#line $LINENO "configure"
14539#include "confdefs.h"
14540
14541#include <getopt.h>
14542
14543#ifdef F77_DUMMY_MAIN
14544# ifdef __cplusplus
14545 extern "C"
14546# endif
14547 int F77_DUMMY_MAIN() { return 1; }
14548#endif
14549int
14550main ()
14551{
14552 extern int optreset; optreset = 0;
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557rm -f conftest.$ac_objext conftest$ac_exeext
14558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_have_getopt_optreset="yes"
14570else
14571 echo "$as_me: failed program was:" >&5
14572cat conftest.$ac_ext >&5
14573 ac_cv_have_getopt_optreset="no"
14574
14575fi
14576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14577
14578fi
14579echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14580echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14581if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14582 cat >>confdefs.h <<\_ACEOF
14583#define HAVE_GETOPT_OPTRESET 1
14584_ACEOF
14585
14586fi
14587
14588echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14589echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14590if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
14593
14594 cat >conftest.$ac_ext <<_ACEOF
14595#line $LINENO "configure"
14596#include "confdefs.h"
14597
14598#ifdef F77_DUMMY_MAIN
14599# ifdef __cplusplus
14600 extern "C"
14601# endif
14602 int F77_DUMMY_MAIN() { return 1; }
14603#endif
14604int
14605main ()
14606{
14607 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext conftest$ac_exeext
14613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -s conftest$ac_exeext'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_cv_libc_defines_sys_errlist="yes"
14625else
14626 echo "$as_me: failed program was:" >&5
14627cat conftest.$ac_ext >&5
14628 ac_cv_libc_defines_sys_errlist="no"
14629
14630fi
14631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14632
14633fi
14634echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14635echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14636if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14637 cat >>confdefs.h <<\_ACEOF
14638#define HAVE_SYS_ERRLIST 1
14639_ACEOF
14640
14641fi
14642
14643
14644echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14645echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14646if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649
14650 cat >conftest.$ac_ext <<_ACEOF
14651#line $LINENO "configure"
14652#include "confdefs.h"
14653
14654#ifdef F77_DUMMY_MAIN
14655# ifdef __cplusplus
14656 extern "C"
14657# endif
14658 int F77_DUMMY_MAIN() { return 1; }
14659#endif
14660int
14661main ()
14662{
14663 extern int sys_nerr; printf("%i", sys_nerr);
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext conftest$ac_exeext
14669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_libc_defines_sys_nerr="yes"
14681else
14682 echo "$as_me: failed program was:" >&5
14683cat conftest.$ac_ext >&5
14684 ac_cv_libc_defines_sys_nerr="no"
14685
14686fi
14687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14688
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14691echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14692if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14693 cat >>confdefs.h <<\_ACEOF
14694#define HAVE_SYS_NERR 1
14695_ACEOF
14696
14697fi
14698
14699SCARD_MSG="no"
14700
14701# Check whether user wants sectok support
14702
14703# Check whether --with-sectok or --without-sectok was given.
14704if test "${with_sectok+set}" = set; then
14705 withval="$with_sectok"
14706
14707 if test "x$withval" != "xno" ; then
14708 if test "x$withval" != "xyes" ; then
14709 CPPFLAGS="$CPPFLAGS -I${withval}"
14710 LDFLAGS="$LDFLAGS -L${withval}"
14711 if test ! -z "$need_dash_r" ; then
14712 LDFLAGS="$LDFLAGS -R${withval}"
14713 fi
14714 if test ! -z "$blibpath" ; then
14715 blibpath="$blibpath:${withval}"
14716 fi
14717 fi
14718
14719for ac_header in sectok.h
14720do
14721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722if eval "test \"\${$as_ac_Header+set}\" = set"; then
14723 echo "$as_me:$LINENO: checking for $ac_header" >&5
14724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14725if eval "test \"\${$as_ac_Header+set}\" = set"; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727fi
14728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730else
14731 # Is the header compilable?
14732echo "$as_me:$LINENO: checking $ac_header usability" >&5
14733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14734cat >conftest.$ac_ext <<_ACEOF
14735#line $LINENO "configure"
14736#include "confdefs.h"
14737$ac_includes_default
14738#include <$ac_header>
14739_ACEOF
14740rm -f conftest.$ac_objext
14741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742 (eval $ac_compile) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_header_compiler=yes
14753else
14754 echo "$as_me: failed program was:" >&5
14755cat conftest.$ac_ext >&5
14756ac_header_compiler=no
14757fi
14758rm -f conftest.$ac_objext conftest.$ac_ext
14759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760echo "${ECHO_T}$ac_header_compiler" >&6
14761
14762# Is the header present?
14763echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14765cat >conftest.$ac_ext <<_ACEOF
14766#line $LINENO "configure"
14767#include "confdefs.h"
14768#include <$ac_header>
14769_ACEOF
14770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14772 ac_status=$?
14773 egrep -v '^ *\+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 else
14781 ac_cpp_err=
14782 fi
14783else
14784 ac_cpp_err=yes
14785fi
14786if test -z "$ac_cpp_err"; then
14787 ac_header_preproc=yes
14788else
14789 echo "$as_me: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 ac_header_preproc=no
14792fi
14793rm -f conftest.err conftest.$ac_ext
14794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14795echo "${ECHO_T}$ac_header_preproc" >&6
14796
14797# So? What about this header?
14798case $ac_header_compiler:$ac_header_preproc in
14799 yes:no )
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14804 no:yes )
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14811esac
14812echo "$as_me:$LINENO: checking for $ac_header" >&5
14813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14814if eval "test \"\${$as_ac_Header+set}\" = set"; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 eval "$as_ac_Header=$ac_header_preproc"
14818fi
14819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14821
14822fi
14823if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14826_ACEOF
14827
14828fi
14829
14830done
14831
14832 if test "$ac_cv_header_sectok_h" != yes; then
14833 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14834echo "$as_me: error: Can't find sectok.h" >&2;}
14835 { (exit 1); exit 1; }; }
14836 fi
14837
14838echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14839echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14840if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 ac_check_lib_save_LIBS=$LIBS
14844LIBS="-lsectok $LIBS"
14845cat >conftest.$ac_ext <<_ACEOF
14846#line $LINENO "configure"
14847#include "confdefs.h"
14848
14849/* Override any gcc2 internal prototype to avoid an error. */
14850#ifdef __cplusplus
14851extern "C"
14852#endif
14853/* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855char sectok_open ();
14856#ifdef F77_DUMMY_MAIN
14857# ifdef __cplusplus
14858 extern "C"
14859# endif
14860 int F77_DUMMY_MAIN() { return 1; }
14861#endif
14862int
14863main ()
14864{
14865sectok_open ();
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext conftest$ac_exeext
14871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_lib_sectok_sectok_open=yes
14883else
14884 echo "$as_me: failed program was:" >&5
14885cat conftest.$ac_ext >&5
14886ac_cv_lib_sectok_sectok_open=no
14887fi
14888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14889LIBS=$ac_check_lib_save_LIBS
14890fi
14891echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14892echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14893if test $ac_cv_lib_sectok_sectok_open = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895#define HAVE_LIBSECTOK 1
14896_ACEOF
14897
14898 LIBS="-lsectok $LIBS"
14899
14900fi
14901
14902 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14903 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14904echo "$as_me: error: Can't find libsectok" >&2;}
14905 { (exit 1); exit 1; }; }
14906 fi
14907 cat >>confdefs.h <<\_ACEOF
14908#define SMARTCARD 1
14909_ACEOF
14910
14911 cat >>confdefs.h <<\_ACEOF
14912#define USE_SECTOK 1
14913_ACEOF
14914
14915 SCARD_MSG="yes, using sectok"
14916 fi
14917
14918
14919fi;
14920
14921# Check whether user wants OpenSC support
14922
14923# Check whether --with-opensc or --without-opensc was given.
14924if test "${with_opensc+set}" = set; then
14925 withval="$with_opensc"
14926 opensc_config_prefix="$withval"
14927else
14928 opensc_config_prefix=""
14929fi;
14930if test x$opensc_config_prefix != x ; then
14931 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14932 # Extract the first word of "opensc-config", so it can be a program name with args.
14933set dummy opensc-config; ac_word=$2
14934echo "$as_me:$LINENO: checking for $ac_word" >&5
14935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14936if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938else
14939 case $OPENSC_CONFIG in
14940 [\\/]* | ?:[\\/]*)
14941 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14942 ;;
14943 *)
14944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945for as_dir in $PATH
14946do
14947 IFS=$as_save_IFS
14948 test -z "$as_dir" && as_dir=.
14949 for ac_exec_ext in '' $ac_executable_extensions; do
14950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14951 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14953 break 2
14954 fi
14955done
14956done
14957
14958 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14959 ;;
14960esac
14961fi
14962OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14963
14964if test -n "$OPENSC_CONFIG"; then
14965 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14966echo "${ECHO_T}$OPENSC_CONFIG" >&6
14967else
14968 echo "$as_me:$LINENO: result: no" >&5
14969echo "${ECHO_T}no" >&6
14970fi
14971
14972 if test "$OPENSC_CONFIG" != "no"; then
14973 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14974 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14975 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14976 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14977 cat >>confdefs.h <<\_ACEOF
14978#define SMARTCARD 1
14979_ACEOF
14980
14981 cat >>confdefs.h <<\_ACEOF
14982#define USE_OPENSC 1
14983_ACEOF
14984
14985 SCARD_MSG="yes, using OpenSC"
14986 fi
14987fi
14988
14989# Check whether user wants Kerberos 5 support
14990KRB5_MSG="no"
14991
14992# Check whether --with-kerberos5 or --without-kerberos5 was given.
14993if test "${with_kerberos5+set}" = set; then
14994 withval="$with_kerberos5"
14995
14996 if test "x$withval" != "xno" ; then
14997 if test "x$withval" = "xyes" ; then
14998 KRB5ROOT="/usr/local"
14999 else
15000 KRB5ROOT=${withval}
15001 fi
15002 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15003 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15004 cat >>confdefs.h <<\_ACEOF
15005#define KRB5 1
15006_ACEOF
15007
15008 KRB5_MSG="yes"
15009 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
15010echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012#line $LINENO "configure"
15013#include "confdefs.h"
15014 #include <krb5.h>
15015#ifdef F77_DUMMY_MAIN
15016# ifdef __cplusplus
15017 extern "C"
15018# endif
15019 int F77_DUMMY_MAIN() { return 1; }
15020#endif
15021int
15022main ()
15023{
15024 char *tmp = heimdal_version;
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 echo "$as_me:$LINENO: result: yes" >&5
15042echo "${ECHO_T}yes" >&6
15043 cat >>confdefs.h <<\_ACEOF
15044#define HEIMDAL 1
15045_ACEOF
15046
15047 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15048
15049else
15050 echo "$as_me: failed program was:" >&5
15051cat conftest.$ac_ext >&5
15052 echo "$as_me:$LINENO: result: no" >&5
15053echo "${ECHO_T}no" >&6
15054 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15055
15056
15057fi
15058rm -f conftest.$ac_objext conftest.$ac_ext
15059 if test ! -z "$need_dash_r" ; then
15060 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15061 fi
15062 if test ! -z "$blibpath" ; then
15063 blibpath="$blibpath:${KRB5ROOT}/lib"
15064 fi
15065
15066echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15067echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15068if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070else
15071 ac_check_lib_save_LIBS=$LIBS
15072LIBS="-lresolv $LIBS"
15073cat >conftest.$ac_ext <<_ACEOF
15074#line $LINENO "configure"
15075#include "confdefs.h"
15076
15077/* Override any gcc2 internal prototype to avoid an error. */
15078#ifdef __cplusplus
15079extern "C"
15080#endif
15081/* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15083char dn_expand ();
15084#ifdef F77_DUMMY_MAIN
15085# ifdef __cplusplus
15086 extern "C"
15087# endif
15088 int F77_DUMMY_MAIN() { return 1; }
15089#endif
15090int
15091main ()
15092{
15093dn_expand ();
15094 ;
15095 return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest$ac_exeext
15099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_lib_resolv_dn_expand=yes
15111else
15112 echo "$as_me: failed program was:" >&5
15113cat conftest.$ac_ext >&5
15114ac_cv_lib_resolv_dn_expand=no
15115fi
15116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117LIBS=$ac_check_lib_save_LIBS
15118fi
15119echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15120echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15121if test $ac_cv_lib_resolv_dn_expand = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123#define HAVE_LIBRESOLV 1
15124_ACEOF
15125
15126 LIBS="-lresolv $LIBS"
15127
15128fi
15129
15130
15131 KRB5=yes
15132 fi
15133
15134
15135fi;
15136# Check whether user wants Kerberos 4 support
15137KRB4_MSG="no"
15138
15139# Check whether --with-kerberos4 or --without-kerberos4 was given.
15140if test "${with_kerberos4+set}" = set; then
15141 withval="$with_kerberos4"
15142
15143 if test "x$withval" != "xno" ; then
15144 if test "x$withval" != "xyes" ; then
15145 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15146 LDFLAGS="$LDFLAGS -L${withval}/lib"
15147 if test ! -z "$need_dash_r" ; then
15148 LDFLAGS="$LDFLAGS -R${withval}/lib"
15149 fi
15150 if test ! -z "$blibpath" ; then
15151 blibpath="$blibpath:${withval}/lib"
15152 fi
15153 else
15154 if test -d /usr/include/kerberosIV ; then
15155 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
15156 fi
15157 fi
15158
15159
15160for ac_header in krb.h
15161do
15162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo "$as_me:$LINENO: checking for $ac_header" >&5
15165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15166if eval "test \"\${$as_ac_Header+set}\" = set"; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171else
15172 # Is the header compilable?
15173echo "$as_me:$LINENO: checking $ac_header usability" >&5
15174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15175cat >conftest.$ac_ext <<_ACEOF
15176#line $LINENO "configure"
15177#include "confdefs.h"
15178$ac_includes_default
15179#include <$ac_header>
15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15194else
15195 echo "$as_me: failed program was:" >&5
15196cat conftest.$ac_ext >&5
15197ac_header_compiler=no
15198fi
15199rm -f conftest.$ac_objext conftest.$ac_ext
15200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201echo "${ECHO_T}$ac_header_compiler" >&6
15202
15203# Is the header present?
15204echo "$as_me:$LINENO: checking $ac_header presence" >&5
15205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15206cat >conftest.$ac_ext <<_ACEOF
15207#line $LINENO "configure"
15208#include "confdefs.h"
15209#include <$ac_header>
15210_ACEOF
15211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 egrep -v '^ *\+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 else
15222 ac_cpp_err=
15223 fi
15224else
15225 ac_cpp_err=yes
15226fi
15227if test -z "$ac_cpp_err"; then
15228 ac_header_preproc=yes
15229else
15230 echo "$as_me: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 ac_header_preproc=no
15233fi
15234rm -f conftest.err conftest.$ac_ext
15235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236echo "${ECHO_T}$ac_header_preproc" >&6
15237
15238# So? What about this header?
15239case $ac_header_compiler:$ac_header_preproc in
15240 yes:no )
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15245 no:yes )
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15252esac
15253echo "$as_me:$LINENO: checking for $ac_header" >&5
15254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257else
15258 eval "$as_ac_Header=$ac_header_preproc"
15259fi
15260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15262
15263fi
15264if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267_ACEOF
15268
15269fi
15270
15271done
15272
15273 if test "$ac_cv_header_krb_h" != yes; then
15274 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
15275echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
15276 fi
15277
15278echo "$as_me:$LINENO: checking for main in -lkrb" >&5
15279echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
15280if test "${ac_cv_lib_krb_main+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 ac_check_lib_save_LIBS=$LIBS
15284LIBS="-lkrb $LIBS"
15285cat >conftest.$ac_ext <<_ACEOF
15286#line $LINENO "configure"
15287#include "confdefs.h"
15288
15289
15290#ifdef F77_DUMMY_MAIN
15291# ifdef __cplusplus
15292 extern "C"
15293# endif
15294 int F77_DUMMY_MAIN() { return 1; }
15295#endif
15296int
15297main ()
15298{
15299main ();
15300 ;
15301 return 0;
15302}
15303_ACEOF
15304rm -f conftest.$ac_objext conftest$ac_exeext
15305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -s conftest$ac_exeext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_lib_krb_main=yes
15317else
15318 echo "$as_me: failed program was:" >&5
15319cat conftest.$ac_ext >&5
15320ac_cv_lib_krb_main=no
15321fi
15322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323LIBS=$ac_check_lib_save_LIBS
15324fi
15325echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15326echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15327if test $ac_cv_lib_krb_main = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329#define HAVE_LIBKRB 1
15330_ACEOF
15331
15332 LIBS="-lkrb $LIBS"
15333
15334fi
15335
15336 if test "$ac_cv_lib_krb_main" != yes; then
15337
15338echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15339echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15340if test "${ac_cv_lib_krb4_main+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 ac_check_lib_save_LIBS=$LIBS
15344LIBS="-lkrb4 $LIBS"
15345cat >conftest.$ac_ext <<_ACEOF
15346#line $LINENO "configure"
15347#include "confdefs.h"
15348
15349
15350#ifdef F77_DUMMY_MAIN
15351# ifdef __cplusplus
15352 extern "C"
15353# endif
15354 int F77_DUMMY_MAIN() { return 1; }
15355#endif
15356int
15357main ()
15358{
15359main ();
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_krb4_main=yes
15377else
15378 echo "$as_me: failed program was:" >&5
15379cat conftest.$ac_ext >&5
15380ac_cv_lib_krb4_main=no
15381fi
15382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383LIBS=$ac_check_lib_save_LIBS
15384fi
15385echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15386echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15387if test $ac_cv_lib_krb4_main = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389#define HAVE_LIBKRB4 1
15390_ACEOF
15391
15392 LIBS="-lkrb4 $LIBS"
15393
15394fi
15395
15396 if test "$ac_cv_lib_krb4_main" != yes; then
15397 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15398echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15399 else
15400 KLIBS="-lkrb4"
15401 fi
15402 else
15403 KLIBS="-lkrb"
15404 fi
15405
15406echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15407echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15408if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else
15411 ac_check_lib_save_LIBS=$LIBS
15412LIBS="-ldes $LIBS"
15413cat >conftest.$ac_ext <<_ACEOF
15414#line $LINENO "configure"
15415#include "confdefs.h"
15416
15417/* Override any gcc2 internal prototype to avoid an error. */
15418#ifdef __cplusplus
15419extern "C"
15420#endif
15421/* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423char des_cbc_encrypt ();
15424#ifdef F77_DUMMY_MAIN
15425# ifdef __cplusplus
15426 extern "C"
15427# endif
15428 int F77_DUMMY_MAIN() { return 1; }
15429#endif
15430int
15431main ()
15432{
15433des_cbc_encrypt ();
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext conftest$ac_exeext
15439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_des_des_cbc_encrypt=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453cat conftest.$ac_ext >&5
15454ac_cv_lib_des_des_cbc_encrypt=no
15455fi
15456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15457LIBS=$ac_check_lib_save_LIBS
15458fi
15459echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15460echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15461if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15462 cat >>confdefs.h <<_ACEOF
15463#define HAVE_LIBDES 1
15464_ACEOF
15465
15466 LIBS="-ldes $LIBS"
15467
15468fi
15469
15470 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15471
15472echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15473echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15474if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else
15477 ac_check_lib_save_LIBS=$LIBS
15478LIBS="-ldes425 $LIBS"
15479cat >conftest.$ac_ext <<_ACEOF
15480#line $LINENO "configure"
15481#include "confdefs.h"
15482
15483/* Override any gcc2 internal prototype to avoid an error. */
15484#ifdef __cplusplus
15485extern "C"
15486#endif
15487/* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15489char des_cbc_encrypt ();
15490#ifdef F77_DUMMY_MAIN
15491# ifdef __cplusplus
15492 extern "C"
15493# endif
15494 int F77_DUMMY_MAIN() { return 1; }
15495#endif
15496int
15497main ()
15498{
15499des_cbc_encrypt ();
15500 ;
15501 return 0;
15502}
15503_ACEOF
15504rm -f conftest.$ac_objext conftest$ac_exeext
15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_lib_des425_des_cbc_encrypt=yes
15517else
15518 echo "$as_me: failed program was:" >&5
15519cat conftest.$ac_ext >&5
15520ac_cv_lib_des425_des_cbc_encrypt=no
15521fi
15522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15523LIBS=$ac_check_lib_save_LIBS
15524fi
15525echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15526echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15527if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529#define HAVE_LIBDES425 1
15530_ACEOF
15531
15532 LIBS="-ldes425 $LIBS"
15533
15534fi
15535
15536 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15537 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15538echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15539 else
15540 KLIBS="-ldes425"
15541 fi
15542 else
15543 KLIBS="-ldes"
15544 fi
15545
15546echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15547echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15548if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 ac_check_lib_save_LIBS=$LIBS
15552LIBS="-lresolv $LIBS"
15553cat >conftest.$ac_ext <<_ACEOF
15554#line $LINENO "configure"
15555#include "confdefs.h"
15556
15557/* Override any gcc2 internal prototype to avoid an error. */
15558#ifdef __cplusplus
15559extern "C"
15560#endif
15561/* We use char because int might match the return type of a gcc2
15562 builtin and then its argument prototype would still apply. */
15563char dn_expand ();
15564#ifdef F77_DUMMY_MAIN
15565# ifdef __cplusplus
15566 extern "C"
15567# endif
15568 int F77_DUMMY_MAIN() { return 1; }
15569#endif
15570int
15571main ()
15572{
15573dn_expand ();
15574 ;
15575 return 0;
15576}
15577_ACEOF
15578rm -f conftest.$ac_objext conftest$ac_exeext
15579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_resolv_dn_expand=yes
15591else
15592 echo "$as_me: failed program was:" >&5
15593cat conftest.$ac_ext >&5
15594ac_cv_lib_resolv_dn_expand=no
15595fi
15596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597LIBS=$ac_check_lib_save_LIBS
15598fi
15599echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15600echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15601if test $ac_cv_lib_resolv_dn_expand = yes; then
15602 cat >>confdefs.h <<_ACEOF
15603#define HAVE_LIBRESOLV 1
15604_ACEOF
15605
15606 LIBS="-lresolv $LIBS"
15607
15608fi
15609
15610 KRB4=yes
15611 KRB4_MSG="yes"
15612 cat >>confdefs.h <<\_ACEOF
15613#define KRB4 1
15614_ACEOF
15615
15616 fi
15617
15618
15619fi;
15620
15621# Check whether user wants AFS support
15622AFS_MSG="no"
15623
15624# Check whether --with-afs or --without-afs was given.
15625if test "${with_afs+set}" = set; then
15626 withval="$with_afs"
15627
15628 if test "x$withval" != "xno" ; then
15629
15630 if test "x$withval" != "xyes" ; then
15631 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15632 LDFLAGS="$LDFLAGS -L${withval}/lib"
15633 fi
15634
15635 if test -z "$KRB4" ; then
15636 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15637echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15638 fi
15639
15640 LIBS="-lkafs $LIBS"
15641 if test ! -z "$AFS_LIBS" ; then
15642 LIBS="$LIBS $AFS_LIBS"
15643 fi
15644 cat >>confdefs.h <<\_ACEOF
15645#define AFS 1
15646_ACEOF
15647
15648 AFS_MSG="yes"
15649 fi
15650
15651
15652fi;
15653LIBS="$LIBS $KLIBS $K5LIBS"
15654
15655# Looking for programs, paths and files
15656
15657PRIVSEP_PATH=/var/empty
15658
15659# Check whether --with-privsep-path or --without-privsep-path was given.
15660if test "${with_privsep_path+set}" = set; then
15661 withval="$with_privsep_path"
15662
15663 if test "x$withval" != "$no" ; then
15664 PRIVSEP_PATH=$withval
15665 fi
15666
15667
15668fi;
15669
15670
15671
15672# Check whether --with-xauth or --without-xauth was given.
15673if test "${with_xauth+set}" = set; then
15674 withval="$with_xauth"
15675
15676 if test "x$withval" != "xno" ; then
15677 xauth_path=$withval
15678 fi
15679
15680else
15681
15682 TestPath="$PATH"
15683 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15684 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15685 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15686 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15687 # Extract the first word of "xauth", so it can be a program name with args.
15688set dummy xauth; ac_word=$2
15689echo "$as_me:$LINENO: checking for $ac_word" >&5
15690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15691if test "${ac_cv_path_xauth_path+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693else
15694 case $xauth_path in
15695 [\\/]* | ?:[\\/]*)
15696 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15697 ;;
15698 *)
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700for as_dir in $TestPath
15701do
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15706 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15708 break 2
15709 fi
15710done
15711done
15712
15713 ;;
15714esac
15715fi
15716xauth_path=$ac_cv_path_xauth_path
15717
15718if test -n "$xauth_path"; then
15719 echo "$as_me:$LINENO: result: $xauth_path" >&5
15720echo "${ECHO_T}$xauth_path" >&6
15721else
15722 echo "$as_me:$LINENO: result: no" >&5
15723echo "${ECHO_T}no" >&6
15724fi
15725
15726 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15727 xauth_path="/usr/openwin/bin/xauth"
15728 fi
15729
15730
15731fi;
15732
15733if test -z "$xauth_path" ; then
15734 XAUTH_PATH="undefined"
15735
15736else
15737 cat >>confdefs.h <<_ACEOF
15738#define XAUTH_PATH "$xauth_path"
15739_ACEOF
15740
15741 XAUTH_PATH=$xauth_path
15742
15743fi
15744
15745# Check for mail directory (last resort if we cannot get it from headers)
15746if test ! -z "$MAIL" ; then
15747 maildir=`dirname $MAIL`
15748 cat >>confdefs.h <<_ACEOF
15749#define MAIL_DIRECTORY "$maildir"
15750_ACEOF
15751
15752fi
15753
15754if test -z "$no_dev_ptmx" ; then
15755 if test "x$disable_ptmx_check" != "xyes" ; then
15756 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15757echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15758if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760else
15761 test "$cross_compiling" = yes &&
15762 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15763echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15764 { (exit 1); exit 1; }; }
15765if test -r ""/dev/ptmx""; then
15766 ac_cv_file___dev_ptmx_=yes
15767else
15768 ac_cv_file___dev_ptmx_=no
15769fi
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15772echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15773if test $ac_cv_file___dev_ptmx_ = yes; then
15774
15775 cat >>confdefs.h <<_ACEOF
15776#define HAVE_DEV_PTMX 1
15777_ACEOF
15778
15779 have_dev_ptmx=1
15780
15781
15782fi
15783
15784 fi
15785fi
15786echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15787echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15788if test "${ac_cv_file___dev_ptc_+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791 test "$cross_compiling" = yes &&
15792 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15793echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15794 { (exit 1); exit 1; }; }
15795if test -r ""/dev/ptc""; then
15796 ac_cv_file___dev_ptc_=yes
15797else
15798 ac_cv_file___dev_ptc_=no
15799fi
15800fi
15801echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15802echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15803if test $ac_cv_file___dev_ptc_ = yes; then
15804
15805 cat >>confdefs.h <<_ACEOF
15806#define HAVE_DEV_PTS_AND_PTC 1
15807_ACEOF
15808
15809 have_dev_ptc=1
15810
15811
15812fi
15813
15814
15815# Options from here on. Some of these are preset by platform above
15816
15817# Check whether --with-mantype or --without-mantype was given.
15818if test "${with_mantype+set}" = set; then
15819 withval="$with_mantype"
15820
15821 case "$withval" in
15822 man|cat|doc)
15823 MANTYPE=$withval
15824 ;;
15825 *)
15826 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15827echo "$as_me: error: invalid man type: $withval" >&2;}
15828 { (exit 1); exit 1; }; }
15829 ;;
15830 esac
15831
15832
15833fi;
15834if test -z "$MANTYPE"; then
15835 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15836 for ac_prog in nroff awf
15837do
15838 # Extract the first word of "$ac_prog", so it can be a program name with args.
15839set dummy $ac_prog; ac_word=$2
15840echo "$as_me:$LINENO: checking for $ac_word" >&5
15841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15842if test "${ac_cv_path_NROFF+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844else
15845 case $NROFF in
15846 [\\/]* | ?:[\\/]*)
15847 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15848 ;;
15849 *)
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851for as_dir in $TestPath
15852do
15853 IFS=$as_save_IFS
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15859 break 2
15860 fi
15861done
15862done
15863
15864 ;;
15865esac
15866fi
15867NROFF=$ac_cv_path_NROFF
15868
15869if test -n "$NROFF"; then
15870 echo "$as_me:$LINENO: result: $NROFF" >&5
15871echo "${ECHO_T}$NROFF" >&6
15872else
15873 echo "$as_me:$LINENO: result: no" >&5
15874echo "${ECHO_T}no" >&6
15875fi
15876
15877 test -n "$NROFF" && break
15878done
15879test -n "$NROFF" || NROFF="/bin/false"
15880
15881 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15882 MANTYPE=doc
15883 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15884 MANTYPE=man
15885 else
15886 MANTYPE=cat
15887 fi
15888fi
15889
15890if test "$MANTYPE" = "doc"; then
15891 mansubdir=man;
15892else
15893 mansubdir=$MANTYPE;
15894fi
15895
15896
15897# Check whether to enable MD5 passwords
15898MD5_MSG="no"
15899
15900# Check whether --with-md5-passwords or --without-md5-passwords was given.
15901if test "${with_md5_passwords+set}" = set; then
15902 withval="$with_md5_passwords"
15903
15904 if test "x$withval" != "xno" ; then
15905 cat >>confdefs.h <<\_ACEOF
15906#define HAVE_MD5_PASSWORDS 1
15907_ACEOF
15908
15909 MD5_MSG="yes"
15910 fi
15911
15912
15913fi;
15914
15915# Whether to disable shadow password support
15916
15917# Check whether --with-shadow or --without-shadow was given.
15918if test "${with_shadow+set}" = set; then
15919 withval="$with_shadow"
15920
15921 if test "x$withval" = "xno" ; then
15922 cat >>confdefs.h <<\_ACEOF
15923#define DISABLE_SHADOW 1
15924_ACEOF
15925
15926 disable_shadow=yes
15927 fi
15928
15929
15930fi;
15931
15932if test -z "$disable_shadow" ; then
15933 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15934echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15936#line $LINENO "configure"
15937#include "confdefs.h"
15938
15939#include <sys/types.h>
15940#include <shadow.h>
15941 struct spwd sp;
15942
15943#ifdef F77_DUMMY_MAIN
15944# ifdef __cplusplus
15945 extern "C"
15946# endif
15947 int F77_DUMMY_MAIN() { return 1; }
15948#endif
15949int
15950main ()
15951{
15952 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 sp_expire_available=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972cat conftest.$ac_ext >&5
15973
15974
15975fi
15976rm -f conftest.$ac_objext conftest.$ac_ext
15977
15978 if test "x$sp_expire_available" = "xyes" ; then
15979 echo "$as_me:$LINENO: result: yes" >&5
15980echo "${ECHO_T}yes" >&6
15981 cat >>confdefs.h <<\_ACEOF
15982#define HAS_SHADOW_EXPIRE 1
15983_ACEOF
15984
15985 else
15986 echo "$as_me:$LINENO: result: no" >&5
15987echo "${ECHO_T}no" >&6
15988 fi
15989fi
15990
15991# Use ip address instead of hostname in $DISPLAY
15992if test ! -z "$IPADDR_IN_DISPLAY" ; then
15993 DISPLAY_HACK_MSG="yes"
15994 cat >>confdefs.h <<\_ACEOF
15995#define IPADDR_IN_DISPLAY 1
15996_ACEOF
15997
15998else
15999 DISPLAY_HACK_MSG="no"
16000
16001# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16002if test "${with_ipaddr_display+set}" = set; then
16003 withval="$with_ipaddr_display"
16004
16005 if test "x$withval" != "xno" ; then
16006 cat >>confdefs.h <<\_ACEOF
16007#define IPADDR_IN_DISPLAY 1
16008_ACEOF
16009
16010 DISPLAY_HACK_MSG="yes"
16011 fi
16012
16013
16014fi;
16015fi
16016
16017if test $ac_cv_func_login_getcapbool = "yes" -a \
16018 $ac_cv_header_login_cap_h = "yes" ; then
16019 USES_LOGIN_CONF=yes
16020fi
16021# Whether to mess with the default path
16022SERVER_PATH_MSG="(default)"
16023
16024# Check whether --with-default-path or --without-default-path was given.
16025if test "${with_default_path+set}" = set; then
16026 withval="$with_default_path"
16027
16028 if test "$USES_LOGIN_CONF" = "yes" ; then
16029 { echo "$as_me:$LINENO: WARNING:
16030--with-default-path=PATH has no effect on this system.
16031Edit /etc/login.conf instead." >&5
16032echo "$as_me: WARNING:
16033--with-default-path=PATH has no effect on this system.
16034Edit /etc/login.conf instead." >&2;}
16035 elif test "x$withval" != "xno" ; then
16036 user_path="$withval"
16037 SERVER_PATH_MSG="$withval"
16038 fi
16039
16040else
16041 if test "$USES_LOGIN_CONF" = "yes" ; then
16042 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16043echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16044 else
16045 if test "$cross_compiling" = yes; then
16046 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16047
16048else
16049 cat >conftest.$ac_ext <<_ACEOF
16050#line $LINENO "configure"
16051#include "confdefs.h"
16052
16053/* find out what STDPATH is */
16054#include <stdio.h>
16055#ifdef HAVE_PATHS_H
16056# include <paths.h>
16057#endif
16058#ifndef _PATH_STDPATH
16059# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16060#endif
16061#include <sys/types.h>
16062#include <sys/stat.h>
16063#include <fcntl.h>
16064#define DATA "conftest.stdpath"
16065
16066main()
16067{
16068 FILE *fd;
16069 int rc;
16070
16071 fd = fopen(DATA,"w");
16072 if(fd == NULL)
16073 exit(1);
16074
16075 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16076 exit(1);
16077
16078 exit(0);
16079}
16080
16081_ACEOF
16082rm -f conftest$ac_exeext
16083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16084 (eval $ac_link) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 user_path=`cat conftest.stdpath`
16094else
16095 echo "$as_me: program exited with status $ac_status" >&5
16096echo "$as_me: failed program was:" >&5
16097cat conftest.$ac_ext >&5
16098( exit $ac_status )
16099 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16100fi
16101rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16102fi
16103# make sure $bindir is in USER_PATH so scp will work
16104 t_bindir=`eval echo ${bindir}`
16105 case $t_bindir in
16106 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16107 esac
16108 case $t_bindir in
16109 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16110 esac
16111 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16112 if test $? -ne 0 ; then
16113 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16114 if test $? -ne 0 ; then
16115 user_path=$user_path:$t_bindir
16116 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16117echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16118 fi
16119 fi
16120 fi
16121
16122fi;
16123if test "$USES_LOGIN_CONF" != "yes" ; then
16124 cat >>confdefs.h <<_ACEOF
16125#define USER_PATH "$user_path"
16126_ACEOF
16127
16128
16129fi
16130
16131# Set superuser path separately to user path
16132
16133# Check whether --with-superuser-path or --without-superuser-path was given.
16134if test "${with_superuser_path+set}" = set; then
16135 withval="$with_superuser_path"
16136
16137 if test "x$withval" != "xno" ; then
16138 cat >>confdefs.h <<_ACEOF
16139#define SUPERUSER_PATH "$withval"
16140_ACEOF
16141
16142 superuser_path=$withval
16143 fi
16144
16145
16146fi;
16147
16148
16149# Whether to force IPv4 by default (needed on broken glibc Linux)
16150IPV4_HACK_MSG="no"
16151
16152# Check whether --with-ipv4-default or --without-ipv4-default was given.
16153if test "${with_ipv4_default+set}" = set; then
16154 withval="$with_ipv4_default"
16155
16156 if test "x$withval" != "xno" ; then
16157 cat >>confdefs.h <<\_ACEOF
16158#define IPV4_DEFAULT 1
16159_ACEOF
16160
16161 IPV4_HACK_MSG="yes"
16162 fi
16163
16164
16165fi;
16166
16167echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16168echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16169IPV4_IN6_HACK_MSG="no"
16170
16171# Check whether --with-4in6 or --without-4in6 was given.
16172if test "${with_4in6+set}" = set; then
16173 withval="$with_4in6"
16174
16175 if test "x$withval" != "xno" ; then
16176 echo "$as_me:$LINENO: result: yes" >&5
16177echo "${ECHO_T}yes" >&6
16178 cat >>confdefs.h <<\_ACEOF
16179#define IPV4_IN_IPV6 1
16180_ACEOF
16181
16182 IPV4_IN6_HACK_MSG="yes"
16183 else
16184 echo "$as_me:$LINENO: result: no" >&5
16185echo "${ECHO_T}no" >&6
16186 fi
16187
16188else
16189
16190 if test "x$inet6_default_4in6" = "xyes"; then
16191 echo "$as_me:$LINENO: result: yes (default)" >&5
16192echo "${ECHO_T}yes (default)" >&6
16193 cat >>confdefs.h <<\_ACEOF
16194#define IPV4_IN_IPV6 1
16195_ACEOF
16196
16197 IPV4_IN6_HACK_MSG="yes"
16198 else
16199 echo "$as_me:$LINENO: result: no (default)" >&5
16200echo "${ECHO_T}no (default)" >&6
16201 fi
16202
16203
16204fi;
16205
16206# Whether to enable BSD auth support
16207BSD_AUTH_MSG=no
16208
16209# Check whether --with-bsd-auth or --without-bsd-auth was given.
16210if test "${with_bsd_auth+set}" = set; then
16211 withval="$with_bsd_auth"
16212
16213 if test "x$withval" != "xno" ; then
16214 cat >>confdefs.h <<\_ACEOF
16215#define BSD_AUTH 1
16216_ACEOF
16217
16218 BSD_AUTH_MSG=yes
16219 fi
16220
16221
16222fi;
16223
16224# Where to place sshd.pid
16225piddir=/var/run
16226# make sure the directory exists
16227if test ! -d $piddir ; then
16228 piddir=`eval echo ${sysconfdir}`
16229 case $piddir in
16230 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16231 esac
16232fi
16233
16234
16235# Check whether --with-pid-dir or --without-pid-dir was given.
16236if test "${with_pid_dir+set}" = set; then
16237 withval="$with_pid_dir"
16238
16239 if test "x$withval" != "xno" ; then
16240 piddir=$withval
16241 if test ! -d $piddir ; then
16242 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16243echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16244 fi
16245 fi
16246
16247
16248fi;
16249
16250cat >>confdefs.h <<_ACEOF
16251#define _PATH_SSH_PIDDIR "$piddir"
16252_ACEOF
16253
16254
16255
16256# Check whether --enable-lastlog or --disable-lastlog was given.
16257if test "${enable_lastlog+set}" = set; then
16258 enableval="$enable_lastlog"
16259 cat >>confdefs.h <<\_ACEOF
16260#define DISABLE_LASTLOG 1
16261_ACEOF
16262
16263
16264fi;
16265# Check whether --enable-utmp or --disable-utmp was given.
16266if test "${enable_utmp+set}" = set; then
16267 enableval="$enable_utmp"
16268 cat >>confdefs.h <<\_ACEOF
16269#define DISABLE_UTMP 1
16270_ACEOF
16271
16272
16273fi;
16274# Check whether --enable-utmpx or --disable-utmpx was given.
16275if test "${enable_utmpx+set}" = set; then
16276 enableval="$enable_utmpx"
16277 cat >>confdefs.h <<\_ACEOF
16278#define DISABLE_UTMPX 1
16279_ACEOF
16280
16281
16282fi;
16283# Check whether --enable-wtmp or --disable-wtmp was given.
16284if test "${enable_wtmp+set}" = set; then
16285 enableval="$enable_wtmp"
16286 cat >>confdefs.h <<\_ACEOF
16287#define DISABLE_WTMP 1
16288_ACEOF
16289
16290
16291fi;
16292# Check whether --enable-wtmpx or --disable-wtmpx was given.
16293if test "${enable_wtmpx+set}" = set; then
16294 enableval="$enable_wtmpx"
16295 cat >>confdefs.h <<\_ACEOF
16296#define DISABLE_WTMPX 1
16297_ACEOF
16298
16299
16300fi;
16301# Check whether --enable-libutil or --disable-libutil was given.
16302if test "${enable_libutil+set}" = set; then
16303 enableval="$enable_libutil"
16304 cat >>confdefs.h <<\_ACEOF
16305#define DISABLE_LOGIN 1
16306_ACEOF
16307
16308
16309fi;
16310# Check whether --enable-pututline or --disable-pututline was given.
16311if test "${enable_pututline+set}" = set; then
16312 enableval="$enable_pututline"
16313 cat >>confdefs.h <<\_ACEOF
16314#define DISABLE_PUTUTLINE 1
16315_ACEOF
16316
16317
16318fi;
16319# Check whether --enable-pututxline or --disable-pututxline was given.
16320if test "${enable_pututxline+set}" = set; then
16321 enableval="$enable_pututxline"
16322 cat >>confdefs.h <<\_ACEOF
16323#define DISABLE_PUTUTXLINE 1
16324_ACEOF
16325
16326
16327fi;
16328
16329# Check whether --with-lastlog or --without-lastlog was given.
16330if test "${with_lastlog+set}" = set; then
16331 withval="$with_lastlog"
16332
16333 if test "x$withval" = "xno" ; then
16334 cat >>confdefs.h <<\_ACEOF
16335#define DISABLE_LASTLOG 1
16336_ACEOF
16337
16338 else
16339 conf_lastlog_location=$withval
16340 fi
16341
16342
16343fi;
16344
16345
16346echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16347echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16348cat >conftest.$ac_ext <<_ACEOF
16349#line $LINENO "configure"
16350#include "confdefs.h"
16351
16352#include <sys/types.h>
16353#include <utmp.h>
16354#ifdef HAVE_LASTLOG_H
16355# include <lastlog.h>
16356#endif
16357#ifdef HAVE_PATHS_H
16358# include <paths.h>
16359#endif
16360#ifdef HAVE_LOGIN_H
16361# include <login.h>
16362#endif
16363
16364#ifdef F77_DUMMY_MAIN
16365# ifdef __cplusplus
16366 extern "C"
16367# endif
16368 int F77_DUMMY_MAIN() { return 1; }
16369#endif
16370int
16371main ()
16372{
16373 char *lastlog = LASTLOG_FILE;
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16380 (eval $ac_compile) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -s conftest.$ac_objext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 echo "$as_me:$LINENO: result: yes" >&5
16391echo "${ECHO_T}yes" >&6
16392else
16393 echo "$as_me: failed program was:" >&5
16394cat conftest.$ac_ext >&5
16395
16396 echo "$as_me:$LINENO: result: no" >&5
16397echo "${ECHO_T}no" >&6
16398 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16399echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16400 cat >conftest.$ac_ext <<_ACEOF
16401#line $LINENO "configure"
16402#include "confdefs.h"
16403
16404#include <sys/types.h>
16405#include <utmp.h>
16406#ifdef HAVE_LASTLOG_H
16407# include <lastlog.h>
16408#endif
16409#ifdef HAVE_PATHS_H
16410# include <paths.h>
16411#endif
16412
16413#ifdef F77_DUMMY_MAIN
16414# ifdef __cplusplus
16415 extern "C"
16416# endif
16417 int F77_DUMMY_MAIN() { return 1; }
16418#endif
16419int
16420main ()
16421{
16422 char *lastlog = _PATH_LASTLOG;
16423 ;
16424 return 0;
16425}
16426_ACEOF
16427rm -f conftest.$ac_objext
16428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16429 (eval $ac_compile) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -s conftest.$ac_objext'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 echo "$as_me:$LINENO: result: yes" >&5
16440echo "${ECHO_T}yes" >&6
16441else
16442 echo "$as_me: failed program was:" >&5
16443cat conftest.$ac_ext >&5
16444
16445 echo "$as_me:$LINENO: result: no" >&5
16446echo "${ECHO_T}no" >&6
16447 system_lastlog_path=no
16448
16449fi
16450rm -f conftest.$ac_objext conftest.$ac_ext
16451
16452
16453fi
16454rm -f conftest.$ac_objext conftest.$ac_ext
16455
16456if test -z "$conf_lastlog_location"; then
16457 if test x"$system_lastlog_path" = x"no" ; then
16458 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16459 if (test -d "$f" || test -f "$f") ; then
16460 conf_lastlog_location=$f
16461 fi
16462 done
16463 if test -z "$conf_lastlog_location"; then
16464 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16465echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16466 fi
16467 fi
16468fi
16469
16470if test -n "$conf_lastlog_location"; then
16471 cat >>confdefs.h <<_ACEOF
16472#define CONF_LASTLOG_FILE "$conf_lastlog_location"
16473_ACEOF
16474
16475fi
16476
16477echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16478echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16479cat >conftest.$ac_ext <<_ACEOF
16480#line $LINENO "configure"
16481#include "confdefs.h"
16482
16483#include <sys/types.h>
16484#include <utmp.h>
16485#ifdef HAVE_PATHS_H
16486# include <paths.h>
16487#endif
16488
16489#ifdef F77_DUMMY_MAIN
16490# ifdef __cplusplus
16491 extern "C"
16492# endif
16493 int F77_DUMMY_MAIN() { return 1; }
16494#endif
16495int
16496main ()
16497{
16498 char *utmp = UTMP_FILE;
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest.$ac_objext
16504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 echo "$as_me:$LINENO: result: yes" >&5
16516echo "${ECHO_T}yes" >&6
16517else
16518 echo "$as_me: failed program was:" >&5
16519cat conftest.$ac_ext >&5
16520 echo "$as_me:$LINENO: result: no" >&5
16521echo "${ECHO_T}no" >&6
16522 system_utmp_path=no
16523
16524fi
16525rm -f conftest.$ac_objext conftest.$ac_ext
16526if test -z "$conf_utmp_location"; then
16527 if test x"$system_utmp_path" = x"no" ; then
16528 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16529 if test -f $f ; then
16530 conf_utmp_location=$f
16531 fi
16532 done
16533 if test -z "$conf_utmp_location"; then
16534 cat >>confdefs.h <<\_ACEOF
16535#define DISABLE_UTMP 1
16536_ACEOF
16537
16538 fi
16539 fi
16540fi
16541if test -n "$conf_utmp_location"; then
16542 cat >>confdefs.h <<_ACEOF
16543#define CONF_UTMP_FILE "$conf_utmp_location"
16544_ACEOF
16545
16546fi
16547
16548echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16549echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16550cat >conftest.$ac_ext <<_ACEOF
16551#line $LINENO "configure"
16552#include "confdefs.h"
16553
16554#include <sys/types.h>
16555#include <utmp.h>
16556#ifdef HAVE_PATHS_H
16557# include <paths.h>
16558#endif
16559
16560#ifdef F77_DUMMY_MAIN
16561# ifdef __cplusplus
16562 extern "C"
16563# endif
16564 int F77_DUMMY_MAIN() { return 1; }
16565#endif
16566int
16567main ()
16568{
16569 char *wtmp = WTMP_FILE;
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576 (eval $ac_compile) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 echo "$as_me:$LINENO: result: yes" >&5
16587echo "${ECHO_T}yes" >&6
16588else
16589 echo "$as_me: failed program was:" >&5
16590cat conftest.$ac_ext >&5
16591 echo "$as_me:$LINENO: result: no" >&5
16592echo "${ECHO_T}no" >&6
16593 system_wtmp_path=no
16594
16595fi
16596rm -f conftest.$ac_objext conftest.$ac_ext
16597if test -z "$conf_wtmp_location"; then
16598 if test x"$system_wtmp_path" = x"no" ; then
16599 for f in /usr/adm/wtmp /var/log/wtmp; do
16600 if test -f $f ; then
16601 conf_wtmp_location=$f
16602 fi
16603 done
16604 if test -z "$conf_wtmp_location"; then
16605 cat >>confdefs.h <<\_ACEOF
16606#define DISABLE_WTMP 1
16607_ACEOF
16608
16609 fi
16610 fi
16611fi
16612if test -n "$conf_wtmp_location"; then
16613 cat >>confdefs.h <<_ACEOF
16614#define CONF_WTMP_FILE "$conf_wtmp_location"
16615_ACEOF
16616
16617fi
16618
16619
16620echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16621echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16622cat >conftest.$ac_ext <<_ACEOF
16623#line $LINENO "configure"
16624#include "confdefs.h"
16625
16626#include <sys/types.h>
16627#include <utmp.h>
16628#ifdef HAVE_UTMPX_H
16629#include <utmpx.h>
16630#endif
16631#ifdef HAVE_PATHS_H
16632# include <paths.h>
16633#endif
16634
16635#ifdef F77_DUMMY_MAIN
16636# ifdef __cplusplus
16637 extern "C"
16638# endif
16639 int F77_DUMMY_MAIN() { return 1; }
16640#endif
16641int
16642main ()
16643{
16644 char *utmpx = UTMPX_FILE;
16645 ;
16646 return 0;
16647}
16648_ACEOF
16649rm -f conftest.$ac_objext
16650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 echo "$as_me:$LINENO: result: yes" >&5
16662echo "${ECHO_T}yes" >&6
16663else
16664 echo "$as_me: failed program was:" >&5
16665cat conftest.$ac_ext >&5
16666 echo "$as_me:$LINENO: result: no" >&5
16667echo "${ECHO_T}no" >&6
16668 system_utmpx_path=no
16669
16670fi
16671rm -f conftest.$ac_objext conftest.$ac_ext
16672if test -z "$conf_utmpx_location"; then
16673 if test x"$system_utmpx_path" = x"no" ; then
16674 cat >>confdefs.h <<\_ACEOF
16675#define DISABLE_UTMPX 1
16676_ACEOF
16677
16678 fi
16679else
16680 cat >>confdefs.h <<_ACEOF
16681#define CONF_UTMPX_FILE "$conf_utmpx_location"
16682_ACEOF
16683
16684fi
16685
16686echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16687echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16688cat >conftest.$ac_ext <<_ACEOF
16689#line $LINENO "configure"
16690#include "confdefs.h"
16691
16692#include <sys/types.h>
16693#include <utmp.h>
16694#ifdef HAVE_UTMPX_H
16695#include <utmpx.h>
16696#endif
16697#ifdef HAVE_PATHS_H
16698# include <paths.h>
16699#endif
16700
16701#ifdef F77_DUMMY_MAIN
16702# ifdef __cplusplus
16703 extern "C"
16704# endif
16705 int F77_DUMMY_MAIN() { return 1; }
16706#endif
16707int
16708main ()
16709{
16710 char *wtmpx = WTMPX_FILE;
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 echo "$as_me:$LINENO: result: yes" >&5
16728echo "${ECHO_T}yes" >&6
16729else
16730 echo "$as_me: failed program was:" >&5
16731cat conftest.$ac_ext >&5
16732 echo "$as_me:$LINENO: result: no" >&5
16733echo "${ECHO_T}no" >&6
16734 system_wtmpx_path=no
16735
16736fi
16737rm -f conftest.$ac_objext conftest.$ac_ext
16738if test -z "$conf_wtmpx_location"; then
16739 if test x"$system_wtmpx_path" = x"no" ; then
16740 cat >>confdefs.h <<\_ACEOF
16741#define DISABLE_WTMPX 1
16742_ACEOF
16743
16744 fi
16745else
16746 cat >>confdefs.h <<_ACEOF
16747#define CONF_WTMPX_FILE "$conf_wtmpx_location"
16748_ACEOF
16749
16750fi
16751
16752
16753if test ! -z "$blibpath" ; then
16754 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16755 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16756echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16757fi
16758
16759if test "$PAM_MSG" = yes ; then
16760 LIBS=`echo $LIBS | sed 's/-lpam //'`
16761fi
16762if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16763 LIBS=`echo $LIBS | sed 's/-ldl //'`
16764fi
16765
16766
16767ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16768
16769cat >confcache <<\_ACEOF
16770# This file is a shell script that caches the results of configure
16771# tests run on this system so they can be shared between configure
16772# scripts and configure runs, see configure's option --config-cache.
16773# It is not useful on other systems. If it contains results you don't
16774# want to keep, you may remove or edit it.
16775#
16776# config.status only pays attention to the cache file if you give it
16777# the --recheck option to rerun configure.
16778#
16779# `ac_cv_env_foo' variables (set or unset) will be overriden when
16780# loading this file, other *unset* `ac_cv_foo' will be assigned the
16781# following values.
16782
16783_ACEOF
16784
16785# The following way of writing the cache mishandles newlines in values,
16786# but we know of no workaround that is simple, portable, and efficient.
16787# So, don't put newlines in cache variables' values.
16788# Ultrix sh set writes to stderr and can't be redirected directly,
16789# and sets the high bit in the cache file unless we assign to the vars.
16790{
16791 (set) 2>&1 |
16792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16793 *ac_space=\ *)
16794 # `set' does not quote correctly, so add quotes (double-quote
16795 # substitution turns \\\\ into \\, and sed turns \\ into \).
16796 sed -n \
16797 "s/'/'\\\\''/g;
16798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16799 ;;
16800 *)
16801 # `set' quotes correctly as required by POSIX, so do not add quotes.
16802 sed -n \
16803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16804 ;;
16805 esac;
16806} |
16807 sed '
16808 t clear
16809 : clear
16810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16811 t end
16812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16813 : end' >>confcache
16814if cmp -s $cache_file confcache; then :; else
16815 if test -w $cache_file; then
16816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16817 cat confcache >$cache_file
16818 else
16819 echo "not updating unwritable cache $cache_file"
16820 fi
16821fi
16822rm -f confcache
16823
16824test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825# Let make expand exec_prefix.
16826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16827
16828# VPATH may cause trouble with some makes, so we remove $(srcdir),
16829# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16830# trailing colons and then remove the whole line if VPATH becomes empty
16831# (actually we leave an empty line to preserve line numbers).
16832if test "x$srcdir" = x.; then
16833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16834s/:*\$(srcdir):*/:/;
16835s/:*\${srcdir}:*/:/;
16836s/:*@srcdir@:*/:/;
16837s/^\([^=]*=[ ]*\):*/\1/;
16838s/:*$//;
16839s/^[^=]*=[ ]*$//;
16840}'
16841fi
16842
16843DEFS=-DHAVE_CONFIG_H
16844
16845
16846: ${CONFIG_STATUS=./config.status}
16847ac_clean_files_save=$ac_clean_files
16848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16849{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16850echo "$as_me: creating $CONFIG_STATUS" >&6;}
16851cat >$CONFIG_STATUS <<_ACEOF
16852#! $SHELL
16853# Generated by $as_me.
16854# Run this file to recreate the current configuration.
16855# Compiler output produced by configure, useful for debugging
16856# configure, is in config.log if it exists.
16857
16858debug=false
16859SHELL=\${CONFIG_SHELL-$SHELL}
16860_ACEOF
16861
16862cat >>$CONFIG_STATUS <<\_ACEOF
16863
16864## --------------------- ##
16865## M4sh Initialization. ##
16866## --------------------- ##
16867
16868# Be Bourne compatible
16869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16870 emulate sh
16871 NULLCMD=:
16872elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16873 set -o posix
16874fi
16875
16876# NLS nuisances.
16877# Support unset when possible.
16878if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16879 as_unset=unset
16880else
16881 as_unset=false
16882fi
16883
16884(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16885 { $as_unset LANG || test "${LANG+set}" != set; } ||
16886 { LANG=C; export LANG; }
16887(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16888 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16889 { LC_ALL=C; export LC_ALL; }
16890(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16891 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16892 { LC_TIME=C; export LC_TIME; }
16893(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16894 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16895 { LC_CTYPE=C; export LC_CTYPE; }
16896(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16897 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16898 { LANGUAGE=C; export LANGUAGE; }
16899(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16900 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16901 { LC_COLLATE=C; export LC_COLLATE; }
16902(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16903 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16904 { LC_NUMERIC=C; export LC_NUMERIC; }
16905(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16906 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16907 { LC_MESSAGES=C; export LC_MESSAGES; }
16908
16909
16910# Name of the executable.
16911as_me=`(basename "$0") 2>/dev/null ||
16912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
16914 X"$0" : 'X\(/\)$' \| \
16915 . : '\(.\)' 2>/dev/null ||
16916echo X/"$0" |
16917 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16918 /^X\/\(\/\/\)$/{ s//\1/; q; }
16919 /^X\/\(\/\).*/{ s//\1/; q; }
16920 s/.*/./; q'`
16921
16922# PATH needs CR, and LINENO needs CR and PATH.
16923# Avoid depending upon Character Ranges.
16924as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16925as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16926as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16927as_cr_digits='0123456789'
16928as_cr_alnum=$as_cr_Letters$as_cr_digits
16929
16930# The user is always right.
16931if test "${PATH_SEPARATOR+set}" != set; then
16932 echo "#! /bin/sh" >conftest.sh
16933 echo "exit 0" >>conftest.sh
16934 chmod +x conftest.sh
16935 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16936 PATH_SEPARATOR=';'
16937 else
16938 PATH_SEPARATOR=:
16939 fi
16940 rm -f conftest.sh
16941fi
16942
16943
16944 as_lineno_1=$LINENO
16945 as_lineno_2=$LINENO
16946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16947 test "x$as_lineno_1" != "x$as_lineno_2" &&
16948 test "x$as_lineno_3" = "x$as_lineno_2" || {
16949 # Find who we are. Look in the path if we contain no path at all
16950 # relative or not.
16951 case $0 in
16952 *[\\/]* ) as_myself=$0 ;;
16953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954for as_dir in $PATH
16955do
16956 IFS=$as_save_IFS
16957 test -z "$as_dir" && as_dir=.
16958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16959done
16960
16961 ;;
16962 esac
16963 # We did not find ourselves, most probably we were run as `sh COMMAND'
16964 # in which case we are not to be found in the path.
16965 if test "x$as_myself" = x; then
16966 as_myself=$0
16967 fi
16968 if test ! -f "$as_myself"; then
16969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16970echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16971 { (exit 1); exit 1; }; }
16972 fi
16973 case $CONFIG_SHELL in
16974 '')
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16977do
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 for as_base in sh bash ksh sh5; do
16981 case $as_dir in
16982 /*)
16983 if ("$as_dir/$as_base" -c '
16984 as_lineno_1=$LINENO
16985 as_lineno_2=$LINENO
16986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16987 test "x$as_lineno_1" != "x$as_lineno_2" &&
16988 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16989 CONFIG_SHELL=$as_dir/$as_base
16990 export CONFIG_SHELL
16991 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16992 fi;;
16993 esac
16994 done
16995done
16996;;
16997 esac
16998
16999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17000 # uniformly replaced by the line number. The first 'sed' inserts a
17001 # line-number line before each line; the second 'sed' does the real
17002 # work. The second script uses 'N' to pair each line-number line
17003 # with the numbered line, and appends trailing '-' during
17004 # substitution so that $LINENO is not a special case at line end.
17005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17006 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17007 sed '=' <$as_myself |
17008 sed '
17009 N
17010 s,$,-,
17011 : loop
17012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17013 t loop
17014 s,-$,,
17015 s,^['$as_cr_digits']*\n,,
17016 ' >$as_me.lineno &&
17017 chmod +x $as_me.lineno ||
17018 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17019echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17020 { (exit 1); exit 1; }; }
17021
17022 # Don't try to exec as it changes $[0], causing all sort of problems
17023 # (the dirname of $[0] is not the place where we might find the
17024 # original and so on. Autoconf is especially sensible to this).
17025 . ./$as_me.lineno
17026 # Exit status is that of the last command.
17027 exit
17028}
17029
17030
17031case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17032 *c*,-n*) ECHO_N= ECHO_C='
17033' ECHO_T=' ' ;;
17034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17036esac
17037
17038if expr a : '\(a\)' >/dev/null 2>&1; then
17039 as_expr=expr
17040else
17041 as_expr=false
17042fi
17043
17044rm -f conf$$ conf$$.exe conf$$.file
17045echo >conf$$.file
17046if ln -s conf$$.file conf$$ 2>/dev/null; then
17047 # We could just check for DJGPP; but this test a) works b) is more generic
17048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17049 if test -f conf$$.exe; then
17050 # Don't use ln at all; we don't have any links
17051 as_ln_s='cp -p'
17052 else
17053 as_ln_s='ln -s'
17054 fi
17055elif ln conf$$.file conf$$ 2>/dev/null; then
17056 as_ln_s=ln
17057else
17058 as_ln_s='cp -p'
17059fi
17060rm -f conf$$ conf$$.exe conf$$.file
17061
17062as_executable_p="test -f"
17063
17064# Sed expression to map a string onto a valid CPP name.
17065as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17066
17067# Sed expression to map a string onto a valid variable name.
17068as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17069
17070
17071# IFS
17072# We need space, tab and new line, in precisely that order.
17073as_nl='
17074'
17075IFS=" $as_nl"
17076
17077# CDPATH.
17078$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17079
17080exec 6>&1
17081
17082# Open the log real soon, to keep \$[0] and so on meaningful, and to
17083# report actual input values of CONFIG_FILES etc. instead of their
17084# values after options handling. Logging --version etc. is OK.
17085exec 5>>config.log
17086{
17087 echo
17088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17089## Running $as_me. ##
17090_ASBOX
17091} >&5
17092cat >&5 <<_CSEOF
17093
17094This file was extended by $as_me, which was
17095generated by GNU Autoconf 2.53. Invocation command line was
17096
17097 CONFIG_FILES = $CONFIG_FILES
17098 CONFIG_HEADERS = $CONFIG_HEADERS
17099 CONFIG_LINKS = $CONFIG_LINKS
17100 CONFIG_COMMANDS = $CONFIG_COMMANDS
17101 $ $0 $@
17102
17103_CSEOF
17104echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17105echo >&5
17106_ACEOF
17107
17108# Files that config.status was made for.
17109if test -n "$ac_config_files"; then
17110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17111fi
17112
17113if test -n "$ac_config_headers"; then
17114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17115fi
17116
17117if test -n "$ac_config_links"; then
17118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17119fi
17120
17121if test -n "$ac_config_commands"; then
17122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17123fi
17124
17125cat >>$CONFIG_STATUS <<\_ACEOF
17126
17127ac_cs_usage="\
17128\`$as_me' instantiates files from templates according to the
17129current configuration.
17130
17131Usage: $0 [OPTIONS] [FILE]...
17132
17133 -h, --help print this help, then exit
17134 -V, --version print version number, then exit
17135 -d, --debug don't remove temporary files
17136 --recheck update $as_me by reconfiguring in the same conditions
17137 --file=FILE[:TEMPLATE]
17138 instantiate the configuration file FILE
17139 --header=FILE[:TEMPLATE]
17140 instantiate the configuration header FILE
17141
17142Configuration files:
17143$config_files
17144
17145Configuration headers:
17146$config_headers
17147
17148Report bugs to <bug-autoconf@gnu.org>."
17149_ACEOF
17150
17151cat >>$CONFIG_STATUS <<_ACEOF
17152ac_cs_version="\\
17153config.status
17154configured by $0, generated by GNU Autoconf 2.53,
17155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17156
17157Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17158Free Software Foundation, Inc.
17159This config.status script is free software; the Free Software Foundation
17160gives unlimited permission to copy, distribute and modify it."
17161srcdir=$srcdir
17162INSTALL="$INSTALL"
17163_ACEOF
17164
17165cat >>$CONFIG_STATUS <<\_ACEOF
17166# If no file are specified by the user, then we need to provide default
17167# value. By we need to know if files were specified by the user.
17168ac_need_defaults=:
17169while test $# != 0
17170do
17171 case $1 in
17172 --*=*)
17173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17175 shift
17176 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17177 shift
17178 ;;
17179 -*);;
17180 *) # This is not an option, so the user has probably given explicit
17181 # arguments.
17182 ac_need_defaults=false;;
17183 esac
17184
17185 case $1 in
17186 # Handling of the options.
17187_ACEOF
17188cat >>$CONFIG_STATUS <<_ACEOF
17189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17190 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17191 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17192_ACEOF
17193cat >>$CONFIG_STATUS <<\_ACEOF
17194 --version | --vers* | -V )
17195 echo "$ac_cs_version"; exit 0 ;;
17196 --he | --h)
17197 # Conflict between --help and --header
17198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17199Try \`$0 --help' for more information." >&5
17200echo "$as_me: error: ambiguous option: $1
17201Try \`$0 --help' for more information." >&2;}
17202 { (exit 1); exit 1; }; };;
17203 --help | --hel | -h )
17204 echo "$ac_cs_usage"; exit 0 ;;
17205 --debug | --d* | -d )
17206 debug=: ;;
17207 --file | --fil | --fi | --f )
17208 shift
17209 CONFIG_FILES="$CONFIG_FILES $1"
17210 ac_need_defaults=false;;
17211 --header | --heade | --head | --hea )
17212 shift
17213 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17214 ac_need_defaults=false;;
17215
17216 # This is an error.
17217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17218Try \`$0 --help' for more information." >&5
17219echo "$as_me: error: unrecognized option: $1
17220Try \`$0 --help' for more information." >&2;}
17221 { (exit 1); exit 1; }; } ;;
17222
17223 *) ac_config_targets="$ac_config_targets $1" ;;
17224
17225 esac
17226 shift
17227done
17228
17229_ACEOF
17230
17231
17232
17233
17234
17235cat >>$CONFIG_STATUS <<\_ACEOF
17236for ac_config_target in $ac_config_targets
17237do
17238 case "$ac_config_target" in
17239 # Handling of arguments.
17240 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17241 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17242 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17243 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17244 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17246echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17247 { (exit 1); exit 1; }; };;
17248 esac
17249done
17250
17251# If the user did not use the arguments to specify the items to instantiate,
17252# then the envvar interface is used. Set only those that are not.
17253# We use the long form for the default assignment because of an extremely
17254# bizarre bug on SunOS 4.1.3.
17255if $ac_need_defaults; then
17256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17258fi
17259
17260# Create a temporary directory, and hook for its removal unless debugging.
17261$debug ||
17262{
17263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17264 trap '{ (exit 1); exit 1; }' 1 2 13 15
17265}
17266
17267# Create a (secure) tmp directory for tmp files.
17268: ${TMPDIR=/tmp}
17269{
17270 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17271 test -n "$tmp" && test -d "$tmp"
17272} ||
17273{
17274 tmp=$TMPDIR/cs$$-$RANDOM
17275 (umask 077 && mkdir $tmp)
17276} ||
17277{
17278 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17279 { (exit 1); exit 1; }
17280}
17281
17282_ACEOF
17283
17284cat >>$CONFIG_STATUS <<_ACEOF
17285
17286#
17287# CONFIG_FILES section.
17288#
17289
17290# No need to generate the scripts if there are no CONFIG_FILES.
17291# This happens for instance when ./config.status config.h
17292if test -n "\$CONFIG_FILES"; then
17293 # Protect against being on the right side of a sed subst in config.status.
17294 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17295 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17296s,@SHELL@,$SHELL,;t t
17297s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17298s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17299s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17300s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17301s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17302s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17303s,@exec_prefix@,$exec_prefix,;t t
17304s,@prefix@,$prefix,;t t
17305s,@program_transform_name@,$program_transform_name,;t t
17306s,@bindir@,$bindir,;t t
17307s,@sbindir@,$sbindir,;t t
17308s,@libexecdir@,$libexecdir,;t t
17309s,@datadir@,$datadir,;t t
17310s,@sysconfdir@,$sysconfdir,;t t
17311s,@sharedstatedir@,$sharedstatedir,;t t
17312s,@localstatedir@,$localstatedir,;t t
17313s,@libdir@,$libdir,;t t
17314s,@includedir@,$includedir,;t t
17315s,@oldincludedir@,$oldincludedir,;t t
17316s,@infodir@,$infodir,;t t
17317s,@mandir@,$mandir,;t t
17318s,@build_alias@,$build_alias,;t t
17319s,@host_alias@,$host_alias,;t t
17320s,@target_alias@,$target_alias,;t t
17321s,@DEFS@,$DEFS,;t t
17322s,@ECHO_C@,$ECHO_C,;t t
17323s,@ECHO_N@,$ECHO_N,;t t
17324s,@ECHO_T@,$ECHO_T,;t t
17325s,@LIBS@,$LIBS,;t t
17326s,@CC@,$CC,;t t
17327s,@CFLAGS@,$CFLAGS,;t t
17328s,@LDFLAGS@,$LDFLAGS,;t t
17329s,@CPPFLAGS@,$CPPFLAGS,;t t
17330s,@ac_ct_CC@,$ac_ct_CC,;t t
17331s,@EXEEXT@,$EXEEXT,;t t
17332s,@OBJEXT@,$OBJEXT,;t t
17333s,@build@,$build,;t t
17334s,@build_cpu@,$build_cpu,;t t
17335s,@build_vendor@,$build_vendor,;t t
17336s,@build_os@,$build_os,;t t
17337s,@host@,$host,;t t
17338s,@host_cpu@,$host_cpu,;t t
17339s,@host_vendor@,$host_vendor,;t t
17340s,@host_os@,$host_os,;t t
17341s,@CPP@,$CPP,;t t
17342s,@RANLIB@,$RANLIB,;t t
17343s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17344s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17345s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17346s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17347s,@AR@,$AR,;t t
17348s,@PERL@,$PERL,;t t
17349s,@ENT@,$ENT,;t t
17350s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17351s,@SH@,$SH,;t t
17352s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17353s,@LD@,$LD,;t t
17354s,@LIBWRAP@,$LIBWRAP,;t t
17355s,@LIBPAM@,$LIBPAM,;t t
17356s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17357s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17358s,@PROG_LS@,$PROG_LS,;t t
17359s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17360s,@PROG_ARP@,$PROG_ARP,;t t
17361s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17362s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17363s,@PROG_PS@,$PROG_PS,;t t
17364s,@PROG_SAR@,$PROG_SAR,;t t
17365s,@PROG_W@,$PROG_W,;t t
17366s,@PROG_WHO@,$PROG_WHO,;t t
17367s,@PROG_LAST@,$PROG_LAST,;t t
17368s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17369s,@PROG_DF@,$PROG_DF,;t t
17370s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17371s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17372s,@PROG_IPCS@,$PROG_IPCS,;t t
17373s,@PROG_TAIL@,$PROG_TAIL,;t t
17374s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17375s,@NO_SFTP@,$NO_SFTP,;t t
17376s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17377s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17378s,@xauth_path@,$xauth_path,;t t
17379s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17380s,@NROFF@,$NROFF,;t t
17381s,@MANTYPE@,$MANTYPE,;t t
17382s,@mansubdir@,$mansubdir,;t t
17383s,@user_path@,$user_path,;t t
17384s,@piddir@,$piddir,;t t
17385CEOF
17386
17387_ACEOF
17388
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390 # Split the substitutions into bite-sized pieces for seds with
17391 # small command number limits, like on Digital OSF/1 and HP-UX.
17392 ac_max_sed_lines=48
17393 ac_sed_frag=1 # Number of current file.
17394 ac_beg=1 # First line for current file.
17395 ac_end=$ac_max_sed_lines # Line after last line for current file.
17396 ac_more_lines=:
17397 ac_sed_cmds=
17398 while $ac_more_lines; do
17399 if test $ac_beg -gt 1; then
17400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17401 else
17402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17403 fi
17404 if test ! -s $tmp/subs.frag; then
17405 ac_more_lines=false
17406 else
17407 # The purpose of the label and of the branching condition is to
17408 # speed up the sed processing (if there are no `@' at all, there
17409 # is no need to browse any of the substitutions).
17410 # These are the two extra sed commands mentioned above.
17411 (echo ':t
17412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17413 if test -z "$ac_sed_cmds"; then
17414 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17415 else
17416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17417 fi
17418 ac_sed_frag=`expr $ac_sed_frag + 1`
17419 ac_beg=$ac_end
17420 ac_end=`expr $ac_end + $ac_max_sed_lines`
17421 fi
17422 done
17423 if test -z "$ac_sed_cmds"; then
17424 ac_sed_cmds=cat
17425 fi
17426fi # test -n "$CONFIG_FILES"
17427
17428_ACEOF
17429cat >>$CONFIG_STATUS <<\_ACEOF
17430for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17432 case $ac_file in
17433 - | *:- | *:-:* ) # input from stdin
17434 cat >$tmp/stdin
17435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 * ) ac_file_in=$ac_file.in ;;
17440 esac
17441
17442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17443 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445 X"$ac_file" : 'X\(//\)[^/]' \| \
17446 X"$ac_file" : 'X\(//\)$' \| \
17447 X"$ac_file" : 'X\(/\)' \| \
17448 . : '\(.\)' 2>/dev/null ||
17449echo X"$ac_file" |
17450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17452 /^X\(\/\/\)$/{ s//\1/; q; }
17453 /^X\(\/\).*/{ s//\1/; q; }
17454 s/.*/./; q'`
17455 { case "$ac_dir" in
17456 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17457 *) as_incr_dir=.;;
17458esac
17459as_dummy="$ac_dir"
17460for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17461 case $as_mkdir_dir in
17462 # Skip DOS drivespec
17463 ?:) as_incr_dir=$as_mkdir_dir ;;
17464 *)
17465 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17466 test -d "$as_incr_dir" ||
17467 mkdir "$as_incr_dir" ||
17468 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17469echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17470 { (exit 1); exit 1; }; }
17471 ;;
17472 esac
17473done; }
17474
17475 ac_builddir=.
17476
17477if test "$ac_dir" != .; then
17478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17479 # A "../" for each directory in $ac_dir_suffix.
17480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17481else
17482 ac_dir_suffix= ac_top_builddir=
17483fi
17484
17485case $srcdir in
17486 .) # No --srcdir option. We are building in place.
17487 ac_srcdir=.
17488 if test -z "$ac_top_builddir"; then
17489 ac_top_srcdir=.
17490 else
17491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17492 fi ;;
17493 [\\/]* | ?:[\\/]* ) # Absolute path.
17494 ac_srcdir=$srcdir$ac_dir_suffix;
17495 ac_top_srcdir=$srcdir ;;
17496 *) # Relative path.
17497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17499esac
17500# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17501# absolute.
17502ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17503ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17504ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17505ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17506
17507
17508 case $INSTALL in
17509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17511 esac
17512
17513 if test x"$ac_file" != x-; then
17514 { echo "$as_me:$LINENO: creating $ac_file" >&5
17515echo "$as_me: creating $ac_file" >&6;}
17516 rm -f "$ac_file"
17517 fi
17518 # Let's still pretend it is `configure' which instantiates (i.e., don't
17519 # use $as_me), people would be surprised to read:
17520 # /* config.h. Generated by config.status. */
17521 if test x"$ac_file" = x-; then
17522 configure_input=
17523 else
17524 configure_input="$ac_file. "
17525 fi
17526 configure_input=$configure_input"Generated from `echo $ac_file_in |
17527 sed 's,.*/,,'` by configure."
17528
17529 # First look for the input files in the build tree, otherwise in the
17530 # src tree.
17531 ac_file_inputs=`IFS=:
17532 for f in $ac_file_in; do
17533 case $f in
17534 -) echo $tmp/stdin ;;
17535 [\\/$]*)
17536 # Absolute (can't be DOS-style, as IFS=:)
17537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538echo "$as_me: error: cannot find input file: $f" >&2;}
17539 { (exit 1); exit 1; }; }
17540 echo $f;;
17541 *) # Relative
17542 if test -f "$f"; then
17543 # Build tree
17544 echo $f
17545 elif test -f "$srcdir/$f"; then
17546 # Source tree
17547 echo $srcdir/$f
17548 else
17549 # /dev/null tree
17550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17551echo "$as_me: error: cannot find input file: $f" >&2;}
17552 { (exit 1); exit 1; }; }
17553 fi;;
17554 esac
17555 done` || { (exit 1); exit 1; }
17556_ACEOF
17557cat >>$CONFIG_STATUS <<_ACEOF
17558 sed "$ac_vpsub
17559$extrasub
17560_ACEOF
17561cat >>$CONFIG_STATUS <<\_ACEOF
17562:t
17563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17564s,@configure_input@,$configure_input,;t t
17565s,@srcdir@,$ac_srcdir,;t t
17566s,@abs_srcdir@,$ac_abs_srcdir,;t t
17567s,@top_srcdir@,$ac_top_srcdir,;t t
17568s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17569s,@builddir@,$ac_builddir,;t t
17570s,@abs_builddir@,$ac_abs_builddir,;t t
17571s,@top_builddir@,$ac_top_builddir,;t t
17572s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17573s,@INSTALL@,$ac_INSTALL,;t t
17574" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17575 rm -f $tmp/stdin
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17578 else
17579 cat $tmp/out
17580 rm -f $tmp/out
17581 fi
17582
17583done
17584_ACEOF
17585cat >>$CONFIG_STATUS <<\_ACEOF
17586
17587#
17588# CONFIG_HEADER section.
17589#
17590
17591# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17592# NAME is the cpp macro being defined and VALUE is the value it is being given.
17593#
17594# ac_d sets the value in "#define NAME VALUE" lines.
17595ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596ac_dB='[ ].*$,\1#\2'
17597ac_dC=' '
17598ac_dD=',;t'
17599# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601ac_uB='$,\1#\2define\3'
17602ac_uC=' '
17603ac_uD=',;t'
17604
17605for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17607 case $ac_file in
17608 - | *:- | *:-:* ) # input from stdin
17609 cat >$tmp/stdin
17610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614 * ) ac_file_in=$ac_file.in ;;
17615 esac
17616
17617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618echo "$as_me: creating $ac_file" >&6;}
17619
17620 # First look for the input files in the build tree, otherwise in the
17621 # src tree.
17622 ac_file_inputs=`IFS=:
17623 for f in $ac_file_in; do
17624 case $f in
17625 -) echo $tmp/stdin ;;
17626 [\\/$]*)
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17631 echo $f;;
17632 *) # Relative
17633 if test -f "$f"; then
17634 # Build tree
17635 echo $f
17636 elif test -f "$srcdir/$f"; then
17637 # Source tree
17638 echo $srcdir/$f
17639 else
17640 # /dev/null tree
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17644 fi;;
17645 esac
17646 done` || { (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17649
17650_ACEOF
17651
17652# Transform confdefs.h into two sed scripts, `conftest.defines' and
17653# `conftest.undefs', that substitutes the proper values into
17654# config.h.in to produce config.h. The first handles `#define'
17655# templates, and the second `#undef' templates.
17656# And first: Protect against being on the right side of a sed subst in
17657# config.status. Protect against being in an unquoted here document
17658# in config.status.
17659rm -f conftest.defines conftest.undefs
17660# Using a here document instead of a string reduces the quoting nightmare.
17661# Putting comments in sed scripts is not portable.
17662#
17663# `end' is used to avoid that the second main sed command (meant for
17664# 0-ary CPP macros) applies to n-ary macro definitions.
17665# See the Autoconf documentation for `clear'.
17666cat >confdef2sed.sed <<\_ACEOF
17667s/[\\&,]/\\&/g
17668s,[\\$`],\\&,g
17669t clear
17670: clear
17671s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17672t end
17673s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17674: end
17675_ACEOF
17676# If some macros were called several times there might be several times
17677# the same #defines, which is useless. Nevertheless, we may not want to
17678# sort them, since we want the *last* AC-DEFINE to be honored.
17679uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681rm -f confdef2sed.sed
17682
17683# This sed command replaces #undef with comments. This is necessary, for
17684# example, in the case of _POSIX_SOURCE, which is predefined and required
17685# on some systems where configure will not decide to define it.
17686cat >>conftest.undefs <<\_ACEOF
17687s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17688_ACEOF
17689
17690# Break up conftest.defines because some shells have a limit on the size
17691# of here documents, and old seds have small limits too (100 cmds).
17692echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695echo ' :' >>$CONFIG_STATUS
17696rm -f conftest.tail
17697while grep . conftest.defines >/dev/null
17698do
17699 # Write a limited-size here document to $tmp/defines.sed.
17700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#define' lines.
17702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17707 echo 'CEOF
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17709 rm -f $tmp/in
17710 mv $tmp/out $tmp/in
17711' >>$CONFIG_STATUS
17712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713 rm -f conftest.defines
17714 mv conftest.tail conftest.defines
17715done
17716rm -f conftest.defines
17717echo ' fi # egrep' >>$CONFIG_STATUS
17718echo >>$CONFIG_STATUS
17719
17720# Break up conftest.undefs because some shells have a limit on the size
17721# of here documents, and old seds have small limits too (100 cmds).
17722echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723rm -f conftest.tail
17724while grep . conftest.undefs >/dev/null
17725do
17726 # Write a limited-size here document to $tmp/undefs.sed.
17727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non `#undef'
17729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17734 echo 'CEOF
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17736 rm -f $tmp/in
17737 mv $tmp/out $tmp/in
17738' >>$CONFIG_STATUS
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17742done
17743rm -f conftest.undefs
17744
17745cat >>$CONFIG_STATUS <<\_ACEOF
17746 # Let's still pretend it is `configure' which instantiates (i.e., don't
17747 # use $as_me), people would be surprised to read:
17748 # /* config.h. Generated by config.status. */
17749 if test x"$ac_file" = x-; then
17750 echo "/* Generated by configure. */" >$tmp/config.h
17751 else
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17753 fi
17754 cat $tmp/in >>$tmp/config.h
17755 rm -f $tmp/in
17756 if test x"$ac_file" != x-; then
17757 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759echo "$as_me: $ac_file is unchanged" >&6;}
17760 else
17761 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$ac_file" : 'X\(//\)[^/]' \| \
17764 X"$ac_file" : 'X\(//\)$' \| \
17765 X"$ac_file" : 'X\(/\)' \| \
17766 . : '\(.\)' 2>/dev/null ||
17767echo X"$ac_file" |
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17772 s/.*/./; q'`
17773 { case "$ac_dir" in
17774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17775 *) as_incr_dir=.;;
17776esac
17777as_dummy="$ac_dir"
17778for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779 case $as_mkdir_dir in
17780 # Skip DOS drivespec
17781 ?:) as_incr_dir=$as_mkdir_dir ;;
17782 *)
17783 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17784 test -d "$as_incr_dir" ||
17785 mkdir "$as_incr_dir" ||
17786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17789 ;;
17790 esac
17791done; }
17792
17793 rm -f $ac_file
17794 mv $tmp/config.h $ac_file
17795 fi
17796 else
17797 cat $tmp/config.h
17798 rm -f $tmp/config.h
17799 fi
17800done
17801_ACEOF
17802
17803cat >>$CONFIG_STATUS <<\_ACEOF
17804
17805{ (exit 0); exit 0; }
17806_ACEOF
17807chmod +x $CONFIG_STATUS
17808ac_clean_files=$ac_clean_files_save
17809
17810
17811# configure is writing to config.log, and then calls config.status.
17812# config.status does its own redirection, appending to config.log.
17813# Unfortunately, on DOS this fails, as config.log is still kept open
17814# by configure, so config.status won't be able to write to it; its
17815# output is simply discarded. So we exec the FD to /dev/null,
17816# effectively closing config.log, so it can be properly (re)opened and
17817# appended to by config.status. When coming back to configure, we
17818# need to make the FD available again.
17819if test "$no_create" != yes; then
17820 ac_cs_success=:
17821 exec 5>/dev/null
17822 $SHELL $CONFIG_STATUS || ac_cs_success=false
17823 exec 5>>config.log
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || { (exit 1); exit 1; }
17827fi
17828
17829
17830# Print summary of options
17831
17832# Someone please show me a better way :)
17833A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17834B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17835C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17836D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17837E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17838F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17839G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17840H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17841I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17842J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17843
17844echo ""
17845echo "OpenSSH has been configured with the following options:"
17846echo " User binaries: $B"
17847echo " System binaries: $C"
17848echo " Configuration files: $D"
17849echo " Askpass program: $E"
17850echo " Manual pages: $F"
17851echo " PID file: $G"
17852echo " Privilege separation chroot path: $H"
17853if test "$USES_LOGIN_CONF" = "yes" ; then
17854echo " At runtime, sshd will use the path defined in /etc/login.conf"
17855else
17856echo " sshd default user PATH: $I"
17857fi
17858if test ! -z "$superuser_path" ; then
17859echo " sshd superuser user PATH: $J"
17860fi
17861echo " Manpage format: $MANTYPE"
17862echo " PAM support: ${PAM_MSG}"
17863echo " KerberosIV support: $KRB4_MSG"
17864echo " KerberosV support: $KRB5_MSG"
17865echo " Smartcard support: $SCARD_MSG"
17866echo " AFS support: $AFS_MSG"
17867echo " S/KEY support: $SKEY_MSG"
17868echo " TCP Wrappers support: $TCPW_MSG"
17869echo " MD5 password support: $MD5_MSG"
17870echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17871echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17872echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17873echo " BSD Auth support: $BSD_AUTH_MSG"
17874echo " Random number source: $RAND_MSG"
17875if test ! -z "$USE_RAND_HELPER" ; then
17876echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17877fi
17878
17879echo ""
17880
17881echo " Host: ${host}"
17882echo " Compiler: ${CC}"
17883echo " Compiler flags: ${CFLAGS}"
17884echo "Preprocessor flags: ${CPPFLAGS}"
17885echo " Linker flags: ${LDFLAGS}"
17886echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17887
17888echo ""
17889
17890if test "x$PAM_MSG" = "xyes" ; then
17891 echo "PAM is enabled. You may need to install a PAM control file "
17892 echo "for sshd, otherwise password authentication may fail. "
17893 echo "Example PAM control files can be found in the contrib/ "
17894 echo "subdirectory"
17895 echo ""
17896fi
17897
17898if test ! -z "$NO_SFTP"; then
17899 echo "sftp-server will be disabled. Your compiler does not "
17900 echo "support 64bit integers."
17901 echo ""
17902fi
17903
17904if test ! -z "$RAND_HELPER_CMDHASH" ; then
17905 echo "WARNING: you are using the builtin random number collection "
17906 echo "service. Please read WARNING.RNG and request that your OS "
17907 echo "vendor includes kernel-based random number collection in "
17908 echo "future versions of your OS."
17909 echo ""
17910fi
17911