]> andersk Git - gssapi-openssh.git/blame - openssh/autom4te-2.53.cache/output.0
Import of OpenSSH 3.3p1
[gssapi-openssh.git] / openssh / autom4te-2.53.cache / output.0
CommitLineData
700318f3 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
700318f3 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-rsh=PATH Specify path to remote shell program
7435de97 866 --with-privsep-path=xxx Path for privilege separation chroot
700318f3 867 --with-xauth=PATH Specify path to xauth program
868 --with-mantype=man|cat|doc Set man page type
869 --with-md5-passwords Enable use of MD5 passwords
870 --without-shadow Disable shadow password support
871 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
872 --with-default-path= Specify default \$PATH environment for server
873 --with-superuser-path= Specify different path for super-user
874 --with-ipv4-default Use IPv4 by connections unless '-6' specified
875 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
876 --with-bsd-auth Enable BSD auth support
877 --with-pid-dir=PATH Specify location of ssh.pid file
878 --with-lastlog=FILE|DIR specify lastlog location common locations
879
880Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892_ACEOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
909
910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924esac
925# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926# absolute.
927ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
928ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
929ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
930ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931
932 cd $ac_dir
933 # Check for guested configure; otherwise get Cygnus style configure.
934 if test -f $ac_srcdir/configure.gnu; then
935 echo
936 $SHELL $ac_srcdir/configure.gnu --help=recursive
937 elif test -f $ac_srcdir/configure; then
938 echo
939 $SHELL $ac_srcdir/configure --help=recursive
940 elif test -f $ac_srcdir/configure.ac ||
941 test -f $ac_srcdir/configure.in; then
942 echo
943 $ac_configure --help
944 else
945 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
946 fi
947 cd $ac_popdir
948 done
949fi
950
951test -n "$ac_init_help" && exit 0
952if $ac_init_version; then
953 cat <<\_ACEOF
954
955Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956Free Software Foundation, Inc.
957This configure script is free software; the Free Software Foundation
958gives unlimited permission to copy, distribute and modify it.
959_ACEOF
960 exit 0
961fi
962exec 5>config.log
963cat >&5 <<_ACEOF
964This file contains any messages produced by compilers while
965running configure, to aid debugging if configure makes a mistake.
966
967It was created by $as_me, which was
968generated by GNU Autoconf 2.53. Invocation command line was
969
970 $ $0 $@
971
972_ACEOF
973{
974cat <<_ASUNAME
975@%:@@%:@ --------- @%:@@%:@
976@%:@@%:@ Platform. @%:@@%:@
977@%:@@%:@ --------- @%:@@%:@
978
979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980uname -m = `(uname -m) 2>/dev/null || echo unknown`
981uname -r = `(uname -r) 2>/dev/null || echo unknown`
982uname -s = `(uname -s) 2>/dev/null || echo unknown`
983uname -v = `(uname -v) 2>/dev/null || echo unknown`
984
985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987
988/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
995
996_ASUNAME
997
998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999for as_dir in $PATH
1000do
1001 IFS=$as_save_IFS
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1004done
1005
1006} >&5
1007
1008cat >&5 <<_ACEOF
1009
1010
1011@%:@@%:@ ----------- @%:@@%:@
1012@%:@@%:@ Core tests. @%:@@%:@
1013@%:@@%:@ ----------- @%:@@%:@
1014
1015_ACEOF
1016
1017
1018# Keep a trace of the command line.
1019# Strip out --no-create and --no-recursion so they do not pile up.
1020# Also quote any args containing shell meta-characters.
1021ac_configure_args=
1022ac_sep=
1023for ac_arg
1024do
1025 case $ac_arg in
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n ) continue ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 continue ;;
1031 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1032 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 esac
1034 case " $ac_configure_args " in
1035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1036 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 ac_sep=" " ;;
1038 esac
1039 # Get rid of the leading space.
1040done
1041
1042# When interrupted or exit'd, cleanup temporary files, and complete
1043# config.log. We remove comments because anyway the quotes in there
1044# would cause problems or look ugly.
1045# WARNING: Be sure not to use single quotes in there, as some shells,
1046# such as our DU 5.0 friend, will then `close' the trap.
1047trap 'exit_status=$?
1048 # Save into config.log some information that might help in debugging.
1049 {
1050 echo
1051 cat <<\_ASBOX
1052@%:@@%:@ ---------------- @%:@@%:@
1053@%:@@%:@ Cache variables. @%:@@%:@
1054@%:@@%:@ ---------------- @%:@@%:@
1055_ASBOX
1056 echo
1057 # The following way of writing the cache mishandles newlines in values,
1058{
1059 (set) 2>&1 |
1060 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1061 *ac_space=\ *)
1062 sed -n \
1063 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1065 ;;
1066 *)
1067 sed -n \
1068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069 ;;
1070 esac;
1071}
1072 echo
1073 if test -s confdefs.h; then
1074 cat <<\_ASBOX
1075@%:@@%:@ ----------- @%:@@%:@
1076@%:@@%:@ confdefs.h. @%:@@%:@
1077@%:@@%:@ ----------- @%:@@%:@
1078_ASBOX
1079 echo
1080 sed "/^$/d" confdefs.h
1081 echo
1082 fi
1083 test "$ac_signal" != 0 &&
1084 echo "$as_me: caught signal $ac_signal"
1085 echo "$as_me: exit $exit_status"
1086 } >&5
1087 rm -f core core.* *.core &&
1088 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1089 exit $exit_status
1090 ' 0
1091for ac_signal in 1 2 13 15; do
1092 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1093done
1094ac_signal=0
1095
1096# confdefs.h avoids OS command line length limits that DEFS can exceed.
1097rm -rf conftest* confdefs.h
1098# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1099echo >confdefs.h
1100
1101# Predefined preprocessor variables.
1102
1103cat >>confdefs.h <<_ACEOF
1104@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1105_ACEOF
1106
1107
1108cat >>confdefs.h <<_ACEOF
1109@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1110_ACEOF
1111
1112
1113cat >>confdefs.h <<_ACEOF
1114@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1115_ACEOF
1116
1117
1118cat >>confdefs.h <<_ACEOF
1119@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1120_ACEOF
1121
1122
1123cat >>confdefs.h <<_ACEOF
1124@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1125_ACEOF
1126
1127
1128# Let the site file select an alternate cache file if it wants to.
1129# Prefer explicitly selected file to automatically selected ones.
1130if test -z "$CONFIG_SITE"; then
1131 if test "x$prefix" != xNONE; then
1132 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1133 else
1134 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1135 fi
1136fi
1137for ac_site_file in $CONFIG_SITE; do
1138 if test -r "$ac_site_file"; then
1139 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1140echo "$as_me: loading site script $ac_site_file" >&6;}
1141 sed 's/^/| /' "$ac_site_file" >&5
1142 . "$ac_site_file"
1143 fi
1144done
1145
1146if test -r "$cache_file"; then
1147 # Some versions of bash will fail to source /dev/null (special
1148 # files actually), so we avoid doing that.
1149 if test -f "$cache_file"; then
1150 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1151echo "$as_me: loading cache $cache_file" >&6;}
1152 case $cache_file in
1153 [\\/]* | ?:[\\/]* ) . $cache_file;;
1154 *) . ./$cache_file;;
1155 esac
1156 fi
1157else
1158 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1159echo "$as_me: creating cache $cache_file" >&6;}
1160 >$cache_file
1161fi
1162
1163# Check that the precious variables saved in the cache have kept the same
1164# value.
1165ac_cache_corrupted=false
1166for ac_var in `(set) 2>&1 |
1167 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1169 eval ac_new_set=\$ac_env_${ac_var}_set
1170 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1171 eval ac_new_val="\$ac_env_${ac_var}_value"
1172 case $ac_old_set,$ac_new_set in
1173 set,)
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1175echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1177 ,set)
1178 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1179echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1180 ac_cache_corrupted=: ;;
1181 ,);;
1182 *)
1183 if test "x$ac_old_val" != "x$ac_new_val"; then
1184 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1185echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1186 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1187echo "$as_me: former value: $ac_old_val" >&2;}
1188 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1189echo "$as_me: current value: $ac_new_val" >&2;}
1190 ac_cache_corrupted=:
1191 fi;;
1192 esac
1193 # Pass precious variables to config.status.
1194 if test "$ac_new_set" = set; then
1195 case $ac_new_val in
1196 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1198 *) ac_arg=$ac_var=$ac_new_val ;;
1199 esac
1200 case " $ac_configure_args " in
1201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1202 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1203 esac
1204 fi
1205done
1206if $ac_cache_corrupted; then
1207 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1208echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1209 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1210echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1211 { (exit 1); exit 1; }; }
1212fi
1213
1214ac_ext=c
1215ac_cpp='$CPP $CPPFLAGS'
1216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1218ac_compiler_gnu=$ac_cv_c_compiler_gnu
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239ac_config_headers="$ac_config_headers config.h"
1240
1241ac_ext=c
1242ac_cpp='$CPP $CPPFLAGS'
1243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1245ac_compiler_gnu=$ac_cv_c_compiler_gnu
1246if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1248set dummy ${ac_tool_prefix}gcc; ac_word=$2
1249echo "$as_me:$LINENO: checking for $ac_word" >&5
1250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1253else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256else
1257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258for as_dir in $PATH
1259do
1260 IFS=$as_save_IFS
1261 test -z "$as_dir" && as_dir=.
1262 for ac_exec_ext in '' $ac_executable_extensions; do
1263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1264 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1266 break 2
1267 fi
1268done
1269done
1270
1271fi
1272fi
1273CC=$ac_cv_prog_CC
1274if test -n "$CC"; then
1275 echo "$as_me:$LINENO: result: $CC" >&5
1276echo "${ECHO_T}$CC" >&6
1277else
1278 echo "$as_me:$LINENO: result: no" >&5
1279echo "${ECHO_T}no" >&6
1280fi
1281
1282fi
1283if test -z "$ac_cv_prog_CC"; then
1284 ac_ct_CC=$CC
1285 # Extract the first word of "gcc", so it can be a program name with args.
1286set dummy gcc; ac_word=$2
1287echo "$as_me:$LINENO: checking for $ac_word" >&5
1288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1291else
1292 if test -n "$ac_ct_CC"; then
1293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1294else
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298 IFS=$as_save_IFS
1299 test -z "$as_dir" && as_dir=.
1300 for ac_exec_ext in '' $ac_executable_extensions; do
1301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302 ac_cv_prog_ac_ct_CC="gcc"
1303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1304 break 2
1305 fi
1306done
1307done
1308
1309fi
1310fi
1311ac_ct_CC=$ac_cv_prog_ac_ct_CC
1312if test -n "$ac_ct_CC"; then
1313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1314echo "${ECHO_T}$ac_ct_CC" >&6
1315else
1316 echo "$as_me:$LINENO: result: no" >&5
1317echo "${ECHO_T}no" >&6
1318fi
1319
1320 CC=$ac_ct_CC
1321else
1322 CC="$ac_cv_prog_CC"
1323fi
1324
1325if test -z "$CC"; then
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1328set dummy ${ac_tool_prefix}cc; ac_word=$2
1329echo "$as_me:$LINENO: checking for $ac_word" >&5
1330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331if test "${ac_cv_prog_CC+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1333else
1334 if test -n "$CC"; then
1335 ac_cv_prog_CC="$CC" # Let the user override the test.
1336else
1337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1338for as_dir in $PATH
1339do
1340 IFS=$as_save_IFS
1341 test -z "$as_dir" && as_dir=.
1342 for ac_exec_ext in '' $ac_executable_extensions; do
1343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1344 ac_cv_prog_CC="${ac_tool_prefix}cc"
1345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1346 break 2
1347 fi
1348done
1349done
1350
1351fi
1352fi
1353CC=$ac_cv_prog_CC
1354if test -n "$CC"; then
1355 echo "$as_me:$LINENO: result: $CC" >&5
1356echo "${ECHO_T}$CC" >&6
1357else
1358 echo "$as_me:$LINENO: result: no" >&5
1359echo "${ECHO_T}no" >&6
1360fi
1361
1362fi
1363if test -z "$ac_cv_prog_CC"; then
1364 ac_ct_CC=$CC
1365 # Extract the first word of "cc", so it can be a program name with args.
1366set dummy cc; ac_word=$2
1367echo "$as_me:$LINENO: checking for $ac_word" >&5
1368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372 if test -n "$ac_ct_CC"; then
1373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1374else
1375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_ac_ct_CC="cc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384 break 2
1385 fi
1386done
1387done
1388
1389fi
1390fi
1391ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392if test -n "$ac_ct_CC"; then
1393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1394echo "${ECHO_T}$ac_ct_CC" >&6
1395else
1396 echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
1398fi
1399
1400 CC=$ac_ct_CC
1401else
1402 CC="$ac_cv_prog_CC"
1403fi
1404
1405fi
1406if test -z "$CC"; then
1407 # Extract the first word of "cc", so it can be a program name with args.
1408set dummy cc; ac_word=$2
1409echo "$as_me:$LINENO: checking for $ac_word" >&5
1410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411if test "${ac_cv_prog_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 if test -n "$CC"; then
1415 ac_cv_prog_CC="$CC" # Let the user override the test.
1416else
1417 ac_prog_rejected=no
1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1426 ac_prog_rejected=yes
1427 continue
1428 fi
1429 ac_cv_prog_CC="cc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1432 fi
1433done
1434done
1435
1436if test $ac_prog_rejected = yes; then
1437 # We found a bogon in the path, so make sure we never use it.
1438 set dummy $ac_cv_prog_CC
1439 shift
1440 if test $@%:@ != 0; then
1441 # We chose a different compiler from the bogus one.
1442 # However, it has the same basename, so the bogon will be chosen
1443 # first if we set CC to just the basename; use the full file name.
1444 shift
1445 set dummy "$as_dir/$ac_word" ${1+"$@"}
1446 shift
1447 ac_cv_prog_CC="$@"
1448 fi
1449fi
1450fi
1451fi
1452CC=$ac_cv_prog_CC
1453if test -n "$CC"; then
1454 echo "$as_me:$LINENO: result: $CC" >&5
1455echo "${ECHO_T}$CC" >&6
1456else
1457 echo "$as_me:$LINENO: result: no" >&5
1458echo "${ECHO_T}no" >&6
1459fi
1460
1461fi
1462if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1464 for ac_prog in cl
1465 do
1466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475else
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
1488done
1489
1490fi
1491fi
1492CC=$ac_cv_prog_CC
1493if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495echo "${ECHO_T}$CC" >&6
1496else
1497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
1499fi
1500
1501 test -n "$CC" && break
1502 done
1503fi
1504if test -z "$CC"; then
1505 ac_ct_CC=$CC
1506 for ac_prog in cl
1507do
1508 # Extract the first word of "$ac_prog", so it can be a program name with args.
1509set dummy $ac_prog; ac_word=$2
1510echo "$as_me:$LINENO: checking for $ac_word" >&5
1511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517else
1518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519for as_dir in $PATH
1520do
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="$ac_prog"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1528 fi
1529done
1530done
1531
1532fi
1533fi
1534ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537echo "${ECHO_T}$ac_ct_CC" >&6
1538else
1539 echo "$as_me:$LINENO: result: no" >&5
1540echo "${ECHO_T}no" >&6
1541fi
1542
1543 test -n "$ac_ct_CC" && break
1544done
1545
1546 CC=$ac_ct_CC
1547fi
1548
1549fi
1550
1551
1552test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1553echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556# Provide some information about the compiler.
1557echo "$as_me:$LINENO:" \
1558 "checking for C compiler version" >&5
1559ac_compiler=`set X $ac_compile; echo $2`
1560{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1561 (eval $ac_compiler --version </dev/null >&5) 2>&5
1562 ac_status=$?
1563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1564 (exit $ac_status); }
1565{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1566 (eval $ac_compiler -v </dev/null >&5) 2>&5
1567 ac_status=$?
1568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1569 (exit $ac_status); }
1570{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1571 (eval $ac_compiler -V </dev/null >&5) 2>&5
1572 ac_status=$?
1573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574 (exit $ac_status); }
1575
1576cat >conftest.$ac_ext <<_ACEOF
1577#line $LINENO "configure"
1578#include "confdefs.h"
1579
1580#ifdef F77_DUMMY_MAIN
1581# ifdef __cplusplus
1582 extern "C"
1583# endif
1584 int F77_DUMMY_MAIN() { return 1; }
1585#endif
1586int
1587main ()
1588{
1589
1590 ;
1591 return 0;
1592}
1593_ACEOF
1594ac_clean_files_save=$ac_clean_files
1595ac_clean_files="$ac_clean_files a.out a.exe"
1596# Try to create an executable without -o first, disregard a.out.
1597# It will help us diagnose broken compilers, and finding out an intuition
1598# of exeext.
1599echo "$as_me:$LINENO: checking for C compiler default output" >&5
1600echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1601ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1602if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1603 (eval $ac_link_default) 2>&5
1604 ac_status=$?
1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606 (exit $ac_status); }; then
1607 # Find the output, starting from the most likely. This scheme is
1608# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1609# resort.
1610
1611# Be careful to initialize this variable, since it used to be cached.
1612# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1613ac_cv_exeext=
1614for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1615 ls a.out conftest 2>/dev/null;
1616 ls a.* conftest.* 2>/dev/null`; do
1617 case $ac_file in
1618 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1619 a.out ) # We found the default executable, but exeext='' is most
1620 # certainly right.
1621 break;;
1622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1623 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1624 export ac_cv_exeext
1625 break;;
1626 * ) break;;
1627 esac
1628done
1629else
1630 echo "$as_me: failed program was:" >&5
1631cat conftest.$ac_ext >&5
1632{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1633echo "$as_me: error: C compiler cannot create executables" >&2;}
1634 { (exit 77); exit 77; }; }
1635fi
1636
1637ac_exeext=$ac_cv_exeext
1638echo "$as_me:$LINENO: result: $ac_file" >&5
1639echo "${ECHO_T}$ac_file" >&6
1640
1641# Check the compiler produces executables we can run. If not, either
1642# the compiler is broken, or we cross compile.
1643echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1644echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1645# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1646# If not cross compiling, check that we can run a simple program.
1647if test "$cross_compiling" != yes; then
1648 if { ac_try='./$ac_file'
1649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1650 (eval $ac_try) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }; }; then
1654 cross_compiling=no
1655 else
1656 if test "$cross_compiling" = maybe; then
1657 cross_compiling=yes
1658 else
1659 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1660If you meant to cross compile, use \`--host'." >&5
1661echo "$as_me: error: cannot run C compiled programs.
1662If you meant to cross compile, use \`--host'." >&2;}
1663 { (exit 1); exit 1; }; }
1664 fi
1665 fi
1666fi
1667echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669
1670rm -f a.out a.exe conftest$ac_cv_exeext
1671ac_clean_files=$ac_clean_files_save
1672# Check the compiler produces executables we can run. If not, either
1673# the compiler is broken, or we cross compile.
1674echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1675echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1676echo "$as_me:$LINENO: result: $cross_compiling" >&5
1677echo "${ECHO_T}$cross_compiling" >&6
1678
1679echo "$as_me:$LINENO: checking for suffix of executables" >&5
1680echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1682 (eval $ac_link) 2>&5
1683 ac_status=$?
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }; then
1686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1687# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1688# work properly (i.e., refer to `conftest.exe'), while it won't with
1689# `rm'.
1690for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1691 case $ac_file in
1692 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1694 export ac_cv_exeext
1695 break;;
1696 * ) break;;
1697 esac
1698done
1699else
1700 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1701echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1702 { (exit 1); exit 1; }; }
1703fi
1704
1705rm -f conftest$ac_cv_exeext
1706echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1707echo "${ECHO_T}$ac_cv_exeext" >&6
1708
1709rm -f conftest.$ac_ext
1710EXEEXT=$ac_cv_exeext
1711ac_exeext=$EXEEXT
1712echo "$as_me:$LINENO: checking for suffix of object files" >&5
1713echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1714if test "${ac_cv_objext+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717 cat >conftest.$ac_ext <<_ACEOF
1718#line $LINENO "configure"
1719#include "confdefs.h"
1720
1721#ifdef F77_DUMMY_MAIN
1722# ifdef __cplusplus
1723 extern "C"
1724# endif
1725 int F77_DUMMY_MAIN() { return 1; }
1726#endif
1727int
1728main ()
1729{
1730
1731 ;
1732 return 0;
1733}
1734_ACEOF
1735rm -f conftest.o conftest.obj
1736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1745 break;;
1746 esac
1747done
1748else
1749 echo "$as_me: failed program was:" >&5
1750cat conftest.$ac_ext >&5
1751{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1752echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1753 { (exit 1); exit 1; }; }
1754fi
1755
1756rm -f conftest.$ac_cv_objext conftest.$ac_ext
1757fi
1758echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1759echo "${ECHO_T}$ac_cv_objext" >&6
1760OBJEXT=$ac_cv_objext
1761ac_objext=$OBJEXT
1762echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1763echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1764if test "${ac_cv_c_compiler_gnu+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 cat >conftest.$ac_ext <<_ACEOF
1768#line $LINENO "configure"
1769#include "confdefs.h"
1770
1771#ifdef F77_DUMMY_MAIN
1772# ifdef __cplusplus
1773 extern "C"
1774# endif
1775 int F77_DUMMY_MAIN() { return 1; }
1776#endif
1777int
1778main ()
1779{
1780#ifndef __GNUC__
1781 choke me
1782#endif
1783
1784 ;
1785 return 0;
1786}
1787_ACEOF
1788rm -f conftest.$ac_objext
1789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1790 (eval $ac_compile) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); } &&
1794 { ac_try='test -s conftest.$ac_objext'
1795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1796 (eval $ac_try) 2>&5
1797 ac_status=$?
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }; }; then
1800 ac_compiler_gnu=yes
1801else
1802 echo "$as_me: failed program was:" >&5
1803cat conftest.$ac_ext >&5
1804ac_compiler_gnu=no
1805fi
1806rm -f conftest.$ac_objext conftest.$ac_ext
1807ac_cv_c_compiler_gnu=$ac_compiler_gnu
1808
1809fi
1810echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1811echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1812GCC=`test $ac_compiler_gnu = yes && echo yes`
1813ac_test_CFLAGS=${CFLAGS+set}
1814ac_save_CFLAGS=$CFLAGS
1815CFLAGS="-g"
1816echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1817echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1818if test "${ac_cv_prog_cc_g+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821 cat >conftest.$ac_ext <<_ACEOF
1822#line $LINENO "configure"
1823#include "confdefs.h"
1824
1825#ifdef F77_DUMMY_MAIN
1826# ifdef __cplusplus
1827 extern "C"
1828# endif
1829 int F77_DUMMY_MAIN() { return 1; }
1830#endif
1831int
1832main ()
1833{
1834
1835 ;
1836 return 0;
1837}
1838_ACEOF
1839rm -f conftest.$ac_objext
1840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1841 (eval $ac_compile) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); } &&
1845 { ac_try='test -s conftest.$ac_objext'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 ac_cv_prog_cc_g=yes
1852else
1853 echo "$as_me: failed program was:" >&5
1854cat conftest.$ac_ext >&5
1855ac_cv_prog_cc_g=no
1856fi
1857rm -f conftest.$ac_objext conftest.$ac_ext
1858fi
1859echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1860echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1861if test "$ac_test_CFLAGS" = set; then
1862 CFLAGS=$ac_save_CFLAGS
1863elif test $ac_cv_prog_cc_g = yes; then
1864 if test "$GCC" = yes; then
1865 CFLAGS="-g -O2"
1866 else
1867 CFLAGS="-g"
1868 fi
1869else
1870 if test "$GCC" = yes; then
1871 CFLAGS="-O2"
1872 else
1873 CFLAGS=
1874 fi
1875fi
1876# Some people use a C++ compiler to compile C. Since we use `exit',
1877# in C++ we need to declare it. In case someone uses the same compiler
1878# for both compiling C and C++ we need to have the C++ compiler decide
1879# the declaration of exit, since it's the most demanding environment.
1880cat >conftest.$ac_ext <<_ACEOF
1881@%:@ifndef __cplusplus
1882 choke me
1883@%:@endif
1884_ACEOF
1885rm -f conftest.$ac_objext
1886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 (eval $ac_try) 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 for ac_declaration in \
1898 ''\
1899 '#include <stdlib.h>' \
1900 'extern "C" void std::exit (int) throw (); using std::exit;' \
1901 'extern "C" void std::exit (int); using std::exit;' \
1902 'extern "C" void exit (int) throw ();' \
1903 'extern "C" void exit (int);' \
1904 'void exit (int);'
1905do
1906 cat >conftest.$ac_ext <<_ACEOF
1907#line $LINENO "configure"
1908#include "confdefs.h"
1909@%:@include <stdlib.h>
1910$ac_declaration
1911#ifdef F77_DUMMY_MAIN
1912# ifdef __cplusplus
1913 extern "C"
1914# endif
1915 int F77_DUMMY_MAIN() { return 1; }
1916#endif
1917int
1918main ()
1919{
1920exit (42);
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.$ac_objext
1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 (eval $ac_try) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1937 :
1938else
1939 echo "$as_me: failed program was:" >&5
1940cat conftest.$ac_ext >&5
1941continue
1942fi
1943rm -f conftest.$ac_objext conftest.$ac_ext
1944 cat >conftest.$ac_ext <<_ACEOF
1945#line $LINENO "configure"
1946#include "confdefs.h"
1947$ac_declaration
1948#ifdef F77_DUMMY_MAIN
1949# ifdef __cplusplus
1950 extern "C"
1951# endif
1952 int F77_DUMMY_MAIN() { return 1; }
1953#endif
1954int
1955main ()
1956{
1957exit (42);
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.$ac_objext
1963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1974 break
1975else
1976 echo "$as_me: failed program was:" >&5
1977cat conftest.$ac_ext >&5
1978fi
1979rm -f conftest.$ac_objext conftest.$ac_ext
1980done
1981rm -f conftest*
1982if test -n "$ac_declaration"; then
1983 echo '#ifdef __cplusplus' >>confdefs.h
1984 echo $ac_declaration >>confdefs.h
1985 echo '#endif' >>confdefs.h
1986fi
1987
1988else
1989 echo "$as_me: failed program was:" >&5
1990cat conftest.$ac_ext >&5
1991fi
1992rm -f conftest.$ac_objext conftest.$ac_ext
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999ac_aux_dir=
2000for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2001 if test -f $ac_dir/install-sh; then
2002 ac_aux_dir=$ac_dir
2003 ac_install_sh="$ac_aux_dir/install-sh -c"
2004 break
2005 elif test -f $ac_dir/install.sh; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/install.sh -c"
2008 break
2009 elif test -f $ac_dir/shtool; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 break
2013 fi
2014done
2015if test -z "$ac_aux_dir"; then
2016 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2017echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2018 { (exit 1); exit 1; }; }
2019fi
2020ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2021ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2022ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2023
2024# Make sure we can run config.sub.
2025$ac_config_sub sun4 >/dev/null 2>&1 ||
2026 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2027echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2028 { (exit 1); exit 1; }; }
2029
2030echo "$as_me:$LINENO: checking build system type" >&5
2031echo $ECHO_N "checking build system type... $ECHO_C" >&6
2032if test "${ac_cv_build+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 ac_cv_build_alias=$build_alias
2036test -z "$ac_cv_build_alias" &&
2037 ac_cv_build_alias=`$ac_config_guess`
2038test -z "$ac_cv_build_alias" &&
2039 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2040echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2041 { (exit 1); exit 1; }; }
2042ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2043 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2044echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2045 { (exit 1); exit 1; }; }
2046
2047fi
2048echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2049echo "${ECHO_T}$ac_cv_build" >&6
2050build=$ac_cv_build
2051build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2052build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2053build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2054
2055
2056echo "$as_me:$LINENO: checking host system type" >&5
2057echo $ECHO_N "checking host system type... $ECHO_C" >&6
2058if test "${ac_cv_host+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061 ac_cv_host_alias=$host_alias
2062test -z "$ac_cv_host_alias" &&
2063 ac_cv_host_alias=$ac_cv_build_alias
2064ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2065 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2066echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2067 { (exit 1); exit 1; }; }
2068
2069fi
2070echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2071echo "${ECHO_T}$ac_cv_host" >&6
2072host=$ac_cv_host
2073host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2074host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2075host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2076
2077
2078
2079echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2081if test "${ac_cv_c_bigendian+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084 # See if sys/param.h defines the BYTE_ORDER macro.
2085cat >conftest.$ac_ext <<_ACEOF
2086#line $LINENO "configure"
2087#include "confdefs.h"
2088#include <sys/types.h>
2089#include <sys/param.h>
2090
2091#ifdef F77_DUMMY_MAIN
2092# ifdef __cplusplus
2093 extern "C"
2094# endif
2095 int F77_DUMMY_MAIN() { return 1; }
2096#endif
2097int
2098main ()
2099{
2100#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2101 bogus endian macros
2102#endif
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108rm -f conftest.$ac_objext
2109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 # It does; now see whether it defined to BIG_ENDIAN or not.
2121cat >conftest.$ac_ext <<_ACEOF
2122#line $LINENO "configure"
2123#include "confdefs.h"
2124#include <sys/types.h>
2125#include <sys/param.h>
2126
2127#ifdef F77_DUMMY_MAIN
2128# ifdef __cplusplus
2129 extern "C"
2130# endif
2131 int F77_DUMMY_MAIN() { return 1; }
2132#endif
2133int
2134main ()
2135{
2136#if BYTE_ORDER != BIG_ENDIAN
2137 not big endian
2138#endif
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_c_bigendian=yes
2157else
2158 echo "$as_me: failed program was:" >&5
2159cat conftest.$ac_ext >&5
2160ac_cv_c_bigendian=no
2161fi
2162rm -f conftest.$ac_objext conftest.$ac_ext
2163else
2164 echo "$as_me: failed program was:" >&5
2165cat conftest.$ac_ext >&5
2166# It does not; compile a test program.
2167if test "$cross_compiling" = yes; then
2168 # try to guess the endianess by grep'ing values into an object file
2169 ac_cv_c_bigendian=unknown
2170 cat >conftest.$ac_ext <<_ACEOF
2171#line $LINENO "configure"
2172#include "confdefs.h"
2173short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2174short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2175void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2176short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2177short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2178void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2179#ifdef F77_DUMMY_MAIN
2180# ifdef __cplusplus
2181 extern "C"
2182# endif
2183 int F77_DUMMY_MAIN() { return 1; }
2184#endif
2185int
2186main ()
2187{
2188 _ascii (); _ebcdic ();
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2205 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2206 ac_cv_c_bigendian=yes
2207fi
2208if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2209 if test "$ac_cv_c_bigendian" = unknown; then
2210 ac_cv_c_bigendian=no
2211 else
2212 # finding both strings is unlikely to happen, but who knows?
2213 ac_cv_c_bigendian=unknown
2214 fi
2215fi
2216else
2217 echo "$as_me: failed program was:" >&5
2218cat conftest.$ac_ext >&5
2219fi
2220rm -f conftest.$ac_objext conftest.$ac_ext
2221else
2222 cat >conftest.$ac_ext <<_ACEOF
2223#line $LINENO "configure"
2224#include "confdefs.h"
2225int
2226main ()
2227{
2228 /* Are we little or big endian? From Harbison&Steele. */
2229 union
2230 {
2231 long l;
2232 char c[sizeof (long)];
2233 } u;
2234 u.l = 1;
2235 exit (u.c[sizeof (long) - 1] == 1);
2236}
2237_ACEOF
2238rm -f conftest$ac_exeext
2239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_c_bigendian=no
2250else
2251 echo "$as_me: program exited with status $ac_status" >&5
2252echo "$as_me: failed program was:" >&5
2253cat conftest.$ac_ext >&5
2254( exit $ac_status )
2255ac_cv_c_bigendian=yes
2256fi
2257rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2258fi
2259fi
2260rm -f conftest.$ac_objext conftest.$ac_ext
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2263echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2264case $ac_cv_c_bigendian in
2265 yes)
2266
2267cat >>confdefs.h <<\_ACEOF
2268@%:@define WORDS_BIGENDIAN 1
2269_ACEOF
2270 ;;
2271 no)
2272 ;;
2273 *)
2274 { { echo "$as_me:$LINENO: error: unknown endianess
2275presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2276echo "$as_me: error: unknown endianess
2277presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2278 { (exit 1); exit 1; }; } ;;
2279esac
2280
2281
2282# Checks for programs.
2283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2289echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2290# On Suns, sometimes $CPP names a directory.
2291if test -n "$CPP" && test -d "$CPP"; then
2292 CPP=
2293fi
2294if test -z "$CPP"; then
2295 if test "${ac_cv_prog_CPP+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298 # Double quotes because CPP needs to be expanded
2299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2300 do
2301 ac_preproc_ok=false
2302for ac_c_preproc_warn_flag in '' yes
2303do
2304 # Use a header file that comes with gcc, so configuring glibc
2305 # with a fresh cross-compiler works.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp. "Syntax error" is here to catch this case.
2308 cat >conftest.$ac_ext <<_ACEOF
2309#line $LINENO "configure"
2310#include "confdefs.h"
2311@%:@include <assert.h>
2312 Syntax error
2313_ACEOF
2314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 ac_status=$?
2317 egrep -v '^ *\+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2324 else
2325 ac_cpp_err=
2326 fi
2327else
2328 ac_cpp_err=yes
2329fi
2330if test -z "$ac_cpp_err"; then
2331 :
2332else
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2336continue
2337fi
2338rm -f conftest.err conftest.$ac_ext
2339
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343#line $LINENO "configure"
2344#include "confdefs.h"
2345@%:@include <ac_nonexistent.h>
2346_ACEOF
2347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 egrep -v '^ *\+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 else
2358 ac_cpp_err=
2359 fi
2360else
2361 ac_cpp_err=yes
2362fi
2363if test -z "$ac_cpp_err"; then
2364 # Broken: success on invalid input.
2365continue
2366else
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 # Passes both tests.
2370ac_preproc_ok=:
2371break
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
2375done
2376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2377rm -f conftest.err conftest.$ac_ext
2378if $ac_preproc_ok; then
2379 break
2380fi
2381
2382 done
2383 ac_cv_prog_CPP=$CPP
2384
2385fi
2386 CPP=$ac_cv_prog_CPP
2387else
2388 ac_cv_prog_CPP=$CPP
2389fi
2390echo "$as_me:$LINENO: result: $CPP" >&5
2391echo "${ECHO_T}$CPP" >&6
2392ac_preproc_ok=false
2393for ac_c_preproc_warn_flag in '' yes
2394do
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # On the NeXT, cc -E runs the code through the compiler's parser,
2398 # not just through cpp. "Syntax error" is here to catch this case.
2399 cat >conftest.$ac_ext <<_ACEOF
2400#line $LINENO "configure"
2401#include "confdefs.h"
2402@%:@include <assert.h>
2403 Syntax error
2404_ACEOF
2405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2407 ac_status=$?
2408 egrep -v '^ *\+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } >/dev/null; then
2413 if test -s conftest.err; then
2414 ac_cpp_err=$ac_c_preproc_warn_flag
2415 else
2416 ac_cpp_err=
2417 fi
2418else
2419 ac_cpp_err=yes
2420fi
2421if test -z "$ac_cpp_err"; then
2422 :
2423else
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 # Broken: fails on valid input.
2427continue
2428fi
2429rm -f conftest.err conftest.$ac_ext
2430
2431 # OK, works on sane cases. Now check whether non-existent headers
2432 # can be detected and how.
2433 cat >conftest.$ac_ext <<_ACEOF
2434#line $LINENO "configure"
2435#include "confdefs.h"
2436@%:@include <ac_nonexistent.h>
2437_ACEOF
2438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2440 ac_status=$?
2441 egrep -v '^ *\+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev/null; then
2446 if test -s conftest.err; then
2447 ac_cpp_err=$ac_c_preproc_warn_flag
2448 else
2449 ac_cpp_err=
2450 fi
2451else
2452 ac_cpp_err=yes
2453fi
2454if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2456continue
2457else
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 # Passes both tests.
2461ac_preproc_ok=:
2462break
2463fi
2464rm -f conftest.err conftest.$ac_ext
2465
2466done
2467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2468rm -f conftest.err conftest.$ac_ext
2469if $ac_preproc_ok; then
2470 :
2471else
2472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2473echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2474 { (exit 1); exit 1; }; }
2475fi
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_RANLIB+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$RANLIB"; then
2492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506done
2507
2508fi
2509fi
2510RANLIB=$ac_cv_prog_RANLIB
2511if test -n "$RANLIB"; then
2512 echo "$as_me:$LINENO: result: $RANLIB" >&5
2513echo "${ECHO_T}$RANLIB" >&6
2514else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517fi
2518
2519fi
2520if test -z "$ac_cv_prog_RANLIB"; then
2521 ac_ct_RANLIB=$RANLIB
2522 # Extract the first word of "ranlib", so it can be a program name with args.
2523set dummy ranlib; ac_word=$2
2524echo "$as_me:$LINENO: checking for $ac_word" >&5
2525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529 if test -n "$ac_ct_RANLIB"; then
2530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_RANLIB="ranlib"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543done
2544done
2545
2546 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2547fi
2548fi
2549ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2550if test -n "$ac_ct_RANLIB"; then
2551 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2552echo "${ECHO_T}$ac_ct_RANLIB" >&6
2553else
2554 echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6
2556fi
2557
2558 RANLIB=$ac_ct_RANLIB
2559else
2560 RANLIB="$ac_cv_prog_RANLIB"
2561fi
2562
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# ./install, which can be erroneously created by make from ./install.sh.
2575echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2576echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2577if test -z "$INSTALL"; then
2578if test "${ac_cv_path_install+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in
2588 ./ | .// | /cC/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 /usr/ucb/* ) ;;
2591 *)
2592 # OSF1 and SCO ODT 3.0 have their own names for install.
2593 # Don't use installbsd from OSF since it installs stuff as root
2594 # by default.
2595 for ac_prog in ginstall scoinst install; do
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2598 if test $ac_prog = install &&
2599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600 # AIX install. It has an incompatible calling convention.
2601 :
2602 elif test $ac_prog = install &&
2603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # program-specific install script used by HP pwplus--don't use.
2605 :
2606 else
2607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2608 break 3
2609 fi
2610 fi
2611 done
2612 done
2613 ;;
2614esac
2615done
2616
2617
2618fi
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL=$ac_cv_path_install
2621 else
2622 # As a last resort, use the slow shell script. We don't cache a
2623 # path for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the path is relative.
2626 INSTALL=$ac_install_sh
2627 fi
2628fi
2629echo "$as_me:$LINENO: result: $INSTALL" >&5
2630echo "${ECHO_T}$INSTALL" >&6
2631
2632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633# It thinks the first close brace ends the variable substitution.
2634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635
2636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2637
2638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639
2640# Extract the first word of "ar", so it can be a program name with args.
2641set dummy ar; ac_word=$2
2642echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644if test "${ac_cv_path_AR+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 case $AR in
2648 [\\/]* | ?:[\\/]*)
2649 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2650 ;;
2651 *)
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663done
2664done
2665
2666 ;;
2667esac
2668fi
2669AR=$ac_cv_path_AR
2670
2671if test -n "$AR"; then
2672 echo "$as_me:$LINENO: result: $AR" >&5
2673echo "${ECHO_T}$AR" >&6
2674else
2675 echo "$as_me:$LINENO: result: no" >&5
2676echo "${ECHO_T}no" >&6
2677fi
2678
2679for ac_prog in perl5 perl
2680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
2683echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685if test "${ac_cv_path_PERL+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 case $PERL in
2689 [\\/]* | ?:[\\/]*)
2690 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2691 ;;
2692 *)
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704done
2705done
2706
2707 ;;
2708esac
2709fi
2710PERL=$ac_cv_path_PERL
2711
2712if test -n "$PERL"; then
2713 echo "$as_me:$LINENO: result: $PERL" >&5
2714echo "${ECHO_T}$PERL" >&6
2715else
2716 echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6
2718fi
2719
2720 test -n "$PERL" && break
2721done
2722
2723
2724# Extract the first word of "ent", so it can be a program name with args.
2725set dummy ent; ac_word=$2
2726echo "$as_me:$LINENO: checking for $ac_word" >&5
2727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728if test "${ac_cv_path_ENT+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730else
2731 case $ENT in
2732 [\\/]* | ?:[\\/]*)
2733 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2734 ;;
2735 *)
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748done
2749
2750 ;;
2751esac
2752fi
2753ENT=$ac_cv_path_ENT
2754
2755if test -n "$ENT"; then
2756 echo "$as_me:$LINENO: result: $ENT" >&5
2757echo "${ECHO_T}$ENT" >&6
2758else
2759 echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6
2761fi
2762
2763
2764for ac_prog in filepriv
2765do
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767set dummy $ac_prog; ac_word=$2
2768echo "$as_me:$LINENO: checking for $ac_word" >&5
2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770if test "${ac_cv_path_FILEPRIV+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 case $FILEPRIV in
2774 [\\/]* | ?:[\\/]*)
2775 ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path.
2776 ;;
2777 *)
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779as_dummy="/sbin:/usr/sbin"
2780for as_dir in $as_dummy
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791done
2792
2793 ;;
2794esac
2795fi
2796FILEPRIV=$ac_cv_path_FILEPRIV
2797
2798if test -n "$FILEPRIV"; then
2799 echo "$as_me:$LINENO: result: $FILEPRIV" >&5
2800echo "${ECHO_T}$FILEPRIV" >&6
2801else
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804fi
2805
2806 test -n "$FILEPRIV" && break
2807done
2808test -n "$FILEPRIV" || FILEPRIV="true"
2809
2810# Extract the first word of "bash", so it can be a program name with args.
2811set dummy bash; ac_word=$2
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 case $TEST_MINUS_S_SH in
2818 [\\/]* | ?:[\\/]*)
2819 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2820 ;;
2821 *)
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836 ;;
2837esac
2838fi
2839TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2840
2841if test -n "$TEST_MINUS_S_SH"; then
2842 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2843echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2844else
2845 echo "$as_me:$LINENO: result: no" >&5
2846echo "${ECHO_T}no" >&6
2847fi
2848
2849# Extract the first word of "ksh", so it can be a program name with args.
2850set dummy ksh; ac_word=$2
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 case $TEST_MINUS_S_SH in
2857 [\\/]* | ?:[\\/]*)
2858 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2859 ;;
2860 *)
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873done
2874
2875 ;;
2876esac
2877fi
2878TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2879
2880if test -n "$TEST_MINUS_S_SH"; then
2881 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2882echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2883else
2884 echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6
2886fi
2887
2888# Extract the first word of "sh", so it can be a program name with args.
2889set dummy sh; ac_word=$2
2890echo "$as_me:$LINENO: checking for $ac_word" >&5
2891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895 case $TEST_MINUS_S_SH in
2896 [\\/]* | ?:[\\/]*)
2897 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2898 ;;
2899 *)
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911done
2912done
2913
2914 ;;
2915esac
2916fi
2917TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2918
2919if test -n "$TEST_MINUS_S_SH"; then
2920 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2921echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2922else
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925fi
2926
2927# Extract the first word of "sh", so it can be a program name with args.
2928set dummy sh; ac_word=$2
2929echo "$as_me:$LINENO: checking for $ac_word" >&5
2930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931if test "${ac_cv_path_SH+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 case $SH in
2935 [\\/]* | ?:[\\/]*)
2936 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2937 ;;
2938 *)
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952
2953 ;;
2954esac
2955fi
2956SH=$ac_cv_path_SH
2957
2958if test -n "$SH"; then
2959 echo "$as_me:$LINENO: result: $SH" >&5
2960echo "${ECHO_T}$SH" >&6
2961else
2962 echo "$as_me:$LINENO: result: no" >&5
2963echo "${ECHO_T}no" >&6
2964fi
2965
2966
2967# System features
2968# Check whether --enable-largefile or --disable-largefile was given.
2969if test "${enable_largefile+set}" = set; then
2970 enableval="$enable_largefile"
2971
2972fi;
2973if test "$enable_largefile" != no; then
2974
2975 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2976echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2977if test "${ac_cv_sys_largefile_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 ac_cv_sys_largefile_CC=no
2981 if test "$GCC" != yes; then
2982 ac_save_CC=$CC
2983 while :; do
2984 # IRIX 6.2 and later do not support large files by default,
2985 # so use the C compiler's -n32 option if that helps.
2986 cat >conftest.$ac_ext <<_ACEOF
2987#line $LINENO "configure"
2988#include "confdefs.h"
2989@%:@include <sys/types.h>
2990 /* Check that off_t can represent 2**63 - 1 correctly.
2991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2992 since some C++ compilers masquerading as C compilers
2993 incorrectly reject 9223372036854775807. */
2994@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2996 && LARGE_OFF_T % 2147483647 == 1)
2997 ? 1 : -1];
2998#ifdef F77_DUMMY_MAIN
2999# ifdef __cplusplus
3000 extern "C"
3001# endif
3002 int F77_DUMMY_MAIN() { return 1; }
3003#endif
3004int
3005main ()
3006{
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012 rm -f conftest.$ac_objext
3013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 break
3025else
3026 echo "$as_me: failed program was:" >&5
3027cat conftest.$ac_ext >&5
3028fi
3029rm -f conftest.$ac_objext
3030 CC="$CC -n32"
3031 rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 ac_cv_sys_largefile_CC=' -n32'; break
3044else
3045 echo "$as_me: failed program was:" >&5
3046cat conftest.$ac_ext >&5
3047fi
3048rm -f conftest.$ac_objext
3049 break
3050 done
3051 CC=$ac_save_CC
3052 rm -f conftest.$ac_ext
3053 fi
3054fi
3055echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3056echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3057 if test "$ac_cv_sys_largefile_CC" != no; then
3058 CC=$CC$ac_cv_sys_largefile_CC
3059 fi
3060
3061 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3062echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3063if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066 while :; do
3067 ac_cv_sys_file_offset_bits=no
3068 cat >conftest.$ac_ext <<_ACEOF
3069#line $LINENO "configure"
3070#include "confdefs.h"
3071@%:@include <sys/types.h>
3072 /* Check that off_t can represent 2**63 - 1 correctly.
3073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3074 since some C++ compilers masquerading as C compilers
3075 incorrectly reject 9223372036854775807. */
3076@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3078 && LARGE_OFF_T % 2147483647 == 1)
3079 ? 1 : -1];
3080#ifdef F77_DUMMY_MAIN
3081# ifdef __cplusplus
3082 extern "C"
3083# endif
3084 int F77_DUMMY_MAIN() { return 1; }
3085#endif
3086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
3095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 break
3107else
3108 echo "$as_me: failed program was:" >&5
3109cat conftest.$ac_ext >&5
3110fi
3111rm -f conftest.$ac_objext conftest.$ac_ext
3112 cat >conftest.$ac_ext <<_ACEOF
3113#line $LINENO "configure"
3114#include "confdefs.h"
3115@%:@define _FILE_OFFSET_BITS 64
3116@%:@include <sys/types.h>
3117 /* Check that off_t can represent 2**63 - 1 correctly.
3118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3119 since some C++ compilers masquerading as C compilers
3120 incorrectly reject 9223372036854775807. */
3121@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3123 && LARGE_OFF_T % 2147483647 == 1)
3124 ? 1 : -1];
3125#ifdef F77_DUMMY_MAIN
3126# ifdef __cplusplus
3127 extern "C"
3128# endif
3129 int F77_DUMMY_MAIN() { return 1; }
3130#endif
3131int
3132main ()
3133{
3134
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext
3140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_sys_file_offset_bits=64; break
3152else
3153 echo "$as_me: failed program was:" >&5
3154cat conftest.$ac_ext >&5
3155fi
3156rm -f conftest.$ac_objext conftest.$ac_ext
3157 break
3158done
3159fi
3160echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3161echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3162if test "$ac_cv_sys_file_offset_bits" != no; then
3163
3164cat >>confdefs.h <<_ACEOF
3165@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3166_ACEOF
3167
3168fi
3169rm -f conftest*
3170 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3171echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3172if test "${ac_cv_sys_large_files+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
3175 while :; do
3176 ac_cv_sys_large_files=no
3177 cat >conftest.$ac_ext <<_ACEOF
3178#line $LINENO "configure"
3179#include "confdefs.h"
3180@%:@include <sys/types.h>
3181 /* Check that off_t can represent 2**63 - 1 correctly.
3182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3183 since some C++ compilers masquerading as C compilers
3184 incorrectly reject 9223372036854775807. */
3185@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3187 && LARGE_OFF_T % 2147483647 == 1)
3188 ? 1 : -1];
3189#ifdef F77_DUMMY_MAIN
3190# ifdef __cplusplus
3191 extern "C"
3192# endif
3193 int F77_DUMMY_MAIN() { return 1; }
3194#endif
3195int
3196main ()
3197{
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3205 (eval $ac_compile) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 break
3216else
3217 echo "$as_me: failed program was:" >&5
3218cat conftest.$ac_ext >&5
3219fi
3220rm -f conftest.$ac_objext conftest.$ac_ext
3221 cat >conftest.$ac_ext <<_ACEOF
3222#line $LINENO "configure"
3223#include "confdefs.h"
3224@%:@define _LARGE_FILES 1
3225@%:@include <sys/types.h>
3226 /* Check that off_t can represent 2**63 - 1 correctly.
3227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3228 since some C++ compilers masquerading as C compilers
3229 incorrectly reject 9223372036854775807. */
3230@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3232 && LARGE_OFF_T % 2147483647 == 1)
3233 ? 1 : -1];
3234#ifdef F77_DUMMY_MAIN
3235# ifdef __cplusplus
3236 extern "C"
3237# endif
3238 int F77_DUMMY_MAIN() { return 1; }
3239#endif
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248rm -f conftest.$ac_objext
3249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_sys_large_files=1; break
3261else
3262 echo "$as_me: failed program was:" >&5
3263cat conftest.$ac_ext >&5
3264fi
3265rm -f conftest.$ac_objext conftest.$ac_ext
3266 break
3267done
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3270echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3271if test "$ac_cv_sys_large_files" != no; then
3272
3273cat >>confdefs.h <<_ACEOF
3274@%:@define _LARGE_FILES $ac_cv_sys_large_files
3275_ACEOF
3276
3277fi
3278rm -f conftest*
3279fi
3280
3281
3282if test -z "$AR" ; then
3283 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3284echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3285 { (exit 1); exit 1; }; }
3286fi
3287
3288# Use LOGIN_PROGRAM from environment if possible
3289if test ! -z "$LOGIN_PROGRAM" ; then
3290 cat >>confdefs.h <<_ACEOF
3291@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3292_ACEOF
3293
3294else
3295 # Search for login
3296 # Extract the first word of "login", so it can be a program name with args.
3297set dummy login; ac_word=$2
3298echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303 case $LOGIN_PROGRAM_FALLBACK in
3304 [\\/]* | ?:[\\/]*)
3305 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3306 ;;
3307 *)
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319done
3320done
3321
3322 ;;
3323esac
3324fi
3325LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3326
3327if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3328 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3329echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3330else
3331 echo "$as_me:$LINENO: result: no" >&5
3332echo "${ECHO_T}no" >&6
3333fi
3334
3335 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3336 cat >>confdefs.h <<_ACEOF
3337@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3338_ACEOF
3339
3340 fi
3341fi
3342
3343if test -z "$LD" ; then
3344 LD=$CC
3345fi
3346
3347
3348echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3349echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3350if test "${ac_cv_prog_cc_stdc+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353 ac_cv_prog_cc_stdc=no
3354ac_save_CC=$CC
3355cat >conftest.$ac_ext <<_ACEOF
3356#line $LINENO "configure"
3357#include "confdefs.h"
3358#include <stdarg.h>
3359#include <stdio.h>
3360#include <sys/types.h>
3361#include <sys/stat.h>
3362/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363struct buf { int x; };
3364FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365static char *e (p, i)
3366 char **p;
3367 int i;
3368{
3369 return p[i];
3370}
3371static char *f (char * (*g) (char **, int), char **p, ...)
3372{
3373 char *s;
3374 va_list v;
3375 va_start (v,p);
3376 s = g (p, va_arg (v,int));
3377 va_end (v);
3378 return s;
3379}
3380int test (int i, double x);
3381struct s1 {int (*f) (int a);};
3382struct s2 {int (*f) (double a);};
3383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3384int argc;
3385char **argv;
3386#ifdef F77_DUMMY_MAIN
3387# ifdef __cplusplus
3388 extern "C"
3389# endif
3390 int F77_DUMMY_MAIN() { return 1; }
3391#endif
3392int
3393main ()
3394{
3395return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3396 ;
3397 return 0;
3398}
3399_ACEOF
3400# Don't try gcc -ansi; that turns off useful extensions and
3401# breaks some systems' header files.
3402# AIX -qlanglvl=ansi
3403# Ultrix and OSF/1 -std1
3404# HP-UX 10.20 and later -Ae
3405# HP-UX older versions -Aa -D_HPUX_SOURCE
3406# SVR4 -Xc -D__EXTENSIONS__
3407for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3408do
3409 CC="$ac_save_CC $ac_arg"
3410 rm -f conftest.$ac_objext
3411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 ac_cv_prog_cc_stdc=$ac_arg
3423break
3424else
3425 echo "$as_me: failed program was:" >&5
3426cat conftest.$ac_ext >&5
3427fi
3428rm -f conftest.$ac_objext
3429done
3430rm -f conftest.$ac_ext conftest.$ac_objext
3431CC=$ac_save_CC
3432
3433fi
3434
3435case "x$ac_cv_prog_cc_stdc" in
3436 x|xno)
3437 echo "$as_me:$LINENO: result: none needed" >&5
3438echo "${ECHO_T}none needed" >&6 ;;
3439 *)
3440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3441echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3442 CC="$CC $ac_cv_prog_cc_stdc" ;;
3443esac
3444
3445echo "$as_me:$LINENO: checking for inline" >&5
3446echo $ECHO_N "checking for inline... $ECHO_C" >&6
3447if test "${ac_cv_c_inline+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450 ac_cv_c_inline=no
3451for ac_kw in inline __inline__ __inline; do
3452 cat >conftest.$ac_ext <<_ACEOF
3453#line $LINENO "configure"
3454#include "confdefs.h"
3455#ifndef __cplusplus
3456static $ac_kw int static_foo () {return 0; }
3457$ac_kw int foo () {return 0; }
3458#endif
3459
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_c_inline=$ac_kw; break
3474else
3475 echo "$as_me: failed program was:" >&5
3476cat conftest.$ac_ext >&5
3477fi
3478rm -f conftest.$ac_objext conftest.$ac_ext
3479done
3480
3481fi
3482echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3483echo "${ECHO_T}$ac_cv_c_inline" >&6
3484case $ac_cv_c_inline in
3485 inline | yes) ;;
3486 no)
3487cat >>confdefs.h <<\_ACEOF
3488@%:@define inline
3489_ACEOF
3490 ;;
3491 *) cat >>confdefs.h <<_ACEOF
3492@%:@define inline $ac_cv_c_inline
3493_ACEOF
3494 ;;
3495esac
3496
3497if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3498 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3499fi
3500
3501# Check for some target-specific stuff
3502case "$host" in
3503*-*-aix*)
3504 AFS_LIBS="-lld"
3505 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3506 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3507 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3508 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3509echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3510 saved_LDFLAGS="$LDFLAGS"
3511 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3512 cat >conftest.$ac_ext <<_ACEOF
3513#line $LINENO "configure"
3514#include "confdefs.h"
3515
3516#ifdef F77_DUMMY_MAIN
3517# ifdef __cplusplus
3518 extern "C"
3519# endif
3520 int F77_DUMMY_MAIN() { return 1; }
3521#endif
3522int
3523main ()
3524{
3525
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext conftest$ac_exeext
3531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3532 (eval $ac_link) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -s conftest$ac_exeext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 blibpath="/usr/lib:/lib:/usr/local/lib"
3546
3547else
3548 echo "$as_me: failed program was:" >&5
3549cat conftest.$ac_ext >&5
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552
3553fi
3554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3555 LDFLAGS="$saved_LDFLAGS"
3556 fi
3557 echo "$as_me:$LINENO: checking for authenticate" >&5
3558echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3559if test "${ac_cv_func_authenticate+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562 cat >conftest.$ac_ext <<_ACEOF
3563#line $LINENO "configure"
3564#include "confdefs.h"
3565/* System header to define __stub macros and hopefully few prototypes,
3566 which can conflict with char authenticate (); below. */
3567#include <assert.h>
3568/* Override any gcc2 internal prototype to avoid an error. */
3569#ifdef __cplusplus
3570extern "C"
3571#endif
3572/* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3574char authenticate ();
3575char (*f) ();
3576
3577#ifdef F77_DUMMY_MAIN
3578# ifdef __cplusplus
3579 extern "C"
3580# endif
3581 int F77_DUMMY_MAIN() { return 1; }
3582#endif
3583int
3584main ()
3585{
3586/* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589#if defined (__stub_authenticate) || defined (__stub___authenticate)
3590choke me
3591#else
3592f = authenticate;
3593#endif
3594
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext conftest$ac_exeext
3600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -s conftest$ac_exeext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_func_authenticate=yes
3612else
3613 echo "$as_me: failed program was:" >&5
3614cat conftest.$ac_ext >&5
3615ac_cv_func_authenticate=no
3616fi
3617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3618fi
3619echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3620echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3621if test $ac_cv_func_authenticate = yes; then
3622 cat >>confdefs.h <<\_ACEOF
3623@%:@define WITH_AIXAUTHENTICATE 1
3624_ACEOF
3625
3626fi
3627
3628 cat >>confdefs.h <<\_ACEOF
3629@%:@define BROKEN_GETADDRINFO 1
3630_ACEOF
3631
3632 cat >>confdefs.h <<\_ACEOF
3633@%:@define BROKEN_REALPATH 1
3634_ACEOF
3635
3636 cat >>confdefs.h <<\_ACEOF
3637@%:@define DISABLE_LASTLOG 1
3638_ACEOF
3639
3640 ;;
3641*-*-cygwin*)
3642 LIBS="$LIBS /usr/lib/textmode.o"
3643 cat >>confdefs.h <<\_ACEOF
3644@%:@define HAVE_CYGWIN 1
3645_ACEOF
3646
3647 cat >>confdefs.h <<\_ACEOF
3648@%:@define USE_PIPES 1
3649_ACEOF
3650
3651 cat >>confdefs.h <<\_ACEOF
3652@%:@define DISABLE_SHADOW 1
3653_ACEOF
3654
3655 cat >>confdefs.h <<\_ACEOF
3656@%:@define IPV4_DEFAULT 1
3657_ACEOF
3658
3659 cat >>confdefs.h <<\_ACEOF
3660@%:@define IP_TOS_IS_BROKEN 1
3661_ACEOF
3662
3663 cat >>confdefs.h <<\_ACEOF
3664@%:@define NO_X11_UNIX_SOCKETS 1
f5799ae1 3665_ACEOF
3666
3667 cat >>confdefs.h <<\_ACEOF
3668@%:@define SETGROUPS_NOOP 1
700318f3 3669_ACEOF
3670
3671 ;;
3672*-*-dgux*)
3673 cat >>confdefs.h <<\_ACEOF
3674@%:@define IP_TOS_IS_BROKEN 1
3675_ACEOF
3676
3677 ;;
3678*-*-darwin*)
3679 cat >>confdefs.h <<\_ACEOF
3680@%:@define BROKEN_GETADDRINFO 1
3681_ACEOF
3682
3683 ;;
3684*-*-hpux10.26)
3685 if test -z "$GCC"; then
3686 CFLAGS="$CFLAGS -Ae"
3687 fi
3688 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3689 IPADDR_IN_DISPLAY=yes
3690 cat >>confdefs.h <<\_ACEOF
3691@%:@define HAVE_SECUREWARE 1
3692_ACEOF
3693
3694 cat >>confdefs.h <<\_ACEOF
3695@%:@define USE_PIPES 1
3696_ACEOF
3697
3698 cat >>confdefs.h <<\_ACEOF
3699@%:@define LOGIN_NO_ENDOPT 1
3700_ACEOF
3701
3702 cat >>confdefs.h <<\_ACEOF
3703@%:@define LOGIN_NEEDS_UTMPX 1
3704_ACEOF
3705
3706 cat >>confdefs.h <<\_ACEOF
3707@%:@define DISABLE_SHADOW 1
3708_ACEOF
3709
3710 cat >>confdefs.h <<\_ACEOF
3711@%:@define DISABLE_UTMP 1
3712_ACEOF
3713
3714 cat >>confdefs.h <<\_ACEOF
3715@%:@define SPT_TYPE SPT_PSTAT
3716_ACEOF
3717
3718 LIBS="$LIBS -lxnet -lsec -lsecpw"
3719 disable_ptmx_check=yes
3720 ;;
3721*-*-hpux10*)
3722 if test -z "$GCC"; then
3723 CFLAGS="$CFLAGS -Ae"
3724 fi
3725 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3726 IPADDR_IN_DISPLAY=yes
3727 cat >>confdefs.h <<\_ACEOF
3728@%:@define USE_PIPES 1
3729_ACEOF
3730
3731 cat >>confdefs.h <<\_ACEOF
3732@%:@define LOGIN_NO_ENDOPT 1
3733_ACEOF
3734
3735 cat >>confdefs.h <<\_ACEOF
3736@%:@define LOGIN_NEEDS_UTMPX 1
3737_ACEOF
3738
3739 cat >>confdefs.h <<\_ACEOF
3740@%:@define DISABLE_SHADOW 1
3741_ACEOF
3742
3743 cat >>confdefs.h <<\_ACEOF
3744@%:@define DISABLE_UTMP 1
3745_ACEOF
3746
3747 cat >>confdefs.h <<\_ACEOF
3748@%:@define SPT_TYPE SPT_PSTAT
3749_ACEOF
3750
3751 LIBS="$LIBS -lxnet -lsec"
3752 ;;
3753*-*-hpux11*)
3754 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3755 IPADDR_IN_DISPLAY=yes
3756 cat >>confdefs.h <<\_ACEOF
3757@%:@define PAM_SUN_CODEBASE 1
3758_ACEOF
3759
3760 cat >>confdefs.h <<\_ACEOF
3761@%:@define USE_PIPES 1
3762_ACEOF
3763
3764 cat >>confdefs.h <<\_ACEOF
3765@%:@define LOGIN_NO_ENDOPT 1
3766_ACEOF
3767
3768 cat >>confdefs.h <<\_ACEOF
3769@%:@define LOGIN_NEEDS_UTMPX 1
3770_ACEOF
3771
3772 cat >>confdefs.h <<\_ACEOF
3773@%:@define DISABLE_SHADOW 1
3774_ACEOF
3775
3776 cat >>confdefs.h <<\_ACEOF
3777@%:@define DISABLE_UTMP 1
3778_ACEOF
3779
3780 cat >>confdefs.h <<\_ACEOF
3781@%:@define SPT_TYPE SPT_PSTAT
3782_ACEOF
3783
3784 LIBS="$LIBS -lxnet -lsec"
3785 ;;
3786*-*-irix5*)
3787 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3788 LDFLAGS="$LDFLAGS"
3789 PATH="$PATH:/usr/etc"
3790 cat >>confdefs.h <<\_ACEOF
3791@%:@define BROKEN_INET_NTOA 1
3792_ACEOF
3793
3794 cat >>confdefs.h <<\_ACEOF
3795@%:@define WITH_ABBREV_NO_TTY 1
3796_ACEOF
3797
3798 ;;
3799*-*-irix6*)
3800 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3801 LDFLAGS="$LDFLAGS"
3802 PATH="$PATH:/usr/etc"
3803 cat >>confdefs.h <<\_ACEOF
3804@%:@define WITH_IRIX_ARRAY 1
3805_ACEOF
3806
3807 cat >>confdefs.h <<\_ACEOF
3808@%:@define WITH_IRIX_PROJECT 1
3809_ACEOF
3810
3811 cat >>confdefs.h <<\_ACEOF
3812@%:@define WITH_IRIX_AUDIT 1
3813_ACEOF
3814
3815 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
3816echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3817if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 cat >conftest.$ac_ext <<_ACEOF
3821#line $LINENO "configure"
3822#include "confdefs.h"
3823/* System header to define __stub macros and hopefully few prototypes,
3824 which can conflict with char jlimit_startjob (); below. */
3825#include <assert.h>
3826/* Override any gcc2 internal prototype to avoid an error. */
3827#ifdef __cplusplus
3828extern "C"
3829#endif
3830/* We use char because int might match the return type of a gcc2
3831 builtin and then its argument prototype would still apply. */
3832char jlimit_startjob ();
3833char (*f) ();
3834
3835#ifdef F77_DUMMY_MAIN
3836# ifdef __cplusplus
3837 extern "C"
3838# endif
3839 int F77_DUMMY_MAIN() { return 1; }
3840#endif
3841int
3842main ()
3843{
3844/* The GNU C library defines this for functions which it implements
3845 to always fail with ENOSYS. Some functions are actually named
3846 something starting with __ and the normal name is an alias. */
3847#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3848choke me
3849#else
3850f = jlimit_startjob;
3851#endif
3852
3853 ;
3854 return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext conftest$ac_exeext
3858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -s conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_func_jlimit_startjob=yes
3870else
3871 echo "$as_me: failed program was:" >&5
3872cat conftest.$ac_ext >&5
3873ac_cv_func_jlimit_startjob=no
3874fi
3875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
3878echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
3879if test $ac_cv_func_jlimit_startjob = yes; then
3880 cat >>confdefs.h <<\_ACEOF
3881@%:@define WITH_IRIX_JOBS 1
3882_ACEOF
3883
3884fi
3885
3886 cat >>confdefs.h <<\_ACEOF
3887@%:@define BROKEN_INET_NTOA 1
3888_ACEOF
3889
3890 cat >>confdefs.h <<\_ACEOF
3891@%:@define WITH_ABBREV_NO_TTY 1
3892_ACEOF
3893
3894 ;;
3895*-*-linux*)
3896 no_dev_ptmx=1
3897 check_for_libcrypt_later=1
3898 cat >>confdefs.h <<\_ACEOF
3899@%:@define DONT_TRY_OTHER_AF 1
3900_ACEOF
3901
3902 cat >>confdefs.h <<\_ACEOF
3903@%:@define PAM_TTY_KLUDGE 1
3904_ACEOF
3905
3906 inet6_default_4in6=yes
3907 ;;
3908mips-sony-bsd|mips-sony-newsos4)
3909 cat >>confdefs.h <<\_ACEOF
3910@%:@define HAVE_NEWS4 1
3911_ACEOF
3912
3913 SONY=1
3914 ;;
3915*-*-netbsd*)
3916 need_dash_r=1
3917 ;;
3918*-*-freebsd*)
3919 check_for_libcrypt_later=1
3920 ;;
3921*-next-*)
3922 conf_lastlog_location="/usr/adm/lastlog"
3923 conf_utmp_location=/etc/utmp
3924 conf_wtmp_location=/usr/adm/wtmp
3925 MAIL=/usr/spool/mail
3926 cat >>confdefs.h <<\_ACEOF
3927@%:@define HAVE_NEXT 1
3928_ACEOF
3929
3930 cat >>confdefs.h <<\_ACEOF
3931@%:@define BROKEN_REALPATH 1
3932_ACEOF
3933
3934 cat >>confdefs.h <<\_ACEOF
3935@%:@define USE_PIPES 1
3936_ACEOF
3937
3938 cat >>confdefs.h <<\_ACEOF
3939@%:@define BROKEN_SAVED_UIDS 1
3940_ACEOF
3941
3942 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3943 CFLAGS="$CFLAGS"
3944 ;;
3945*-*-solaris*)
3946 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3947 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3948 need_dash_r=1
3949 cat >>confdefs.h <<\_ACEOF
3950@%:@define PAM_SUN_CODEBASE 1
3951_ACEOF
3952
3953 cat >>confdefs.h <<\_ACEOF
3954@%:@define LOGIN_NEEDS_UTMPX 1
3955_ACEOF
3956
3957 cat >>confdefs.h <<\_ACEOF
3958@%:@define LOGIN_NEEDS_TERM 1
3959_ACEOF
3960
3961 cat >>confdefs.h <<\_ACEOF
3962@%:@define PAM_TTY_KLUDGE 1
3963_ACEOF
3964
3965 # hardwire lastlog location (can't detect it on some versions)
3966 conf_lastlog_location="/var/adm/lastlog"
3967 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
3968echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
3969 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3970 if test "$sol2ver" -ge 8; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 cat >>confdefs.h <<\_ACEOF
3974@%:@define DISABLE_UTMP 1
3975_ACEOF
3976
3977 cat >>confdefs.h <<\_ACEOF
3978@%:@define DISABLE_WTMP 1
3979_ACEOF
3980
3981 else
3982 echo "$as_me:$LINENO: result: no" >&5
3983echo "${ECHO_T}no" >&6
3984 fi
3985 ;;
3986*-*-sunos4*)
3987 CPPFLAGS="$CPPFLAGS -DSUNOS4"
3988
3989for ac_func in getpwanam
3990do
3991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3992echo "$as_me:$LINENO: checking for $ac_func" >&5
3993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3994if eval "test \"\${$as_ac_var+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997 cat >conftest.$ac_ext <<_ACEOF
3998#line $LINENO "configure"
3999#include "confdefs.h"
4000/* System header to define __stub macros and hopefully few prototypes,
4001 which can conflict with char $ac_func (); below. */
4002#include <assert.h>
4003/* Override any gcc2 internal prototype to avoid an error. */
4004#ifdef __cplusplus
4005extern "C"
4006#endif
4007/* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4009char $ac_func ();
4010char (*f) ();
4011
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{
4021/* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4025choke me
4026#else
4027f = $ac_func;
4028#endif
4029
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034rm -f conftest.$ac_objext conftest$ac_exeext
4035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4036 (eval $ac_link) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest$ac_exeext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_var=yes"
4047else
4048 echo "$as_me: failed program was:" >&5
4049cat conftest.$ac_ext >&5
4050eval "$as_ac_var=no"
4051fi
4052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4053fi
4054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4056if test `eval echo '${'$as_ac_var'}'` = yes; then
4057 cat >>confdefs.h <<_ACEOF
4058@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4059_ACEOF
4060
4061fi
4062done
4063
4064 cat >>confdefs.h <<\_ACEOF
4065@%:@define PAM_SUN_CODEBASE 1
4066_ACEOF
4067
4068 conf_utmp_location=/etc/utmp
4069 conf_wtmp_location=/var/adm/wtmp
4070 conf_lastlog_location=/var/adm/lastlog
4071 cat >>confdefs.h <<\_ACEOF
4072@%:@define USE_PIPES 1
4073_ACEOF
4074
4075 ;;
4076*-ncr-sysv*)
4077 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4078 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4079 LIBS="$LIBS -lc89"
4080 cat >>confdefs.h <<\_ACEOF
4081@%:@define USE_PIPES 1
4082_ACEOF
4083
4084 ;;
4085*-sni-sysv*)
4086 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4087 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4088 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4089 IPADDR_IN_DISPLAY=yes
4090 cat >>confdefs.h <<\_ACEOF
4091@%:@define USE_PIPES 1
4092_ACEOF
4093
4094 cat >>confdefs.h <<\_ACEOF
4095@%:@define IP_TOS_IS_BROKEN 1
4096_ACEOF
4097
4098 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4099 # Attention: always take care to bind libsocket and libnsl before libc,
4100 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4101 ;;
4102*-*-sysv4.2*)
4103 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4104 LDFLAGS="$LDFLAGS -L/usr/local/lib"
700318f3 4105 cat >>confdefs.h <<\_ACEOF
4106@%:@define USE_PIPES 1
4107_ACEOF
4108
4109 ;;
4110*-*-sysv5*)
4111 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4112 LDFLAGS="$LDFLAGS -L/usr/local/lib"
700318f3 4113 cat >>confdefs.h <<\_ACEOF
4114@%:@define USE_PIPES 1
4115_ACEOF
4116
4117 ;;
4118*-*-sysv*)
4119 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4120 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4121 ;;
4122*-*-sco3.2v4*)
4123 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4124 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4125 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4126 rsh_path="/usr/bin/rcmd"
4127 RANLIB=true
4128 no_dev_ptmx=1
4129 cat >>confdefs.h <<\_ACEOF
4130@%:@define BROKEN_SYS_TERMIO_H 1
4131_ACEOF
4132
4133 cat >>confdefs.h <<\_ACEOF
4134@%:@define USE_PIPES 1
4135_ACEOF
4136
4137 cat >>confdefs.h <<\_ACEOF
4138@%:@define HAVE_SECUREWARE 1
4139_ACEOF
4140
4141 cat >>confdefs.h <<\_ACEOF
4142@%:@define DISABLE_SHADOW 1
4143_ACEOF
4144
4145 cat >>confdefs.h <<\_ACEOF
4146@%:@define BROKEN_SAVED_UIDS 1
4147_ACEOF
4148
4149
4150
4151for ac_func in getluid setluid
4152do
4153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4154echo "$as_me:$LINENO: checking for $ac_func" >&5
4155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4156if eval "test \"\${$as_ac_var+set}\" = set"; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159 cat >conftest.$ac_ext <<_ACEOF
4160#line $LINENO "configure"
4161#include "confdefs.h"
4162/* System header to define __stub macros and hopefully few prototypes,
4163 which can conflict with char $ac_func (); below. */
4164#include <assert.h>
4165/* Override any gcc2 internal prototype to avoid an error. */
4166#ifdef __cplusplus
4167extern "C"
4168#endif
4169/* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4171char $ac_func ();
4172char (*f) ();
4173
4174#ifdef F77_DUMMY_MAIN
4175# ifdef __cplusplus
4176 extern "C"
4177# endif
4178 int F77_DUMMY_MAIN() { return 1; }
4179#endif
4180int
4181main ()
4182{
4183/* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4187choke me
4188#else
4189f = $ac_func;
4190#endif
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196rm -f conftest.$ac_objext conftest$ac_exeext
4197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198 (eval $ac_link) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -s conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 eval "$as_ac_var=yes"
4209else
4210 echo "$as_me: failed program was:" >&5
4211cat conftest.$ac_ext >&5
4212eval "$as_ac_var=no"
4213fi
4214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4215fi
4216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4218if test `eval echo '${'$as_ac_var'}'` = yes; then
4219 cat >>confdefs.h <<_ACEOF
4220@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4221_ACEOF
4222
4223fi
4224done
4225
4226 MANTYPE=man
4227 do_sco3_extra_lib_check=yes
4228 ;;
4229*-*-sco3.2v5*)
4230 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4231 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4232 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4233 no_dev_ptmx=1
4234 rsh_path="/usr/bin/rcmd"
4235 cat >>confdefs.h <<\_ACEOF
4236@%:@define USE_PIPES 1
4237_ACEOF
4238
4239 cat >>confdefs.h <<\_ACEOF
4240@%:@define HAVE_SECUREWARE 1
4241_ACEOF
4242
4243 cat >>confdefs.h <<\_ACEOF
4244@%:@define DISABLE_SHADOW 1
4245_ACEOF
4246
4247
4248
4249for ac_func in getluid setluid
4250do
4251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4252echo "$as_me:$LINENO: checking for $ac_func" >&5
4253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4254if eval "test \"\${$as_ac_var+set}\" = set"; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257 cat >conftest.$ac_ext <<_ACEOF
4258#line $LINENO "configure"
4259#include "confdefs.h"
4260/* System header to define __stub macros and hopefully few prototypes,
4261 which can conflict with char $ac_func (); below. */
4262#include <assert.h>
4263/* Override any gcc2 internal prototype to avoid an error. */
4264#ifdef __cplusplus
4265extern "C"
4266#endif
4267/* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4269char $ac_func ();
4270char (*f) ();
4271
4272#ifdef F77_DUMMY_MAIN
4273# ifdef __cplusplus
4274 extern "C"
4275# endif
4276 int F77_DUMMY_MAIN() { return 1; }
4277#endif
4278int
4279main ()
4280{
4281/* The GNU C library defines this for functions which it implements
4282 to always fail with ENOSYS. Some functions are actually named
4283 something starting with __ and the normal name is an alias. */
4284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4285choke me
4286#else
4287f = $ac_func;
4288#endif
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294rm -f conftest.$ac_objext conftest$ac_exeext
4295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296 (eval $ac_link) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 eval "$as_ac_var=yes"
4307else
4308 echo "$as_me: failed program was:" >&5
4309cat conftest.$ac_ext >&5
4310eval "$as_ac_var=no"
4311fi
4312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4313fi
4314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4316if test `eval echo '${'$as_ac_var'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4319_ACEOF
4320
4321fi
4322done
4323
4324 MANTYPE=man
4325 ;;
4326*-*-unicos*)
4327 no_libsocket=1
4328 no_libnsl=1
4329 cat >>confdefs.h <<\_ACEOF
4330@%:@define USE_PIPES 1
4331_ACEOF
4332
4333 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
4334 LIBS="$LIBS -lgen -lrsc"
4335 ;;
4336*-dec-osf*)
4337 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4338echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4339 no_osfsia=""
4340
4341# Check whether --with-osfsia or --without-osfsia was given.
4342if test "${with_osfsia+set}" = set; then
4343 withval="$with_osfsia"
4344
4345 if test "x$withval" = "xno" ; then
4346 echo "$as_me:$LINENO: result: disabled" >&5
4347echo "${ECHO_T}disabled" >&6
4348 no_osfsia=1
4349 fi
4350
4351fi;
4352 if test -z "$no_osfsia" ; then
4353 if test -f /etc/sia/matrix.conf; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355echo "${ECHO_T}yes" >&6
4356 cat >>confdefs.h <<\_ACEOF
4357@%:@define HAVE_OSF_SIA 1
4358_ACEOF
4359
4360 cat >>confdefs.h <<\_ACEOF
4361@%:@define DISABLE_LOGIN 1
4362_ACEOF
4363
4364 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4365 else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368 fi
4369 fi
4370 ;;
4371
4372*-*-nto-qnx)
4373 cat >>confdefs.h <<\_ACEOF
4374@%:@define USE_PIPES 1
4375_ACEOF
4376
4377 cat >>confdefs.h <<\_ACEOF
4378@%:@define NO_X11_UNIX_SOCKETS 1
4379_ACEOF
4380
4381 cat >>confdefs.h <<\_ACEOF
4382@%:@define MISSING_NFDBITS 1
4383_ACEOF
4384
4385 cat >>confdefs.h <<\_ACEOF
4386@%:@define MISSING_HOWMANY 1
4387_ACEOF
4388
4389 cat >>confdefs.h <<\_ACEOF
4390@%:@define MISSING_FD_MASK 1
4391_ACEOF
4392
4393 ;;
4394esac
4395
4396# Allow user to specify flags
4397
4398# Check whether --with-cflags or --without-cflags was given.
4399if test "${with_cflags+set}" = set; then
4400 withval="$with_cflags"
4401
4402 if test "x$withval" != "xno" ; then
4403 CFLAGS="$CFLAGS $withval"
4404 fi
4405
4406
4407fi;
4408
4409# Check whether --with-cppflags or --without-cppflags was given.
4410if test "${with_cppflags+set}" = set; then
4411 withval="$with_cppflags"
4412
4413 if test "x$withval" != "xno"; then
4414 CPPFLAGS="$CPPFLAGS $withval"
4415 fi
4416
4417
4418fi;
4419
4420# Check whether --with-ldflags or --without-ldflags was given.
4421if test "${with_ldflags+set}" = set; then
4422 withval="$with_ldflags"
4423
4424 if test "x$withval" != "xno" ; then
4425 LDFLAGS="$LDFLAGS $withval"
4426 fi
4427
4428
4429fi;
4430
4431# Check whether --with-libs or --without-libs was given.
4432if test "${with_libs+set}" = set; then
4433 withval="$with_libs"
4434
4435 if test "x$withval" != "xno" ; then
4436 LIBS="$LIBS $withval"
4437 fi
4438
4439
4440fi;
4441
4442# Checks for header files.
4443
4444echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446if test "${ac_cv_header_stdc+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449 cat >conftest.$ac_ext <<_ACEOF
4450#line $LINENO "configure"
4451#include "confdefs.h"
4452#include <stdlib.h>
4453#include <stdarg.h>
4454#include <string.h>
4455#include <float.h>
4456
4457_ACEOF
4458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 ac_status=$?
4461 egrep -v '^ *\+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 else
4469 ac_cpp_err=
4470 fi
4471else
4472 ac_cpp_err=yes
4473fi
4474if test -z "$ac_cpp_err"; then
4475 ac_cv_header_stdc=yes
4476else
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 ac_cv_header_stdc=no
4480fi
4481rm -f conftest.err conftest.$ac_ext
4482
4483if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat >conftest.$ac_ext <<_ACEOF
4486#line $LINENO "configure"
4487#include "confdefs.h"
4488#include <string.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 egrep "memchr" >/dev/null 2>&1; then
4493 :
4494else
4495 ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503 cat >conftest.$ac_ext <<_ACEOF
4504#line $LINENO "configure"
4505#include "confdefs.h"
4506#include <stdlib.h>
4507
4508_ACEOF
4509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 egrep "free" >/dev/null 2>&1; then
4511 :
4512else
4513 ac_cv_header_stdc=no
4514fi
4515rm -f conftest*
4516
4517fi
4518
4519if test $ac_cv_header_stdc = yes; then
4520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4521 if test "$cross_compiling" = yes; then
4522 :
4523else
4524 cat >conftest.$ac_ext <<_ACEOF
4525#line $LINENO "configure"
4526#include "confdefs.h"
4527#include <ctype.h>
4528#if ((' ' & 0x0FF) == 0x020)
4529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531#else
4532# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536#endif
4537
4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539int
4540main ()
4541{
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 exit(2);
4547 exit (0);
4548}
4549_ACEOF
4550rm -f conftest$ac_exeext
4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 :
4562else
4563 echo "$as_me: program exited with status $ac_status" >&5
4564echo "$as_me: failed program was:" >&5
4565cat conftest.$ac_ext >&5
4566( exit $ac_status )
4567ac_cv_header_stdc=no
4568fi
4569rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570fi
4571fi
4572fi
4573echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4574echo "${ECHO_T}$ac_cv_header_stdc" >&6
4575if test $ac_cv_header_stdc = yes; then
4576
4577cat >>confdefs.h <<\_ACEOF
4578@%:@define STDC_HEADERS 1
4579_ACEOF
4580
4581fi
4582
4583# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594 inttypes.h stdint.h unistd.h
4595do
4596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597echo "$as_me:$LINENO: checking for $ac_header" >&5
4598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4599if eval "test \"\${$as_ac_Header+set}\" = set"; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602 cat >conftest.$ac_ext <<_ACEOF
4603#line $LINENO "configure"
4604#include "confdefs.h"
4605$ac_includes_default
4606
4607@%:@include <$ac_header>
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_Header=yes"
4622else
4623 echo "$as_me: failed program was:" >&5
4624cat conftest.$ac_ext >&5
4625eval "$as_ac_Header=no"
4626fi
4627rm -f conftest.$ac_objext conftest.$ac_ext
4628fi
4629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634_ACEOF
4635
4636fi
4637
4638done
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4682 getopt.h glob.h lastlog.h limits.h login.h \
4683 login_cap.h maillock.h netdb.h netgroup.h \
4684 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4685 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4686 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4687 sys/mman.h sys/select.h sys/stat.h \
4688 sys/stropts.h sys/sysmacros.h sys/time.h \
4689 sys/un.h time.h ttyent.h usersec.h \
4690 util.h utime.h utmp.h utmpx.h
4691do
4692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693if eval "test \"\${$as_ac_Header+set}\" = set"; then
4694 echo "$as_me:$LINENO: checking for $ac_header" >&5
4695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4696if eval "test \"\${$as_ac_Header+set}\" = set"; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698fi
4699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4701else
4702 # Is the header compilable?
4703echo "$as_me:$LINENO: checking $ac_header usability" >&5
4704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4705cat >conftest.$ac_ext <<_ACEOF
4706#line $LINENO "configure"
4707#include "confdefs.h"
4708$ac_includes_default
4709@%:@include <$ac_header>
4710_ACEOF
4711rm -f conftest.$ac_objext
4712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4724else
4725 echo "$as_me: failed program was:" >&5
4726cat conftest.$ac_ext >&5
4727ac_header_compiler=no
4728fi
4729rm -f conftest.$ac_objext conftest.$ac_ext
4730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731echo "${ECHO_T}$ac_header_compiler" >&6
4732
4733# Is the header present?
4734echo "$as_me:$LINENO: checking $ac_header presence" >&5
4735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4736cat >conftest.$ac_ext <<_ACEOF
4737#line $LINENO "configure"
4738#include "confdefs.h"
4739@%:@include <$ac_header>
4740_ACEOF
4741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4743 ac_status=$?
4744 egrep -v '^ *\+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null; then
4749 if test -s conftest.err; then
4750 ac_cpp_err=$ac_c_preproc_warn_flag
4751 else
4752 ac_cpp_err=
4753 fi
4754else
4755 ac_cpp_err=yes
4756fi
4757if test -z "$ac_cpp_err"; then
4758 ac_header_preproc=yes
4759else
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 ac_header_preproc=no
4763fi
4764rm -f conftest.err conftest.$ac_ext
4765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766echo "${ECHO_T}$ac_header_preproc" >&6
4767
4768# So? What about this header?
4769case $ac_header_compiler:$ac_header_preproc in
4770 yes:no )
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4775 no:yes )
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4782esac
4783echo "$as_me:$LINENO: checking for $ac_header" >&5
4784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 eval "$as_ac_Header=$ac_header_preproc"
4789fi
4790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792
4793fi
4794if test `eval echo '${'$as_ac_Header'}'` = yes; then
4795 cat >>confdefs.h <<_ACEOF
4796@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4797_ACEOF
4798
4799fi
4800
4801done
4802
4803
4804# Checks for libraries.
4805echo "$as_me:$LINENO: checking for yp_match" >&5
4806echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4807if test "${ac_cv_func_yp_match+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810 cat >conftest.$ac_ext <<_ACEOF
4811#line $LINENO "configure"
4812#include "confdefs.h"
4813/* System header to define __stub macros and hopefully few prototypes,
4814 which can conflict with char yp_match (); below. */
4815#include <assert.h>
4816/* Override any gcc2 internal prototype to avoid an error. */
4817#ifdef __cplusplus
4818extern "C"
4819#endif
4820/* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4822char yp_match ();
4823char (*f) ();
4824
4825#ifdef F77_DUMMY_MAIN
4826# ifdef __cplusplus
4827 extern "C"
4828# endif
4829 int F77_DUMMY_MAIN() { return 1; }
4830#endif
4831int
4832main ()
4833{
4834/* The GNU C library defines this for functions which it implements
4835 to always fail with ENOSYS. Some functions are actually named
4836 something starting with __ and the normal name is an alias. */
4837#if defined (__stub_yp_match) || defined (__stub___yp_match)
4838choke me
4839#else
4840f = yp_match;
4841#endif
4842
4843 ;
4844 return 0;
4845}
4846_ACEOF
4847rm -f conftest.$ac_objext conftest$ac_exeext
4848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849 (eval $ac_link) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -s conftest$ac_exeext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_func_yp_match=yes
4860else
4861 echo "$as_me: failed program was:" >&5
4862cat conftest.$ac_ext >&5
4863ac_cv_func_yp_match=no
4864fi
4865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4866fi
4867echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
4868echo "${ECHO_T}$ac_cv_func_yp_match" >&6
4869if test $ac_cv_func_yp_match = yes; then
4870 :
4871else
4872
4873echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
4874echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
4875if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878 ac_check_lib_save_LIBS=$LIBS
4879LIBS="-lnsl $LIBS"
4880cat >conftest.$ac_ext <<_ACEOF
4881#line $LINENO "configure"
4882#include "confdefs.h"
4883
4884/* Override any gcc2 internal prototype to avoid an error. */
4885#ifdef __cplusplus
4886extern "C"
4887#endif
4888/* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4890char yp_match ();
4891#ifdef F77_DUMMY_MAIN
4892# ifdef __cplusplus
4893 extern "C"
4894# endif
4895 int F77_DUMMY_MAIN() { return 1; }
4896#endif
4897int
4898main ()
4899{
4900yp_match ();
4901 ;
4902 return 0;
4903}
4904_ACEOF
4905rm -f conftest.$ac_objext conftest$ac_exeext
4906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -s conftest$ac_exeext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_lib_nsl_yp_match=yes
4918else
4919 echo "$as_me: failed program was:" >&5
4920cat conftest.$ac_ext >&5
4921ac_cv_lib_nsl_yp_match=no
4922fi
4923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924LIBS=$ac_check_lib_save_LIBS
4925fi
4926echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
4927echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
4928if test $ac_cv_lib_nsl_yp_match = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930@%:@define HAVE_LIBNSL 1
4931_ACEOF
4932
4933 LIBS="-lnsl $LIBS"
4934
4935fi
4936
4937fi
4938
4939echo "$as_me:$LINENO: checking for setsockopt" >&5
4940echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4941if test "${ac_cv_func_setsockopt+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 cat >conftest.$ac_ext <<_ACEOF
4945#line $LINENO "configure"
4946#include "confdefs.h"
4947/* System header to define __stub macros and hopefully few prototypes,
4948 which can conflict with char setsockopt (); below. */
4949#include <assert.h>
4950/* Override any gcc2 internal prototype to avoid an error. */
4951#ifdef __cplusplus
4952extern "C"
4953#endif
4954/* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956char setsockopt ();
4957char (*f) ();
4958
4959#ifdef F77_DUMMY_MAIN
4960# ifdef __cplusplus
4961 extern "C"
4962# endif
4963 int F77_DUMMY_MAIN() { return 1; }
4964#endif
4965int
4966main ()
4967{
4968/* The GNU C library defines this for functions which it implements
4969 to always fail with ENOSYS. Some functions are actually named
4970 something starting with __ and the normal name is an alias. */
4971#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4972choke me
4973#else
4974f = setsockopt;
4975#endif
4976
4977 ;
4978 return 0;
4979}
4980_ACEOF
4981rm -f conftest.$ac_objext conftest$ac_exeext
4982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983 (eval $ac_link) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -s conftest$ac_exeext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_cv_func_setsockopt=yes
4994else
4995 echo "$as_me: failed program was:" >&5
4996cat conftest.$ac_ext >&5
4997ac_cv_func_setsockopt=no
4998fi
4999rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000fi
5001echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5002echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5003if test $ac_cv_func_setsockopt = yes; then
5004 :
5005else
5006
5007echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5008echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5009if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 ac_check_lib_save_LIBS=$LIBS
5013LIBS="-lsocket $LIBS"
5014cat >conftest.$ac_ext <<_ACEOF
5015#line $LINENO "configure"
5016#include "confdefs.h"
5017
5018/* Override any gcc2 internal prototype to avoid an error. */
5019#ifdef __cplusplus
5020extern "C"
5021#endif
5022/* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5024char setsockopt ();
5025#ifdef F77_DUMMY_MAIN
5026# ifdef __cplusplus
5027 extern "C"
5028# endif
5029 int F77_DUMMY_MAIN() { return 1; }
5030#endif
5031int
5032main ()
5033{
5034setsockopt ();
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest$ac_exeext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_lib_socket_setsockopt=yes
5052else
5053 echo "$as_me: failed program was:" >&5
5054cat conftest.$ac_ext >&5
5055ac_cv_lib_socket_setsockopt=no
5056fi
5057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058LIBS=$ac_check_lib_save_LIBS
5059fi
5060echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5061echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5062if test $ac_cv_lib_socket_setsockopt = yes; then
5063 cat >>confdefs.h <<_ACEOF
5064@%:@define HAVE_LIBSOCKET 1
5065_ACEOF
5066
5067 LIBS="-lsocket $LIBS"
5068
5069fi
5070
5071fi
5072
5073
5074if test "x$with_tcp_wrappers" != "xno" ; then
5075 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5076 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5077echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5078if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081 ac_check_lib_save_LIBS=$LIBS
5082LIBS="-lrpc -lyp -lrpc $LIBS"
5083cat >conftest.$ac_ext <<_ACEOF
5084#line $LINENO "configure"
5085#include "confdefs.h"
5086
5087/* Override any gcc2 internal prototype to avoid an error. */
5088#ifdef __cplusplus
5089extern "C"
5090#endif
5091/* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5093char innetgr ();
5094#ifdef F77_DUMMY_MAIN
5095# ifdef __cplusplus
5096 extern "C"
5097# endif
5098 int F77_DUMMY_MAIN() { return 1; }
5099#endif
5100int
5101main ()
5102{
5103innetgr ();
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext conftest$ac_exeext
5109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -s conftest$ac_exeext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_lib_rpc_innetgr=yes
5121else
5122 echo "$as_me: failed program was:" >&5
5123cat conftest.$ac_ext >&5
5124ac_cv_lib_rpc_innetgr=no
5125fi
5126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5127LIBS=$ac_check_lib_save_LIBS
5128fi
5129echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5130echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5131if test $ac_cv_lib_rpc_innetgr = yes; then
5132 LIBS="-lrpc -lyp -lrpc $LIBS"
5133fi
5134
5135 fi
5136fi
5137
5138echo "$as_me:$LINENO: checking for getspnam" >&5
5139echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5140if test "${ac_cv_func_getspnam+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143 cat >conftest.$ac_ext <<_ACEOF
5144#line $LINENO "configure"
5145#include "confdefs.h"
5146/* System header to define __stub macros and hopefully few prototypes,
5147 which can conflict with char getspnam (); below. */
5148#include <assert.h>
5149/* Override any gcc2 internal prototype to avoid an error. */
5150#ifdef __cplusplus
5151extern "C"
5152#endif
5153/* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5155char getspnam ();
5156char (*f) ();
5157
5158#ifdef F77_DUMMY_MAIN
5159# ifdef __cplusplus
5160 extern "C"
5161# endif
5162 int F77_DUMMY_MAIN() { return 1; }
5163#endif
5164int
5165main ()
5166{
5167/* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170#if defined (__stub_getspnam) || defined (__stub___getspnam)
5171choke me
5172#else
5173f = getspnam;
5174#endif
5175
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180rm -f conftest.$ac_objext conftest$ac_exeext
5181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -s conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 (eval $ac_try) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_func_getspnam=yes
5193else
5194 echo "$as_me: failed program was:" >&5
5195cat conftest.$ac_ext >&5
5196ac_cv_func_getspnam=no
5197fi
5198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5199fi
5200echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5201echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5202if test $ac_cv_func_getspnam = yes; then
5203 :
5204else
5205 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5206echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5207if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210 ac_check_lib_save_LIBS=$LIBS
5211LIBS="-lgen $LIBS"
5212cat >conftest.$ac_ext <<_ACEOF
5213#line $LINENO "configure"
5214#include "confdefs.h"
5215
5216/* Override any gcc2 internal prototype to avoid an error. */
5217#ifdef __cplusplus
5218extern "C"
5219#endif
5220/* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5222char getspnam ();
5223#ifdef F77_DUMMY_MAIN
5224# ifdef __cplusplus
5225 extern "C"
5226# endif
5227 int F77_DUMMY_MAIN() { return 1; }
5228#endif
5229int
5230main ()
5231{
5232getspnam ();
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext conftest$ac_exeext
5238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_lib_gen_getspnam=yes
5250else
5251 echo "$as_me: failed program was:" >&5
5252cat conftest.$ac_ext >&5
5253ac_cv_lib_gen_getspnam=no
5254fi
5255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5256LIBS=$ac_check_lib_save_LIBS
5257fi
5258echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5259echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5260if test $ac_cv_lib_gen_getspnam = yes; then
5261 LIBS="$LIBS -lgen"
5262fi
5263
5264fi
5265
5266
5267
5268# Check whether --with-rpath or --without-rpath was given.
5269if test "${with_rpath+set}" = set; then
5270 withval="$with_rpath"
5271
5272 if test "x$withval" = "xno" ; then
5273 need_dash_r=""
5274 fi
5275 if test "x$withval" = "xyes" ; then
5276 need_dash_r=1
5277 fi
5278
5279
5280fi;
5281
5282
5283# Check whether --with-zlib or --without-zlib was given.
5284if test "${with_zlib+set}" = set; then
5285 withval="$with_zlib"
5286
5287 if test "x$withval" = "xno" ; then
5288 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5289echo "$as_me: error: *** zlib is required ***" >&2;}
5290 { (exit 1); exit 1; }; }
5291 fi
5292 if test -d "$withval/lib"; then
5293 if test -n "${need_dash_r}"; then
5294 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5295 else
5296 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5297 fi
5298 else
5299 if test -n "${need_dash_r}"; then
5300 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5301 else
5302 LDFLAGS="-L${withval} ${LDFLAGS}"
5303 fi
5304 fi
5305 if test -d "$withval/include"; then
5306 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5307 else
5308 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5309 fi
5310
5311
5312fi;
5313
5314
5315echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5316echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5317if test "${ac_cv_lib_z_deflate+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320 ac_check_lib_save_LIBS=$LIBS
5321LIBS="-lz $LIBS"
5322cat >conftest.$ac_ext <<_ACEOF
5323#line $LINENO "configure"
5324#include "confdefs.h"
5325
5326/* Override any gcc2 internal prototype to avoid an error. */
5327#ifdef __cplusplus
5328extern "C"
5329#endif
5330/* We use char because int might match the return type of a gcc2
5331 builtin and then its argument prototype would still apply. */
5332char deflate ();
5333#ifdef F77_DUMMY_MAIN
5334# ifdef __cplusplus
5335 extern "C"
5336# endif
5337 int F77_DUMMY_MAIN() { return 1; }
5338#endif
5339int
5340main ()
5341{
5342deflate ();
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347rm -f conftest.$ac_objext conftest$ac_exeext
5348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5349 (eval $ac_link) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -s conftest$ac_exeext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_cv_lib_z_deflate=yes
5360else
5361 echo "$as_me: failed program was:" >&5
5362cat conftest.$ac_ext >&5
5363ac_cv_lib_z_deflate=no
5364fi
5365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5366LIBS=$ac_check_lib_save_LIBS
5367fi
5368echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5369echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5370if test $ac_cv_lib_z_deflate = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372@%:@define HAVE_LIBZ 1
5373_ACEOF
5374
5375 LIBS="-lz $LIBS"
5376
5377else
5378 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5379echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5380 { (exit 1); exit 1; }; }
5381fi
5382
5383
5384echo "$as_me:$LINENO: checking for strcasecmp" >&5
5385echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5386if test "${ac_cv_func_strcasecmp+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389 cat >conftest.$ac_ext <<_ACEOF
5390#line $LINENO "configure"
5391#include "confdefs.h"
5392/* System header to define __stub macros and hopefully few prototypes,
5393 which can conflict with char strcasecmp (); below. */
5394#include <assert.h>
5395/* Override any gcc2 internal prototype to avoid an error. */
5396#ifdef __cplusplus
5397extern "C"
5398#endif
5399/* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5401char strcasecmp ();
5402char (*f) ();
5403
5404#ifdef F77_DUMMY_MAIN
5405# ifdef __cplusplus
5406 extern "C"
5407# endif
5408 int F77_DUMMY_MAIN() { return 1; }
5409#endif
5410int
5411main ()
5412{
5413/* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5417choke me
5418#else
5419f = strcasecmp;
5420#endif
5421
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext conftest$ac_exeext
5427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_func_strcasecmp=yes
5439else
5440 echo "$as_me: failed program was:" >&5
5441cat conftest.$ac_ext >&5
5442ac_cv_func_strcasecmp=no
5443fi
5444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445fi
5446echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5447echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5448if test $ac_cv_func_strcasecmp = yes; then
5449 :
5450else
5451 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5452echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5453if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456 ac_check_lib_save_LIBS=$LIBS
5457LIBS="-lresolv $LIBS"
5458cat >conftest.$ac_ext <<_ACEOF
5459#line $LINENO "configure"
5460#include "confdefs.h"
5461
5462/* Override any gcc2 internal prototype to avoid an error. */
5463#ifdef __cplusplus
5464extern "C"
5465#endif
5466/* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5468char strcasecmp ();
5469#ifdef F77_DUMMY_MAIN
5470# ifdef __cplusplus
5471 extern "C"
5472# endif
5473 int F77_DUMMY_MAIN() { return 1; }
5474#endif
5475int
5476main ()
5477{
5478strcasecmp ();
5479 ;
5480 return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
5484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_resolv_strcasecmp=yes
5496else
5497 echo "$as_me: failed program was:" >&5
5498cat conftest.$ac_ext >&5
5499ac_cv_lib_resolv_strcasecmp=no
5500fi
5501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5502LIBS=$ac_check_lib_save_LIBS
5503fi
5504echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5505echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5506if test $ac_cv_lib_resolv_strcasecmp = yes; then
5507 LIBS="$LIBS -lresolv"
5508fi
5509
5510
5511fi
5512
5513echo "$as_me:$LINENO: checking for utimes" >&5
5514echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5515if test "${ac_cv_func_utimes+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 cat >conftest.$ac_ext <<_ACEOF
5519#line $LINENO "configure"
5520#include "confdefs.h"
5521/* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char utimes (); below. */
5523#include <assert.h>
5524/* Override any gcc2 internal prototype to avoid an error. */
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528/* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5530char utimes ();
5531char (*f) ();
5532
5533#ifdef F77_DUMMY_MAIN
5534# ifdef __cplusplus
5535 extern "C"
5536# endif
5537 int F77_DUMMY_MAIN() { return 1; }
5538#endif
5539int
5540main ()
5541{
5542/* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545#if defined (__stub_utimes) || defined (__stub___utimes)
5546choke me
5547#else
5548f = utimes;
5549#endif
5550
5551 ;
5552 return 0;
5553}
5554_ACEOF
5555rm -f conftest.$ac_objext conftest$ac_exeext
5556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -s conftest$ac_exeext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_func_utimes=yes
5568else
5569 echo "$as_me: failed program was:" >&5
5570cat conftest.$ac_ext >&5
5571ac_cv_func_utimes=no
5572fi
5573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5574fi
5575echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5576echo "${ECHO_T}$ac_cv_func_utimes" >&6
5577if test $ac_cv_func_utimes = yes; then
5578 :
5579else
5580 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5581echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5582if test "${ac_cv_lib_c89_utimes+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 ac_check_lib_save_LIBS=$LIBS
5586LIBS="-lc89 $LIBS"
5587cat >conftest.$ac_ext <<_ACEOF
5588#line $LINENO "configure"
5589#include "confdefs.h"
5590
5591/* Override any gcc2 internal prototype to avoid an error. */
5592#ifdef __cplusplus
5593extern "C"
5594#endif
5595/* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5597char utimes ();
5598#ifdef F77_DUMMY_MAIN
5599# ifdef __cplusplus
5600 extern "C"
5601# endif
5602 int F77_DUMMY_MAIN() { return 1; }
5603#endif
5604int
5605main ()
5606{
5607utimes ();
5608 ;
5609 return 0;
5610}
5611_ACEOF
5612rm -f conftest.$ac_objext conftest$ac_exeext
5613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -s conftest$ac_exeext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_lib_c89_utimes=yes
5625else
5626 echo "$as_me: failed program was:" >&5
5627cat conftest.$ac_ext >&5
5628ac_cv_lib_c89_utimes=no
5629fi
5630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631LIBS=$ac_check_lib_save_LIBS
5632fi
5633echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5634echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5635if test $ac_cv_lib_c89_utimes = yes; then
5636 LIBS="$LIBS -lc89"
5637fi
5638
5639
5640fi
5641
5642
5643
5644for ac_header in libutil.h
5645do
5646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo "$as_me:$LINENO: checking for $ac_header" >&5
5649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652fi
5653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655else
5656 # Is the header compilable?
5657echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659cat >conftest.$ac_ext <<_ACEOF
5660#line $LINENO "configure"
5661#include "confdefs.h"
5662$ac_includes_default
5663@%:@include <$ac_header>
5664_ACEOF
5665rm -f conftest.$ac_objext
5666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_header_compiler=yes
5678else
5679 echo "$as_me: failed program was:" >&5
5680cat conftest.$ac_ext >&5
5681ac_header_compiler=no
5682fi
5683rm -f conftest.$ac_objext conftest.$ac_ext
5684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5685echo "${ECHO_T}$ac_header_compiler" >&6
5686
5687# Is the header present?
5688echo "$as_me:$LINENO: checking $ac_header presence" >&5
5689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5690cat >conftest.$ac_ext <<_ACEOF
5691#line $LINENO "configure"
5692#include "confdefs.h"
5693@%:@include <$ac_header>
5694_ACEOF
5695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5697 ac_status=$?
5698 egrep -v '^ *\+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } >/dev/null; then
5703 if test -s conftest.err; then
5704 ac_cpp_err=$ac_c_preproc_warn_flag
5705 else
5706 ac_cpp_err=
5707 fi
5708else
5709 ac_cpp_err=yes
5710fi
5711if test -z "$ac_cpp_err"; then
5712 ac_header_preproc=yes
5713else
5714 echo "$as_me: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 ac_header_preproc=no
5717fi
5718rm -f conftest.err conftest.$ac_ext
5719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5720echo "${ECHO_T}$ac_header_preproc" >&6
5721
5722# So? What about this header?
5723case $ac_header_compiler:$ac_header_preproc in
5724 yes:no )
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5729 no:yes )
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5736esac
5737echo "$as_me:$LINENO: checking for $ac_header" >&5
5738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5739if eval "test \"\${$as_ac_Header+set}\" = set"; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742 eval "$as_ac_Header=$ac_header_preproc"
5743fi
5744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5746
5747fi
5748if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749 cat >>confdefs.h <<_ACEOF
5750@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5751_ACEOF
5752
5753fi
5754
5755done
5756
5757echo "$as_me:$LINENO: checking for library containing login" >&5
5758echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
5759if test "${ac_cv_search_login+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 ac_func_search_save_LIBS=$LIBS
5763ac_cv_search_login=no
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 login ();
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{
5784login ();
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_search_login="none required"
5802else
5803 echo "$as_me: failed program was:" >&5
5804cat conftest.$ac_ext >&5
5805fi
5806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5807if test "$ac_cv_search_login" = no; then
5808 for ac_lib in util bsd; do
5809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5811#line $LINENO "configure"
5812#include "confdefs.h"
5813
5814/* Override any gcc2 internal prototype to avoid an error. */
5815#ifdef __cplusplus
5816extern "C"
5817#endif
5818/* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5820char login ();
5821#ifdef F77_DUMMY_MAIN
5822# ifdef __cplusplus
5823 extern "C"
5824# endif
5825 int F77_DUMMY_MAIN() { return 1; }
5826#endif
5827int
5828main ()
5829{
5830login ();
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext conftest$ac_exeext
5836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_search_login="-l$ac_lib"
5848break
5849else
5850 echo "$as_me: failed program was:" >&5
5851cat conftest.$ac_ext >&5
5852fi
5853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5854 done
5855fi
5856LIBS=$ac_func_search_save_LIBS
5857fi
5858echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
5859echo "${ECHO_T}$ac_cv_search_login" >&6
5860if test "$ac_cv_search_login" != no; then
5861 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
5862 cat >>confdefs.h <<\_ACEOF
5863@%:@define HAVE_LOGIN 1
5864_ACEOF
5865
5866fi
5867
5868
5869
5870
5871for ac_func in logout updwtmp logwtmp
5872do
5873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5874echo "$as_me:$LINENO: checking for $ac_func" >&5
5875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5876if eval "test \"\${$as_ac_var+set}\" = set"; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 cat >conftest.$ac_ext <<_ACEOF
5880#line $LINENO "configure"
5881#include "confdefs.h"
5882/* System header to define __stub macros and hopefully few prototypes,
5883 which can conflict with char $ac_func (); below. */
5884#include <assert.h>
5885/* Override any gcc2 internal prototype to avoid an error. */
5886#ifdef __cplusplus
5887extern "C"
5888#endif
5889/* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5891char $ac_func ();
5892char (*f) ();
5893
5894#ifdef F77_DUMMY_MAIN
5895# ifdef __cplusplus
5896 extern "C"
5897# endif
5898 int F77_DUMMY_MAIN() { return 1; }
5899#endif
5900int
5901main ()
5902{
5903/* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907choke me
5908#else
5909f = $ac_func;
5910#endif
5911
5912 ;
5913 return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext conftest$ac_exeext
5917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -s conftest$ac_exeext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 eval "$as_ac_var=yes"
5929else
5930 echo "$as_me: failed program was:" >&5
5931cat conftest.$ac_ext >&5
5932eval "$as_ac_var=no"
5933fi
5934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5935fi
5936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5937echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5938if test `eval echo '${'$as_ac_var'}'` = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5941_ACEOF
5942
5943fi
5944done
5945
5946
5947
5948for ac_func in strftime
5949do
5950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5951echo "$as_me:$LINENO: checking for $ac_func" >&5
5952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5953if eval "test \"\${$as_ac_var+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956 cat >conftest.$ac_ext <<_ACEOF
5957#line $LINENO "configure"
5958#include "confdefs.h"
5959/* System header to define __stub macros and hopefully few prototypes,
5960 which can conflict with char $ac_func (); below. */
5961#include <assert.h>
5962/* Override any gcc2 internal prototype to avoid an error. */
5963#ifdef __cplusplus
5964extern "C"
5965#endif
5966/* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5968char $ac_func ();
5969char (*f) ();
5970
5971#ifdef F77_DUMMY_MAIN
5972# ifdef __cplusplus
5973 extern "C"
5974# endif
5975 int F77_DUMMY_MAIN() { return 1; }
5976#endif
5977int
5978main ()
5979{
5980/* The GNU C library defines this for functions which it implements
5981 to always fail with ENOSYS. Some functions are actually named
5982 something starting with __ and the normal name is an alias. */
5983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5984choke me
5985#else
5986f = $ac_func;
5987#endif
5988
5989 ;
5990 return 0;
5991}
5992_ACEOF
5993rm -f conftest.$ac_objext conftest$ac_exeext
5994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995 (eval $ac_link) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 eval "$as_ac_var=yes"
6006else
6007 echo "$as_me: failed program was:" >&5
6008cat conftest.$ac_ext >&5
6009eval "$as_ac_var=no"
6010fi
6011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6012fi
6013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6015if test `eval echo '${'$as_ac_var'}'` = yes; then
6016 cat >>confdefs.h <<_ACEOF
6017@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6018_ACEOF
6019
6020else
6021 # strftime is in -lintl on SCO UNIX.
6022echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6023echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6024if test "${ac_cv_lib_intl_strftime+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 ac_check_lib_save_LIBS=$LIBS
6028LIBS="-lintl $LIBS"
6029cat >conftest.$ac_ext <<_ACEOF
6030#line $LINENO "configure"
6031#include "confdefs.h"
6032
6033/* Override any gcc2 internal prototype to avoid an error. */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037/* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6039char strftime ();
6040#ifdef F77_DUMMY_MAIN
6041# ifdef __cplusplus
6042 extern "C"
6043# endif
6044 int F77_DUMMY_MAIN() { return 1; }
6045#endif
6046int
6047main ()
6048{
6049strftime ();
6050 ;
6051 return 0;
6052}
6053_ACEOF
6054rm -f conftest.$ac_objext conftest$ac_exeext
6055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -s conftest$ac_exeext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_lib_intl_strftime=yes
6067else
6068 echo "$as_me: failed program was:" >&5
6069cat conftest.$ac_ext >&5
6070ac_cv_lib_intl_strftime=no
6071fi
6072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073LIBS=$ac_check_lib_save_LIBS
6074fi
6075echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6076echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6077if test $ac_cv_lib_intl_strftime = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079@%:@define HAVE_STRFTIME 1
6080_ACEOF
6081
6082LIBS="-lintl $LIBS"
6083fi
6084
6085fi
6086done
6087
6088
6089# Check for ALTDIRFUNC glob() extension
6090echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6091echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6092cat >conftest.$ac_ext <<_ACEOF
6093#line $LINENO "configure"
6094#include "confdefs.h"
6095
6096 #include <glob.h>
6097 #ifdef GLOB_ALTDIRFUNC
6098 FOUNDIT
6099 #endif
6100
6101_ACEOF
6102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103 egrep "FOUNDIT" >/dev/null 2>&1; then
6104
6105 cat >>confdefs.h <<\_ACEOF
6106@%:@define GLOB_HAS_ALTDIRFUNC 1
6107_ACEOF
6108
6109 echo "$as_me:$LINENO: result: yes" >&5
6110echo "${ECHO_T}yes" >&6
6111
6112else
6113
6114 echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6
6116
6117
6118fi
6119rm -f conftest*
6120
6121
6122# Check for g.gl_matchc glob() extension
6123echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6124echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6125cat >conftest.$ac_ext <<_ACEOF
6126#line $LINENO "configure"
6127#include "confdefs.h"
6128
6129 #include <glob.h>
6130 int main(void){glob_t g; g.gl_matchc = 1;}
6131
6132_ACEOF
6133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6134 egrep "FOUNDIT" >/dev/null 2>&1; then
6135
6136 cat >>confdefs.h <<\_ACEOF
6137@%:@define GLOB_HAS_GL_MATCHC 1
6138_ACEOF
6139
6140 echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
6142
6143else
6144
6145 echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6
6147
6148
6149fi
6150rm -f conftest*
6151
6152
6153echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6154echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6155if test "$cross_compiling" = yes; then
6156 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6157echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6158 { (exit 1); exit 1; }; }
6159else
6160 cat >conftest.$ac_ext <<_ACEOF
6161#line $LINENO "configure"
6162#include "confdefs.h"
6163
6164#include <sys/types.h>
6165#include <dirent.h>
6166int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
6167
6168_ACEOF
6169rm -f conftest$ac_exeext
6170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 echo "$as_me:$LINENO: result: yes" >&5
6181echo "${ECHO_T}yes" >&6
6182else
6183 echo "$as_me: program exited with status $ac_status" >&5
6184echo "$as_me: failed program was:" >&5
6185cat conftest.$ac_ext >&5
6186( exit $ac_status )
6187
6188 echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190 cat >>confdefs.h <<\_ACEOF
6191@%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6192_ACEOF
6193
6194
6195
6196fi
6197rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6198fi
6199
6200# Check whether user wants S/Key support
6201SKEY_MSG="no"
6202
6203# Check whether --with-skey or --without-skey was given.
6204if test "${with_skey+set}" = set; then
6205 withval="$with_skey"
6206
6207 if test "x$withval" != "xno" ; then
6208
6209 if test "x$withval" != "xyes" ; then
6210 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6211 LDFLAGS="$LDFLAGS -L${withval}/lib"
6212 fi
6213
6214 cat >>confdefs.h <<\_ACEOF
6215@%:@define SKEY 1
6216_ACEOF
6217
6218 LIBS="-lskey $LIBS"
6219 SKEY_MSG="yes"
6220
6221 echo "$as_me:$LINENO: checking for s/key support" >&5
6222echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6223 if test "$cross_compiling" = yes; then
6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6225echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6226 { (exit 1); exit 1; }; }
6227else
6228 cat >conftest.$ac_ext <<_ACEOF
6229#line $LINENO "configure"
6230#include "confdefs.h"
6231
6232#include <stdio.h>
6233#include <skey.h>
6234int main() { char *ff = skey_keyinfo(""); ff=""; return 0; }
6235
6236_ACEOF
6237rm -f conftest$ac_exeext
6238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 echo "$as_me:$LINENO: result: yes" >&5
6249echo "${ECHO_T}yes" >&6
6250else
6251 echo "$as_me: program exited with status $ac_status" >&5
6252echo "$as_me: failed program was:" >&5
6253cat conftest.$ac_ext >&5
6254( exit $ac_status )
6255
6256 echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6
6258 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6259echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6260 { (exit 1); exit 1; }; }
6261
6262fi
6263rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6264fi
6265 fi
6266
6267
6268fi;
6269
6270# Check whether user wants TCP wrappers support
6271TCPW_MSG="no"
6272
6273# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6274if test "${with_tcp_wrappers+set}" = set; then
6275 withval="$with_tcp_wrappers"
6276
6277 if test "x$withval" != "xno" ; then
6278 saved_LIBS="$LIBS"
6279 saved_LDFLAGS="$LDFLAGS"
6280 saved_CPPFLAGS="$CPPFLAGS"
6281 if test -n "${withval}" -a "${withval}" != "yes"; then
6282 if test -d "${withval}/lib"; then
6283 if test -n "${need_dash_r}"; then
6284 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6285 else
6286 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6287 fi
6288 else
6289 if test -n "${need_dash_r}"; then
6290 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6291 else
6292 LDFLAGS="-L${withval} ${LDFLAGS}"
6293 fi
6294 fi
6295 if test -d "${withval}/include"; then
6296 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6297 else
6298 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6299 fi
6300 fi
6301 LIBWRAP="-lwrap"
6302 LIBS="$LIBWRAP $LIBS"
6303 echo "$as_me:$LINENO: checking for libwrap" >&5
6304echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6306#line $LINENO "configure"
6307#include "confdefs.h"
6308
6309#include <tcpd.h>
6310 int deny_severity = 0, allow_severity = 0;
6311
6312#ifdef F77_DUMMY_MAIN
6313# ifdef __cplusplus
6314 extern "C"
6315# endif
6316 int F77_DUMMY_MAIN() { return 1; }
6317#endif
6318int
6319main ()
6320{
6321hosts_access(0);
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326rm -f conftest.$ac_objext conftest$ac_exeext
6327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328 (eval $ac_link) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -s conftest$ac_exeext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338
6339 echo "$as_me:$LINENO: result: yes" >&5
6340echo "${ECHO_T}yes" >&6
6341 cat >>confdefs.h <<\_ACEOF
6342@%:@define LIBWRAP 1
6343_ACEOF
6344
6345
6346 TCPW_MSG="yes"
6347
6348else
6349 echo "$as_me: failed program was:" >&5
6350cat conftest.$ac_ext >&5
6351
6352 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6353echo "$as_me: error: *** libwrap missing" >&2;}
6354 { (exit 1); exit 1; }; }
6355
6356
6357fi
6358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6359 LIBS="$saved_LIBS"
6360 fi
6361
6362
6363fi;
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
f5799ae1 6427
6428
700318f3 6429
6430
6431
6432for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6433 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6434 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6435 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6436 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6437 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6438 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
f5799ae1 6439 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
6440 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
6441 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
6442 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty
700318f3 6443do
6444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6445echo "$as_me:$LINENO: checking for $ac_func" >&5
6446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6447if eval "test \"\${$as_ac_var+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 cat >conftest.$ac_ext <<_ACEOF
6451#line $LINENO "configure"
6452#include "confdefs.h"
6453/* System header to define __stub macros and hopefully few prototypes,
6454 which can conflict with char $ac_func (); below. */
6455#include <assert.h>
6456/* Override any gcc2 internal prototype to avoid an error. */
6457#ifdef __cplusplus
6458extern "C"
6459#endif
6460/* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6462char $ac_func ();
6463char (*f) ();
6464
6465#ifdef F77_DUMMY_MAIN
6466# ifdef __cplusplus
6467 extern "C"
6468# endif
6469 int F77_DUMMY_MAIN() { return 1; }
6470#endif
6471int
6472main ()
6473{
6474/* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6478choke me
6479#else
6480f = $ac_func;
6481#endif
6482
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487rm -f conftest.$ac_objext conftest$ac_exeext
6488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 eval "$as_ac_var=yes"
6500else
6501 echo "$as_me: failed program was:" >&5
6502cat conftest.$ac_ext >&5
6503eval "$as_ac_var=no"
6504fi
6505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6506fi
6507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6509if test `eval echo '${'$as_ac_var'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6512_ACEOF
6513
6514fi
6515done
6516
6517
6518
6519for ac_func in dirname
6520do
6521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6522echo "$as_me:$LINENO: checking for $ac_func" >&5
6523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6524if eval "test \"\${$as_ac_var+set}\" = set"; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 cat >conftest.$ac_ext <<_ACEOF
6528#line $LINENO "configure"
6529#include "confdefs.h"
6530/* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func (); below. */
6532#include <assert.h>
6533/* Override any gcc2 internal prototype to avoid an error. */
6534#ifdef __cplusplus
6535extern "C"
6536#endif
6537/* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6539char $ac_func ();
6540char (*f) ();
6541
6542#ifdef F77_DUMMY_MAIN
6543# ifdef __cplusplus
6544 extern "C"
6545# endif
6546 int F77_DUMMY_MAIN() { return 1; }
6547#endif
6548int
6549main ()
6550{
6551/* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555choke me
6556#else
6557f = $ac_func;
6558#endif
6559
6560 ;
6561 return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext conftest$ac_exeext
6565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 eval "$as_ac_var=yes"
6577else
6578 echo "$as_me: failed program was:" >&5
6579cat conftest.$ac_ext >&5
6580eval "$as_ac_var=no"
6581fi
6582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6583fi
6584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6586if test `eval echo '${'$as_ac_var'}'` = yes; then
6587 cat >>confdefs.h <<_ACEOF
6588@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6589_ACEOF
6590
6591for ac_header in libgen.h
6592do
6593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595 echo "$as_me:$LINENO: checking for $ac_header" >&5
6596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6597if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599fi
6600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602else
6603 # Is the header compilable?
6604echo "$as_me:$LINENO: checking $ac_header usability" >&5
6605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6606cat >conftest.$ac_ext <<_ACEOF
6607#line $LINENO "configure"
6608#include "confdefs.h"
6609$ac_includes_default
6610@%:@include <$ac_header>
6611_ACEOF
6612rm -f conftest.$ac_objext
6613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_header_compiler=yes
6625else
6626 echo "$as_me: failed program was:" >&5
6627cat conftest.$ac_ext >&5
6628ac_header_compiler=no
6629fi
6630rm -f conftest.$ac_objext conftest.$ac_ext
6631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6632echo "${ECHO_T}$ac_header_compiler" >&6
6633
6634# Is the header present?
6635echo "$as_me:$LINENO: checking $ac_header presence" >&5
6636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6637cat >conftest.$ac_ext <<_ACEOF
6638#line $LINENO "configure"
6639#include "confdefs.h"
6640@%:@include <$ac_header>
6641_ACEOF
6642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6644 ac_status=$?
6645 egrep -v '^ *\+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } >/dev/null; then
6650 if test -s conftest.err; then
6651 ac_cpp_err=$ac_c_preproc_warn_flag
6652 else
6653 ac_cpp_err=
6654 fi
6655else
6656 ac_cpp_err=yes
6657fi
6658if test -z "$ac_cpp_err"; then
6659 ac_header_preproc=yes
6660else
6661 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 ac_header_preproc=no
6664fi
6665rm -f conftest.err conftest.$ac_ext
6666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6667echo "${ECHO_T}$ac_header_preproc" >&6
6668
6669# So? What about this header?
6670case $ac_header_compiler:$ac_header_preproc in
6671 yes:no )
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6676 no:yes )
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6683esac
6684echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 eval "$as_ac_Header=$ac_header_preproc"
6690fi
6691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693
6694fi
6695if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698_ACEOF
6699
6700fi
6701
6702done
6703
6704else
6705
6706 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
6707echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
6708if test "${ac_cv_lib_gen_dirname+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 ac_check_lib_save_LIBS=$LIBS
6712LIBS="-lgen $LIBS"
6713cat >conftest.$ac_ext <<_ACEOF
6714#line $LINENO "configure"
6715#include "confdefs.h"
6716
6717/* Override any gcc2 internal prototype to avoid an error. */
6718#ifdef __cplusplus
6719extern "C"
6720#endif
6721/* We use char because int might match the return type of a gcc2
6722 builtin and then its argument prototype would still apply. */
6723char dirname ();
6724#ifdef F77_DUMMY_MAIN
6725# ifdef __cplusplus
6726 extern "C"
6727# endif
6728 int F77_DUMMY_MAIN() { return 1; }
6729#endif
6730int
6731main ()
6732{
6733dirname ();
6734 ;
6735 return 0;
6736}
6737_ACEOF
6738rm -f conftest.$ac_objext conftest$ac_exeext
6739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -s conftest$ac_exeext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_lib_gen_dirname=yes
6751else
6752 echo "$as_me: failed program was:" >&5
6753cat conftest.$ac_ext >&5
6754ac_cv_lib_gen_dirname=no
6755fi
6756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6757LIBS=$ac_check_lib_save_LIBS
6758fi
6759echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
6760echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
6761if test $ac_cv_lib_gen_dirname = yes; then
6762
6763 echo "$as_me:$LINENO: checking for broken dirname" >&5
6764echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
6765if test "${ac_cv_have_broken_dirname+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768
6769 save_LIBS="$LIBS"
6770 LIBS="$LIBS -lgen"
6771 if test "$cross_compiling" = yes; then
6772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6773echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6774 { (exit 1); exit 1; }; }
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777#line $LINENO "configure"
6778#include "confdefs.h"
6779
6780#include <libgen.h>
6781#include <string.h>
6782
6783int main(int argc, char **argv) {
6784 char *s, buf[32];
6785
6786 strncpy(buf,"/etc", 32);
6787 s = dirname(buf);
6788 if (!s || strncmp(s, "/", 32) != 0) {
6789 exit(1);
6790 } else {
6791 exit(0);
6792 }
6793}
6794
6795_ACEOF
6796rm -f conftest$ac_exeext
6797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798 (eval $ac_link) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_cv_have_broken_dirname="no"
6808else
6809 echo "$as_me: program exited with status $ac_status" >&5
6810echo "$as_me: failed program was:" >&5
6811cat conftest.$ac_ext >&5
6812( exit $ac_status )
6813 ac_cv_have_broken_dirname="yes"
6814
6815fi
6816rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6817fi
6818 LIBS="$save_LIBS"
6819
6820fi
6821echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
6822echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
6823 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
6824 LIBS="$LIBS -lgen"
6825 cat >>confdefs.h <<\_ACEOF
6826@%:@define HAVE_DIRNAME 1
6827_ACEOF
6828
6829
6830for ac_header in libgen.h
6831do
6832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6833if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834 echo "$as_me:$LINENO: checking for $ac_header" >&5
6835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6836if eval "test \"\${$as_ac_Header+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838fi
6839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6841else
6842 # Is the header compilable?
6843echo "$as_me:$LINENO: checking $ac_header usability" >&5
6844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6845cat >conftest.$ac_ext <<_ACEOF
6846#line $LINENO "configure"
6847#include "confdefs.h"
6848$ac_includes_default
6849@%:@include <$ac_header>
6850_ACEOF
6851rm -f conftest.$ac_objext
6852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_header_compiler=yes
6864else
6865 echo "$as_me: failed program was:" >&5
6866cat conftest.$ac_ext >&5
6867ac_header_compiler=no
6868fi
6869rm -f conftest.$ac_objext conftest.$ac_ext
6870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6871echo "${ECHO_T}$ac_header_compiler" >&6
6872
6873# Is the header present?
6874echo "$as_me:$LINENO: checking $ac_header presence" >&5
6875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6876cat >conftest.$ac_ext <<_ACEOF
6877#line $LINENO "configure"
6878#include "confdefs.h"
6879@%:@include <$ac_header>
6880_ACEOF
6881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6883 ac_status=$?
6884 egrep -v '^ *\+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } >/dev/null; then
6889 if test -s conftest.err; then
6890 ac_cpp_err=$ac_c_preproc_warn_flag
6891 else
6892 ac_cpp_err=
6893 fi
6894else
6895 ac_cpp_err=yes
6896fi
6897if test -z "$ac_cpp_err"; then
6898 ac_header_preproc=yes
6899else
6900 echo "$as_me: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6902 ac_header_preproc=no
6903fi
6904rm -f conftest.err conftest.$ac_ext
6905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6906echo "${ECHO_T}$ac_header_preproc" >&6
6907
6908# So? What about this header?
6909case $ac_header_compiler:$ac_header_preproc in
6910 yes:no )
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6915 no:yes )
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6922esac
6923echo "$as_me:$LINENO: checking for $ac_header" >&5
6924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6925if eval "test \"\${$as_ac_Header+set}\" = set"; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 eval "$as_ac_Header=$ac_header_preproc"
6929fi
6930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932
6933fi
6934if test `eval echo '${'$as_ac_Header'}'` = yes; then
6935 cat >>confdefs.h <<_ACEOF
6936@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6937_ACEOF
6938
6939fi
6940
6941done
6942
6943 fi
6944
6945fi
6946
6947
6948fi
6949done
6950
6951
6952
6953
6954for ac_func in gettimeofday time
6955do
6956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6957echo "$as_me:$LINENO: checking for $ac_func" >&5
6958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6959if eval "test \"\${$as_ac_var+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 cat >conftest.$ac_ext <<_ACEOF
6963#line $LINENO "configure"
6964#include "confdefs.h"
6965/* System header to define __stub macros and hopefully few prototypes,
6966 which can conflict with char $ac_func (); below. */
6967#include <assert.h>
6968/* Override any gcc2 internal prototype to avoid an error. */
6969#ifdef __cplusplus
6970extern "C"
6971#endif
6972/* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974char $ac_func ();
6975char (*f) ();
6976
6977#ifdef F77_DUMMY_MAIN
6978# ifdef __cplusplus
6979 extern "C"
6980# endif
6981 int F77_DUMMY_MAIN() { return 1; }
6982#endif
6983int
6984main ()
6985{
6986/* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6990choke me
6991#else
6992f = $ac_func;
6993#endif
6994
6995 ;
6996 return 0;
6997}
6998_ACEOF
6999rm -f conftest.$ac_objext conftest$ac_exeext
7000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 eval "$as_ac_var=yes"
7012else
7013 echo "$as_me: failed program was:" >&5
7014cat conftest.$ac_ext >&5
7015eval "$as_ac_var=no"
7016fi
7017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7018fi
7019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7021if test `eval echo '${'$as_ac_var'}'` = yes; then
7022 cat >>confdefs.h <<_ACEOF
7023@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7024_ACEOF
7025
7026fi
7027done
7028
7029
7030
7031
7032
7033
7034
7035for ac_func in endutent getutent getutid getutline pututline setutent
7036do
7037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7038echo "$as_me:$LINENO: checking for $ac_func" >&5
7039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7040if eval "test \"\${$as_ac_var+set}\" = set"; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 cat >conftest.$ac_ext <<_ACEOF
7044#line $LINENO "configure"
7045#include "confdefs.h"
7046/* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func (); below. */
7048#include <assert.h>
7049/* Override any gcc2 internal prototype to avoid an error. */
7050#ifdef __cplusplus
7051extern "C"
7052#endif
7053/* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7055char $ac_func ();
7056char (*f) ();
7057
7058#ifdef F77_DUMMY_MAIN
7059# ifdef __cplusplus
7060 extern "C"
7061# endif
7062 int F77_DUMMY_MAIN() { return 1; }
7063#endif
7064int
7065main ()
7066{
7067/* The GNU C library defines this for functions which it implements
7068 to always fail with ENOSYS. Some functions are actually named
7069 something starting with __ and the normal name is an alias. */
7070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7071choke me
7072#else
7073f = $ac_func;
7074#endif
7075
7076 ;
7077 return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext conftest$ac_exeext
7081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 eval "$as_ac_var=yes"
7093else
7094 echo "$as_me: failed program was:" >&5
7095cat conftest.$ac_ext >&5
7096eval "$as_ac_var=no"
7097fi
7098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7099fi
7100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7102if test `eval echo '${'$as_ac_var'}'` = yes; then
7103 cat >>confdefs.h <<_ACEOF
7104@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7105_ACEOF
7106
7107fi
7108done
7109
7110
7111for ac_func in utmpname
7112do
7113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7114echo "$as_me:$LINENO: checking for $ac_func" >&5
7115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7116if eval "test \"\${$as_ac_var+set}\" = set"; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 cat >conftest.$ac_ext <<_ACEOF
7120#line $LINENO "configure"
7121#include "confdefs.h"
7122/* System header to define __stub macros and hopefully few prototypes,
7123 which can conflict with char $ac_func (); below. */
7124#include <assert.h>
7125/* Override any gcc2 internal prototype to avoid an error. */
7126#ifdef __cplusplus
7127extern "C"
7128#endif
7129/* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131char $ac_func ();
7132char (*f) ();
7133
7134#ifdef F77_DUMMY_MAIN
7135# ifdef __cplusplus
7136 extern "C"
7137# endif
7138 int F77_DUMMY_MAIN() { return 1; }
7139#endif
7140int
7141main ()
7142{
7143/* The GNU C library defines this for functions which it implements
7144 to always fail with ENOSYS. Some functions are actually named
7145 something starting with __ and the normal name is an alias. */
7146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7147choke me
7148#else
7149f = $ac_func;
7150#endif
7151
7152 ;
7153 return 0;
7154}
7155_ACEOF
7156rm -f conftest.$ac_objext conftest$ac_exeext
7157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7158 (eval $ac_link) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -s conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 eval "$as_ac_var=yes"
7169else
7170 echo "$as_me: failed program was:" >&5
7171cat conftest.$ac_ext >&5
7172eval "$as_ac_var=no"
7173fi
7174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7175fi
7176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7178if test `eval echo '${'$as_ac_var'}'` = yes; then
7179 cat >>confdefs.h <<_ACEOF
7180@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7181_ACEOF
7182
7183fi
7184done
7185
7186
7187
7188
7189
7190
7191for ac_func in endutxent getutxent getutxid getutxline pututxline
7192do
7193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7194echo "$as_me:$LINENO: checking for $ac_func" >&5
7195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7196if eval "test \"\${$as_ac_var+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199 cat >conftest.$ac_ext <<_ACEOF
7200#line $LINENO "configure"
7201#include "confdefs.h"
7202/* System header to define __stub macros and hopefully few prototypes,
7203 which can conflict with char $ac_func (); below. */
7204#include <assert.h>
7205/* Override any gcc2 internal prototype to avoid an error. */
7206#ifdef __cplusplus
7207extern "C"
7208#endif
7209/* We use char because int might match the return type of a gcc2
7210 builtin and then its argument prototype would still apply. */
7211char $ac_func ();
7212char (*f) ();
7213
7214#ifdef F77_DUMMY_MAIN
7215# ifdef __cplusplus
7216 extern "C"
7217# endif
7218 int F77_DUMMY_MAIN() { return 1; }
7219#endif
7220int
7221main ()
7222{
7223/* The GNU C library defines this for functions which it implements
7224 to always fail with ENOSYS. Some functions are actually named
7225 something starting with __ and the normal name is an alias. */
7226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7227choke me
7228#else
7229f = $ac_func;
7230#endif
7231
7232 ;
7233 return 0;
7234}
7235_ACEOF
7236rm -f conftest.$ac_objext conftest$ac_exeext
7237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -s conftest$ac_exeext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 eval "$as_ac_var=yes"
7249else
7250 echo "$as_me: failed program was:" >&5
7251cat conftest.$ac_ext >&5
7252eval "$as_ac_var=no"
7253fi
7254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7255fi
7256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7258if test `eval echo '${'$as_ac_var'}'` = yes; then
7259 cat >>confdefs.h <<_ACEOF
7260@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7261_ACEOF
7262
7263fi
7264done
7265
7266
7267
7268for ac_func in setutxent utmpxname
7269do
7270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7271echo "$as_me:$LINENO: checking for $ac_func" >&5
7272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7273if eval "test \"\${$as_ac_var+set}\" = set"; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 cat >conftest.$ac_ext <<_ACEOF
7277#line $LINENO "configure"
7278#include "confdefs.h"
7279/* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char $ac_func (); below. */
7281#include <assert.h>
7282/* Override any gcc2 internal prototype to avoid an error. */
7283#ifdef __cplusplus
7284extern "C"
7285#endif
7286/* We use char because int might match the return type of a gcc2
7287 builtin and then its argument prototype would still apply. */
7288char $ac_func ();
7289char (*f) ();
7290
7291#ifdef F77_DUMMY_MAIN
7292# ifdef __cplusplus
7293 extern "C"
7294# endif
7295 int F77_DUMMY_MAIN() { return 1; }
7296#endif
7297int
7298main ()
7299{
7300/* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7304choke me
7305#else
7306f = $ac_func;
7307#endif
7308
7309 ;
7310 return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext conftest$ac_exeext
7314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315 (eval $ac_link) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -s conftest$ac_exeext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 eval "$as_ac_var=yes"
7326else
7327 echo "$as_me: failed program was:" >&5
7328cat conftest.$ac_ext >&5
7329eval "$as_ac_var=no"
7330fi
7331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7332fi
7333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7335if test `eval echo '${'$as_ac_var'}'` = yes; then
7336 cat >>confdefs.h <<_ACEOF
7337@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7338_ACEOF
7339
7340fi
7341done
7342
7343
700318f3 7344echo "$as_me:$LINENO: checking for daemon" >&5
7345echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7346if test "${ac_cv_func_daemon+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 cat >conftest.$ac_ext <<_ACEOF
7350#line $LINENO "configure"
7351#include "confdefs.h"
7352/* System header to define __stub macros and hopefully few prototypes,
7353 which can conflict with char daemon (); below. */
7354#include <assert.h>
7355/* Override any gcc2 internal prototype to avoid an error. */
7356#ifdef __cplusplus
7357extern "C"
7358#endif
7359/* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7361char daemon ();
7362char (*f) ();
7363
7364#ifdef F77_DUMMY_MAIN
7365# ifdef __cplusplus
7366 extern "C"
7367# endif
7368 int F77_DUMMY_MAIN() { return 1; }
7369#endif
7370int
7371main ()
7372{
7373/* The GNU C library defines this for functions which it implements
7374 to always fail with ENOSYS. Some functions are actually named
7375 something starting with __ and the normal name is an alias. */
7376#if defined (__stub_daemon) || defined (__stub___daemon)
7377choke me
7378#else
7379f = daemon;
7380#endif
7381
7382 ;
7383 return 0;
7384}
7385_ACEOF
7386rm -f conftest.$ac_objext conftest$ac_exeext
7387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7388 (eval $ac_link) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try='test -s conftest$ac_exeext'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 (eval $ac_try) 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 ac_cv_func_daemon=yes
7399else
7400 echo "$as_me: failed program was:" >&5
7401cat conftest.$ac_ext >&5
7402ac_cv_func_daemon=no
7403fi
7404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7405fi
7406echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7407echo "${ECHO_T}$ac_cv_func_daemon" >&6
7408if test $ac_cv_func_daemon = yes; then
7409 cat >>confdefs.h <<\_ACEOF
7410@%:@define HAVE_DAEMON 1
7411_ACEOF
7412
7413else
7414 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7415echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7416if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 ac_check_lib_save_LIBS=$LIBS
7420LIBS="-lbsd $LIBS"
7421cat >conftest.$ac_ext <<_ACEOF
7422#line $LINENO "configure"
7423#include "confdefs.h"
7424
7425/* Override any gcc2 internal prototype to avoid an error. */
7426#ifdef __cplusplus
7427extern "C"
7428#endif
7429/* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7431char daemon ();
7432#ifdef F77_DUMMY_MAIN
7433# ifdef __cplusplus
7434 extern "C"
7435# endif
7436 int F77_DUMMY_MAIN() { return 1; }
7437#endif
7438int
7439main ()
7440{
7441daemon ();
7442 ;
7443 return 0;
7444}
7445_ACEOF
7446rm -f conftest.$ac_objext conftest$ac_exeext
7447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_lib_bsd_daemon=yes
7459else
7460 echo "$as_me: failed program was:" >&5
7461cat conftest.$ac_ext >&5
7462ac_cv_lib_bsd_daemon=no
7463fi
7464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7465LIBS=$ac_check_lib_save_LIBS
7466fi
7467echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7468echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7469if test $ac_cv_lib_bsd_daemon = yes; then
7470 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7471@%:@define HAVE_DAEMON 1
7472_ACEOF
7473
7474fi
7475
7476
7477fi
7478
7479
7480echo "$as_me:$LINENO: checking for getpagesize" >&5
7481echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7482if test "${ac_cv_func_getpagesize+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 cat >conftest.$ac_ext <<_ACEOF
7486#line $LINENO "configure"
7487#include "confdefs.h"
7488/* System header to define __stub macros and hopefully few prototypes,
7489 which can conflict with char getpagesize (); below. */
7490#include <assert.h>
7491/* Override any gcc2 internal prototype to avoid an error. */
7492#ifdef __cplusplus
7493extern "C"
7494#endif
7495/* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497char getpagesize ();
7498char (*f) ();
7499
7500#ifdef F77_DUMMY_MAIN
7501# ifdef __cplusplus
7502 extern "C"
7503# endif
7504 int F77_DUMMY_MAIN() { return 1; }
7505#endif
7506int
7507main ()
7508{
7509/* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7513choke me
7514#else
7515f = getpagesize;
7516#endif
7517
7518 ;
7519 return 0;
7520}
7521_ACEOF
7522rm -f conftest.$ac_objext conftest$ac_exeext
7523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -s conftest$ac_exeext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_func_getpagesize=yes
7535else
7536 echo "$as_me: failed program was:" >&5
7537cat conftest.$ac_ext >&5
7538ac_cv_func_getpagesize=no
7539fi
7540rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7541fi
7542echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7543echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7544if test $ac_cv_func_getpagesize = yes; then
7545 cat >>confdefs.h <<\_ACEOF
7546@%:@define HAVE_GETPAGESIZE 1
7547_ACEOF
7548
7549else
7550 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7551echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7552if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 ac_check_lib_save_LIBS=$LIBS
7556LIBS="-lucb $LIBS"
7557cat >conftest.$ac_ext <<_ACEOF
7558#line $LINENO "configure"
7559#include "confdefs.h"
7560
7561/* Override any gcc2 internal prototype to avoid an error. */
7562#ifdef __cplusplus
7563extern "C"
7564#endif
7565/* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567char getpagesize ();
7568#ifdef F77_DUMMY_MAIN
7569# ifdef __cplusplus
7570 extern "C"
7571# endif
7572 int F77_DUMMY_MAIN() { return 1; }
7573#endif
7574int
7575main ()
7576{
7577getpagesize ();
7578 ;
7579 return 0;
7580}
7581_ACEOF
7582rm -f conftest.$ac_objext conftest$ac_exeext
7583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_lib_ucb_getpagesize=yes
7595else
7596 echo "$as_me: failed program was:" >&5
7597cat conftest.$ac_ext >&5
7598ac_cv_lib_ucb_getpagesize=no
7599fi
7600rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7601LIBS=$ac_check_lib_save_LIBS
7602fi
7603echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7604echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7605if test $ac_cv_lib_ucb_getpagesize = yes; then
7606 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7607@%:@define HAVE_GETPAGESIZE 1
7608_ACEOF
7609
7610fi
7611
7612
7613fi
7614
7615
7616# Check for broken snprintf
7617if test "x$ac_cv_func_snprintf" = "xyes" ; then
7618 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7619echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7620 if test "$cross_compiling" = yes; then
7621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7622echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7623 { (exit 1); exit 1; }; }
7624else
7625 cat >conftest.$ac_ext <<_ACEOF
7626#line $LINENO "configure"
7627#include "confdefs.h"
7628
7629#include <stdio.h>
7630int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
7631
7632_ACEOF
7633rm -f conftest$ac_exeext
7634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 echo "$as_me:$LINENO: result: yes" >&5
7645echo "${ECHO_T}yes" >&6
7646else
7647 echo "$as_me: program exited with status $ac_status" >&5
7648echo "$as_me: failed program was:" >&5
7649cat conftest.$ac_ext >&5
7650( exit $ac_status )
7651
7652 echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
7654 cat >>confdefs.h <<\_ACEOF
7655@%:@define BROKEN_SNPRINTF 1
7656_ACEOF
7657
7658 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7659echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7660
7661
7662fi
7663rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7664fi
7665fi
7666
7667echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7668echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7669if test "${ac_cv_func_getpgrp_void+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672 # Use it with a single arg.
7673cat >conftest.$ac_ext <<_ACEOF
7674#line $LINENO "configure"
7675#include "confdefs.h"
7676$ac_includes_default
7677#ifdef F77_DUMMY_MAIN
7678# ifdef __cplusplus
7679 extern "C"
7680# endif
7681 int F77_DUMMY_MAIN() { return 1; }
7682#endif
7683int
7684main ()
7685{
7686getpgrp (0);
7687 ;
7688 return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
7692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_func_getpgrp_void=no
7704else
7705 echo "$as_me: failed program was:" >&5
7706cat conftest.$ac_ext >&5
7707ac_cv_func_getpgrp_void=yes
7708fi
7709rm -f conftest.$ac_objext conftest.$ac_ext
7710
7711fi
7712echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
7713echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
7714if test $ac_cv_func_getpgrp_void = yes; then
7715
7716cat >>confdefs.h <<\_ACEOF
7717@%:@define GETPGRP_VOID 1
7718_ACEOF
7719
7720fi
7721
7722
7723# Check for PAM libs
7724PAM_MSG="no"
7725
7726# Check whether --with-pam or --without-pam was given.
7727if test "${with_pam+set}" = set; then
7728 withval="$with_pam"
7729
7730 if test "x$withval" != "xno" ; then
7731 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
7732 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
7733echo "$as_me: error: PAM headers not found" >&2;}
7734 { (exit 1); exit 1; }; }
7735 fi
7736
7737
7738echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7739echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7740if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 ac_check_lib_save_LIBS=$LIBS
7744LIBS="-ldl $LIBS"
7745cat >conftest.$ac_ext <<_ACEOF
7746#line $LINENO "configure"
7747#include "confdefs.h"
7748
7749/* Override any gcc2 internal prototype to avoid an error. */
7750#ifdef __cplusplus
7751extern "C"
7752#endif
7753/* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7755char dlopen ();
7756#ifdef F77_DUMMY_MAIN
7757# ifdef __cplusplus
7758 extern "C"
7759# endif
7760 int F77_DUMMY_MAIN() { return 1; }
7761#endif
7762int
7763main ()
7764{
7765dlopen ();
7766 ;
7767 return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext conftest$ac_exeext
7771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_lib_dl_dlopen=yes
7783else
7784 echo "$as_me: failed program was:" >&5
7785cat conftest.$ac_ext >&5
7786ac_cv_lib_dl_dlopen=no
7787fi
7788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7789LIBS=$ac_check_lib_save_LIBS
7790fi
7791echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7792echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7793if test $ac_cv_lib_dl_dlopen = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795@%:@define HAVE_LIBDL 1
7796_ACEOF
7797
7798 LIBS="-ldl $LIBS"
7799
7800fi
7801
7802
7803echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
7804echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
7805if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 ac_check_lib_save_LIBS=$LIBS
7809LIBS="-lpam $LIBS"
7810cat >conftest.$ac_ext <<_ACEOF
7811#line $LINENO "configure"
7812#include "confdefs.h"
7813
7814/* Override any gcc2 internal prototype to avoid an error. */
7815#ifdef __cplusplus
7816extern "C"
7817#endif
7818/* We use char because int might match the return type of a gcc2
7819 builtin and then its argument prototype would still apply. */
7820char pam_set_item ();
7821#ifdef F77_DUMMY_MAIN
7822# ifdef __cplusplus
7823 extern "C"
7824# endif
7825 int F77_DUMMY_MAIN() { return 1; }
7826#endif
7827int
7828main ()
7829{
7830pam_set_item ();
7831 ;
7832 return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext conftest$ac_exeext
7836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_lib_pam_pam_set_item=yes
7848else
7849 echo "$as_me: failed program was:" >&5
7850cat conftest.$ac_ext >&5
7851ac_cv_lib_pam_pam_set_item=no
7852fi
7853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
7857echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
7858if test $ac_cv_lib_pam_pam_set_item = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860@%:@define HAVE_LIBPAM 1
7861_ACEOF
7862
7863 LIBS="-lpam $LIBS"
7864
7865else
7866 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
7867echo "$as_me: error: *** libpam missing" >&2;}
7868 { (exit 1); exit 1; }; }
7869fi
7870
7871
7872for ac_func in pam_getenvlist
7873do
7874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7875echo "$as_me:$LINENO: checking for $ac_func" >&5
7876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7877if eval "test \"\${$as_ac_var+set}\" = set"; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880 cat >conftest.$ac_ext <<_ACEOF
7881#line $LINENO "configure"
7882#include "confdefs.h"
7883/* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char $ac_func (); below. */
7885#include <assert.h>
7886/* Override any gcc2 internal prototype to avoid an error. */
7887#ifdef __cplusplus
7888extern "C"
7889#endif
7890/* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892char $ac_func ();
7893char (*f) ();
7894
7895#ifdef F77_DUMMY_MAIN
7896# ifdef __cplusplus
7897 extern "C"
7898# endif
7899 int F77_DUMMY_MAIN() { return 1; }
7900#endif
7901int
7902main ()
7903{
7904/* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908choke me
7909#else
7910f = $ac_func;
7911#endif
7912
7913 ;
7914 return 0;
7915}
7916_ACEOF
7917rm -f conftest.$ac_objext conftest$ac_exeext
7918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 eval "$as_ac_var=yes"
7930else
7931 echo "$as_me: failed program was:" >&5
7932cat conftest.$ac_ext >&5
7933eval "$as_ac_var=no"
7934fi
7935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936fi
7937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7939if test `eval echo '${'$as_ac_var'}'` = yes; then
7940 cat >>confdefs.h <<_ACEOF
7941@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7942_ACEOF
7943
7944fi
7945done
7946
7947
7948 disable_shadow=yes
7949 PAM_MSG="yes"
7950
7951 cat >>confdefs.h <<\_ACEOF
7952@%:@define USE_PAM 1
7953_ACEOF
7954
7955 if test $ac_cv_lib_dl_dlopen = yes; then
7956 LIBPAM="-lpam -ldl"
7957 else
7958 LIBPAM="-lpam"
7959 fi
7960
7961 fi
7962
7963
7964fi;
7965
7966# Check for older PAM
7967if test "x$PAM_MSG" = "xyes" ; then
7968 # Check PAM strerror arguments (old PAM)
7969 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
7970echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7972#line $LINENO "configure"
7973#include "confdefs.h"
7974
7975#include <stdlib.h>
7976#include <security/pam_appl.h>
7977
7978#ifdef F77_DUMMY_MAIN
7979# ifdef __cplusplus
7980 extern "C"
7981# endif
7982 int F77_DUMMY_MAIN() { return 1; }
7983#endif
7984int
7985main ()
7986{
7987(void)pam_strerror((pam_handle_t *)NULL, -1);
7988 ;
7989 return 0;
7990}
7991_ACEOF
7992rm -f conftest.$ac_objext
7993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 echo "$as_me:$LINENO: result: no" >&5
8005echo "${ECHO_T}no" >&6
8006else
8007 echo "$as_me: failed program was:" >&5
8008cat conftest.$ac_ext >&5
8009
8010 cat >>confdefs.h <<\_ACEOF
8011@%:@define HAVE_OLD_PAM 1
8012_ACEOF
8013
8014 echo "$as_me:$LINENO: result: yes" >&5
8015echo "${ECHO_T}yes" >&6
8016 PAM_MSG="yes (old library)"
8017
8018
8019fi
8020rm -f conftest.$ac_objext conftest.$ac_ext
8021fi
8022
8023# Search for OpenSSL
8024saved_CPPFLAGS="$CPPFLAGS"
8025saved_LDFLAGS="$LDFLAGS"
8026
8027# Check whether --with-ssl-dir or --without-ssl-dir was given.
8028if test "${with_ssl_dir+set}" = set; then
8029 withval="$with_ssl_dir"
8030
8031 if test "x$withval" != "xno" ; then
8032 if test -d "$withval/lib"; then
8033 if test -n "${need_dash_r}"; then
8034 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8035 else
8036 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8037 fi
8038 else
8039 if test -n "${need_dash_r}"; then
8040 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8041 else
8042 LDFLAGS="-L${withval} ${LDFLAGS}"
8043 fi
8044 fi
8045 if test -d "$withval/include"; then
8046 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8047 else
8048 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8049 fi
8050 fi
8051
8052
8053fi;
8054LIBS="$LIBS -lcrypto"
8055cat >conftest.$ac_ext <<_ACEOF
8056#line $LINENO "configure"
8057#include "confdefs.h"
8058
8059/* Override any gcc2 internal prototype to avoid an error. */
8060#ifdef __cplusplus
8061extern "C"
8062#endif
8063/* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8065char RAND_add ();
8066#ifdef F77_DUMMY_MAIN
8067# ifdef __cplusplus
8068 extern "C"
8069# endif
8070 int F77_DUMMY_MAIN() { return 1; }
8071#endif
8072int
8073main ()
8074{
8075RAND_add ();
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080rm -f conftest.$ac_objext conftest$ac_exeext
8081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 cat >>confdefs.h <<\_ACEOF
8093@%:@define HAVE_OPENSSL 1
8094_ACEOF
8095
8096else
8097 echo "$as_me: failed program was:" >&5
8098cat conftest.$ac_ext >&5
8099
8100 if test -n "${need_dash_r}"; then
8101 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8102 else
8103 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8104 fi
8105 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8106 cat >conftest.$ac_ext <<_ACEOF
8107#line $LINENO "configure"
8108#include "confdefs.h"
8109
8110/* Override any gcc2 internal prototype to avoid an error. */
8111#ifdef __cplusplus
8112extern "C"
8113#endif
8114/* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116char RAND_add ();
8117#ifdef F77_DUMMY_MAIN
8118# ifdef __cplusplus
8119 extern "C"
8120# endif
8121 int F77_DUMMY_MAIN() { return 1; }
8122#endif
8123int
8124main ()
8125{
8126RAND_add ();
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131rm -f conftest.$ac_objext conftest$ac_exeext
8132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -s conftest$ac_exeext'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8143 cat >>confdefs.h <<\_ACEOF
8144@%:@define HAVE_OPENSSL 1
8145_ACEOF
8146
8147else
8148 echo "$as_me: failed program was:" >&5
8149cat conftest.$ac_ext >&5
8150
8151 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8152echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8153 { (exit 1); exit 1; }; }
8154
8155
8156fi
8157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8158
8159
8160fi
8161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162
8163
8164# Sanity check OpenSSL headers
8165echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8166echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8167if test "$cross_compiling" = yes; then
8168 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8169echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8170 { (exit 1); exit 1; }; }
8171else
8172 cat >conftest.$ac_ext <<_ACEOF
8173#line $LINENO "configure"
8174#include "confdefs.h"
8175
8176#include <string.h>
8177#include <openssl/opensslv.h>
8178int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8179
8180_ACEOF
8181rm -f conftest$ac_exeext
8182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195
8196else
8197 echo "$as_me: program exited with status $ac_status" >&5
8198echo "$as_me: failed program was:" >&5
8199cat conftest.$ac_ext >&5
8200( exit $ac_status )
8201
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8205echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8206 { (exit 1); exit 1; }; }
8207
8208
8209fi
8210rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8211fi
8212
8213# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8214# version in OpenSSL. Skip this for PAM
8215if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8216 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8217echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8218if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 ac_check_lib_save_LIBS=$LIBS
8222LIBS="-lcrypt $LIBS"
8223cat >conftest.$ac_ext <<_ACEOF
8224#line $LINENO "configure"
8225#include "confdefs.h"
8226
8227/* Override any gcc2 internal prototype to avoid an error. */
8228#ifdef __cplusplus
8229extern "C"
8230#endif
8231/* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8233char crypt ();
8234#ifdef F77_DUMMY_MAIN
8235# ifdef __cplusplus
8236 extern "C"
8237# endif
8238 int F77_DUMMY_MAIN() { return 1; }
8239#endif
8240int
8241main ()
8242{
8243crypt ();
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext conftest$ac_exeext
8249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250 (eval $ac_link) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest$ac_exeext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_lib_crypt_crypt=yes
8261else
8262 echo "$as_me: failed program was:" >&5
8263cat conftest.$ac_ext >&5
8264ac_cv_lib_crypt_crypt=no
8265fi
8266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8267LIBS=$ac_check_lib_save_LIBS
8268fi
8269echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8270echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8271if test $ac_cv_lib_crypt_crypt = yes; then
8272 LIBS="$LIBS -lcrypt"
8273fi
8274
8275fi
8276
8277
8278### Configure cryptographic random number support
8279
8280# Check wheter OpenSSL seeds itself
8281echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8282echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8283if test "$cross_compiling" = yes; then
8284 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8285echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8286 { (exit 1); exit 1; }; }
8287else
8288 cat >conftest.$ac_ext <<_ACEOF
8289#line $LINENO "configure"
8290#include "confdefs.h"
8291
8292#include <string.h>
8293#include <openssl/rand.h>
8294int main(void) { return(RAND_status() == 1 ? 0 : 1); }
8295
8296_ACEOF
8297rm -f conftest$ac_exeext
8298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308
8309 OPENSSL_SEEDS_ITSELF=yes
8310 echo "$as_me:$LINENO: result: yes" >&5
8311echo "${ECHO_T}yes" >&6
8312
8313else
8314 echo "$as_me: program exited with status $ac_status" >&5
8315echo "$as_me: failed program was:" >&5
8316cat conftest.$ac_ext >&5
8317( exit $ac_status )
8318
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 # Default to use of the rand helper if OpenSSL doesn't
8322 # seed itself
8323 USE_RAND_HELPER=yes
8324
8325
8326fi
8327rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328fi
8329
8330
8331# Do we want to force the use of the rand helper?
8332
8333# Check whether --with-rand-helper or --without-rand-helper was given.
8334if test "${with_rand_helper+set}" = set; then
8335 withval="$with_rand_helper"
8336
8337 if test "x$withval" = "xno" ; then
8338 # Force use of OpenSSL's internal RNG, even if
8339 # the previous test showed it to be unseeded.
8340 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8341 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8342echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8343 OPENSSL_SEEDS_ITSELF=yes
8344 USE_RAND_HELPER=""
8345 fi
8346 else
8347 USE_RAND_HELPER=yes
8348 fi
8349
8350fi;
8351
8352# Which randomness source do we use?
8353if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8354 # OpenSSL only
8355 cat >>confdefs.h <<\_ACEOF
8356@%:@define OPENSSL_PRNG_ONLY 1
8357_ACEOF
8358
8359 RAND_MSG="OpenSSL internal ONLY"
8360 INSTALL_SSH_RAND_HELPER=""
8361elif test ! -z "$USE_RAND_HELPER" ; then
8362 # install rand helper
8363 RAND_MSG="ssh-rand-helper"
8364 INSTALL_SSH_RAND_HELPER="yes"
8365fi
8366
8367
8368### Configuration of ssh-rand-helper
8369
8370# PRNGD TCP socket
8371
8372# Check whether --with-prngd-port or --without-prngd-port was given.
8373if test "${with_prngd_port+set}" = set; then
8374 withval="$with_prngd_port"
8375
8376 case "$withval" in
8377 no)
8378 withval=""
8379 ;;
8380 [0-9]*)
8381 ;;
8382 *)
8383 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8384echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8385 { (exit 1); exit 1; }; }
8386 ;;
8387 esac
8388 if test ! -z "$withval" ; then
8389 PRNGD_PORT="$withval"
8390 cat >>confdefs.h <<_ACEOF
8391@%:@define PRNGD_PORT $PRNGD_PORT
8392_ACEOF
8393
8394 fi
8395
8396
8397fi;
8398
8399# PRNGD Unix domain socket
8400
8401# Check whether --with-prngd-socket or --without-prngd-socket was given.
8402if test "${with_prngd_socket+set}" = set; then
8403 withval="$with_prngd_socket"
8404
8405 case "$withval" in
8406 yes)
8407 withval="/var/run/egd-pool"
8408 ;;
8409 no)
8410 withval=""
8411 ;;
8412 /*)
8413 ;;
8414 *)
8415 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8416echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8417 { (exit 1); exit 1; }; }
8418 ;;
8419 esac
8420
8421 if test ! -z "$withval" ; then
8422 if test ! -z "$PRNGD_PORT" ; then
8423 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8424echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8425 { (exit 1); exit 1; }; }
8426 fi
8427 if test ! -r "$withval" ; then
8428 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8429echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8430 fi
8431 PRNGD_SOCKET="$withval"
8432 cat >>confdefs.h <<_ACEOF
8433@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8434_ACEOF
8435
8436 fi
8437
8438else
8439
8440 # Check for existing socket only if we don't have a random device already
8441 if test "$USE_RAND_HELPER" = yes ; then
8442 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8443echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8444 # Insert other locations here
8445 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8446 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8447 PRNGD_SOCKET="$sock"
8448 cat >>confdefs.h <<_ACEOF
8449@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8450_ACEOF
8451
8452 break;
8453 fi
8454 done
8455 if test ! -z "$PRNGD_SOCKET" ; then
8456 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8457echo "${ECHO_T}$PRNGD_SOCKET" >&6
8458 else
8459 echo "$as_me:$LINENO: result: not found" >&5
8460echo "${ECHO_T}not found" >&6
8461 fi
8462 fi
8463
8464
8465fi;
8466
8467# Change default command timeout for hashing entropy source
8468entropy_timeout=200
8469
8470# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8471if test "${with_entropy_timeout+set}" = set; then
8472 withval="$with_entropy_timeout"
8473
8474 if test "x$withval" != "xno" ; then
8475 entropy_timeout=$withval
8476 fi
8477
8478
8479fi;
8480cat >>confdefs.h <<_ACEOF
8481@%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8482_ACEOF
8483
8484
8485ssh_privsep_user=sshd
8486
8487# Check whether --with-privsep-user or --without-privsep-user was given.
8488if test "${with_privsep_user+set}" = set; then
8489 withval="$with_privsep_user"
8490
8491 if test -n "$withval"; then
8492 ssh_privsep_user=$withval
8493 fi
8494
8495
8496fi;
8497cat >>confdefs.h <<_ACEOF
8498@%:@define SSH_PRIVSEP_USER "$ssh_privsep_user"
8499_ACEOF
8500
8501
8502# We do this little dance with the search path to insure
8503# that programs that we select for use by installed programs
8504# (which may be run by the super-user) come from trusted
8505# locations before they come from the user's private area.
8506# This should help avoid accidentally configuring some
8507# random version of a program in someone's personal bin.
8508
8509OPATH=$PATH
8510PATH=/bin:/usr/bin
8511test -h /bin 2> /dev/null && PATH=/usr/bin
8512test -d /sbin && PATH=$PATH:/sbin
8513test -d /usr/sbin && PATH=$PATH:/usr/sbin
8514PATH=$PATH:/etc:$OPATH
8515
8516# These programs are used by the command hashing source to gather entropy
8517
8518 # Extract the first word of "ls", so it can be a program name with args.
8519set dummy ls; ac_word=$2
8520echo "$as_me:$LINENO: checking for $ac_word" >&5
8521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8522if test "${ac_cv_path_PROG_LS+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525 case $PROG_LS in
8526 [\\/]* | ?:[\\/]*)
8527 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
8528 ;;
8529 *)
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541done
8542done
8543
8544 ;;
8545esac
8546fi
8547PROG_LS=$ac_cv_path_PROG_LS
8548
8549if test -n "$PROG_LS"; then
8550 echo "$as_me:$LINENO: result: $PROG_LS" >&5
8551echo "${ECHO_T}$PROG_LS" >&6
8552else
8553 echo "$as_me:$LINENO: result: no" >&5
8554echo "${ECHO_T}no" >&6
8555fi
8556
8557 if test -z "$PROG_LS" ; then
8558 PROG_LS="undef"
8559 fi
8560
8561
8562
8563 # Extract the first word of "netstat", so it can be a program name with args.
8564set dummy netstat; ac_word=$2
8565echo "$as_me:$LINENO: checking for $ac_word" >&5
8566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8567if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570 case $PROG_NETSTAT in
8571 [\\/]* | ?:[\\/]*)
8572 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
8573 ;;
8574 *)
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8582 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
8583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586done
8587done
8588
8589 ;;
8590esac
8591fi
8592PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
8593
8594if test -n "$PROG_NETSTAT"; then
8595 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
8596echo "${ECHO_T}$PROG_NETSTAT" >&6
8597else
8598 echo "$as_me:$LINENO: result: no" >&5
8599echo "${ECHO_T}no" >&6
8600fi
8601
8602 if test -z "$PROG_NETSTAT" ; then
8603 PROG_NETSTAT="undef"
8604 fi
8605
8606
8607
8608 # Extract the first word of "arp", so it can be a program name with args.
8609set dummy arp; ac_word=$2
8610echo "$as_me:$LINENO: checking for $ac_word" >&5
8611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8612if test "${ac_cv_path_PROG_ARP+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614else
8615 case $PROG_ARP in
8616 [\\/]* | ?:[\\/]*)
8617 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
8618 ;;
8619 *)
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
8628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8630 fi
8631done
8632done
8633
8634 ;;
8635esac
8636fi
8637PROG_ARP=$ac_cv_path_PROG_ARP
8638
8639if test -n "$PROG_ARP"; then
8640 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
8641echo "${ECHO_T}$PROG_ARP" >&6
8642else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645fi
8646
8647 if test -z "$PROG_ARP" ; then
8648 PROG_ARP="undef"
8649 fi
8650
8651
8652
8653 # Extract the first word of "ifconfig", so it can be a program name with args.
8654set dummy ifconfig; ac_word=$2
8655echo "$as_me:$LINENO: checking for $ac_word" >&5
8656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8657if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660 case $PROG_IFCONFIG in
8661 [\\/]* | ?:[\\/]*)
8662 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
8663 ;;
8664 *)
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
8673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676done
8677done
8678
8679 ;;
8680esac
8681fi
8682PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
8683
8684if test -n "$PROG_IFCONFIG"; then
8685 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
8686echo "${ECHO_T}$PROG_IFCONFIG" >&6
8687else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690fi
8691
8692 if test -z "$PROG_IFCONFIG" ; then
8693 PROG_IFCONFIG="undef"
8694 fi
8695
8696
8697
8698 # Extract the first word of "jstat", so it can be a program name with args.
8699set dummy jstat; ac_word=$2
8700echo "$as_me:$LINENO: checking for $ac_word" >&5
8701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8702if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705 case $PROG_JSTAT in
8706 [\\/]* | ?:[\\/]*)
8707 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
8708 ;;
8709 *)
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711for as_dir in $PATH
8712do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
8718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721done
8722done
8723
8724 ;;
8725esac
8726fi
8727PROG_JSTAT=$ac_cv_path_PROG_JSTAT
8728
8729if test -n "$PROG_JSTAT"; then
8730 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
8731echo "${ECHO_T}$PROG_JSTAT" >&6
8732else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735fi
8736
8737 if test -z "$PROG_JSTAT" ; then
8738 PROG_JSTAT="undef"
8739 fi
8740
8741
8742
8743 # Extract the first word of "ps", so it can be a program name with args.
8744set dummy ps; ac_word=$2
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747if test "${ac_cv_path_PROG_PS+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 case $PROG_PS in
8751 [\\/]* | ?:[\\/]*)
8752 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
8753 ;;
8754 *)
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $PATH
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766done
8767done
8768
8769 ;;
8770esac
8771fi
8772PROG_PS=$ac_cv_path_PROG_PS
8773
8774if test -n "$PROG_PS"; then
8775 echo "$as_me:$LINENO: result: $PROG_PS" >&5
8776echo "${ECHO_T}$PROG_PS" >&6
8777else
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
8780fi
8781
8782 if test -z "$PROG_PS" ; then
8783 PROG_PS="undef"
8784 fi
8785
8786
8787
8788 # Extract the first word of "sar", so it can be a program name with args.
8789set dummy sar; ac_word=$2
8790echo "$as_me:$LINENO: checking for $ac_word" >&5
8791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8792if test "${ac_cv_path_PROG_SAR+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794else
8795 case $PROG_SAR in
8796 [\\/]* | ?:[\\/]*)
8797 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
8798 ;;
8799 *)
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
8808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811done
8812done
8813
8814 ;;
8815esac
8816fi
8817PROG_SAR=$ac_cv_path_PROG_SAR
8818
8819if test -n "$PROG_SAR"; then
8820 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
8821echo "${ECHO_T}$PROG_SAR" >&6
8822else
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
8825fi
8826
8827 if test -z "$PROG_SAR" ; then
8828 PROG_SAR="undef"
8829 fi
8830
8831
8832
8833 # Extract the first word of "w", so it can be a program name with args.
8834set dummy w; ac_word=$2
8835echo "$as_me:$LINENO: checking for $ac_word" >&5
8836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8837if test "${ac_cv_path_PROG_W+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839else
8840 case $PROG_W in
8841 [\\/]* | ?:[\\/]*)
8842 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
8843 ;;
8844 *)
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856done
8857done
8858
8859 ;;
8860esac
8861fi
8862PROG_W=$ac_cv_path_PROG_W
8863
8864if test -n "$PROG_W"; then
8865 echo "$as_me:$LINENO: result: $PROG_W" >&5
8866echo "${ECHO_T}$PROG_W" >&6
8867else
8868 echo "$as_me:$LINENO: result: no" >&5
8869echo "${ECHO_T}no" >&6
8870fi
8871
8872 if test -z "$PROG_W" ; then
8873 PROG_W="undef"
8874 fi
8875
8876
8877
8878 # Extract the first word of "who", so it can be a program name with args.
8879set dummy who; ac_word=$2
8880echo "$as_me:$LINENO: checking for $ac_word" >&5
8881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8882if test "${ac_cv_path_PROG_WHO+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885 case $PROG_WHO in
8886 [\\/]* | ?:[\\/]*)
8887 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
8888 ;;
8889 *)
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 break 2
8900 fi
8901done
8902done
8903
8904 ;;
8905esac
8906fi
8907PROG_WHO=$ac_cv_path_PROG_WHO
8908
8909if test -n "$PROG_WHO"; then
8910 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
8911echo "${ECHO_T}$PROG_WHO" >&6
8912else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915fi
8916
8917 if test -z "$PROG_WHO" ; then
8918 PROG_WHO="undef"
8919 fi
8920
8921
8922
8923 # Extract the first word of "last", so it can be a program name with args.
8924set dummy last; ac_word=$2
8925echo "$as_me:$LINENO: checking for $ac_word" >&5
8926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927if test "${ac_cv_path_PROG_LAST+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929else
8930 case $PROG_LAST in
8931 [\\/]* | ?:[\\/]*)
8932 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
8933 ;;
8934 *)
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
8943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946done
8947done
8948
8949 ;;
8950esac
8951fi
8952PROG_LAST=$ac_cv_path_PROG_LAST
8953
8954if test -n "$PROG_LAST"; then
8955 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
8956echo "${ECHO_T}$PROG_LAST" >&6
8957else
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
8960fi
8961
8962 if test -z "$PROG_LAST" ; then
8963 PROG_LAST="undef"
8964 fi
8965
8966
8967
8968 # Extract the first word of "lastlog", so it can be a program name with args.
8969set dummy lastlog; ac_word=$2
8970echo "$as_me:$LINENO: checking for $ac_word" >&5
8971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8972if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975 case $PROG_LASTLOG in
8976 [\\/]* | ?:[\\/]*)
8977 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
8978 ;;
8979 *)
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981for as_dir in $PATH
8982do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
8988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8990 fi
8991done
8992done
8993
8994 ;;
8995esac
8996fi
8997PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
8998
8999if test -n "$PROG_LASTLOG"; then
9000 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9001echo "${ECHO_T}$PROG_LASTLOG" >&6
9002else
9003 echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
9005fi
9006
9007 if test -z "$PROG_LASTLOG" ; then
9008 PROG_LASTLOG="undef"
9009 fi
9010
9011
9012
9013 # Extract the first word of "df", so it can be a program name with args.
9014set dummy df; ac_word=$2
9015echo "$as_me:$LINENO: checking for $ac_word" >&5
9016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017if test "${ac_cv_path_PROG_DF+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 case $PROG_DF in
9021 [\\/]* | ?:[\\/]*)
9022 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9023 ;;
9024 *)
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
9039 ;;
9040esac
9041fi
9042PROG_DF=$ac_cv_path_PROG_DF
9043
9044if test -n "$PROG_DF"; then
9045 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9046echo "${ECHO_T}$PROG_DF" >&6
9047else
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050fi
9051
9052 if test -z "$PROG_DF" ; then
9053 PROG_DF="undef"
9054 fi
9055
9056
9057
9058 # Extract the first word of "vmstat", so it can be a program name with args.
9059set dummy vmstat; ac_word=$2
9060echo "$as_me:$LINENO: checking for $ac_word" >&5
9061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9062if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
9065 case $PROG_VMSTAT in
9066 [\\/]* | ?:[\\/]*)
9067 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9068 ;;
9069 *)
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071for as_dir in $PATH
9072do
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9077 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 break 2
9080 fi
9081done
9082done
9083
9084 ;;
9085esac
9086fi
9087PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9088
9089if test -n "$PROG_VMSTAT"; then
9090 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9091echo "${ECHO_T}$PROG_VMSTAT" >&6
9092else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095fi
9096
9097 if test -z "$PROG_VMSTAT" ; then
9098 PROG_VMSTAT="undef"
9099 fi
9100
9101
9102
9103 # Extract the first word of "uptime", so it can be a program name with args.
9104set dummy uptime; ac_word=$2
9105echo "$as_me:$LINENO: checking for $ac_word" >&5
9106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9107if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109else
9110 case $PROG_UPTIME in
9111 [\\/]* | ?:[\\/]*)
9112 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9113 ;;
9114 *)
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116for as_dir in $PATH
9117do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9125 fi
9126done
9127done
9128
9129 ;;
9130esac
9131fi
9132PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9133
9134if test -n "$PROG_UPTIME"; then
9135 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9136echo "${ECHO_T}$PROG_UPTIME" >&6
9137else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140fi
9141
9142 if test -z "$PROG_UPTIME" ; then
9143 PROG_UPTIME="undef"
9144 fi
9145
9146
9147
9148 # Extract the first word of "ipcs", so it can be a program name with args.
9149set dummy ipcs; ac_word=$2
9150echo "$as_me:$LINENO: checking for $ac_word" >&5
9151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9152if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 case $PROG_IPCS in
9156 [\\/]* | ?:[\\/]*)
9157 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9158 ;;
9159 *)
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9167 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 break 2
9170 fi
9171done
9172done
9173
9174 ;;
9175esac
9176fi
9177PROG_IPCS=$ac_cv_path_PROG_IPCS
9178
9179if test -n "$PROG_IPCS"; then
9180 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9181echo "${ECHO_T}$PROG_IPCS" >&6
9182else
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
9185fi
9186
9187 if test -z "$PROG_IPCS" ; then
9188 PROG_IPCS="undef"
9189 fi
9190
9191
9192
9193 # Extract the first word of "tail", so it can be a program name with args.
9194set dummy tail; ac_word=$2
9195echo "$as_me:$LINENO: checking for $ac_word" >&5
9196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9197if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200 case $PROG_TAIL in
9201 [\\/]* | ?:[\\/]*)
9202 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9203 ;;
9204 *)
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206for as_dir in $PATH
9207do
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9212 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 break 2
9215 fi
9216done
9217done
9218
9219 ;;
9220esac
9221fi
9222PROG_TAIL=$ac_cv_path_PROG_TAIL
9223
9224if test -n "$PROG_TAIL"; then
9225 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9226echo "${ECHO_T}$PROG_TAIL" >&6
9227else
9228 echo "$as_me:$LINENO: result: no" >&5
9229echo "${ECHO_T}no" >&6
9230fi
9231
9232 if test -z "$PROG_TAIL" ; then
9233 PROG_TAIL="undef"
9234 fi
9235
9236
9237# restore PATH
9238PATH=$OPATH
9239
9240# Where does ssh-rand-helper get its randomness from?
9241INSTALL_SSH_PRNG_CMDS=""
9242if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9243 if test ! -z "$PRNGD_PORT" ; then
9244 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9245 elif test ! -z "$PRNGD_SOCKET" ; then
9246 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9247 else
9248 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9249 RAND_HELPER_CMDHASH=yes
9250 INSTALL_SSH_PRNG_CMDS="yes"
9251 fi
9252fi
9253
9254
9255
9256# Cheap hack to ensure NEWS-OS libraries are arranged right.
9257if test ! -z "$SONY" ; then
9258 LIBS="$LIBS -liberty";
9259fi
9260
9261# Checks for data types
9262echo "$as_me:$LINENO: checking for char" >&5
9263echo $ECHO_N "checking for char... $ECHO_C" >&6
9264if test "${ac_cv_type_char+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266else
9267 cat >conftest.$ac_ext <<_ACEOF
9268#line $LINENO "configure"
9269#include "confdefs.h"
9270$ac_includes_default
9271#ifdef F77_DUMMY_MAIN
9272# ifdef __cplusplus
9273 extern "C"
9274# endif
9275 int F77_DUMMY_MAIN() { return 1; }
9276#endif
9277int
9278main ()
9279{
9280if ((char *) 0)
9281 return 0;
9282if (sizeof (char))
9283 return 0;
9284 ;
9285 return 0;
9286}
9287_ACEOF
9288rm -f conftest.$ac_objext
9289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -s conftest.$ac_objext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_type_char=yes
9301else
9302 echo "$as_me: failed program was:" >&5
9303cat conftest.$ac_ext >&5
9304ac_cv_type_char=no
9305fi
9306rm -f conftest.$ac_objext conftest.$ac_ext
9307fi
9308echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9309echo "${ECHO_T}$ac_cv_type_char" >&6
9310
9311echo "$as_me:$LINENO: checking size of char" >&5
9312echo $ECHO_N "checking size of char... $ECHO_C" >&6
9313if test "${ac_cv_sizeof_char+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9315else
9316 if test "$ac_cv_type_char" = yes; then
9317 # The cast to unsigned long works around a bug in the HP C Compiler
9318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9320 # This bug is HP SR number 8606223364.
9321 if test "$cross_compiling" = yes; then
9322 # Depending upon the size, compute the lo and hi bounds.
9323cat >conftest.$ac_ext <<_ACEOF
9324#line $LINENO "configure"
9325#include "confdefs.h"
9326$ac_includes_default
9327#ifdef F77_DUMMY_MAIN
9328# ifdef __cplusplus
9329 extern "C"
9330# endif
9331 int F77_DUMMY_MAIN() { return 1; }
9332#endif
9333int
9334main ()
9335{
9336static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9337test_array @<:@0@:>@ = 0
9338
9339 ;
9340 return 0;
9341}
9342_ACEOF
9343rm -f conftest.$ac_objext
9344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_lo=0 ac_mid=0
9356 while :; do
9357 cat >conftest.$ac_ext <<_ACEOF
9358#line $LINENO "configure"
9359#include "confdefs.h"
9360$ac_includes_default
9361#ifdef F77_DUMMY_MAIN
9362# ifdef __cplusplus
9363 extern "C"
9364# endif
9365 int F77_DUMMY_MAIN() { return 1; }
9366#endif
9367int
9368main ()
9369{
9370static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9371test_array @<:@0@:>@ = 0
9372
9373 ;
9374 return 0;
9375}
9376_ACEOF
9377rm -f conftest.$ac_objext
9378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_hi=$ac_mid; break
9390else
9391 echo "$as_me: failed program was:" >&5
9392cat conftest.$ac_ext >&5
9393ac_lo=`expr $ac_mid + 1`
9394 if test $ac_lo -le $ac_mid; then
9395 ac_lo= ac_hi=
9396 break
9397 fi
9398 ac_mid=`expr 2 '*' $ac_mid + 1`
9399fi
9400rm -f conftest.$ac_objext conftest.$ac_ext
9401 done
9402else
9403 echo "$as_me: failed program was:" >&5
9404cat conftest.$ac_ext >&5
9405cat >conftest.$ac_ext <<_ACEOF
9406#line $LINENO "configure"
9407#include "confdefs.h"
9408$ac_includes_default
9409#ifdef F77_DUMMY_MAIN
9410# ifdef __cplusplus
9411 extern "C"
9412# endif
9413 int F77_DUMMY_MAIN() { return 1; }
9414#endif
9415int
9416main ()
9417{
9418static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9419test_array @<:@0@:>@ = 0
9420
9421 ;
9422 return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext
9426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9427 (eval $ac_compile) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
9431 { ac_try='test -s conftest.$ac_objext'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 (eval $ac_try) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9437 ac_hi=-1 ac_mid=-1
9438 while :; do
9439 cat >conftest.$ac_ext <<_ACEOF
9440#line $LINENO "configure"
9441#include "confdefs.h"
9442$ac_includes_default
9443#ifdef F77_DUMMY_MAIN
9444# ifdef __cplusplus
9445 extern "C"
9446# endif
9447 int F77_DUMMY_MAIN() { return 1; }
9448#endif
9449int
9450main ()
9451{
9452static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9453test_array @<:@0@:>@ = 0
9454
9455 ;
9456 return 0;
9457}
9458_ACEOF
9459rm -f conftest.$ac_objext
9460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461 (eval $ac_compile) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_lo=$ac_mid; break
9472else
9473 echo "$as_me: failed program was:" >&5
9474cat conftest.$ac_ext >&5
9475ac_hi=`expr '(' $ac_mid ')' - 1`
9476 if test $ac_mid -le $ac_hi; then
9477 ac_lo= ac_hi=
9478 break
9479 fi
9480 ac_mid=`expr 2 '*' $ac_mid`
9481fi
9482rm -f conftest.$ac_objext conftest.$ac_ext
9483 done
9484else
9485 echo "$as_me: failed program was:" >&5
9486cat conftest.$ac_ext >&5
9487ac_lo= ac_hi=
9488fi
9489rm -f conftest.$ac_objext conftest.$ac_ext
9490fi
9491rm -f conftest.$ac_objext conftest.$ac_ext
9492# Binary search between lo and hi bounds.
9493while test "x$ac_lo" != "x$ac_hi"; do
9494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9495 cat >conftest.$ac_ext <<_ACEOF
9496#line $LINENO "configure"
9497#include "confdefs.h"
9498$ac_includes_default
9499#ifdef F77_DUMMY_MAIN
9500# ifdef __cplusplus
9501 extern "C"
9502# endif
9503 int F77_DUMMY_MAIN() { return 1; }
9504#endif
9505int
9506main ()
9507{
9508static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9509test_array @<:@0@:>@ = 0
9510
9511 ;
9512 return 0;
9513}
9514_ACEOF
9515rm -f conftest.$ac_objext
9516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 ac_hi=$ac_mid
9528else
9529 echo "$as_me: failed program was:" >&5
9530cat conftest.$ac_ext >&5
9531ac_lo=`expr '(' $ac_mid ')' + 1`
9532fi
9533rm -f conftest.$ac_objext conftest.$ac_ext
9534done
9535case $ac_lo in
9536?*) ac_cv_sizeof_char=$ac_lo;;
9537'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9538echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9539 { (exit 1); exit 1; }; } ;;
9540esac
9541else
9542 if test "$cross_compiling" = yes; then
9543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9544echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9545 { (exit 1); exit 1; }; }
9546else
9547 cat >conftest.$ac_ext <<_ACEOF
9548#line $LINENO "configure"
9549#include "confdefs.h"
9550$ac_includes_default
9551long longval () { return (long) (sizeof (char)); }
9552unsigned long ulongval () { return (long) (sizeof (char)); }
9553@%:@include <stdio.h>
9554@%:@include <stdlib.h>
9555#ifdef F77_DUMMY_MAIN
9556# ifdef __cplusplus
9557 extern "C"
9558# endif
9559 int F77_DUMMY_MAIN() { return 1; }
9560#endif
9561int
9562main ()
9563{
9564
9565 FILE *f = fopen ("conftest.val", "w");
9566 if (! f)
9567 exit (1);
9568 if (((long) (sizeof (char))) < 0)
9569 {
9570 long i = longval ();
9571 if (i != ((long) (sizeof (char))))
9572 exit (1);
9573 fprintf (f, "%ld\n", i);
9574 }
9575 else
9576 {
9577 unsigned long i = ulongval ();
9578 if (i != ((long) (sizeof (char))))
9579 exit (1);
9580 fprintf (f, "%lu\n", i);
9581 }
9582 exit (ferror (f) || fclose (f) != 0);
9583
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588rm -f conftest$ac_exeext
9589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_sizeof_char=`cat conftest.val`
9600else
9601 echo "$as_me: program exited with status $ac_status" >&5
9602echo "$as_me: failed program was:" >&5
9603cat conftest.$ac_ext >&5
9604( exit $ac_status )
9605{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9606echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9607 { (exit 1); exit 1; }; }
9608fi
9609rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9610fi
9611fi
9612rm -f conftest.val
9613else
9614 ac_cv_sizeof_char=0
9615fi
9616fi
9617echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9618echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9619cat >>confdefs.h <<_ACEOF
9620@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
9621_ACEOF
9622
9623
9624echo "$as_me:$LINENO: checking for short int" >&5
9625echo $ECHO_N "checking for short int... $ECHO_C" >&6
9626if test "${ac_cv_type_short_int+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628else
9629 cat >conftest.$ac_ext <<_ACEOF
9630#line $LINENO "configure"
9631#include "confdefs.h"
9632$ac_includes_default
9633#ifdef F77_DUMMY_MAIN
9634# ifdef __cplusplus
9635 extern "C"
9636# endif
9637 int F77_DUMMY_MAIN() { return 1; }
9638#endif
9639int
9640main ()
9641{
9642if ((short int *) 0)
9643 return 0;
9644if (sizeof (short int))
9645 return 0;
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650rm -f conftest.$ac_objext
9651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -s conftest.$ac_objext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_type_short_int=yes
9663else
9664 echo "$as_me: failed program was:" >&5
9665cat conftest.$ac_ext >&5
9666ac_cv_type_short_int=no
9667fi
9668rm -f conftest.$ac_objext conftest.$ac_ext
9669fi
9670echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
9671echo "${ECHO_T}$ac_cv_type_short_int" >&6
9672
9673echo "$as_me:$LINENO: checking size of short int" >&5
9674echo $ECHO_N "checking size of short int... $ECHO_C" >&6
9675if test "${ac_cv_sizeof_short_int+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678 if test "$ac_cv_type_short_int" = yes; then
9679 # The cast to unsigned long works around a bug in the HP C Compiler
9680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9682 # This bug is HP SR number 8606223364.
9683 if test "$cross_compiling" = yes; then
9684 # Depending upon the size, compute the lo and hi bounds.
9685cat >conftest.$ac_ext <<_ACEOF
9686#line $LINENO "configure"
9687#include "confdefs.h"
9688$ac_includes_default
9689#ifdef F77_DUMMY_MAIN
9690# ifdef __cplusplus
9691 extern "C"
9692# endif
9693 int F77_DUMMY_MAIN() { return 1; }
9694#endif
9695int
9696main ()
9697{
9698static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
9699test_array @<:@0@:>@ = 0
9700
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext
9706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707 (eval $ac_compile) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_lo=0 ac_mid=0
9718 while :; do
9719 cat >conftest.$ac_ext <<_ACEOF
9720#line $LINENO "configure"
9721#include "confdefs.h"
9722$ac_includes_default
9723#ifdef F77_DUMMY_MAIN
9724# ifdef __cplusplus
9725 extern "C"
9726# endif
9727 int F77_DUMMY_MAIN() { return 1; }
9728#endif
9729int
9730main ()
9731{
9732static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9733test_array @<:@0@:>@ = 0
9734
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext
9740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_hi=$ac_mid; break
9752else
9753 echo "$as_me: failed program was:" >&5
9754cat conftest.$ac_ext >&5
9755ac_lo=`expr $ac_mid + 1`
9756 if test $ac_lo -le $ac_mid; then
9757 ac_lo= ac_hi=
9758 break
9759 fi
9760 ac_mid=`expr 2 '*' $ac_mid + 1`
9761fi
9762rm -f conftest.$ac_objext conftest.$ac_ext
9763 done
9764else
9765 echo "$as_me: failed program was:" >&5
9766cat conftest.$ac_ext >&5
9767cat >conftest.$ac_ext <<_ACEOF
9768#line $LINENO "configure"
9769#include "confdefs.h"
9770$ac_includes_default
9771#ifdef F77_DUMMY_MAIN
9772# ifdef __cplusplus
9773 extern "C"
9774# endif
9775 int F77_DUMMY_MAIN() { return 1; }
9776#endif
9777int
9778main ()
9779{
9780static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
9781test_array @<:@0@:>@ = 0
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext
9788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_hi=-1 ac_mid=-1
9800 while :; do
9801 cat >conftest.$ac_ext <<_ACEOF
9802#line $LINENO "configure"
9803#include "confdefs.h"
9804$ac_includes_default
9805#ifdef F77_DUMMY_MAIN
9806# ifdef __cplusplus
9807 extern "C"
9808# endif
9809 int F77_DUMMY_MAIN() { return 1; }
9810#endif
9811int
9812main ()
9813{
9814static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
9815test_array @<:@0@:>@ = 0
9816
9817 ;
9818 return 0;
9819}
9820_ACEOF
9821rm -f conftest.$ac_objext
9822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_lo=$ac_mid; break
9834else
9835 echo "$as_me: failed program was:" >&5
9836cat conftest.$ac_ext >&5
9837ac_hi=`expr '(' $ac_mid ')' - 1`
9838 if test $ac_mid -le $ac_hi; then
9839 ac_lo= ac_hi=
9840 break
9841 fi
9842 ac_mid=`expr 2 '*' $ac_mid`
9843fi
9844rm -f conftest.$ac_objext conftest.$ac_ext
9845 done
9846else
9847 echo "$as_me: failed program was:" >&5
9848cat conftest.$ac_ext >&5
9849ac_lo= ac_hi=
9850fi
9851rm -f conftest.$ac_objext conftest.$ac_ext
9852fi
9853rm -f conftest.$ac_objext conftest.$ac_ext
9854# Binary search between lo and hi bounds.
9855while test "x$ac_lo" != "x$ac_hi"; do
9856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9857 cat >conftest.$ac_ext <<_ACEOF
9858#line $LINENO "configure"
9859#include "confdefs.h"
9860$ac_includes_default
9861#ifdef F77_DUMMY_MAIN
9862# ifdef __cplusplus
9863 extern "C"
9864# endif
9865 int F77_DUMMY_MAIN() { return 1; }
9866#endif
9867int
9868main ()
9869{
9870static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9871test_array @<:@0@:>@ = 0
9872
9873 ;
9874 return 0;
9875}
9876_ACEOF
9877rm -f conftest.$ac_objext
9878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9879 (eval $ac_compile) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_hi=$ac_mid
9890else
9891 echo "$as_me: failed program was:" >&5
9892cat conftest.$ac_ext >&5
9893ac_lo=`expr '(' $ac_mid ')' + 1`
9894fi
9895rm -f conftest.$ac_objext conftest.$ac_ext
9896done
9897case $ac_lo in
9898?*) ac_cv_sizeof_short_int=$ac_lo;;
9899'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
9900echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
9901 { (exit 1); exit 1; }; } ;;
9902esac
9903else
9904 if test "$cross_compiling" = yes; then
9905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9906echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9907 { (exit 1); exit 1; }; }
9908else
9909 cat >conftest.$ac_ext <<_ACEOF
9910#line $LINENO "configure"
9911#include "confdefs.h"
9912$ac_includes_default
9913long longval () { return (long) (sizeof (short int)); }
9914unsigned long ulongval () { return (long) (sizeof (short int)); }
9915@%:@include <stdio.h>
9916@%:@include <stdlib.h>
9917#ifdef F77_DUMMY_MAIN
9918# ifdef __cplusplus
9919 extern "C"
9920# endif
9921 int F77_DUMMY_MAIN() { return 1; }
9922#endif
9923int
9924main ()
9925{
9926
9927 FILE *f = fopen ("conftest.val", "w");
9928 if (! f)
9929 exit (1);
9930 if (((long) (sizeof (short int))) < 0)
9931 {
9932 long i = longval ();
9933 if (i != ((long) (sizeof (short int))))
9934 exit (1);
9935 fprintf (f, "%ld\n", i);
9936 }
9937 else
9938 {
9939 unsigned long i = ulongval ();
9940 if (i != ((long) (sizeof (short int))))
9941 exit (1);
9942 fprintf (f, "%lu\n", i);
9943 }
9944 exit (ferror (f) || fclose (f) != 0);
9945
9946 ;
9947 return 0;
9948}
9949_ACEOF
9950rm -f conftest$ac_exeext
9951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_cv_sizeof_short_int=`cat conftest.val`
9962else
9963 echo "$as_me: program exited with status $ac_status" >&5
9964echo "$as_me: failed program was:" >&5
9965cat conftest.$ac_ext >&5
9966( exit $ac_status )
9967{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
9968echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
9969 { (exit 1); exit 1; }; }
9970fi
9971rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9972fi
9973fi
9974rm -f conftest.val
9975else
9976 ac_cv_sizeof_short_int=0
9977fi
9978fi
9979echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
9980echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
9981cat >>confdefs.h <<_ACEOF
9982@%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
9983_ACEOF
9984
9985
9986echo "$as_me:$LINENO: checking for int" >&5
9987echo $ECHO_N "checking for int... $ECHO_C" >&6
9988if test "${ac_cv_type_int+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990else
9991 cat >conftest.$ac_ext <<_ACEOF
9992#line $LINENO "configure"
9993#include "confdefs.h"
9994$ac_includes_default
9995#ifdef F77_DUMMY_MAIN
9996# ifdef __cplusplus
9997 extern "C"
9998# endif
9999 int F77_DUMMY_MAIN() { return 1; }
10000#endif
10001int
10002main ()
10003{
10004if ((int *) 0)
10005 return 0;
10006if (sizeof (int))
10007 return 0;
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext
10013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_cv_type_int=yes
10025else
10026 echo "$as_me: failed program was:" >&5
10027cat conftest.$ac_ext >&5
10028ac_cv_type_int=no
10029fi
10030rm -f conftest.$ac_objext conftest.$ac_ext
10031fi
10032echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10033echo "${ECHO_T}$ac_cv_type_int" >&6
10034
10035echo "$as_me:$LINENO: checking size of int" >&5
10036echo $ECHO_N "checking size of int... $ECHO_C" >&6
10037if test "${ac_cv_sizeof_int+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040 if test "$ac_cv_type_int" = yes; then
10041 # The cast to unsigned long works around a bug in the HP C Compiler
10042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10044 # This bug is HP SR number 8606223364.
10045 if test "$cross_compiling" = yes; then
10046 # Depending upon the size, compute the lo and hi bounds.
10047cat >conftest.$ac_ext <<_ACEOF
10048#line $LINENO "configure"
10049#include "confdefs.h"
10050$ac_includes_default
10051#ifdef F77_DUMMY_MAIN
10052# ifdef __cplusplus
10053 extern "C"
10054# endif
10055 int F77_DUMMY_MAIN() { return 1; }
10056#endif
10057int
10058main ()
10059{
10060static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10061test_array @<:@0@:>@ = 0
10062
10063 ;
10064 return 0;
10065}
10066_ACEOF
10067rm -f conftest.$ac_objext
10068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -s conftest.$ac_objext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_lo=0 ac_mid=0
10080 while :; do
10081 cat >conftest.$ac_ext <<_ACEOF
10082#line $LINENO "configure"
10083#include "confdefs.h"
10084$ac_includes_default
10085#ifdef F77_DUMMY_MAIN
10086# ifdef __cplusplus
10087 extern "C"
10088# endif
10089 int F77_DUMMY_MAIN() { return 1; }
10090#endif
10091int
10092main ()
10093{
10094static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10095test_array @<:@0@:>@ = 0
10096
10097 ;
10098 return 0;
10099}
10100_ACEOF
10101rm -f conftest.$ac_objext
10102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_hi=$ac_mid; break
10114else
10115 echo "$as_me: failed program was:" >&5
10116cat conftest.$ac_ext >&5
10117ac_lo=`expr $ac_mid + 1`
10118 if test $ac_lo -le $ac_mid; then
10119 ac_lo= ac_hi=
10120 break
10121 fi
10122 ac_mid=`expr 2 '*' $ac_mid + 1`
10123fi
10124rm -f conftest.$ac_objext conftest.$ac_ext
10125 done
10126else
10127 echo "$as_me: failed program was:" >&5
10128cat conftest.$ac_ext >&5
10129cat >conftest.$ac_ext <<_ACEOF
10130#line $LINENO "configure"
10131#include "confdefs.h"
10132$ac_includes_default
10133#ifdef F77_DUMMY_MAIN
10134# ifdef __cplusplus
10135 extern "C"
10136# endif
10137 int F77_DUMMY_MAIN() { return 1; }
10138#endif
10139int
10140main ()
10141{
10142static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10143test_array @<:@0@:>@ = 0
10144
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149rm -f conftest.$ac_objext
10150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10151 (eval $ac_compile) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_hi=-1 ac_mid=-1
10162 while :; do
10163 cat >conftest.$ac_ext <<_ACEOF
10164#line $LINENO "configure"
10165#include "confdefs.h"
10166$ac_includes_default
10167#ifdef F77_DUMMY_MAIN
10168# ifdef __cplusplus
10169 extern "C"
10170# endif
10171 int F77_DUMMY_MAIN() { return 1; }
10172#endif
10173int
10174main ()
10175{
10176static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10177test_array @<:@0@:>@ = 0
10178
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext
10184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_lo=$ac_mid; break
10196else
10197 echo "$as_me: failed program was:" >&5
10198cat conftest.$ac_ext >&5
10199ac_hi=`expr '(' $ac_mid ')' - 1`
10200 if test $ac_mid -le $ac_hi; then
10201 ac_lo= ac_hi=
10202 break
10203 fi
10204 ac_mid=`expr 2 '*' $ac_mid`
10205fi
10206rm -f conftest.$ac_objext conftest.$ac_ext
10207 done
10208else
10209 echo "$as_me: failed program was:" >&5
10210cat conftest.$ac_ext >&5
10211ac_lo= ac_hi=
10212fi
10213rm -f conftest.$ac_objext conftest.$ac_ext
10214fi
10215rm -f conftest.$ac_objext conftest.$ac_ext
10216# Binary search between lo and hi bounds.
10217while test "x$ac_lo" != "x$ac_hi"; do
10218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10219 cat >conftest.$ac_ext <<_ACEOF
10220#line $LINENO "configure"
10221#include "confdefs.h"
10222$ac_includes_default
10223#ifdef F77_DUMMY_MAIN
10224# ifdef __cplusplus
10225 extern "C"
10226# endif
10227 int F77_DUMMY_MAIN() { return 1; }
10228#endif
10229int
10230main ()
10231{
10232static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10233test_array @<:@0@:>@ = 0
10234
10235 ;
10236 return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext
10240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_hi=$ac_mid
10252else
10253 echo "$as_me: failed program was:" >&5
10254cat conftest.$ac_ext >&5
10255ac_lo=`expr '(' $ac_mid ')' + 1`
10256fi
10257rm -f conftest.$ac_objext conftest.$ac_ext
10258done
10259case $ac_lo in
10260?*) ac_cv_sizeof_int=$ac_lo;;
10261'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10262echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10263 { (exit 1); exit 1; }; } ;;
10264esac
10265else
10266 if test "$cross_compiling" = yes; then
10267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10268echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10269 { (exit 1); exit 1; }; }
10270else
10271 cat >conftest.$ac_ext <<_ACEOF
10272#line $LINENO "configure"
10273#include "confdefs.h"
10274$ac_includes_default
10275long longval () { return (long) (sizeof (int)); }
10276unsigned long ulongval () { return (long) (sizeof (int)); }
10277@%:@include <stdio.h>
10278@%:@include <stdlib.h>
10279#ifdef F77_DUMMY_MAIN
10280# ifdef __cplusplus
10281 extern "C"
10282# endif
10283 int F77_DUMMY_MAIN() { return 1; }
10284#endif
10285int
10286main ()
10287{
10288
10289 FILE *f = fopen ("conftest.val", "w");
10290 if (! f)
10291 exit (1);
10292 if (((long) (sizeof (int))) < 0)
10293 {
10294 long i = longval ();
10295 if (i != ((long) (sizeof (int))))
10296 exit (1);
10297 fprintf (f, "%ld\n", i);
10298 }
10299 else
10300 {
10301 unsigned long i = ulongval ();
10302 if (i != ((long) (sizeof (int))))
10303 exit (1);
10304 fprintf (f, "%lu\n", i);
10305 }
10306 exit (ferror (f) || fclose (f) != 0);
10307
10308 ;
10309 return 0;
10310}
10311_ACEOF
10312rm -f conftest$ac_exeext
10313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_sizeof_int=`cat conftest.val`
10324else
10325 echo "$as_me: program exited with status $ac_status" >&5
10326echo "$as_me: failed program was:" >&5
10327cat conftest.$ac_ext >&5
10328( exit $ac_status )
10329{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10330echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10331 { (exit 1); exit 1; }; }
10332fi
10333rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10334fi
10335fi
10336rm -f conftest.val
10337else
10338 ac_cv_sizeof_int=0
10339fi
10340fi
10341echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10342echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10343cat >>confdefs.h <<_ACEOF
10344@%:@define SIZEOF_INT $ac_cv_sizeof_int
10345_ACEOF
10346
10347
10348echo "$as_me:$LINENO: checking for long int" >&5
10349echo $ECHO_N "checking for long int... $ECHO_C" >&6
10350if test "${ac_cv_type_long_int+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 cat >conftest.$ac_ext <<_ACEOF
10354#line $LINENO "configure"
10355#include "confdefs.h"
10356$ac_includes_default
10357#ifdef F77_DUMMY_MAIN
10358# ifdef __cplusplus
10359 extern "C"
10360# endif
10361 int F77_DUMMY_MAIN() { return 1; }
10362#endif
10363int
10364main ()
10365{
10366if ((long int *) 0)
10367 return 0;
10368if (sizeof (long int))
10369 return 0;
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext
10375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10376 (eval $ac_compile) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_type_long_int=yes
10387else
10388 echo "$as_me: failed program was:" >&5
10389cat conftest.$ac_ext >&5
10390ac_cv_type_long_int=no
10391fi
10392rm -f conftest.$ac_objext conftest.$ac_ext
10393fi
10394echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10395echo "${ECHO_T}$ac_cv_type_long_int" >&6
10396
10397echo "$as_me:$LINENO: checking size of long int" >&5
10398echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10399if test "${ac_cv_sizeof_long_int+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 if test "$ac_cv_type_long_int" = yes; then
10403 # The cast to unsigned long works around a bug in the HP C Compiler
10404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10406 # This bug is HP SR number 8606223364.
10407 if test "$cross_compiling" = yes; then
10408 # Depending upon the size, compute the lo and hi bounds.
10409cat >conftest.$ac_ext <<_ACEOF
10410#line $LINENO "configure"
10411#include "confdefs.h"
10412$ac_includes_default
10413#ifdef F77_DUMMY_MAIN
10414# ifdef __cplusplus
10415 extern "C"
10416# endif
10417 int F77_DUMMY_MAIN() { return 1; }
10418#endif
10419int
10420main ()
10421{
10422static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10423test_array @<:@0@:>@ = 0
10424
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429rm -f conftest.$ac_objext
10430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_lo=0 ac_mid=0
10442 while :; do
10443 cat >conftest.$ac_ext <<_ACEOF
10444#line $LINENO "configure"
10445#include "confdefs.h"
10446$ac_includes_default
10447#ifdef F77_DUMMY_MAIN
10448# ifdef __cplusplus
10449 extern "C"
10450# endif
10451 int F77_DUMMY_MAIN() { return 1; }
10452#endif
10453int
10454main ()
10455{
10456static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10457test_array @<:@0@:>@ = 0
10458
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463rm -f conftest.$ac_objext
10464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -s conftest.$ac_objext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 ac_hi=$ac_mid; break
10476else
10477 echo "$as_me: failed program was:" >&5
10478cat conftest.$ac_ext >&5
10479ac_lo=`expr $ac_mid + 1`
10480 if test $ac_lo -le $ac_mid; then
10481 ac_lo= ac_hi=
10482 break
10483 fi
10484 ac_mid=`expr 2 '*' $ac_mid + 1`
10485fi
10486rm -f conftest.$ac_objext conftest.$ac_ext
10487 done
10488else
10489 echo "$as_me: failed program was:" >&5
10490cat conftest.$ac_ext >&5
10491cat >conftest.$ac_ext <<_ACEOF
10492#line $LINENO "configure"
10493#include "confdefs.h"
10494$ac_includes_default
10495#ifdef F77_DUMMY_MAIN
10496# ifdef __cplusplus
10497 extern "C"
10498# endif
10499 int F77_DUMMY_MAIN() { return 1; }
10500#endif
10501int
10502main ()
10503{
10504static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
10505test_array @<:@0@:>@ = 0
10506
10507 ;
10508 return 0;
10509}
10510_ACEOF
10511rm -f conftest.$ac_objext
10512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513 (eval $ac_compile) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -s conftest.$ac_objext'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10523 ac_hi=-1 ac_mid=-1
10524 while :; do
10525 cat >conftest.$ac_ext <<_ACEOF
10526#line $LINENO "configure"
10527#include "confdefs.h"
10528$ac_includes_default
10529#ifdef F77_DUMMY_MAIN
10530# ifdef __cplusplus
10531 extern "C"
10532# endif
10533 int F77_DUMMY_MAIN() { return 1; }
10534#endif
10535int
10536main ()
10537{
10538static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
10539test_array @<:@0@:>@ = 0
10540
10541 ;
10542 return 0;
10543}
10544_ACEOF
10545rm -f conftest.$ac_objext
10546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -s conftest.$ac_objext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_lo=$ac_mid; break
10558else
10559 echo "$as_me: failed program was:" >&5
10560cat conftest.$ac_ext >&5
10561ac_hi=`expr '(' $ac_mid ')' - 1`
10562 if test $ac_mid -le $ac_hi; then
10563 ac_lo= ac_hi=
10564 break
10565 fi
10566 ac_mid=`expr 2 '*' $ac_mid`
10567fi
10568rm -f conftest.$ac_objext conftest.$ac_ext
10569 done
10570else
10571 echo "$as_me: failed program was:" >&5
10572cat conftest.$ac_ext >&5
10573ac_lo= ac_hi=
10574fi
10575rm -f conftest.$ac_objext conftest.$ac_ext
10576fi
10577rm -f conftest.$ac_objext conftest.$ac_ext
10578# Binary search between lo and hi bounds.
10579while test "x$ac_lo" != "x$ac_hi"; do
10580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10581 cat >conftest.$ac_ext <<_ACEOF
10582#line $LINENO "configure"
10583#include "confdefs.h"
10584$ac_includes_default
10585#ifdef F77_DUMMY_MAIN
10586# ifdef __cplusplus
10587 extern "C"
10588# endif
10589 int F77_DUMMY_MAIN() { return 1; }
10590#endif
10591int
10592main ()
10593{
10594static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10595test_array @<:@0@:>@ = 0
10596
10597 ;
10598 return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext
10602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603 (eval $ac_compile) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 ac_hi=$ac_mid
10614else
10615 echo "$as_me: failed program was:" >&5
10616cat conftest.$ac_ext >&5
10617ac_lo=`expr '(' $ac_mid ')' + 1`
10618fi
10619rm -f conftest.$ac_objext conftest.$ac_ext
10620done
10621case $ac_lo in
10622?*) ac_cv_sizeof_long_int=$ac_lo;;
10623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10624echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10625 { (exit 1); exit 1; }; } ;;
10626esac
10627else
10628 if test "$cross_compiling" = yes; then
10629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10630echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10631 { (exit 1); exit 1; }; }
10632else
10633 cat >conftest.$ac_ext <<_ACEOF
10634#line $LINENO "configure"
10635#include "confdefs.h"
10636$ac_includes_default
10637long longval () { return (long) (sizeof (long int)); }
10638unsigned long ulongval () { return (long) (sizeof (long int)); }
10639@%:@include <stdio.h>
10640@%:@include <stdlib.h>
10641#ifdef F77_DUMMY_MAIN
10642# ifdef __cplusplus
10643 extern "C"
10644# endif
10645 int F77_DUMMY_MAIN() { return 1; }
10646#endif
10647int
10648main ()
10649{
10650
10651 FILE *f = fopen ("conftest.val", "w");
10652 if (! f)
10653 exit (1);
10654 if (((long) (sizeof (long int))) < 0)
10655 {
10656 long i = longval ();
10657 if (i != ((long) (sizeof (long int))))
10658 exit (1);
10659 fprintf (f, "%ld\n", i);
10660 }
10661 else
10662 {
10663 unsigned long i = ulongval ();
10664 if (i != ((long) (sizeof (long int))))
10665 exit (1);
10666 fprintf (f, "%lu\n", i);
10667 }
10668 exit (ferror (f) || fclose (f) != 0);
10669
10670 ;
10671 return 0;
10672}
10673_ACEOF
10674rm -f conftest$ac_exeext
10675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_sizeof_long_int=`cat conftest.val`
10686else
10687 echo "$as_me: program exited with status $ac_status" >&5
10688echo "$as_me: failed program was:" >&5
10689cat conftest.$ac_ext >&5
10690( exit $ac_status )
10691{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10692echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10693 { (exit 1); exit 1; }; }
10694fi
10695rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10696fi
10697fi
10698rm -f conftest.val
10699else
10700 ac_cv_sizeof_long_int=0
10701fi
10702fi
10703echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
10704echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
10705cat >>confdefs.h <<_ACEOF
10706@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
10707_ACEOF
10708
10709
10710echo "$as_me:$LINENO: checking for long long int" >&5
10711echo $ECHO_N "checking for long long int... $ECHO_C" >&6
10712if test "${ac_cv_type_long_long_int+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 cat >conftest.$ac_ext <<_ACEOF
10716#line $LINENO "configure"
10717#include "confdefs.h"
10718$ac_includes_default
10719#ifdef F77_DUMMY_MAIN
10720# ifdef __cplusplus
10721 extern "C"
10722# endif
10723 int F77_DUMMY_MAIN() { return 1; }
10724#endif
10725int
10726main ()
10727{
10728if ((long long int *) 0)
10729 return 0;
10730if (sizeof (long long int))
10731 return 0;
10732 ;
10733 return 0;
10734}
10735_ACEOF
10736rm -f conftest.$ac_objext
10737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_type_long_long_int=yes
10749else
10750 echo "$as_me: failed program was:" >&5
10751cat conftest.$ac_ext >&5
10752ac_cv_type_long_long_int=no
10753fi
10754rm -f conftest.$ac_objext conftest.$ac_ext
10755fi
10756echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
10757echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
10758
10759echo "$as_me:$LINENO: checking size of long long int" >&5
10760echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
10761if test "${ac_cv_sizeof_long_long_int+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764 if test "$ac_cv_type_long_long_int" = yes; then
10765 # The cast to unsigned long works around a bug in the HP C Compiler
10766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10768 # This bug is HP SR number 8606223364.
10769 if test "$cross_compiling" = yes; then
10770 # Depending upon the size, compute the lo and hi bounds.
10771cat >conftest.$ac_ext <<_ACEOF
10772#line $LINENO "configure"
10773#include "confdefs.h"
10774$ac_includes_default
10775#ifdef F77_DUMMY_MAIN
10776# ifdef __cplusplus
10777 extern "C"
10778# endif
10779 int F77_DUMMY_MAIN() { return 1; }
10780#endif
10781int
10782main ()
10783{
10784static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
10785test_array @<:@0@:>@ = 0
10786
10787 ;
10788 return 0;
10789}
10790_ACEOF
10791rm -f conftest.$ac_objext
10792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10793 (eval $ac_compile) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_lo=0 ac_mid=0
10804 while :; do
10805 cat >conftest.$ac_ext <<_ACEOF
10806#line $LINENO "configure"
10807#include "confdefs.h"
10808$ac_includes_default
10809#ifdef F77_DUMMY_MAIN
10810# ifdef __cplusplus
10811 extern "C"
10812# endif
10813 int F77_DUMMY_MAIN() { return 1; }
10814#endif
10815int
10816main ()
10817{
10818static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10819test_array @<:@0@:>@ = 0
10820
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext
10826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -s conftest.$ac_objext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_hi=$ac_mid; break
10838else
10839 echo "$as_me: failed program was:" >&5
10840cat conftest.$ac_ext >&5
10841ac_lo=`expr $ac_mid + 1`
10842 if test $ac_lo -le $ac_mid; then
10843 ac_lo= ac_hi=
10844 break
10845 fi
10846 ac_mid=`expr 2 '*' $ac_mid + 1`
10847fi
10848rm -f conftest.$ac_objext conftest.$ac_ext
10849 done
10850else
10851 echo "$as_me: failed program was:" >&5
10852cat conftest.$ac_ext >&5
10853cat >conftest.$ac_ext <<_ACEOF
10854#line $LINENO "configure"
10855#include "confdefs.h"
10856$ac_includes_default
10857#ifdef F77_DUMMY_MAIN
10858# ifdef __cplusplus
10859 extern "C"
10860# endif
10861 int F77_DUMMY_MAIN() { return 1; }
10862#endif
10863int
10864main ()
10865{
10866static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
10867test_array @<:@0@:>@ = 0
10868
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext
10874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10885 ac_hi=-1 ac_mid=-1
10886 while :; do
10887 cat >conftest.$ac_ext <<_ACEOF
10888#line $LINENO "configure"
10889#include "confdefs.h"
10890$ac_includes_default
10891#ifdef F77_DUMMY_MAIN
10892# ifdef __cplusplus
10893 extern "C"
10894# endif
10895 int F77_DUMMY_MAIN() { return 1; }
10896#endif
10897int
10898main ()
10899{
10900static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
10901test_array @<:@0@:>@ = 0
10902
10903 ;
10904 return 0;
10905}
10906_ACEOF
10907rm -f conftest.$ac_objext
10908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_lo=$ac_mid; break
10920else
10921 echo "$as_me: failed program was:" >&5
10922cat conftest.$ac_ext >&5
10923ac_hi=`expr '(' $ac_mid ')' - 1`
10924 if test $ac_mid -le $ac_hi; then
10925 ac_lo= ac_hi=
10926 break
10927 fi
10928 ac_mid=`expr 2 '*' $ac_mid`
10929fi
10930rm -f conftest.$ac_objext conftest.$ac_ext
10931 done
10932else
10933 echo "$as_me: failed program was:" >&5
10934cat conftest.$ac_ext >&5
10935ac_lo= ac_hi=
10936fi
10937rm -f conftest.$ac_objext conftest.$ac_ext
10938fi
10939rm -f conftest.$ac_objext conftest.$ac_ext
10940# Binary search between lo and hi bounds.
10941while test "x$ac_lo" != "x$ac_hi"; do
10942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10943 cat >conftest.$ac_ext <<_ACEOF
10944#line $LINENO "configure"
10945#include "confdefs.h"
10946$ac_includes_default
10947#ifdef F77_DUMMY_MAIN
10948# ifdef __cplusplus
10949 extern "C"
10950# endif
10951 int F77_DUMMY_MAIN() { return 1; }
10952#endif
10953int
10954main ()
10955{
10956static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10957test_array @<:@0@:>@ = 0
10958
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext
10964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_hi=$ac_mid
10976else
10977 echo "$as_me: failed program was:" >&5
10978cat conftest.$ac_ext >&5
10979ac_lo=`expr '(' $ac_mid ')' + 1`
10980fi
10981rm -f conftest.$ac_objext conftest.$ac_ext
10982done
10983case $ac_lo in
10984?*) ac_cv_sizeof_long_long_int=$ac_lo;;
10985'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
10986echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
10987 { (exit 1); exit 1; }; } ;;
10988esac
10989else
10990 if test "$cross_compiling" = yes; then
10991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10992echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10993 { (exit 1); exit 1; }; }
10994else
10995 cat >conftest.$ac_ext <<_ACEOF
10996#line $LINENO "configure"
10997#include "confdefs.h"
10998$ac_includes_default
10999long longval () { return (long) (sizeof (long long int)); }
11000unsigned long ulongval () { return (long) (sizeof (long long int)); }
11001@%:@include <stdio.h>
11002@%:@include <stdlib.h>
11003#ifdef F77_DUMMY_MAIN
11004# ifdef __cplusplus
11005 extern "C"
11006# endif
11007 int F77_DUMMY_MAIN() { return 1; }
11008#endif
11009int
11010main ()
11011{
11012
11013 FILE *f = fopen ("conftest.val", "w");
11014 if (! f)
11015 exit (1);
11016 if (((long) (sizeof (long long int))) < 0)
11017 {
11018 long i = longval ();
11019 if (i != ((long) (sizeof (long long int))))
11020 exit (1);
11021 fprintf (f, "%ld\n", i);
11022 }
11023 else
11024 {
11025 unsigned long i = ulongval ();
11026 if (i != ((long) (sizeof (long long int))))
11027 exit (1);
11028 fprintf (f, "%lu\n", i);
11029 }
11030 exit (ferror (f) || fclose (f) != 0);
11031
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest$ac_exeext
11037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_sizeof_long_long_int=`cat conftest.val`
11048else
11049 echo "$as_me: program exited with status $ac_status" >&5
11050echo "$as_me: failed program was:" >&5
11051cat conftest.$ac_ext >&5
11052( exit $ac_status )
11053{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11054echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11055 { (exit 1); exit 1; }; }
11056fi
11057rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11058fi
11059fi
11060rm -f conftest.val
11061else
11062 ac_cv_sizeof_long_long_int=0
11063fi
11064fi
11065echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11066echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11067cat >>confdefs.h <<_ACEOF
11068@%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11069_ACEOF
11070
11071
11072
11073# Sanity check long long for some platforms (AIX)
11074if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11075 ac_cv_sizeof_long_long_int=0
11076fi
11077
11078# More checks for data types
11079echo "$as_me:$LINENO: checking for u_int type" >&5
11080echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11081if test "${ac_cv_have_u_int+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084
11085 cat >conftest.$ac_ext <<_ACEOF
11086#line $LINENO "configure"
11087#include "confdefs.h"
11088 #include <sys/types.h>
11089#ifdef F77_DUMMY_MAIN
11090# ifdef __cplusplus
11091 extern "C"
11092# endif
11093 int F77_DUMMY_MAIN() { return 1; }
11094#endif
11095int
11096main ()
11097{
11098 u_int a; a = 1;
11099 ;
11100 return 0;
11101}
11102_ACEOF
11103rm -f conftest.$ac_objext
11104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11105 (eval $ac_compile) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_have_u_int="yes"
11116else
11117 echo "$as_me: failed program was:" >&5
11118cat conftest.$ac_ext >&5
11119 ac_cv_have_u_int="no"
11120
11121fi
11122rm -f conftest.$ac_objext conftest.$ac_ext
11123
11124fi
11125echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11126echo "${ECHO_T}$ac_cv_have_u_int" >&6
11127if test "x$ac_cv_have_u_int" = "xyes" ; then
11128 cat >>confdefs.h <<\_ACEOF
11129@%:@define HAVE_U_INT 1
11130_ACEOF
11131
11132 have_u_int=1
11133fi
11134
11135echo "$as_me:$LINENO: checking for intXX_t types" >&5
11136echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11137if test "${ac_cv_have_intxx_t+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140
11141 cat >conftest.$ac_ext <<_ACEOF
11142#line $LINENO "configure"
11143#include "confdefs.h"
11144 #include <sys/types.h>
11145#ifdef F77_DUMMY_MAIN
11146# ifdef __cplusplus
11147 extern "C"
11148# endif
11149 int F77_DUMMY_MAIN() { return 1; }
11150#endif
11151int
11152main ()
11153{
11154 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11155 ;
11156 return 0;
11157}
11158_ACEOF
11159rm -f conftest.$ac_objext
11160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11161 (eval $ac_compile) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_have_intxx_t="yes"
11172else
11173 echo "$as_me: failed program was:" >&5
11174cat conftest.$ac_ext >&5
11175 ac_cv_have_intxx_t="no"
11176
11177fi
11178rm -f conftest.$ac_objext conftest.$ac_ext
11179
11180fi
11181echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11182echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11183if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11184 cat >>confdefs.h <<\_ACEOF
11185@%:@define HAVE_INTXX_T 1
11186_ACEOF
11187
11188 have_intxx_t=1
11189fi
11190
11191if (test -z "$have_intxx_t" && \
11192 test "x$ac_cv_header_stdint_h" = "xyes")
11193then
11194 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11195echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197#line $LINENO "configure"
11198#include "confdefs.h"
11199 #include <stdint.h>
11200#ifdef F77_DUMMY_MAIN
11201# ifdef __cplusplus
11202 extern "C"
11203# endif
11204 int F77_DUMMY_MAIN() { return 1; }
11205#endif
11206int
11207main ()
11208{
11209 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11210 ;
11211 return 0;
11212}
11213_ACEOF
11214rm -f conftest.$ac_objext
11215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11216 (eval $ac_compile) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226
11227 cat >>confdefs.h <<\_ACEOF
11228@%:@define HAVE_INTXX_T 1
11229_ACEOF
11230
11231 echo "$as_me:$LINENO: result: yes" >&5
11232echo "${ECHO_T}yes" >&6
11233
11234else
11235 echo "$as_me: failed program was:" >&5
11236cat conftest.$ac_ext >&5
11237 echo "$as_me:$LINENO: result: no" >&5
11238echo "${ECHO_T}no" >&6
11239
11240fi
11241rm -f conftest.$ac_objext conftest.$ac_ext
11242fi
11243
11244echo "$as_me:$LINENO: checking for int64_t type" >&5
11245echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11246if test "${ac_cv_have_int64_t+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248else
11249
11250 cat >conftest.$ac_ext <<_ACEOF
11251#line $LINENO "configure"
11252#include "confdefs.h"
11253 #include <sys/types.h>
11254#ifdef F77_DUMMY_MAIN
11255# ifdef __cplusplus
11256 extern "C"
11257# endif
11258 int F77_DUMMY_MAIN() { return 1; }
11259#endif
11260int
11261main ()
11262{
11263 int64_t a; a = 1;
11264 ;
11265 return 0;
11266}
11267_ACEOF
11268rm -f conftest.$ac_objext
11269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_have_int64_t="yes"
11281else
11282 echo "$as_me: failed program was:" >&5
11283cat conftest.$ac_ext >&5
11284 ac_cv_have_int64_t="no"
11285
11286fi
11287rm -f conftest.$ac_objext conftest.$ac_ext
11288
11289fi
11290echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11291echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11292if test "x$ac_cv_have_int64_t" = "xyes" ; then
11293 cat >>confdefs.h <<\_ACEOF
11294@%:@define HAVE_INT64_T 1
11295_ACEOF
11296
11297 have_int64_t=1
11298fi
11299
11300if test -z "$have_int64_t" ; then
11301 echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5
11302echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6
11303 cat >conftest.$ac_ext <<_ACEOF
11304#line $LINENO "configure"
11305#include "confdefs.h"
11306 #include <sys/socket.h>
11307#ifdef F77_DUMMY_MAIN
11308# ifdef __cplusplus
11309 extern "C"
11310# endif
11311 int F77_DUMMY_MAIN() { return 1; }
11312#endif
11313int
11314main ()
11315{
11316 int64_t a; a = 1
11317 ;
11318 return 0;
11319}
11320_ACEOF
11321rm -f conftest.$ac_objext
11322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323 (eval $ac_compile) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333
11334 cat >>confdefs.h <<\_ACEOF
11335@%:@define HAVE_INT64_T 1
11336_ACEOF
11337
11338 echo "$as_me:$LINENO: result: yes" >&5
11339echo "${ECHO_T}yes" >&6
11340
11341else
11342 echo "$as_me: failed program was:" >&5
11343cat conftest.$ac_ext >&5
11344 echo "$as_me:$LINENO: result: no" >&5
11345echo "${ECHO_T}no" >&6
11346
11347fi
11348rm -f conftest.$ac_objext conftest.$ac_ext
11349fi
11350
11351if test -z "$have_int64_t" ; then
11352 echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5
11353echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355#line $LINENO "configure"
11356#include "confdefs.h"
11357 #include <sys/bitypes.h>
11358#ifdef F77_DUMMY_MAIN
11359# ifdef __cplusplus
11360 extern "C"
11361# endif
11362 int F77_DUMMY_MAIN() { return 1; }
11363#endif
11364int
11365main ()
11366{
11367 int64_t a; a = 1
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext
11373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384
11385 cat >>confdefs.h <<\_ACEOF
11386@%:@define HAVE_INT64_T 1
11387_ACEOF
11388
11389 echo "$as_me:$LINENO: result: yes" >&5
11390echo "${ECHO_T}yes" >&6
11391
11392else
11393 echo "$as_me: failed program was:" >&5
11394cat conftest.$ac_ext >&5
11395 echo "$as_me:$LINENO: result: no" >&5
11396echo "${ECHO_T}no" >&6
11397
11398fi
11399rm -f conftest.$ac_objext conftest.$ac_ext
11400fi
11401
11402echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11403echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11404if test "${ac_cv_have_u_intxx_t+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407
11408 cat >conftest.$ac_ext <<_ACEOF
11409#line $LINENO "configure"
11410#include "confdefs.h"
11411 #include <sys/types.h>
11412#ifdef F77_DUMMY_MAIN
11413# ifdef __cplusplus
11414 extern "C"
11415# endif
11416 int F77_DUMMY_MAIN() { return 1; }
11417#endif
11418int
11419main ()
11420{
11421 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11422 ;
11423 return 0;
11424}
11425_ACEOF
11426rm -f conftest.$ac_objext
11427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -s conftest.$ac_objext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 ac_cv_have_u_intxx_t="yes"
11439else
11440 echo "$as_me: failed program was:" >&5
11441cat conftest.$ac_ext >&5
11442 ac_cv_have_u_intxx_t="no"
11443
11444fi
11445rm -f conftest.$ac_objext conftest.$ac_ext
11446
11447fi
11448echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11449echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11450if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11451 cat >>confdefs.h <<\_ACEOF
11452@%:@define HAVE_U_INTXX_T 1
11453_ACEOF
11454
11455 have_u_intxx_t=1
11456fi
11457
11458if test -z "$have_u_intxx_t" ; then
11459 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11460echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462#line $LINENO "configure"
11463#include "confdefs.h"
11464 #include <sys/socket.h>
11465#ifdef F77_DUMMY_MAIN
11466# ifdef __cplusplus
11467 extern "C"
11468# endif
11469 int F77_DUMMY_MAIN() { return 1; }
11470#endif
11471int
11472main ()
11473{
11474 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11475 ;
11476 return 0;
11477}
11478_ACEOF
11479rm -f conftest.$ac_objext
11480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491
11492 cat >>confdefs.h <<\_ACEOF
11493@%:@define HAVE_U_INTXX_T 1
11494_ACEOF
11495
11496 echo "$as_me:$LINENO: result: yes" >&5
11497echo "${ECHO_T}yes" >&6
11498
11499else
11500 echo "$as_me: failed program was:" >&5
11501cat conftest.$ac_ext >&5
11502 echo "$as_me:$LINENO: result: no" >&5
11503echo "${ECHO_T}no" >&6
11504
11505fi
11506rm -f conftest.$ac_objext conftest.$ac_ext
11507fi
11508
11509echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11510echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11511if test "${ac_cv_have_u_int64_t+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514
11515 cat >conftest.$ac_ext <<_ACEOF
11516#line $LINENO "configure"
11517#include "confdefs.h"
11518 #include <sys/types.h>
11519#ifdef F77_DUMMY_MAIN
11520# ifdef __cplusplus
11521 extern "C"
11522# endif
11523 int F77_DUMMY_MAIN() { return 1; }
11524#endif
11525int
11526main ()
11527{
11528 u_int64_t a; a = 1;
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext
11534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_cv_have_u_int64_t="yes"
11546else
11547 echo "$as_me: failed program was:" >&5
11548cat conftest.$ac_ext >&5
11549 ac_cv_have_u_int64_t="no"
11550
11551fi
11552rm -f conftest.$ac_objext conftest.$ac_ext
11553
11554fi
11555echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11556echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11557if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11558 cat >>confdefs.h <<\_ACEOF
11559@%:@define HAVE_U_INT64_T 1
11560_ACEOF
11561
11562 have_u_int64_t=1
11563fi
11564
11565if test -z "$have_u_int64_t" ; then
11566 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11567echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11569#line $LINENO "configure"
11570#include "confdefs.h"
11571 #include <sys/bitypes.h>
11572#ifdef F77_DUMMY_MAIN
11573# ifdef __cplusplus
11574 extern "C"
11575# endif
11576 int F77_DUMMY_MAIN() { return 1; }
11577#endif
11578int
11579main ()
11580{
11581 u_int64_t a; a = 1
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586rm -f conftest.$ac_objext
11587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598
11599 cat >>confdefs.h <<\_ACEOF
11600@%:@define HAVE_U_INT64_T 1
11601_ACEOF
11602
11603 echo "$as_me:$LINENO: result: yes" >&5
11604echo "${ECHO_T}yes" >&6
11605
11606else
11607 echo "$as_me: failed program was:" >&5
11608cat conftest.$ac_ext >&5
11609 echo "$as_me:$LINENO: result: no" >&5
11610echo "${ECHO_T}no" >&6
11611
11612fi
11613rm -f conftest.$ac_objext conftest.$ac_ext
11614fi
11615
11616if test -z "$have_u_intxx_t" ; then
11617 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
11618echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
11619if test "${ac_cv_have_uintxx_t+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622
11623 cat >conftest.$ac_ext <<_ACEOF
11624#line $LINENO "configure"
11625#include "confdefs.h"
11626
11627#include <sys/types.h>
11628
11629#ifdef F77_DUMMY_MAIN
11630# ifdef __cplusplus
11631 extern "C"
11632# endif
11633 int F77_DUMMY_MAIN() { return 1; }
11634#endif
11635int
11636main ()
11637{
11638 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11639 ;
11640 return 0;
11641}
11642_ACEOF
11643rm -f conftest.$ac_objext
11644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645 (eval $ac_compile) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -s conftest.$ac_objext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 ac_cv_have_uintxx_t="yes"
11656else
11657 echo "$as_me: failed program was:" >&5
11658cat conftest.$ac_ext >&5
11659 ac_cv_have_uintxx_t="no"
11660
11661fi
11662rm -f conftest.$ac_objext conftest.$ac_ext
11663
11664fi
11665echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
11666echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
11667 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11668 cat >>confdefs.h <<\_ACEOF
11669@%:@define HAVE_UINTXX_T 1
11670_ACEOF
11671
11672 fi
11673fi
11674
11675if test -z "$have_uintxx_t" ; then
11676 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
11677echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11679#line $LINENO "configure"
11680#include "confdefs.h"
11681 #include <stdint.h>
11682#ifdef F77_DUMMY_MAIN
11683# ifdef __cplusplus
11684 extern "C"
11685# endif
11686 int F77_DUMMY_MAIN() { return 1; }
11687#endif
11688int
11689main ()
11690{
11691 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708
11709 cat >>confdefs.h <<\_ACEOF
11710@%:@define HAVE_UINTXX_T 1
11711_ACEOF
11712
11713 echo "$as_me:$LINENO: result: yes" >&5
11714echo "${ECHO_T}yes" >&6
11715
11716else
11717 echo "$as_me: failed program was:" >&5
11718cat conftest.$ac_ext >&5
11719 echo "$as_me:$LINENO: result: no" >&5
11720echo "${ECHO_T}no" >&6
11721
11722fi
11723rm -f conftest.$ac_objext conftest.$ac_ext
11724fi
11725
11726if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11727 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11728then
11729 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11730echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
11731 cat >conftest.$ac_ext <<_ACEOF
11732#line $LINENO "configure"
11733#include "confdefs.h"
11734
11735#include <sys/bitypes.h>
11736
11737#ifdef F77_DUMMY_MAIN
11738# ifdef __cplusplus
11739 extern "C"
11740# endif
11741 int F77_DUMMY_MAIN() { return 1; }
11742#endif
11743int
11744main ()
11745{
11746
11747 int8_t a; int16_t b; int32_t c;
11748 u_int8_t e; u_int16_t f; u_int32_t g;
11749 a = b = c = e = f = g = 1;
11750
11751 ;
11752 return 0;
11753}
11754_ACEOF
11755rm -f conftest.$ac_objext
11756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757 (eval $ac_compile) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767
11768 cat >>confdefs.h <<\_ACEOF
11769@%:@define HAVE_U_INTXX_T 1
11770_ACEOF
11771
11772 cat >>confdefs.h <<\_ACEOF
11773@%:@define HAVE_INTXX_T 1
11774_ACEOF
11775
11776 echo "$as_me:$LINENO: result: yes" >&5
11777echo "${ECHO_T}yes" >&6
11778
11779else
11780 echo "$as_me: failed program was:" >&5
11781cat conftest.$ac_ext >&5
11782echo "$as_me:$LINENO: result: no" >&5
11783echo "${ECHO_T}no" >&6
11784
11785fi
11786rm -f conftest.$ac_objext conftest.$ac_ext
11787fi
11788
11789
11790echo "$as_me:$LINENO: checking for u_char" >&5
11791echo $ECHO_N "checking for u_char... $ECHO_C" >&6
11792if test "${ac_cv_have_u_char+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794else
11795
11796 cat >conftest.$ac_ext <<_ACEOF
11797#line $LINENO "configure"
11798#include "confdefs.h"
11799
11800#include <sys/types.h>
11801
11802#ifdef F77_DUMMY_MAIN
11803# ifdef __cplusplus
11804 extern "C"
11805# endif
11806 int F77_DUMMY_MAIN() { return 1; }
11807#endif
11808int
11809main ()
11810{
11811 u_char foo; foo = 125;
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_have_u_char="yes"
11829else
11830 echo "$as_me: failed program was:" >&5
11831cat conftest.$ac_ext >&5
11832 ac_cv_have_u_char="no"
11833
11834fi
11835rm -f conftest.$ac_objext conftest.$ac_ext
11836
11837fi
11838echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
11839echo "${ECHO_T}$ac_cv_have_u_char" >&6
11840if test "x$ac_cv_have_u_char" = "xyes" ; then
11841 cat >>confdefs.h <<\_ACEOF
11842@%:@define HAVE_U_CHAR 1
11843_ACEOF
11844
11845fi
11846
11847
11848 echo "$as_me:$LINENO: checking for socklen_t" >&5
11849echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11850if test "${ac_cv_type_socklen_t+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853 cat >conftest.$ac_ext <<_ACEOF
11854#line $LINENO "configure"
11855#include "confdefs.h"
11856#include <sys/types.h>
11857#include <sys/socket.h>
11858
11859#ifdef F77_DUMMY_MAIN
11860# ifdef __cplusplus
11861 extern "C"
11862# endif
11863 int F77_DUMMY_MAIN() { return 1; }
11864#endif
11865int
11866main ()
11867{
11868if ((socklen_t *) 0)
11869 return 0;
11870if (sizeof (socklen_t))
11871 return 0;
11872 ;
11873 return 0;
11874}
11875_ACEOF
11876rm -f conftest.$ac_objext
11877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11878 (eval $ac_compile) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_type_socklen_t=yes
11889else
11890 echo "$as_me: failed program was:" >&5
11891cat conftest.$ac_ext >&5
11892ac_cv_type_socklen_t=no
11893fi
11894rm -f conftest.$ac_objext conftest.$ac_ext
11895fi
11896echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
11897echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
11898if test $ac_cv_type_socklen_t = yes; then
11899 :
11900else
11901
11902 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
11903echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
11904 if test "${curl_cv_socklen_t_equiv+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907
11908 # Systems have either "struct sockaddr *" or
11909 # "void *" as the second argument to getpeername
11910 curl_cv_socklen_t_equiv=
11911 for arg2 in "struct sockaddr" void; do
11912 for t in int size_t unsigned long "unsigned long"; do
11913 cat >conftest.$ac_ext <<_ACEOF
11914#line $LINENO "configure"
11915#include "confdefs.h"
11916
11917 #include <sys/types.h>
11918 #include <sys/socket.h>
11919
11920 int getpeername (int, $arg2 *, $t *);
11921
11922#ifdef F77_DUMMY_MAIN
11923# ifdef __cplusplus
11924 extern "C"
11925# endif
11926 int F77_DUMMY_MAIN() { return 1; }
11927#endif
11928int
11929main ()
11930{
11931
11932 $t len;
11933 getpeername(0,0,&len);
11934
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -s conftest.$ac_objext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951
11952 curl_cv_socklen_t_equiv="$t"
11953 break
11954
11955else
11956 echo "$as_me: failed program was:" >&5
11957cat conftest.$ac_ext >&5
11958fi
11959rm -f conftest.$ac_objext conftest.$ac_ext
11960 done
11961 done
11962
11963 if test "x$curl_cv_socklen_t_equiv" = x; then
11964 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
11965echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
11966 { (exit 1); exit 1; }; }
11967 fi
11968
11969fi
11970
11971 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
11972echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
11973
11974cat >>confdefs.h <<_ACEOF
11975@%:@define socklen_t $curl_cv_socklen_t_equiv
11976_ACEOF
11977
11978fi
11979
11980
11981
11982echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
11983echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
11984if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986else
11987 cat >conftest.$ac_ext <<_ACEOF
11988#line $LINENO "configure"
11989#include "confdefs.h"
11990#include <signal.h>
11991
11992#ifdef F77_DUMMY_MAIN
11993# ifdef __cplusplus
11994 extern "C"
11995# endif
11996 int F77_DUMMY_MAIN() { return 1; }
11997#endif
11998int
11999main ()
12000{
12001if ((sig_atomic_t *) 0)
12002 return 0;
12003if (sizeof (sig_atomic_t))
12004 return 0;
12005 ;
12006 return 0;
12007}
12008_ACEOF
12009rm -f conftest.$ac_objext
12010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12011 (eval $ac_compile) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_type_sig_atomic_t=yes
12022else
12023 echo "$as_me: failed program was:" >&5
12024cat conftest.$ac_ext >&5
12025ac_cv_type_sig_atomic_t=no
12026fi
12027rm -f conftest.$ac_objext conftest.$ac_ext
12028fi
12029echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12030echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12031if test $ac_cv_type_sig_atomic_t = yes; then
12032
12033cat >>confdefs.h <<_ACEOF
12034@%:@define HAVE_SIG_ATOMIC_T 1
12035_ACEOF
12036
12037
12038fi
12039
12040
12041echo "$as_me:$LINENO: checking for size_t" >&5
12042echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12043if test "${ac_cv_have_size_t+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045else
12046
12047 cat >conftest.$ac_ext <<_ACEOF
12048#line $LINENO "configure"
12049#include "confdefs.h"
12050
12051#include <sys/types.h>
12052
12053#ifdef F77_DUMMY_MAIN
12054# ifdef __cplusplus
12055 extern "C"
12056# endif
12057 int F77_DUMMY_MAIN() { return 1; }
12058#endif
12059int
12060main ()
12061{
12062 size_t foo; foo = 1235;
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_cv_have_size_t="yes"
12080else
12081 echo "$as_me: failed program was:" >&5
12082cat conftest.$ac_ext >&5
12083 ac_cv_have_size_t="no"
12084
12085fi
12086rm -f conftest.$ac_objext conftest.$ac_ext
12087
12088fi
12089echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12090echo "${ECHO_T}$ac_cv_have_size_t" >&6
12091if test "x$ac_cv_have_size_t" = "xyes" ; then
12092 cat >>confdefs.h <<\_ACEOF
12093@%:@define HAVE_SIZE_T 1
12094_ACEOF
12095
12096fi
12097
12098echo "$as_me:$LINENO: checking for ssize_t" >&5
12099echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12100if test "${ac_cv_have_ssize_t+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103
12104 cat >conftest.$ac_ext <<_ACEOF
12105#line $LINENO "configure"
12106#include "confdefs.h"
12107
12108#include <sys/types.h>
12109
12110#ifdef F77_DUMMY_MAIN
12111# ifdef __cplusplus
12112 extern "C"
12113# endif
12114 int F77_DUMMY_MAIN() { return 1; }
12115#endif
12116int
12117main ()
12118{
12119 ssize_t foo; foo = 1235;
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_cv_have_ssize_t="yes"
12137else
12138 echo "$as_me: failed program was:" >&5
12139cat conftest.$ac_ext >&5
12140 ac_cv_have_ssize_t="no"
12141
12142fi
12143rm -f conftest.$ac_objext conftest.$ac_ext
12144
12145fi
12146echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12147echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12148if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12149 cat >>confdefs.h <<\_ACEOF
12150@%:@define HAVE_SSIZE_T 1
12151_ACEOF
12152
12153fi
12154
12155echo "$as_me:$LINENO: checking for clock_t" >&5
12156echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12157if test "${ac_cv_have_clock_t+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160
12161 cat >conftest.$ac_ext <<_ACEOF
12162#line $LINENO "configure"
12163#include "confdefs.h"
12164
12165#include <time.h>
12166
12167#ifdef F77_DUMMY_MAIN
12168# ifdef __cplusplus
12169 extern "C"
12170# endif
12171 int F77_DUMMY_MAIN() { return 1; }
12172#endif
12173int
12174main ()
12175{
12176 clock_t foo; foo = 1235;
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_have_clock_t="yes"
12194else
12195 echo "$as_me: failed program was:" >&5
12196cat conftest.$ac_ext >&5
12197 ac_cv_have_clock_t="no"
12198
12199fi
12200rm -f conftest.$ac_objext conftest.$ac_ext
12201
12202fi
12203echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12204echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12205if test "x$ac_cv_have_clock_t" = "xyes" ; then
12206 cat >>confdefs.h <<\_ACEOF
12207@%:@define HAVE_CLOCK_T 1
12208_ACEOF
12209
12210fi
12211
12212echo "$as_me:$LINENO: checking for sa_family_t" >&5
12213echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12214if test "${ac_cv_have_sa_family_t+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216else
12217
12218 cat >conftest.$ac_ext <<_ACEOF
12219#line $LINENO "configure"
12220#include "confdefs.h"
12221
12222#include <sys/types.h>
12223#include <sys/socket.h>
12224
12225#ifdef F77_DUMMY_MAIN
12226# ifdef __cplusplus
12227 extern "C"
12228# endif
12229 int F77_DUMMY_MAIN() { return 1; }
12230#endif
12231int
12232main ()
12233{
12234 sa_family_t foo; foo = 1235;
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext
12240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_cv_have_sa_family_t="yes"
12252else
12253 echo "$as_me: failed program was:" >&5
12254cat conftest.$ac_ext >&5
12255 cat >conftest.$ac_ext <<_ACEOF
12256#line $LINENO "configure"
12257#include "confdefs.h"
12258
12259#include <sys/types.h>
12260#include <sys/socket.h>
12261#include <netinet/in.h>
12262
12263#ifdef F77_DUMMY_MAIN
12264# ifdef __cplusplus
12265 extern "C"
12266# endif
12267 int F77_DUMMY_MAIN() { return 1; }
12268#endif
12269int
12270main ()
12271{
12272 sa_family_t foo; foo = 1235;
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277rm -f conftest.$ac_objext
12278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_have_sa_family_t="yes"
12290else
12291 echo "$as_me: failed program was:" >&5
12292cat conftest.$ac_ext >&5
12293 ac_cv_have_sa_family_t="no"
12294
12295fi
12296rm -f conftest.$ac_objext conftest.$ac_ext
12297
12298fi
12299rm -f conftest.$ac_objext conftest.$ac_ext
12300
12301fi
12302echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12303echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12304if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12305 cat >>confdefs.h <<\_ACEOF
12306@%:@define HAVE_SA_FAMILY_T 1
12307_ACEOF
12308
12309fi
12310
12311echo "$as_me:$LINENO: checking for pid_t" >&5
12312echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12313if test "${ac_cv_have_pid_t+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
12316
12317 cat >conftest.$ac_ext <<_ACEOF
12318#line $LINENO "configure"
12319#include "confdefs.h"
12320
12321#include <sys/types.h>
12322
12323#ifdef F77_DUMMY_MAIN
12324# ifdef __cplusplus
12325 extern "C"
12326# endif
12327 int F77_DUMMY_MAIN() { return 1; }
12328#endif
12329int
12330main ()
12331{
12332 pid_t foo; foo = 1235;
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_have_pid_t="yes"
12350else
12351 echo "$as_me: failed program was:" >&5
12352cat conftest.$ac_ext >&5
12353 ac_cv_have_pid_t="no"
12354
12355fi
12356rm -f conftest.$ac_objext conftest.$ac_ext
12357
12358fi
12359echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12360echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12361if test "x$ac_cv_have_pid_t" = "xyes" ; then
12362 cat >>confdefs.h <<\_ACEOF
12363@%:@define HAVE_PID_T 1
12364_ACEOF
12365
12366fi
12367
12368echo "$as_me:$LINENO: checking for mode_t" >&5
12369echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12370if test "${ac_cv_have_mode_t+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
12373
12374 cat >conftest.$ac_ext <<_ACEOF
12375#line $LINENO "configure"
12376#include "confdefs.h"
12377
12378#include <sys/types.h>
12379
12380#ifdef F77_DUMMY_MAIN
12381# ifdef __cplusplus
12382 extern "C"
12383# endif
12384 int F77_DUMMY_MAIN() { return 1; }
12385#endif
12386int
12387main ()
12388{
12389 mode_t foo; foo = 1235;
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext
12395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396 (eval $ac_compile) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_have_mode_t="yes"
12407else
12408 echo "$as_me: failed program was:" >&5
12409cat conftest.$ac_ext >&5
12410 ac_cv_have_mode_t="no"
12411
12412fi
12413rm -f conftest.$ac_objext conftest.$ac_ext
12414
12415fi
12416echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12417echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12418if test "x$ac_cv_have_mode_t" = "xyes" ; then
12419 cat >>confdefs.h <<\_ACEOF
12420@%:@define HAVE_MODE_T 1
12421_ACEOF
12422
12423fi
12424
12425
12426echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12427echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12428if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431
12432 cat >conftest.$ac_ext <<_ACEOF
12433#line $LINENO "configure"
12434#include "confdefs.h"
12435
12436#include <sys/types.h>
12437#include <sys/socket.h>
12438
12439#ifdef F77_DUMMY_MAIN
12440# ifdef __cplusplus
12441 extern "C"
12442# endif
12443 int F77_DUMMY_MAIN() { return 1; }
12444#endif
12445int
12446main ()
12447{
12448 struct sockaddr_storage s;
12449 ;
12450 return 0;
12451}
12452_ACEOF
12453rm -f conftest.$ac_objext
12454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_have_struct_sockaddr_storage="yes"
12466else
12467 echo "$as_me: failed program was:" >&5
12468cat conftest.$ac_ext >&5
12469 ac_cv_have_struct_sockaddr_storage="no"
12470
12471fi
12472rm -f conftest.$ac_objext conftest.$ac_ext
12473
12474fi
12475echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12476echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12477if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12478 cat >>confdefs.h <<\_ACEOF
12479@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12480_ACEOF
12481
12482fi
12483
12484echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12485echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12486if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489
12490 cat >conftest.$ac_ext <<_ACEOF
12491#line $LINENO "configure"
12492#include "confdefs.h"
12493
12494#include <sys/types.h>
12495#include <netinet/in.h>
12496
12497#ifdef F77_DUMMY_MAIN
12498# ifdef __cplusplus
12499 extern "C"
12500# endif
12501 int F77_DUMMY_MAIN() { return 1; }
12502#endif
12503int
12504main ()
12505{
12506 struct sockaddr_in6 s; s.sin6_family = 0;
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511rm -f conftest.$ac_objext
12512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_have_struct_sockaddr_in6="yes"
12524else
12525 echo "$as_me: failed program was:" >&5
12526cat conftest.$ac_ext >&5
12527 ac_cv_have_struct_sockaddr_in6="no"
12528
12529fi
12530rm -f conftest.$ac_objext conftest.$ac_ext
12531
12532fi
12533echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12534echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12535if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12536 cat >>confdefs.h <<\_ACEOF
12537@%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12538_ACEOF
12539
12540fi
12541
12542echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12543echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12544if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546else
12547
12548 cat >conftest.$ac_ext <<_ACEOF
12549#line $LINENO "configure"
12550#include "confdefs.h"
12551
12552#include <sys/types.h>
12553#include <netinet/in.h>
12554
12555#ifdef F77_DUMMY_MAIN
12556# ifdef __cplusplus
12557 extern "C"
12558# endif
12559 int F77_DUMMY_MAIN() { return 1; }
12560#endif
12561int
12562main ()
12563{
12564 struct in6_addr s; s.s6_addr[0] = 0;
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_cv_have_struct_in6_addr="yes"
12582else
12583 echo "$as_me: failed program was:" >&5
12584cat conftest.$ac_ext >&5
12585 ac_cv_have_struct_in6_addr="no"
12586
12587fi
12588rm -f conftest.$ac_objext conftest.$ac_ext
12589
12590fi
12591echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
12592echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12593if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12594 cat >>confdefs.h <<\_ACEOF
12595@%:@define HAVE_STRUCT_IN6_ADDR 1
12596_ACEOF
12597
12598fi
12599
12600echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12601echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12602if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604else
12605
12606 cat >conftest.$ac_ext <<_ACEOF
12607#line $LINENO "configure"
12608#include "confdefs.h"
12609
12610#include <sys/types.h>
12611#include <sys/socket.h>
12612#include <netdb.h>
12613
12614#ifdef F77_DUMMY_MAIN
12615# ifdef __cplusplus
12616 extern "C"
12617# endif
12618 int F77_DUMMY_MAIN() { return 1; }
12619#endif
12620int
12621main ()
12622{
12623 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12624 ;
12625 return 0;
12626}
12627_ACEOF
12628rm -f conftest.$ac_objext
12629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_have_struct_addrinfo="yes"
12641else
12642 echo "$as_me: failed program was:" >&5
12643cat conftest.$ac_ext >&5
12644 ac_cv_have_struct_addrinfo="no"
12645
12646fi
12647rm -f conftest.$ac_objext conftest.$ac_ext
12648
12649fi
12650echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
12651echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
12652if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12653 cat >>confdefs.h <<\_ACEOF
12654@%:@define HAVE_STRUCT_ADDRINFO 1
12655_ACEOF
12656
12657fi
12658
12659echo "$as_me:$LINENO: checking for struct timeval" >&5
12660echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
12661if test "${ac_cv_have_struct_timeval+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663else
12664
12665 cat >conftest.$ac_ext <<_ACEOF
12666#line $LINENO "configure"
12667#include "confdefs.h"
12668 #include <sys/time.h>
12669#ifdef F77_DUMMY_MAIN
12670# ifdef __cplusplus
12671 extern "C"
12672# endif
12673 int F77_DUMMY_MAIN() { return 1; }
12674#endif
12675int
12676main ()
12677{
12678 struct timeval tv; tv.tv_sec = 1;
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_have_struct_timeval="yes"
12696else
12697 echo "$as_me: failed program was:" >&5
12698cat conftest.$ac_ext >&5
12699 ac_cv_have_struct_timeval="no"
12700
12701fi
12702rm -f conftest.$ac_objext conftest.$ac_ext
12703
12704fi
12705echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
12706echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
12707if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12708 cat >>confdefs.h <<\_ACEOF
12709@%:@define HAVE_STRUCT_TIMEVAL 1
12710_ACEOF
12711
12712 have_struct_timeval=1
12713fi
12714
12715# If we don't have int64_t then we can't compile sftp-server. So don't
12716# even attempt to do it.
12717if test "x$ac_cv_have_int64_t" = "xno" -a \
12718 "x$ac_cv_sizeof_long_int" != "x8" -a \
12719 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12720 NO_SFTP='#'
12721else
12722 if test "$cross_compiling" = yes; then
12723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12724echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12725 { (exit 1); exit 1; }; }
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728#line $LINENO "configure"
12729#include "confdefs.h"
12730
12731#include <stdio.h>
12732#include <string.h>
12733#ifdef HAVE_SNPRINTF
12734main()
12735{
12736 char buf[50];
12737 char expected_out[50];
12738 int mazsize = 50 ;
12739#if (SIZEOF_LONG_INT == 8)
12740 long int num = 0x7fffffffffffffff;
12741#else
12742 long long num = 0x7fffffffffffffffll;
12743#endif
12744 strcpy(expected_out, "9223372036854775807");
12745 snprintf(buf, mazsize, "%lld", num);
12746 if(strcmp(buf, expected_out) != 0)
12747 exit(1);
12748 exit(0);
12749}
12750#else
12751main() { exit(0); }
12752#endif
12753
12754_ACEOF
12755rm -f conftest$ac_exeext
12756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 true
12767else
12768 echo "$as_me: program exited with status $ac_status" >&5
12769echo "$as_me: failed program was:" >&5
12770cat conftest.$ac_ext >&5
12771( exit $ac_status )
12772 cat >>confdefs.h <<\_ACEOF
12773@%:@define BROKEN_SNPRINTF 1
12774_ACEOF
12775
12776
12777fi
12778rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12779fi
12780fi
12781
12782
12783
12784# look for field 'ut_host' in header 'utmp.h'
12785 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12786 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12787 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
12788echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
12789 if eval "test \"\${$ossh_varname+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792
12793 cat >conftest.$ac_ext <<_ACEOF
12794#line $LINENO "configure"
12795#include "confdefs.h"
12796#include <utmp.h>
12797
12798_ACEOF
12799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12800 egrep "ut_host" >/dev/null 2>&1; then
12801 eval "$ossh_varname=yes"
12802else
12803 eval "$ossh_varname=no"
12804fi
12805rm -f conftest*
12806
12807fi
12808
12809 ossh_result=`eval 'echo $'"$ossh_varname"`
12810 if test -n "`echo $ossh_varname`"; then
12811 echo "$as_me:$LINENO: result: $ossh_result" >&5
12812echo "${ECHO_T}$ossh_result" >&6
12813 if test "x$ossh_result" = "xyes"; then
12814 cat >>confdefs.h <<\_ACEOF
12815@%:@define HAVE_HOST_IN_UTMP 1
12816_ACEOF
12817
12818 fi
12819 else
12820 echo "$as_me:$LINENO: result: no" >&5
12821echo "${ECHO_T}no" >&6
12822 fi
12823
12824
12825# look for field 'ut_host' in header 'utmpx.h'
12826 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12827 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12828 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
12829echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
12830 if eval "test \"\${$ossh_varname+set}\" = set"; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832else
12833
12834 cat >conftest.$ac_ext <<_ACEOF
12835#line $LINENO "configure"
12836#include "confdefs.h"
12837#include <utmpx.h>
12838
12839_ACEOF
12840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12841 egrep "ut_host" >/dev/null 2>&1; then
12842 eval "$ossh_varname=yes"
12843else
12844 eval "$ossh_varname=no"
12845fi
12846rm -f conftest*
12847
12848fi
12849
12850 ossh_result=`eval 'echo $'"$ossh_varname"`
12851 if test -n "`echo $ossh_varname`"; then
12852 echo "$as_me:$LINENO: result: $ossh_result" >&5
12853echo "${ECHO_T}$ossh_result" >&6
12854 if test "x$ossh_result" = "xyes"; then
12855 cat >>confdefs.h <<\_ACEOF
12856@%:@define HAVE_HOST_IN_UTMPX 1
12857_ACEOF
12858
12859 fi
12860 else
12861 echo "$as_me:$LINENO: result: no" >&5
12862echo "${ECHO_T}no" >&6
12863 fi
12864
12865
12866# look for field 'syslen' in header 'utmpx.h'
12867 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12868 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12869 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
12870echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
12871 if eval "test \"\${$ossh_varname+set}\" = set"; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12873else
12874
12875 cat >conftest.$ac_ext <<_ACEOF
12876#line $LINENO "configure"
12877#include "confdefs.h"
12878#include <utmpx.h>
12879
12880_ACEOF
12881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12882 egrep "syslen" >/dev/null 2>&1; then
12883 eval "$ossh_varname=yes"
12884else
12885 eval "$ossh_varname=no"
12886fi
12887rm -f conftest*
12888
12889fi
12890
12891 ossh_result=`eval 'echo $'"$ossh_varname"`
12892 if test -n "`echo $ossh_varname`"; then
12893 echo "$as_me:$LINENO: result: $ossh_result" >&5
12894echo "${ECHO_T}$ossh_result" >&6
12895 if test "x$ossh_result" = "xyes"; then
12896 cat >>confdefs.h <<\_ACEOF
12897@%:@define HAVE_SYSLEN_IN_UTMPX 1
12898_ACEOF
12899
12900 fi
12901 else
12902 echo "$as_me:$LINENO: result: no" >&5
12903echo "${ECHO_T}no" >&6
12904 fi
12905
12906
12907# look for field 'ut_pid' in header 'utmp.h'
12908 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12909 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12910 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
12911echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
12912 if eval "test \"\${$ossh_varname+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915
12916 cat >conftest.$ac_ext <<_ACEOF
12917#line $LINENO "configure"
12918#include "confdefs.h"
12919#include <utmp.h>
12920
12921_ACEOF
12922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12923 egrep "ut_pid" >/dev/null 2>&1; then
12924 eval "$ossh_varname=yes"
12925else
12926 eval "$ossh_varname=no"
12927fi
12928rm -f conftest*
12929
12930fi
12931
12932 ossh_result=`eval 'echo $'"$ossh_varname"`
12933 if test -n "`echo $ossh_varname`"; then
12934 echo "$as_me:$LINENO: result: $ossh_result" >&5
12935echo "${ECHO_T}$ossh_result" >&6
12936 if test "x$ossh_result" = "xyes"; then
12937 cat >>confdefs.h <<\_ACEOF
12938@%:@define HAVE_PID_IN_UTMP 1
12939_ACEOF
12940
12941 fi
12942 else
12943 echo "$as_me:$LINENO: result: no" >&5
12944echo "${ECHO_T}no" >&6
12945 fi
12946
12947
12948# look for field 'ut_type' in header 'utmp.h'
12949 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12950 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12951 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
12952echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
12953 if eval "test \"\${$ossh_varname+set}\" = set"; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955else
12956
12957 cat >conftest.$ac_ext <<_ACEOF
12958#line $LINENO "configure"
12959#include "confdefs.h"
12960#include <utmp.h>
12961
12962_ACEOF
12963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12964 egrep "ut_type" >/dev/null 2>&1; then
12965 eval "$ossh_varname=yes"
12966else
12967 eval "$ossh_varname=no"
12968fi
12969rm -f conftest*
12970
12971fi
12972
12973 ossh_result=`eval 'echo $'"$ossh_varname"`
12974 if test -n "`echo $ossh_varname`"; then
12975 echo "$as_me:$LINENO: result: $ossh_result" >&5
12976echo "${ECHO_T}$ossh_result" >&6
12977 if test "x$ossh_result" = "xyes"; then
12978 cat >>confdefs.h <<\_ACEOF
12979@%:@define HAVE_TYPE_IN_UTMP 1
12980_ACEOF
12981
12982 fi
12983 else
12984 echo "$as_me:$LINENO: result: no" >&5
12985echo "${ECHO_T}no" >&6
12986 fi
12987
12988
12989# look for field 'ut_type' in header 'utmpx.h'
12990 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12991 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12992 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
12993echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
12994 if eval "test \"\${$ossh_varname+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997
12998 cat >conftest.$ac_ext <<_ACEOF
12999#line $LINENO "configure"
13000#include "confdefs.h"
13001#include <utmpx.h>
13002
13003_ACEOF
13004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13005 egrep "ut_type" >/dev/null 2>&1; then
13006 eval "$ossh_varname=yes"
13007else
13008 eval "$ossh_varname=no"
13009fi
13010rm -f conftest*
13011
13012fi
13013
13014 ossh_result=`eval 'echo $'"$ossh_varname"`
13015 if test -n "`echo $ossh_varname`"; then
13016 echo "$as_me:$LINENO: result: $ossh_result" >&5
13017echo "${ECHO_T}$ossh_result" >&6
13018 if test "x$ossh_result" = "xyes"; then
13019 cat >>confdefs.h <<\_ACEOF
13020@%:@define HAVE_TYPE_IN_UTMPX 1
13021_ACEOF
13022
13023 fi
13024 else
13025 echo "$as_me:$LINENO: result: no" >&5
13026echo "${ECHO_T}no" >&6
13027 fi
13028
13029
13030# look for field 'ut_tv' in header 'utmp.h'
13031 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13032 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13033 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13034echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13035 if eval "test \"\${$ossh_varname+set}\" = set"; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
13038
13039 cat >conftest.$ac_ext <<_ACEOF
13040#line $LINENO "configure"
13041#include "confdefs.h"
13042#include <utmp.h>
13043
13044_ACEOF
13045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 egrep "ut_tv" >/dev/null 2>&1; then
13047 eval "$ossh_varname=yes"
13048else
13049 eval "$ossh_varname=no"
13050fi
13051rm -f conftest*
13052
13053fi
13054
13055 ossh_result=`eval 'echo $'"$ossh_varname"`
13056 if test -n "`echo $ossh_varname`"; then
13057 echo "$as_me:$LINENO: result: $ossh_result" >&5
13058echo "${ECHO_T}$ossh_result" >&6
13059 if test "x$ossh_result" = "xyes"; then
13060 cat >>confdefs.h <<\_ACEOF
13061@%:@define HAVE_TV_IN_UTMP 1
13062_ACEOF
13063
13064 fi
13065 else
13066 echo "$as_me:$LINENO: result: no" >&5
13067echo "${ECHO_T}no" >&6
13068 fi
13069
13070
13071# look for field 'ut_id' in header 'utmp.h'
13072 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13073 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13074 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13075echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13076 if eval "test \"\${$ossh_varname+set}\" = set"; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079
13080 cat >conftest.$ac_ext <<_ACEOF
13081#line $LINENO "configure"
13082#include "confdefs.h"
13083#include <utmp.h>
13084
13085_ACEOF
13086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13087 egrep "ut_id" >/dev/null 2>&1; then
13088 eval "$ossh_varname=yes"
13089else
13090 eval "$ossh_varname=no"
13091fi
13092rm -f conftest*
13093
13094fi
13095
13096 ossh_result=`eval 'echo $'"$ossh_varname"`
13097 if test -n "`echo $ossh_varname`"; then
13098 echo "$as_me:$LINENO: result: $ossh_result" >&5
13099echo "${ECHO_T}$ossh_result" >&6
13100 if test "x$ossh_result" = "xyes"; then
13101 cat >>confdefs.h <<\_ACEOF
13102@%:@define HAVE_ID_IN_UTMP 1
13103_ACEOF
13104
13105 fi
13106 else
13107 echo "$as_me:$LINENO: result: no" >&5
13108echo "${ECHO_T}no" >&6
13109 fi
13110
13111
13112# look for field 'ut_id' in header 'utmpx.h'
13113 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13114 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13115 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13116echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13117 if eval "test \"\${$ossh_varname+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
13120
13121 cat >conftest.$ac_ext <<_ACEOF
13122#line $LINENO "configure"
13123#include "confdefs.h"
13124#include <utmpx.h>
13125
13126_ACEOF
13127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128 egrep "ut_id" >/dev/null 2>&1; then
13129 eval "$ossh_varname=yes"
13130else
13131 eval "$ossh_varname=no"
13132fi
13133rm -f conftest*
13134
13135fi
13136
13137 ossh_result=`eval 'echo $'"$ossh_varname"`
13138 if test -n "`echo $ossh_varname`"; then
13139 echo "$as_me:$LINENO: result: $ossh_result" >&5
13140echo "${ECHO_T}$ossh_result" >&6
13141 if test "x$ossh_result" = "xyes"; then
13142 cat >>confdefs.h <<\_ACEOF
13143@%:@define HAVE_ID_IN_UTMPX 1
13144_ACEOF
13145
13146 fi
13147 else
13148 echo "$as_me:$LINENO: result: no" >&5
13149echo "${ECHO_T}no" >&6
13150 fi
13151
13152
13153# look for field 'ut_addr' in header 'utmp.h'
13154 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13155 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13156 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13157echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13158 if eval "test \"\${$ossh_varname+set}\" = set"; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161
13162 cat >conftest.$ac_ext <<_ACEOF
13163#line $LINENO "configure"
13164#include "confdefs.h"
13165#include <utmp.h>
13166
13167_ACEOF
13168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13169 egrep "ut_addr" >/dev/null 2>&1; then
13170 eval "$ossh_varname=yes"
13171else
13172 eval "$ossh_varname=no"
13173fi
13174rm -f conftest*
13175
13176fi
13177
13178 ossh_result=`eval 'echo $'"$ossh_varname"`
13179 if test -n "`echo $ossh_varname`"; then
13180 echo "$as_me:$LINENO: result: $ossh_result" >&5
13181echo "${ECHO_T}$ossh_result" >&6
13182 if test "x$ossh_result" = "xyes"; then
13183 cat >>confdefs.h <<\_ACEOF
13184@%:@define HAVE_ADDR_IN_UTMP 1
13185_ACEOF
13186
13187 fi
13188 else
13189 echo "$as_me:$LINENO: result: no" >&5
13190echo "${ECHO_T}no" >&6
13191 fi
13192
13193
13194# look for field 'ut_addr' in header 'utmpx.h'
13195 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13196 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13197 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13198echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13199 if eval "test \"\${$ossh_varname+set}\" = set"; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202
13203 cat >conftest.$ac_ext <<_ACEOF
13204#line $LINENO "configure"
13205#include "confdefs.h"
13206#include <utmpx.h>
13207
13208_ACEOF
13209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 egrep "ut_addr" >/dev/null 2>&1; then
13211 eval "$ossh_varname=yes"
13212else
13213 eval "$ossh_varname=no"
13214fi
13215rm -f conftest*
13216
13217fi
13218
13219 ossh_result=`eval 'echo $'"$ossh_varname"`
13220 if test -n "`echo $ossh_varname`"; then
13221 echo "$as_me:$LINENO: result: $ossh_result" >&5
13222echo "${ECHO_T}$ossh_result" >&6
13223 if test "x$ossh_result" = "xyes"; then
13224 cat >>confdefs.h <<\_ACEOF
13225@%:@define HAVE_ADDR_IN_UTMPX 1
13226_ACEOF
13227
13228 fi
13229 else
13230 echo "$as_me:$LINENO: result: no" >&5
13231echo "${ECHO_T}no" >&6
13232 fi
13233
13234
13235# look for field 'ut_addr_v6' in header 'utmp.h'
13236 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13237 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13238 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13239echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13240 if eval "test \"\${$ossh_varname+set}\" = set"; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243
13244 cat >conftest.$ac_ext <<_ACEOF
13245#line $LINENO "configure"
13246#include "confdefs.h"
13247#include <utmp.h>
13248
13249_ACEOF
13250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13251 egrep "ut_addr_v6" >/dev/null 2>&1; then
13252 eval "$ossh_varname=yes"
13253else
13254 eval "$ossh_varname=no"
13255fi
13256rm -f conftest*
13257
13258fi
13259
13260 ossh_result=`eval 'echo $'"$ossh_varname"`
13261 if test -n "`echo $ossh_varname`"; then
13262 echo "$as_me:$LINENO: result: $ossh_result" >&5
13263echo "${ECHO_T}$ossh_result" >&6
13264 if test "x$ossh_result" = "xyes"; then
13265 cat >>confdefs.h <<\_ACEOF
13266@%:@define HAVE_ADDR_V6_IN_UTMP 1
13267_ACEOF
13268
13269 fi
13270 else
13271 echo "$as_me:$LINENO: result: no" >&5
13272echo "${ECHO_T}no" >&6
13273 fi
13274
13275
13276# look for field 'ut_addr_v6' in header 'utmpx.h'
13277 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13278 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13279 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13280echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13281 if eval "test \"\${$ossh_varname+set}\" = set"; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283else
13284
13285 cat >conftest.$ac_ext <<_ACEOF
13286#line $LINENO "configure"
13287#include "confdefs.h"
13288#include <utmpx.h>
13289
13290_ACEOF
13291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13292 egrep "ut_addr_v6" >/dev/null 2>&1; then
13293 eval "$ossh_varname=yes"
13294else
13295 eval "$ossh_varname=no"
13296fi
13297rm -f conftest*
13298
13299fi
13300
13301 ossh_result=`eval 'echo $'"$ossh_varname"`
13302 if test -n "`echo $ossh_varname`"; then
13303 echo "$as_me:$LINENO: result: $ossh_result" >&5
13304echo "${ECHO_T}$ossh_result" >&6
13305 if test "x$ossh_result" = "xyes"; then
13306 cat >>confdefs.h <<\_ACEOF
13307@%:@define HAVE_ADDR_V6_IN_UTMPX 1
13308_ACEOF
13309
13310 fi
13311 else
13312 echo "$as_me:$LINENO: result: no" >&5
13313echo "${ECHO_T}no" >&6
13314 fi
13315
13316
13317# look for field 'ut_exit' in header 'utmp.h'
13318 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13319 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13320 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13321echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13322 if eval "test \"\${$ossh_varname+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324else
13325
13326 cat >conftest.$ac_ext <<_ACEOF
13327#line $LINENO "configure"
13328#include "confdefs.h"
13329#include <utmp.h>
13330
13331_ACEOF
13332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13333 egrep "ut_exit" >/dev/null 2>&1; then
13334 eval "$ossh_varname=yes"
13335else
13336 eval "$ossh_varname=no"
13337fi
13338rm -f conftest*
13339
13340fi
13341
13342 ossh_result=`eval 'echo $'"$ossh_varname"`
13343 if test -n "`echo $ossh_varname`"; then
13344 echo "$as_me:$LINENO: result: $ossh_result" >&5
13345echo "${ECHO_T}$ossh_result" >&6
13346 if test "x$ossh_result" = "xyes"; then
13347 cat >>confdefs.h <<\_ACEOF
13348@%:@define HAVE_EXIT_IN_UTMP 1
13349_ACEOF
13350
13351 fi
13352 else
13353 echo "$as_me:$LINENO: result: no" >&5
13354echo "${ECHO_T}no" >&6
13355 fi
13356
13357
13358# look for field 'ut_time' in header 'utmp.h'
13359 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13360 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13361 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13362echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13363 if eval "test \"\${$ossh_varname+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366
13367 cat >conftest.$ac_ext <<_ACEOF
13368#line $LINENO "configure"
13369#include "confdefs.h"
13370#include <utmp.h>
13371
13372_ACEOF
13373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13374 egrep "ut_time" >/dev/null 2>&1; then
13375 eval "$ossh_varname=yes"
13376else
13377 eval "$ossh_varname=no"
13378fi
13379rm -f conftest*
13380
13381fi
13382
13383 ossh_result=`eval 'echo $'"$ossh_varname"`
13384 if test -n "`echo $ossh_varname`"; then
13385 echo "$as_me:$LINENO: result: $ossh_result" >&5
13386echo "${ECHO_T}$ossh_result" >&6
13387 if test "x$ossh_result" = "xyes"; then
13388 cat >>confdefs.h <<\_ACEOF
13389@%:@define HAVE_TIME_IN_UTMP 1
13390_ACEOF
13391
13392 fi
13393 else
13394 echo "$as_me:$LINENO: result: no" >&5
13395echo "${ECHO_T}no" >&6
13396 fi
13397
13398
13399# look for field 'ut_time' in header 'utmpx.h'
13400 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13401 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13402 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13403echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13404 if eval "test \"\${$ossh_varname+set}\" = set"; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13406else
13407
13408 cat >conftest.$ac_ext <<_ACEOF
13409#line $LINENO "configure"
13410#include "confdefs.h"
13411#include <utmpx.h>
13412
13413_ACEOF
13414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13415 egrep "ut_time" >/dev/null 2>&1; then
13416 eval "$ossh_varname=yes"
13417else
13418 eval "$ossh_varname=no"
13419fi
13420rm -f conftest*
13421
13422fi
13423
13424 ossh_result=`eval 'echo $'"$ossh_varname"`
13425 if test -n "`echo $ossh_varname`"; then
13426 echo "$as_me:$LINENO: result: $ossh_result" >&5
13427echo "${ECHO_T}$ossh_result" >&6
13428 if test "x$ossh_result" = "xyes"; then
13429 cat >>confdefs.h <<\_ACEOF
13430@%:@define HAVE_TIME_IN_UTMPX 1
13431_ACEOF
13432
13433 fi
13434 else
13435 echo "$as_me:$LINENO: result: no" >&5
13436echo "${ECHO_T}no" >&6
13437 fi
13438
13439
13440# look for field 'ut_tv' in header 'utmpx.h'
13441 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13442 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13443 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13444echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13445 if eval "test \"\${$ossh_varname+set}\" = set"; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447else
13448
13449 cat >conftest.$ac_ext <<_ACEOF
13450#line $LINENO "configure"
13451#include "confdefs.h"
13452#include <utmpx.h>
13453
13454_ACEOF
13455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456 egrep "ut_tv" >/dev/null 2>&1; then
13457 eval "$ossh_varname=yes"
13458else
13459 eval "$ossh_varname=no"
13460fi
13461rm -f conftest*
13462
13463fi
13464
13465 ossh_result=`eval 'echo $'"$ossh_varname"`
13466 if test -n "`echo $ossh_varname`"; then
13467 echo "$as_me:$LINENO: result: $ossh_result" >&5
13468echo "${ECHO_T}$ossh_result" >&6
13469 if test "x$ossh_result" = "xyes"; then
13470 cat >>confdefs.h <<\_ACEOF
13471@%:@define HAVE_TV_IN_UTMPX 1
13472_ACEOF
13473
13474 fi
13475 else
13476 echo "$as_me:$LINENO: result: no" >&5
13477echo "${ECHO_T}no" >&6
13478 fi
13479
13480
13481echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13482echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13483if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485else
13486 cat >conftest.$ac_ext <<_ACEOF
13487#line $LINENO "configure"
13488#include "confdefs.h"
13489$ac_includes_default
13490#ifdef F77_DUMMY_MAIN
13491# ifdef __cplusplus
13492 extern "C"
13493# endif
13494 int F77_DUMMY_MAIN() { return 1; }
13495#endif
13496int
13497main ()
13498{
13499static struct stat ac_aggr;
13500if (ac_aggr.st_blksize)
13501return 0;
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext
13507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_member_struct_stat_st_blksize=yes
13519else
13520 echo "$as_me: failed program was:" >&5
13521cat conftest.$ac_ext >&5
13522ac_cv_member_struct_stat_st_blksize=no
13523fi
13524rm -f conftest.$ac_objext conftest.$ac_ext
13525fi
13526echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13527echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13528if test $ac_cv_member_struct_stat_st_blksize = yes; then
13529
13530cat >>confdefs.h <<_ACEOF
13531@%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13532_ACEOF
13533
13534
13535fi
13536
13537
13538echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13539echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13540if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542else
13543
13544 cat >conftest.$ac_ext <<_ACEOF
13545#line $LINENO "configure"
13546#include "confdefs.h"
13547
13548#include <sys/types.h>
13549#include <sys/socket.h>
13550
13551#ifdef F77_DUMMY_MAIN
13552# ifdef __cplusplus
13553 extern "C"
13554# endif
13555 int F77_DUMMY_MAIN() { return 1; }
13556#endif
13557int
13558main ()
13559{
13560 struct sockaddr_storage s; s.ss_family = 1;
13561 ;
13562 return 0;
13563}
13564_ACEOF
13565rm -f conftest.$ac_objext
13566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -s conftest.$ac_objext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_cv_have_ss_family_in_struct_ss="yes"
13578else
13579 echo "$as_me: failed program was:" >&5
13580cat conftest.$ac_ext >&5
13581 ac_cv_have_ss_family_in_struct_ss="no"
13582fi
13583rm -f conftest.$ac_objext conftest.$ac_ext
13584
13585fi
13586echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13587echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13588if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13589 cat >>confdefs.h <<\_ACEOF
13590@%:@define HAVE_SS_FAMILY_IN_SS 1
13591_ACEOF
13592
13593fi
13594
13595echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13596echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13597if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599else
13600
13601 cat >conftest.$ac_ext <<_ACEOF
13602#line $LINENO "configure"
13603#include "confdefs.h"
13604
13605#include <sys/types.h>
13606#include <sys/socket.h>
13607
13608#ifdef F77_DUMMY_MAIN
13609# ifdef __cplusplus
13610 extern "C"
13611# endif
13612 int F77_DUMMY_MAIN() { return 1; }
13613#endif
13614int
13615main ()
13616{
13617 struct sockaddr_storage s; s.__ss_family = 1;
13618 ;
13619 return 0;
13620}
13621_ACEOF
13622rm -f conftest.$ac_objext
13623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_cv_have___ss_family_in_struct_ss="yes"
13635else
13636 echo "$as_me: failed program was:" >&5
13637cat conftest.$ac_ext >&5
13638 ac_cv_have___ss_family_in_struct_ss="no"
13639
13640fi
13641rm -f conftest.$ac_objext conftest.$ac_ext
13642
13643fi
13644echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13645echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13646if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13647 cat >>confdefs.h <<\_ACEOF
13648@%:@define HAVE___SS_FAMILY_IN_SS 1
13649_ACEOF
13650
13651fi
13652
13653echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
13654echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
13655if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657else
13658
13659 cat >conftest.$ac_ext <<_ACEOF
13660#line $LINENO "configure"
13661#include "confdefs.h"
13662
13663#include <pwd.h>
13664
13665#ifdef F77_DUMMY_MAIN
13666# ifdef __cplusplus
13667 extern "C"
13668# endif
13669 int F77_DUMMY_MAIN() { return 1; }
13670#endif
13671int
13672main ()
13673{
13674 struct passwd p; p.pw_class = 0;
13675 ;
13676 return 0;
13677}
13678_ACEOF
13679rm -f conftest.$ac_objext
13680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_have_pw_class_in_struct_passwd="yes"
13692else
13693 echo "$as_me: failed program was:" >&5
13694cat conftest.$ac_ext >&5
13695 ac_cv_have_pw_class_in_struct_passwd="no"
13696
13697fi
13698rm -f conftest.$ac_objext conftest.$ac_ext
13699
13700fi
13701echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13702echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
13703if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13704 cat >>confdefs.h <<\_ACEOF
13705@%:@define HAVE_PW_CLASS_IN_PASSWD 1
13706_ACEOF
13707
13708fi
13709
13710echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
13711echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
13712if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714else
13715
13716 cat >conftest.$ac_ext <<_ACEOF
13717#line $LINENO "configure"
13718#include "confdefs.h"
13719
13720#include <pwd.h>
13721
13722#ifdef F77_DUMMY_MAIN
13723# ifdef __cplusplus
13724 extern "C"
13725# endif
13726 int F77_DUMMY_MAIN() { return 1; }
13727#endif
13728int
13729main ()
13730{
13731 struct passwd p; p.pw_expire = 0;
13732 ;
13733 return 0;
13734}
13735_ACEOF
13736rm -f conftest.$ac_objext
13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_have_pw_expire_in_struct_passwd="yes"
13749else
13750 echo "$as_me: failed program was:" >&5
13751cat conftest.$ac_ext >&5
13752 ac_cv_have_pw_expire_in_struct_passwd="no"
13753
13754fi
13755rm -f conftest.$ac_objext conftest.$ac_ext
13756
13757fi
13758echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13759echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
13760if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13761 cat >>confdefs.h <<\_ACEOF
13762@%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
13763_ACEOF
13764
13765fi
13766
13767echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
13768echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
13769if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772
13773 cat >conftest.$ac_ext <<_ACEOF
13774#line $LINENO "configure"
13775#include "confdefs.h"
13776
13777#include <pwd.h>
13778
13779#ifdef F77_DUMMY_MAIN
13780# ifdef __cplusplus
13781 extern "C"
13782# endif
13783 int F77_DUMMY_MAIN() { return 1; }
13784#endif
13785int
13786main ()
13787{
13788 struct passwd p; p.pw_change = 0;
13789 ;
13790 return 0;
13791}
13792_ACEOF
13793rm -f conftest.$ac_objext
13794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795 (eval $ac_compile) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_cv_have_pw_change_in_struct_passwd="yes"
13806else
13807 echo "$as_me: failed program was:" >&5
13808cat conftest.$ac_ext >&5
13809 ac_cv_have_pw_change_in_struct_passwd="no"
13810
13811fi
13812rm -f conftest.$ac_objext conftest.$ac_ext
13813
13814fi
13815echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13816echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
13817if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13818 cat >>confdefs.h <<\_ACEOF
13819@%:@define HAVE_PW_CHANGE_IN_PASSWD 1
13820_ACEOF
13821
13822fi
13823
13824echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
13825echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
13826if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
13829
f5799ae1 13830 if test "$cross_compiling" = yes; then
13831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13832echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13833 { (exit 1); exit 1; }; }
13834else
13835 cat >conftest.$ac_ext <<_ACEOF
700318f3 13836#line $LINENO "configure"
13837#include "confdefs.h"
13838
13839#include <sys/types.h>
13840#include <sys/socket.h>
13841#include <sys/uio.h>
f5799ae1 13842int main() {
13843#ifdef msg_accrights
13844exit(1);
700318f3 13845#endif
f5799ae1 13846struct msghdr m;
13847m.msg_accrights = 0;
13848exit(0);
700318f3 13849}
f5799ae1 13850
700318f3 13851_ACEOF
f5799ae1 13852rm -f conftest$ac_exeext
13853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>&5
700318f3 13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5799ae1 13857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
700318f3 13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_have_accrights_in_msghdr="yes"
13864else
f5799ae1 13865 echo "$as_me: program exited with status $ac_status" >&5
13866echo "$as_me: failed program was:" >&5
700318f3 13867cat conftest.$ac_ext >&5
f5799ae1 13868( exit $ac_status )
700318f3 13869 ac_cv_have_accrights_in_msghdr="no"
13870
13871fi
f5799ae1 13872rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13873fi
700318f3 13874
13875fi
13876echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
13877echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
13878if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13879 cat >>confdefs.h <<\_ACEOF
13880@%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
13881_ACEOF
13882
13883fi
13884
13885echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
13886echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
13887if test "${ac_cv_have_control_in_msghdr+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890
f5799ae1 13891 if test "$cross_compiling" = yes; then
13892 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13893echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13894 { (exit 1); exit 1; }; }
13895else
13896 cat >conftest.$ac_ext <<_ACEOF
700318f3 13897#line $LINENO "configure"
13898#include "confdefs.h"
13899
13900#include <sys/types.h>
13901#include <sys/socket.h>
13902#include <sys/uio.h>
f5799ae1 13903int main() {
13904#ifdef msg_control
13905exit(1);
700318f3 13906#endif
f5799ae1 13907struct msghdr m;
13908m.msg_control = 0;
13909exit(0);
700318f3 13910}
f5799ae1 13911
700318f3 13912_ACEOF
f5799ae1 13913rm -f conftest$ac_exeext
13914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
700318f3 13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5799ae1 13918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
700318f3 13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_have_control_in_msghdr="yes"
13925else
f5799ae1 13926 echo "$as_me: program exited with status $ac_status" >&5
13927echo "$as_me: failed program was:" >&5
700318f3 13928cat conftest.$ac_ext >&5
f5799ae1 13929( exit $ac_status )
700318f3 13930 ac_cv_have_control_in_msghdr="no"
13931
13932fi
f5799ae1 13933rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13934fi
700318f3 13935
13936fi
13937echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
13938echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
13939if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13940 cat >>confdefs.h <<\_ACEOF
13941@%:@define HAVE_CONTROL_IN_MSGHDR 1
13942_ACEOF
13943
13944fi
13945
13946echo "$as_me:$LINENO: checking if libc defines __progname" >&5
13947echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
13948if test "${ac_cv_libc_defines___progname+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950else
13951
13952 cat >conftest.$ac_ext <<_ACEOF
13953#line $LINENO "configure"
13954#include "confdefs.h"
13955
13956#ifdef F77_DUMMY_MAIN
13957# ifdef __cplusplus
13958 extern "C"
13959# endif
13960 int F77_DUMMY_MAIN() { return 1; }
13961#endif
13962int
13963main ()
13964{
13965 extern char *__progname; printf("%s", __progname);
13966 ;
13967 return 0;
13968}
13969_ACEOF
13970rm -f conftest.$ac_objext conftest$ac_exeext
13971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -s conftest$ac_exeext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_libc_defines___progname="yes"
13983else
13984 echo "$as_me: failed program was:" >&5
13985cat conftest.$ac_ext >&5
13986 ac_cv_libc_defines___progname="no"
13987
13988fi
13989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13990
13991fi
13992echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
13993echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
13994if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13995 cat >>confdefs.h <<\_ACEOF
13996@%:@define HAVE___PROGNAME 1
13997_ACEOF
13998
13999fi
14000
14001echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14002echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14003if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005else
14006
14007 cat >conftest.$ac_ext <<_ACEOF
14008#line $LINENO "configure"
14009#include "confdefs.h"
14010
14011#include <stdio.h>
14012
14013#ifdef F77_DUMMY_MAIN
14014# ifdef __cplusplus
14015 extern "C"
14016# endif
14017 int F77_DUMMY_MAIN() { return 1; }
14018#endif
14019int
14020main ()
14021{
14022 printf("%s", __FUNCTION__);
14023 ;
14024 return 0;
14025}
14026_ACEOF
14027rm -f conftest.$ac_objext conftest$ac_exeext
14028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029 (eval $ac_link) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
14033 { ac_try='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_cc_implements___FUNCTION__="yes"
14040else
14041 echo "$as_me: failed program was:" >&5
14042cat conftest.$ac_ext >&5
14043 ac_cv_cc_implements___FUNCTION__="no"
14044
14045fi
14046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14047
14048fi
14049echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14050echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14051if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14052 cat >>confdefs.h <<\_ACEOF
14053@%:@define HAVE___FUNCTION__ 1
14054_ACEOF
14055
14056fi
14057
14058echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14059echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14060if test "${ac_cv_cc_implements___func__+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063
14064 cat >conftest.$ac_ext <<_ACEOF
14065#line $LINENO "configure"
14066#include "confdefs.h"
14067
14068#include <stdio.h>
14069
14070#ifdef F77_DUMMY_MAIN
14071# ifdef __cplusplus
14072 extern "C"
14073# endif
14074 int F77_DUMMY_MAIN() { return 1; }
14075#endif
14076int
14077main ()
14078{
14079 printf("%s", __func__);
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084rm -f conftest.$ac_objext conftest$ac_exeext
14085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -s conftest$ac_exeext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_cc_implements___func__="yes"
14097else
14098 echo "$as_me: failed program was:" >&5
14099cat conftest.$ac_ext >&5
14100 ac_cv_cc_implements___func__="no"
14101
14102fi
14103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14104
14105fi
14106echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14107echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14108if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14109 cat >>confdefs.h <<\_ACEOF
14110@%:@define HAVE___func__ 1
14111_ACEOF
14112
14113fi
14114
14115echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14116echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14117if test "${ac_cv_have_getopt_optreset+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119else
14120
14121 cat >conftest.$ac_ext <<_ACEOF
14122#line $LINENO "configure"
14123#include "confdefs.h"
14124
14125#include <getopt.h>
14126
14127#ifdef F77_DUMMY_MAIN
14128# ifdef __cplusplus
14129 extern "C"
14130# endif
14131 int F77_DUMMY_MAIN() { return 1; }
14132#endif
14133int
14134main ()
14135{
14136 extern int optreset; optreset = 0;
14137 ;
14138 return 0;
14139}
14140_ACEOF
14141rm -f conftest.$ac_objext conftest$ac_exeext
14142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_have_getopt_optreset="yes"
14154else
14155 echo "$as_me: failed program was:" >&5
14156cat conftest.$ac_ext >&5
14157 ac_cv_have_getopt_optreset="no"
14158
14159fi
14160rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14161
14162fi
14163echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14164echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14165if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14166 cat >>confdefs.h <<\_ACEOF
14167@%:@define HAVE_GETOPT_OPTRESET 1
14168_ACEOF
14169
14170fi
14171
14172echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14173echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14174if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
14177
14178 cat >conftest.$ac_ext <<_ACEOF
14179#line $LINENO "configure"
14180#include "confdefs.h"
14181
14182#ifdef F77_DUMMY_MAIN
14183# ifdef __cplusplus
14184 extern "C"
14185# endif
14186 int F77_DUMMY_MAIN() { return 1; }
14187#endif
14188int
14189main ()
14190{
14191 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14192 ;
14193 return 0;
14194}
14195_ACEOF
14196rm -f conftest.$ac_objext conftest$ac_exeext
14197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_libc_defines_sys_errlist="yes"
14209else
14210 echo "$as_me: failed program was:" >&5
14211cat conftest.$ac_ext >&5
14212 ac_cv_libc_defines_sys_errlist="no"
14213
14214fi
14215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14216
14217fi
14218echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14219echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14220if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14221 cat >>confdefs.h <<\_ACEOF
14222@%:@define HAVE_SYS_ERRLIST 1
14223_ACEOF
14224
14225fi
14226
14227
14228echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14229echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14230if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233
14234 cat >conftest.$ac_ext <<_ACEOF
14235#line $LINENO "configure"
14236#include "confdefs.h"
14237
14238#ifdef F77_DUMMY_MAIN
14239# ifdef __cplusplus
14240 extern "C"
14241# endif
14242 int F77_DUMMY_MAIN() { return 1; }
14243#endif
14244int
14245main ()
14246{
14247 extern int sys_nerr; printf("%i", sys_nerr);
14248 ;
14249 return 0;
14250}
14251_ACEOF
14252rm -f conftest.$ac_objext conftest$ac_exeext
14253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14254 (eval $ac_link) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -s conftest$ac_exeext'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_libc_defines_sys_nerr="yes"
14265else
14266 echo "$as_me: failed program was:" >&5
14267cat conftest.$ac_ext >&5
14268 ac_cv_libc_defines_sys_nerr="no"
14269
14270fi
14271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14272
14273fi
14274echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14275echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14276if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14277 cat >>confdefs.h <<\_ACEOF
14278@%:@define HAVE_SYS_NERR 1
14279_ACEOF
14280
14281fi
14282
14283SCARD_MSG="no"
14284
14285# Check whether user wants sectok support
14286
14287# Check whether --with-sectok or --without-sectok was given.
14288if test "${with_sectok+set}" = set; then
14289 withval="$with_sectok"
14290
14291 if test "x$withval" != "xno" ; then
14292 if test "x$withval" != "xyes" ; then
14293 CPPFLAGS="$CPPFLAGS -I${withval}"
14294 LDFLAGS="$LDFLAGS -L${withval}"
14295 if test ! -z "$need_dash_r" ; then
14296 LDFLAGS="$LDFLAGS -R${withval}"
14297 fi
14298 if test ! -z "$blibpath" ; then
14299 blibpath="$blibpath:${withval}"
14300 fi
14301 fi
14302
14303for ac_header in sectok.h
14304do
14305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14306if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311fi
14312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14314else
14315 # Is the header compilable?
14316echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14318cat >conftest.$ac_ext <<_ACEOF
14319#line $LINENO "configure"
14320#include "confdefs.h"
14321$ac_includes_default
14322@%:@include <$ac_header>
14323_ACEOF
14324rm -f conftest.$ac_objext
14325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326 (eval $ac_compile) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_header_compiler=yes
14337else
14338 echo "$as_me: failed program was:" >&5
14339cat conftest.$ac_ext >&5
14340ac_header_compiler=no
14341fi
14342rm -f conftest.$ac_objext conftest.$ac_ext
14343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14344echo "${ECHO_T}$ac_header_compiler" >&6
14345
14346# Is the header present?
14347echo "$as_me:$LINENO: checking $ac_header presence" >&5
14348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14349cat >conftest.$ac_ext <<_ACEOF
14350#line $LINENO "configure"
14351#include "confdefs.h"
14352@%:@include <$ac_header>
14353_ACEOF
14354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14356 ac_status=$?
14357 egrep -v '^ *\+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } >/dev/null; then
14362 if test -s conftest.err; then
14363 ac_cpp_err=$ac_c_preproc_warn_flag
14364 else
14365 ac_cpp_err=
14366 fi
14367else
14368 ac_cpp_err=yes
14369fi
14370if test -z "$ac_cpp_err"; then
14371 ac_header_preproc=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 ac_header_preproc=no
14376fi
14377rm -f conftest.err conftest.$ac_ext
14378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14379echo "${ECHO_T}$ac_header_preproc" >&6
14380
14381# So? What about this header?
14382case $ac_header_compiler:$ac_header_preproc in
14383 yes:no )
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14388 no:yes )
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14392echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14395esac
14396echo "$as_me:$LINENO: checking for $ac_header" >&5
14397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14398if eval "test \"\${$as_ac_Header+set}\" = set"; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 eval "$as_ac_Header=$ac_header_preproc"
14402fi
14403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14405
14406fi
14407if test `eval echo '${'$as_ac_Header'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14410_ACEOF
14411
14412fi
14413
14414done
14415
14416 if test "$ac_cv_header_sectok_h" != yes; then
14417 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14418echo "$as_me: error: Can't find sectok.h" >&2;}
14419 { (exit 1); exit 1; }; }
14420 fi
14421
14422echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14423echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14424if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427 ac_check_lib_save_LIBS=$LIBS
14428LIBS="-lsectok $LIBS"
14429cat >conftest.$ac_ext <<_ACEOF
14430#line $LINENO "configure"
14431#include "confdefs.h"
14432
14433/* Override any gcc2 internal prototype to avoid an error. */
14434#ifdef __cplusplus
14435extern "C"
14436#endif
14437/* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439char sectok_open ();
14440#ifdef F77_DUMMY_MAIN
14441# ifdef __cplusplus
14442 extern "C"
14443# endif
14444 int F77_DUMMY_MAIN() { return 1; }
14445#endif
14446int
14447main ()
14448{
14449sectok_open ();
14450 ;
14451 return 0;
14452}
14453_ACEOF
14454rm -f conftest.$ac_objext conftest$ac_exeext
14455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14456 (eval $ac_link) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest$ac_exeext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_lib_sectok_sectok_open=yes
14467else
14468 echo "$as_me: failed program was:" >&5
14469cat conftest.$ac_ext >&5
14470ac_cv_lib_sectok_sectok_open=no
14471fi
14472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14473LIBS=$ac_check_lib_save_LIBS
14474fi
14475echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14476echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14477if test $ac_cv_lib_sectok_sectok_open = yes; then
14478 cat >>confdefs.h <<_ACEOF
14479@%:@define HAVE_LIBSECTOK 1
14480_ACEOF
14481
14482 LIBS="-lsectok $LIBS"
14483
14484fi
14485
14486 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14487 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14488echo "$as_me: error: Can't find libsectok" >&2;}
14489 { (exit 1); exit 1; }; }
14490 fi
14491 cat >>confdefs.h <<\_ACEOF
14492@%:@define SMARTCARD 1
14493_ACEOF
14494
14495 cat >>confdefs.h <<\_ACEOF
14496@%:@define USE_SECTOK 1
14497_ACEOF
14498
14499 SCARD_MSG="yes, using sectok"
14500 fi
14501
14502
14503fi;
14504
14505# Check whether user wants OpenSC support
14506
14507# Check whether --with-opensc or --without-opensc was given.
14508if test "${with_opensc+set}" = set; then
14509 withval="$with_opensc"
14510 opensc_config_prefix="$withval"
14511else
14512 opensc_config_prefix=""
14513fi;
14514if test x$opensc_config_prefix != x ; then
14515 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14516 # Extract the first word of "opensc-config", so it can be a program name with args.
14517set dummy opensc-config; ac_word=$2
14518echo "$as_me:$LINENO: checking for $ac_word" >&5
14519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14520if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523 case $OPENSC_CONFIG in
14524 [\\/]* | ?:[\\/]*)
14525 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14526 ;;
14527 *)
14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529for as_dir in $PATH
14530do
14531 IFS=$as_save_IFS
14532 test -z "$as_dir" && as_dir=.
14533 for ac_exec_ext in '' $ac_executable_extensions; do
14534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14535 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14537 break 2
14538 fi
14539done
14540done
14541
14542 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14543 ;;
14544esac
14545fi
14546OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14547
14548if test -n "$OPENSC_CONFIG"; then
14549 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14550echo "${ECHO_T}$OPENSC_CONFIG" >&6
14551else
14552 echo "$as_me:$LINENO: result: no" >&5
14553echo "${ECHO_T}no" >&6
14554fi
14555
14556 if test "$OPENSC_CONFIG" != "no"; then
14557 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14558 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14559 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14560 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14561 cat >>confdefs.h <<\_ACEOF
14562@%:@define SMARTCARD 1
14563_ACEOF
14564
14565 cat >>confdefs.h <<\_ACEOF
14566@%:@define USE_OPENSC 1
14567_ACEOF
14568
14569 SCARD_MSG="yes, using OpenSC"
14570 fi
14571fi
14572
14573# Check whether user wants Kerberos 5 support
14574KRB5_MSG="no"
14575
14576# Check whether --with-kerberos5 or --without-kerberos5 was given.
14577if test "${with_kerberos5+set}" = set; then
14578 withval="$with_kerberos5"
14579
14580 if test "x$withval" != "xno" ; then
14581 if test "x$withval" = "xyes" ; then
14582 KRB5ROOT="/usr/local"
14583 else
14584 KRB5ROOT=${withval}
14585 fi
14586 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14587 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14588 cat >>confdefs.h <<\_ACEOF
14589@%:@define KRB5 1
14590_ACEOF
14591
14592 KRB5_MSG="yes"
14593 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
14594echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14596#line $LINENO "configure"
14597#include "confdefs.h"
14598 #include <krb5.h>
14599#ifdef F77_DUMMY_MAIN
14600# ifdef __cplusplus
14601 extern "C"
14602# endif
14603 int F77_DUMMY_MAIN() { return 1; }
14604#endif
14605int
14606main ()
14607{
14608 char *tmp = heimdal_version;
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 echo "$as_me:$LINENO: result: yes" >&5
14626echo "${ECHO_T}yes" >&6
14627 cat >>confdefs.h <<\_ACEOF
14628@%:@define HEIMDAL 1
14629_ACEOF
14630
14631 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
14632
14633else
14634 echo "$as_me: failed program was:" >&5
14635cat conftest.$ac_ext >&5
14636 echo "$as_me:$LINENO: result: no" >&5
14637echo "${ECHO_T}no" >&6
14638 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14639
14640
14641fi
14642rm -f conftest.$ac_objext conftest.$ac_ext
14643 if test ! -z "$need_dash_r" ; then
14644 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14645 fi
14646 if test ! -z "$blibpath" ; then
14647 blibpath="$blibpath:${KRB5ROOT}/lib"
14648 fi
14649
14650echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
14651echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
14652if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654else
14655 ac_check_lib_save_LIBS=$LIBS
14656LIBS="-lresolv $LIBS"
14657cat >conftest.$ac_ext <<_ACEOF
14658#line $LINENO "configure"
14659#include "confdefs.h"
14660
14661/* Override any gcc2 internal prototype to avoid an error. */
14662#ifdef __cplusplus
14663extern "C"
14664#endif
14665/* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14667char dn_expand ();
14668#ifdef F77_DUMMY_MAIN
14669# ifdef __cplusplus
14670 extern "C"
14671# endif
14672 int F77_DUMMY_MAIN() { return 1; }
14673#endif
14674int
14675main ()
14676{
14677dn_expand ();
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext conftest$ac_exeext
14683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684 (eval $ac_link) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_lib_resolv_dn_expand=yes
14695else
14696 echo "$as_me: failed program was:" >&5
14697cat conftest.$ac_ext >&5
14698ac_cv_lib_resolv_dn_expand=no
14699fi
14700rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14701LIBS=$ac_check_lib_save_LIBS
14702fi
14703echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
14704echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
14705if test $ac_cv_lib_resolv_dn_expand = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707@%:@define HAVE_LIBRESOLV 1
14708_ACEOF
14709
14710 LIBS="-lresolv $LIBS"
14711
14712fi
14713
14714
14715 KRB5=yes
14716 fi
14717
14718
14719fi;
14720# Check whether user wants Kerberos 4 support
14721KRB4_MSG="no"
14722
14723# Check whether --with-kerberos4 or --without-kerberos4 was given.
14724if test "${with_kerberos4+set}" = set; then
14725 withval="$with_kerberos4"
14726
14727 if test "x$withval" != "xno" ; then
14728 if test "x$withval" != "xyes" ; then
14729 CPPFLAGS="$CPPFLAGS -I${withval}/include"
14730 LDFLAGS="$LDFLAGS -L${withval}/lib"
14731 if test ! -z "$need_dash_r" ; then
14732 LDFLAGS="$LDFLAGS -R${withval}/lib"
14733 fi
14734 if test ! -z "$blibpath" ; then
14735 blibpath="$blibpath:${withval}/lib"
14736 fi
14737 else
14738 if test -d /usr/include/kerberosIV ; then
14739 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
14740 fi
14741 fi
14742
14743
14744for ac_header in krb.h
14745do
14746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14747if eval "test \"\${$as_ac_Header+set}\" = set"; then
14748 echo "$as_me:$LINENO: checking for $ac_header" >&5
14749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14750if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752fi
14753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14755else
14756 # Is the header compilable?
14757echo "$as_me:$LINENO: checking $ac_header usability" >&5
14758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14759cat >conftest.$ac_ext <<_ACEOF
14760#line $LINENO "configure"
14761#include "confdefs.h"
14762$ac_includes_default
14763@%:@include <$ac_header>
14764_ACEOF
14765rm -f conftest.$ac_objext
14766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
14771 { ac_try='test -s conftest.$ac_objext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_header_compiler=yes
14778else
14779 echo "$as_me: failed program was:" >&5
14780cat conftest.$ac_ext >&5
14781ac_header_compiler=no
14782fi
14783rm -f conftest.$ac_objext conftest.$ac_ext
14784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14785echo "${ECHO_T}$ac_header_compiler" >&6
14786
14787# Is the header present?
14788echo "$as_me:$LINENO: checking $ac_header presence" >&5
14789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14790cat >conftest.$ac_ext <<_ACEOF
14791#line $LINENO "configure"
14792#include "confdefs.h"
14793@%:@include <$ac_header>
14794_ACEOF
14795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14797 ac_status=$?
14798 egrep -v '^ *\+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 else
14806 ac_cpp_err=
14807 fi
14808else
14809 ac_cpp_err=yes
14810fi
14811if test -z "$ac_cpp_err"; then
14812 ac_header_preproc=yes
14813else
14814 echo "$as_me: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14816 ac_header_preproc=no
14817fi
14818rm -f conftest.err conftest.$ac_ext
14819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820echo "${ECHO_T}$ac_header_preproc" >&6
14821
14822# So? What about this header?
14823case $ac_header_compiler:$ac_header_preproc in
14824 yes:no )
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14829 no:yes )
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14836esac
14837echo "$as_me:$LINENO: checking for $ac_header" >&5
14838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14839if eval "test \"\${$as_ac_Header+set}\" = set"; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 eval "$as_ac_Header=$ac_header_preproc"
14843fi
14844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14846
14847fi
14848if test `eval echo '${'$as_ac_Header'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14851_ACEOF
14852
14853fi
14854
14855done
14856
14857 if test "$ac_cv_header_krb_h" != yes; then
14858 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
14859echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
14860 fi
14861
14862echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14863echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14864if test "${ac_cv_lib_krb_main+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866else
14867 ac_check_lib_save_LIBS=$LIBS
14868LIBS="-lkrb $LIBS"
14869cat >conftest.$ac_ext <<_ACEOF
14870#line $LINENO "configure"
14871#include "confdefs.h"
14872
14873
14874#ifdef F77_DUMMY_MAIN
14875# ifdef __cplusplus
14876 extern "C"
14877# endif
14878 int F77_DUMMY_MAIN() { return 1; }
14879#endif
14880int
14881main ()
14882{
14883main ();
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext conftest$ac_exeext
14889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest$ac_exeext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_cv_lib_krb_main=yes
14901else
14902 echo "$as_me: failed program was:" >&5
14903cat conftest.$ac_ext >&5
14904ac_cv_lib_krb_main=no
14905fi
14906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14907LIBS=$ac_check_lib_save_LIBS
14908fi
14909echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
14910echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
14911if test $ac_cv_lib_krb_main = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913@%:@define HAVE_LIBKRB 1
14914_ACEOF
14915
14916 LIBS="-lkrb $LIBS"
14917
14918fi
14919
14920 if test "$ac_cv_lib_krb_main" != yes; then
14921
14922echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14923echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14924if test "${ac_cv_lib_krb4_main+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926else
14927 ac_check_lib_save_LIBS=$LIBS
14928LIBS="-lkrb4 $LIBS"
14929cat >conftest.$ac_ext <<_ACEOF
14930#line $LINENO "configure"
14931#include "confdefs.h"
14932
14933
14934#ifdef F77_DUMMY_MAIN
14935# ifdef __cplusplus
14936 extern "C"
14937# endif
14938 int F77_DUMMY_MAIN() { return 1; }
14939#endif
14940int
14941main ()
14942{
14943main ();
14944 ;
14945 return 0;
14946}
14947_ACEOF
14948rm -f conftest.$ac_objext conftest$ac_exeext
14949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950 (eval $ac_link) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -s conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_lib_krb4_main=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963cat conftest.$ac_ext >&5
14964ac_cv_lib_krb4_main=no
14965fi
14966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14967LIBS=$ac_check_lib_save_LIBS
14968fi
14969echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
14970echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
14971if test $ac_cv_lib_krb4_main = yes; then
14972 cat >>confdefs.h <<_ACEOF
14973@%:@define HAVE_LIBKRB4 1
14974_ACEOF
14975
14976 LIBS="-lkrb4 $LIBS"
14977
14978fi
14979
14980 if test "$ac_cv_lib_krb4_main" != yes; then
14981 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
14982echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
14983 else
14984 KLIBS="-lkrb4"
14985 fi
14986 else
14987 KLIBS="-lkrb"
14988 fi
14989
14990echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14991echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14992if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994else
14995 ac_check_lib_save_LIBS=$LIBS
14996LIBS="-ldes $LIBS"
14997cat >conftest.$ac_ext <<_ACEOF
14998#line $LINENO "configure"
14999#include "confdefs.h"
15000
15001/* Override any gcc2 internal prototype to avoid an error. */
15002#ifdef __cplusplus
15003extern "C"
15004#endif
15005/* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15007char des_cbc_encrypt ();
15008#ifdef F77_DUMMY_MAIN
15009# ifdef __cplusplus
15010 extern "C"
15011# endif
15012 int F77_DUMMY_MAIN() { return 1; }
15013#endif
15014int
15015main ()
15016{
15017des_cbc_encrypt ();
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext conftest$ac_exeext
15023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_lib_des_des_cbc_encrypt=yes
15035else
15036 echo "$as_me: failed program was:" >&5
15037cat conftest.$ac_ext >&5
15038ac_cv_lib_des_des_cbc_encrypt=no
15039fi
15040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15041LIBS=$ac_check_lib_save_LIBS
15042fi
15043echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15044echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15045if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047@%:@define HAVE_LIBDES 1
15048_ACEOF
15049
15050 LIBS="-ldes $LIBS"
15051
15052fi
15053
15054 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15055
15056echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15057echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15058if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060else
15061 ac_check_lib_save_LIBS=$LIBS
15062LIBS="-ldes425 $LIBS"
15063cat >conftest.$ac_ext <<_ACEOF
15064#line $LINENO "configure"
15065#include "confdefs.h"
15066
15067/* Override any gcc2 internal prototype to avoid an error. */
15068#ifdef __cplusplus
15069extern "C"
15070#endif
15071/* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073char des_cbc_encrypt ();
15074#ifdef F77_DUMMY_MAIN
15075# ifdef __cplusplus
15076 extern "C"
15077# endif
15078 int F77_DUMMY_MAIN() { return 1; }
15079#endif
15080int
15081main ()
15082{
15083des_cbc_encrypt ();
15084 ;
15085 return 0;
15086}
15087_ACEOF
15088rm -f conftest.$ac_objext conftest$ac_exeext
15089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -s conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_lib_des425_des_cbc_encrypt=yes
15101else
15102 echo "$as_me: failed program was:" >&5
15103cat conftest.$ac_ext >&5
15104ac_cv_lib_des425_des_cbc_encrypt=no
15105fi
15106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15107LIBS=$ac_check_lib_save_LIBS
15108fi
15109echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15110echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15111if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113@%:@define HAVE_LIBDES425 1
15114_ACEOF
15115
15116 LIBS="-ldes425 $LIBS"
15117
15118fi
15119
15120 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15121 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15122echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15123 else
15124 KLIBS="-ldes425"
15125 fi
15126 else
15127 KLIBS="-ldes"
15128 fi
15129
15130echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15131echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15132if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134else
15135 ac_check_lib_save_LIBS=$LIBS
15136LIBS="-lresolv $LIBS"
15137cat >conftest.$ac_ext <<_ACEOF
15138#line $LINENO "configure"
15139#include "confdefs.h"
15140
15141/* Override any gcc2 internal prototype to avoid an error. */
15142#ifdef __cplusplus
15143extern "C"
15144#endif
15145/* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15147char dn_expand ();
15148#ifdef F77_DUMMY_MAIN
15149# ifdef __cplusplus
15150 extern "C"
15151# endif
15152 int F77_DUMMY_MAIN() { return 1; }
15153#endif
15154int
15155main ()
15156{
15157dn_expand ();
15158 ;
15159 return 0;
15160}
15161_ACEOF
15162rm -f conftest.$ac_objext conftest$ac_exeext
15163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164 (eval $ac_link) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_lib_resolv_dn_expand=yes
15175else
15176 echo "$as_me: failed program was:" >&5
15177cat conftest.$ac_ext >&5
15178ac_cv_lib_resolv_dn_expand=no
15179fi
15180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15181LIBS=$ac_check_lib_save_LIBS
15182fi
15183echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15184echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15185if test $ac_cv_lib_resolv_dn_expand = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187@%:@define HAVE_LIBRESOLV 1
15188_ACEOF
15189
15190 LIBS="-lresolv $LIBS"
15191
15192fi
15193
15194 KRB4=yes
15195 KRB4_MSG="yes"
15196 cat >>confdefs.h <<\_ACEOF
15197@%:@define KRB4 1
15198_ACEOF
15199
15200 fi
15201
15202
15203fi;
15204
15205# Check whether user wants AFS support
15206AFS_MSG="no"
15207
15208# Check whether --with-afs or --without-afs was given.
15209if test "${with_afs+set}" = set; then
15210 withval="$with_afs"
15211
15212 if test "x$withval" != "xno" ; then
15213
15214 if test "x$withval" != "xyes" ; then
15215 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15216 LDFLAGS="$LDFLAGS -L${withval}/lib"
15217 fi
15218
15219 if test -z "$KRB4" ; then
15220 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15221echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15222 fi
15223
15224 LIBS="-lkafs $LIBS"
15225 if test ! -z "$AFS_LIBS" ; then
15226 LIBS="$LIBS $AFS_LIBS"
15227 fi
15228 cat >>confdefs.h <<\_ACEOF
15229@%:@define AFS 1
15230_ACEOF
15231
15232 AFS_MSG="yes"
15233 fi
15234
15235
15236fi;
15237LIBS="$LIBS $KLIBS $K5LIBS"
15238
15239# Looking for programs, paths and files
15240
15241# Check whether --with-rsh or --without-rsh was given.
15242if test "${with_rsh+set}" = set; then
15243 withval="$with_rsh"
15244
15245 if test "x$withval" != "$no" ; then
15246 rsh_path=$withval
15247 fi
15248
15249else
15250
15251 # Extract the first word of "rsh", so it can be a program name with args.
15252set dummy rsh; ac_word=$2
15253echo "$as_me:$LINENO: checking for $ac_word" >&5
15254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15255if test "${ac_cv_path_rsh_path+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257else
15258 case $rsh_path in
15259 [\\/]* | ?:[\\/]*)
15260 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
15261 ;;
15262 *)
15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264for as_dir in $PATH
15265do
15266 IFS=$as_save_IFS
15267 test -z "$as_dir" && as_dir=.
15268 for ac_exec_ext in '' $ac_executable_extensions; do
15269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15270 ac_cv_path_rsh_path="$as_dir/$ac_word$ac_exec_ext"
15271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15272 break 2
15273 fi
15274done
15275done
15276
15277 ;;
15278esac
15279fi
15280rsh_path=$ac_cv_path_rsh_path
15281
15282if test -n "$rsh_path"; then
15283 echo "$as_me:$LINENO: result: $rsh_path" >&5
15284echo "${ECHO_T}$rsh_path" >&6
15285else
15286 echo "$as_me:$LINENO: result: no" >&5
15287echo "${ECHO_T}no" >&6
15288fi
15289
15290
15291
15292fi;
15293
15294PRIVSEP_PATH=/var/empty
15295
15296# Check whether --with-privsep-path or --without-privsep-path was given.
15297if test "${with_privsep_path+set}" = set; then
15298 withval="$with_privsep_path"
15299
15300 if test "x$withval" != "$no" ; then
15301 PRIVSEP_PATH=$withval
15302 fi
15303
15304
15305fi;
15306
15307
15308
15309# Check whether --with-xauth or --without-xauth was given.
15310if test "${with_xauth+set}" = set; then
15311 withval="$with_xauth"
15312
15313 if test "x$withval" != "xno" ; then
15314 xauth_path=$withval
15315 fi
15316
15317else
15318
15319 # Extract the first word of "xauth", so it can be a program name with args.
15320set dummy xauth; ac_word=$2
15321echo "$as_me:$LINENO: checking for $ac_word" >&5
15322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15323if test "${ac_cv_path_xauth_path+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325else
15326 case $xauth_path in
15327 [\\/]* | ?:[\\/]*)
15328 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15329 ;;
15330 *)
15331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin
15333do
15334 IFS=$as_save_IFS
15335 test -z "$as_dir" && as_dir=.
15336 for ac_exec_ext in '' $ac_executable_extensions; do
15337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15338 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15340 break 2
15341 fi
15342done
15343done
15344
15345 ;;
15346esac
15347fi
15348xauth_path=$ac_cv_path_xauth_path
15349
15350if test -n "$xauth_path"; then
15351 echo "$as_me:$LINENO: result: $xauth_path" >&5
15352echo "${ECHO_T}$xauth_path" >&6
15353else
15354 echo "$as_me:$LINENO: result: no" >&5
15355echo "${ECHO_T}no" >&6
15356fi
15357
15358 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15359 xauth_path="/usr/openwin/bin/xauth"
15360 fi
15361
15362
15363fi;
15364
15365if test -z "$xauth_path" ; then
15366 XAUTH_PATH="undefined"
15367
15368else
15369 cat >>confdefs.h <<_ACEOF
15370@%:@define XAUTH_PATH "$xauth_path"
15371_ACEOF
15372
15373 XAUTH_PATH=$xauth_path
15374
15375fi
15376if test ! -z "$rsh_path" ; then
15377 cat >>confdefs.h <<_ACEOF
15378@%:@define RSH_PATH "$rsh_path"
15379_ACEOF
15380
15381fi
15382
15383# Check for mail directory (last resort if we cannot get it from headers)
15384if test ! -z "$MAIL" ; then
15385 maildir=`dirname $MAIL`
15386 cat >>confdefs.h <<_ACEOF
15387@%:@define MAIL_DIRECTORY "$maildir"
15388_ACEOF
15389
15390fi
15391
15392if test -z "$no_dev_ptmx" ; then
15393 if test "x$disable_ptmx_check" != "xyes" ; then
15394 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15395echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15396if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398else
15399 test "$cross_compiling" = yes &&
15400 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15401echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15402 { (exit 1); exit 1; }; }
15403if test -r ""/dev/ptmx""; then
15404 ac_cv_file___dev_ptmx_=yes
15405else
15406 ac_cv_file___dev_ptmx_=no
15407fi
15408fi
15409echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15410echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15411if test $ac_cv_file___dev_ptmx_ = yes; then
15412
15413 cat >>confdefs.h <<_ACEOF
15414@%:@define HAVE_DEV_PTMX 1
15415_ACEOF
15416
15417 have_dev_ptmx=1
15418
15419
15420fi
15421
15422 fi
15423fi
15424echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15425echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15426if test "${ac_cv_file___dev_ptc_+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428else
15429 test "$cross_compiling" = yes &&
15430 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15431echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15432 { (exit 1); exit 1; }; }
15433if test -r ""/dev/ptc""; then
15434 ac_cv_file___dev_ptc_=yes
15435else
15436 ac_cv_file___dev_ptc_=no
15437fi
15438fi
15439echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15440echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15441if test $ac_cv_file___dev_ptc_ = yes; then
15442
15443 cat >>confdefs.h <<_ACEOF
15444@%:@define HAVE_DEV_PTS_AND_PTC 1
15445_ACEOF
15446
15447 have_dev_ptc=1
15448
15449
15450fi
15451
15452
15453# Options from here on. Some of these are preset by platform above
15454
15455# Check whether --with-mantype or --without-mantype was given.
15456if test "${with_mantype+set}" = set; then
15457 withval="$with_mantype"
15458
15459 case "$withval" in
15460 man|cat|doc)
15461 MANTYPE=$withval
15462 ;;
15463 *)
15464 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15465echo "$as_me: error: invalid man type: $withval" >&2;}
15466 { (exit 1); exit 1; }; }
15467 ;;
15468 esac
15469
15470
15471fi;
15472if test -z "$MANTYPE"; then
15473 for ac_prog in nroff awf
15474do
15475 # Extract the first word of "$ac_prog", so it can be a program name with args.
15476set dummy $ac_prog; ac_word=$2
15477echo "$as_me:$LINENO: checking for $ac_word" >&5
15478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15479if test "${ac_cv_path_NROFF+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481else
15482 case $NROFF in
15483 [\\/]* | ?:[\\/]*)
15484 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15485 ;;
15486 *)
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488as_dummy="/usr/bin:/usr/ucb"
15489for as_dir in $as_dummy
15490do
15491 IFS=$as_save_IFS
15492 test -z "$as_dir" && as_dir=.
15493 for ac_exec_ext in '' $ac_executable_extensions; do
15494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15497 break 2
15498 fi
15499done
15500done
15501
15502 ;;
15503esac
15504fi
15505NROFF=$ac_cv_path_NROFF
15506
15507if test -n "$NROFF"; then
15508 echo "$as_me:$LINENO: result: $NROFF" >&5
15509echo "${ECHO_T}$NROFF" >&6
15510else
15511 echo "$as_me:$LINENO: result: no" >&5
15512echo "${ECHO_T}no" >&6
15513fi
15514
15515 test -n "$NROFF" && break
15516done
15517test -n "$NROFF" || NROFF="/bin/false"
15518
15519 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15520 MANTYPE=doc
15521 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15522 MANTYPE=man
15523 else
15524 MANTYPE=cat
15525 fi
15526fi
15527
15528if test "$MANTYPE" = "doc"; then
15529 mansubdir=man;
15530else
15531 mansubdir=$MANTYPE;
15532fi
15533
15534
15535# Check whether to enable MD5 passwords
15536MD5_MSG="no"
15537
15538# Check whether --with-md5-passwords or --without-md5-passwords was given.
15539if test "${with_md5_passwords+set}" = set; then
15540 withval="$with_md5_passwords"
15541
15542 if test "x$withval" != "xno" ; then
15543 cat >>confdefs.h <<\_ACEOF
15544@%:@define HAVE_MD5_PASSWORDS 1
15545_ACEOF
15546
15547 MD5_MSG="yes"
15548 fi
15549
15550
15551fi;
15552
15553# Whether to disable shadow password support
15554
15555# Check whether --with-shadow or --without-shadow was given.
15556if test "${with_shadow+set}" = set; then
15557 withval="$with_shadow"
15558
15559 if test "x$withval" = "xno" ; then
15560 cat >>confdefs.h <<\_ACEOF
15561@%:@define DISABLE_SHADOW 1
15562_ACEOF
15563
15564 disable_shadow=yes
15565 fi
15566
15567
15568fi;
15569
15570if test -z "$disable_shadow" ; then
15571 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15572echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15573 cat >conftest.$ac_ext <<_ACEOF
15574#line $LINENO "configure"
15575#include "confdefs.h"
15576
15577#include <sys/types.h>
15578#include <shadow.h>
15579 struct spwd sp;
15580
15581#ifdef F77_DUMMY_MAIN
15582# ifdef __cplusplus
15583 extern "C"
15584# endif
15585 int F77_DUMMY_MAIN() { return 1; }
15586#endif
15587int
15588main ()
15589{
15590 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15591 ;
15592 return 0;
15593}
15594_ACEOF
15595rm -f conftest.$ac_objext
15596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15597 (eval $ac_compile) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 sp_expire_available=yes
15608else
15609 echo "$as_me: failed program was:" >&5
15610cat conftest.$ac_ext >&5
15611
15612
15613fi
15614rm -f conftest.$ac_objext conftest.$ac_ext
15615
15616 if test "x$sp_expire_available" = "xyes" ; then
15617 echo "$as_me:$LINENO: result: yes" >&5
15618echo "${ECHO_T}yes" >&6
15619 cat >>confdefs.h <<\_ACEOF
15620@%:@define HAS_SHADOW_EXPIRE 1
15621_ACEOF
15622
15623 else
15624 echo "$as_me:$LINENO: result: no" >&5
15625echo "${ECHO_T}no" >&6
15626 fi
15627fi
15628
15629# Use ip address instead of hostname in $DISPLAY
15630if test ! -z "$IPADDR_IN_DISPLAY" ; then
15631 DISPLAY_HACK_MSG="yes"
15632 cat >>confdefs.h <<\_ACEOF
15633@%:@define IPADDR_IN_DISPLAY 1
15634_ACEOF
15635
15636else
15637 DISPLAY_HACK_MSG="no"
15638
15639# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
15640if test "${with_ipaddr_display+set}" = set; then
15641 withval="$with_ipaddr_display"
15642
15643 if test "x$withval" != "xno" ; then
15644 cat >>confdefs.h <<\_ACEOF
15645@%:@define IPADDR_IN_DISPLAY 1
15646_ACEOF
15647
15648 DISPLAY_HACK_MSG="yes"
15649 fi
15650
15651
15652fi;
15653fi
15654
15655if test $ac_cv_func_login_getcapbool = "yes" -a \
15656 $ac_cv_header_login_cap_h = "yes" ; then
15657 USES_LOGIN_CONF=yes
15658fi
15659# Whether to mess with the default path
15660SERVER_PATH_MSG="(default)"
15661
15662# Check whether --with-default-path or --without-default-path was given.
15663if test "${with_default_path+set}" = set; then
15664 withval="$with_default_path"
15665
15666 if test "$USES_LOGIN_CONF" = "yes" ; then
15667 { echo "$as_me:$LINENO: WARNING:
15668--with-default-path=PATH has no effect on this system.
15669Edit /etc/login.conf instead." >&5
15670echo "$as_me: WARNING:
15671--with-default-path=PATH has no effect on this system.
15672Edit /etc/login.conf instead." >&2;}
15673 elif test "x$withval" != "xno" ; then
15674 user_path="$withval"
15675 SERVER_PATH_MSG="$withval"
15676 fi
15677
15678else
15679 if test "$USES_LOGIN_CONF" = "yes" ; then
15680 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15681echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15682 else
15683 if test "$cross_compiling" = yes; then
15684 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15685
15686else
15687 cat >conftest.$ac_ext <<_ACEOF
15688#line $LINENO "configure"
15689#include "confdefs.h"
15690
15691/* find out what STDPATH is */
15692#include <stdio.h>
15693#ifdef HAVE_PATHS_H
15694# include <paths.h>
15695#endif
15696#ifndef _PATH_STDPATH
15697# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15698#endif
15699#include <sys/types.h>
15700#include <sys/stat.h>
15701#include <fcntl.h>
15702#define DATA "conftest.stdpath"
15703
15704main()
15705{
15706 FILE *fd;
15707 int rc;
15708
15709 fd = fopen(DATA,"w");
15710 if(fd == NULL)
15711 exit(1);
15712
15713 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15714 exit(1);
15715
15716 exit(0);
15717}
15718
15719_ACEOF
15720rm -f conftest$ac_exeext
15721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15722 (eval $ac_link) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 user_path=`cat conftest.stdpath`
15732else
15733 echo "$as_me: program exited with status $ac_status" >&5
15734echo "$as_me: failed program was:" >&5
15735cat conftest.$ac_ext >&5
15736( exit $ac_status )
15737 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15738fi
15739rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15740fi
15741# make sure $bindir is in USER_PATH so scp will work
15742 t_bindir=`eval echo ${bindir}`
15743 case $t_bindir in
15744 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15745 esac
15746 case $t_bindir in
15747 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15748 esac
15749 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15750 if test $? -ne 0 ; then
15751 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15752 if test $? -ne 0 ; then
15753 user_path=$user_path:$t_bindir
15754 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15755echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
15756 fi
15757 fi
15758 fi
15759
15760fi;
15761if test "$USES_LOGIN_CONF" != "yes" ; then
15762 cat >>confdefs.h <<_ACEOF
15763@%:@define USER_PATH "$user_path"
15764_ACEOF
15765
15766
15767fi
15768
15769# Set superuser path separately to user path
700318f3 15770
15771# Check whether --with-superuser-path or --without-superuser-path was given.
15772if test "${with_superuser_path+set}" = set; then
15773 withval="$with_superuser_path"
15774
15775 if test "x$withval" != "xno" ; then
15776 cat >>confdefs.h <<_ACEOF
15777@%:@define SUPERUSER_PATH "$withval"
15778_ACEOF
15779
15780 superuser_path=$withval
15781 fi
15782
15783
15784fi;
15785
15786
15787# Whether to force IPv4 by default (needed on broken glibc Linux)
15788IPV4_HACK_MSG="no"
15789
15790# Check whether --with-ipv4-default or --without-ipv4-default was given.
15791if test "${with_ipv4_default+set}" = set; then
15792 withval="$with_ipv4_default"
15793
15794 if test "x$withval" != "xno" ; then
15795 cat >>confdefs.h <<\_ACEOF
15796@%:@define IPV4_DEFAULT 1
15797_ACEOF
15798
15799 IPV4_HACK_MSG="yes"
15800 fi
15801
15802
15803fi;
15804
15805echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15806echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
15807IPV4_IN6_HACK_MSG="no"
15808
15809# Check whether --with-4in6 or --without-4in6 was given.
15810if test "${with_4in6+set}" = set; then
15811 withval="$with_4in6"
15812
15813 if test "x$withval" != "xno" ; then
15814 echo "$as_me:$LINENO: result: yes" >&5
15815echo "${ECHO_T}yes" >&6
15816 cat >>confdefs.h <<\_ACEOF
15817@%:@define IPV4_IN_IPV6 1
15818_ACEOF
15819
15820 IPV4_IN6_HACK_MSG="yes"
15821 else
15822 echo "$as_me:$LINENO: result: no" >&5
15823echo "${ECHO_T}no" >&6
15824 fi
15825
15826else
15827
15828 if test "x$inet6_default_4in6" = "xyes"; then
15829 echo "$as_me:$LINENO: result: yes (default)" >&5
15830echo "${ECHO_T}yes (default)" >&6
15831 cat >>confdefs.h <<\_ACEOF
15832@%:@define IPV4_IN_IPV6 1
15833_ACEOF
15834
15835 IPV4_IN6_HACK_MSG="yes"
15836 else
15837 echo "$as_me:$LINENO: result: no (default)" >&5
15838echo "${ECHO_T}no (default)" >&6
15839 fi
15840
15841
15842fi;
15843
15844# Whether to enable BSD auth support
15845BSD_AUTH_MSG=no
15846
15847# Check whether --with-bsd-auth or --without-bsd-auth was given.
15848if test "${with_bsd_auth+set}" = set; then
15849 withval="$with_bsd_auth"
15850
15851 if test "x$withval" != "xno" ; then
15852 cat >>confdefs.h <<\_ACEOF
15853@%:@define BSD_AUTH 1
15854_ACEOF
15855
15856 BSD_AUTH_MSG=yes
15857 fi
15858
15859
15860fi;
15861
700318f3 15862# Where to place sshd.pid
15863piddir=/var/run
15864# make sure the directory exists
15865if test ! -d $piddir ; then
15866 piddir=`eval echo ${sysconfdir}`
15867 case $piddir in
15868 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15869 esac
15870fi
15871
15872
15873# Check whether --with-pid-dir or --without-pid-dir was given.
15874if test "${with_pid_dir+set}" = set; then
15875 withval="$with_pid_dir"
15876
15877 if test "x$withval" != "xno" ; then
15878 piddir=$withval
15879 if test ! -d $piddir ; then
15880 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
15881echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15882 fi
15883 fi
15884
15885
15886fi;
15887
15888cat >>confdefs.h <<_ACEOF
15889@%:@define _PATH_SSH_PIDDIR "$piddir"
15890_ACEOF
15891
15892
15893
15894# Check whether --enable-lastlog or --disable-lastlog was given.
15895if test "${enable_lastlog+set}" = set; then
15896 enableval="$enable_lastlog"
15897 cat >>confdefs.h <<\_ACEOF
15898@%:@define DISABLE_LASTLOG 1
15899_ACEOF
15900
15901
15902fi;
15903# Check whether --enable-utmp or --disable-utmp was given.
15904if test "${enable_utmp+set}" = set; then
15905 enableval="$enable_utmp"
15906 cat >>confdefs.h <<\_ACEOF
15907@%:@define DISABLE_UTMP 1
15908_ACEOF
15909
15910
15911fi;
15912# Check whether --enable-utmpx or --disable-utmpx was given.
15913if test "${enable_utmpx+set}" = set; then
15914 enableval="$enable_utmpx"
15915 cat >>confdefs.h <<\_ACEOF
15916@%:@define DISABLE_UTMPX 1
15917_ACEOF
15918
15919
15920fi;
15921# Check whether --enable-wtmp or --disable-wtmp was given.
15922if test "${enable_wtmp+set}" = set; then
15923 enableval="$enable_wtmp"
15924 cat >>confdefs.h <<\_ACEOF
15925@%:@define DISABLE_WTMP 1
15926_ACEOF
15927
15928
15929fi;
15930# Check whether --enable-wtmpx or --disable-wtmpx was given.
15931if test "${enable_wtmpx+set}" = set; then
15932 enableval="$enable_wtmpx"
15933 cat >>confdefs.h <<\_ACEOF
15934@%:@define DISABLE_WTMPX 1
15935_ACEOF
15936
15937
15938fi;
15939# Check whether --enable-libutil or --disable-libutil was given.
15940if test "${enable_libutil+set}" = set; then
15941 enableval="$enable_libutil"
15942 cat >>confdefs.h <<\_ACEOF
15943@%:@define DISABLE_LOGIN 1
15944_ACEOF
15945
15946
15947fi;
15948# Check whether --enable-pututline or --disable-pututline was given.
15949if test "${enable_pututline+set}" = set; then
15950 enableval="$enable_pututline"
15951 cat >>confdefs.h <<\_ACEOF
15952@%:@define DISABLE_PUTUTLINE 1
15953_ACEOF
15954
15955
15956fi;
15957# Check whether --enable-pututxline or --disable-pututxline was given.
15958if test "${enable_pututxline+set}" = set; then
15959 enableval="$enable_pututxline"
15960 cat >>confdefs.h <<\_ACEOF
15961@%:@define DISABLE_PUTUTXLINE 1
15962_ACEOF
15963
15964
15965fi;
15966
15967# Check whether --with-lastlog or --without-lastlog was given.
15968if test "${with_lastlog+set}" = set; then
15969 withval="$with_lastlog"
15970
15971 if test "x$withval" = "xno" ; then
15972 cat >>confdefs.h <<\_ACEOF
15973@%:@define DISABLE_LASTLOG 1
15974_ACEOF
15975
15976 else
15977 conf_lastlog_location=$withval
15978 fi
15979
15980
15981fi;
15982
15983
15984echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
15985echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
15986cat >conftest.$ac_ext <<_ACEOF
15987#line $LINENO "configure"
15988#include "confdefs.h"
15989
15990#include <sys/types.h>
15991#include <utmp.h>
15992#ifdef HAVE_LASTLOG_H
15993# include <lastlog.h>
15994#endif
15995#ifdef HAVE_PATHS_H
15996# include <paths.h>
15997#endif
15998#ifdef HAVE_LOGIN_H
15999# include <login.h>
16000#endif
16001
16002#ifdef F77_DUMMY_MAIN
16003# ifdef __cplusplus
16004 extern "C"
16005# endif
16006 int F77_DUMMY_MAIN() { return 1; }
16007#endif
16008int
16009main ()
16010{
16011 char *lastlog = LASTLOG_FILE;
16012 ;
16013 return 0;
16014}
16015_ACEOF
16016rm -f conftest.$ac_objext
16017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -s conftest.$ac_objext'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028 echo "$as_me:$LINENO: result: yes" >&5
16029echo "${ECHO_T}yes" >&6
16030else
16031 echo "$as_me: failed program was:" >&5
16032cat conftest.$ac_ext >&5
16033
16034 echo "$as_me:$LINENO: result: no" >&5
16035echo "${ECHO_T}no" >&6
16036 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16037echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16038 cat >conftest.$ac_ext <<_ACEOF
16039#line $LINENO "configure"
16040#include "confdefs.h"
16041
16042#include <sys/types.h>
16043#include <utmp.h>
16044#ifdef HAVE_LASTLOG_H
16045# include <lastlog.h>
16046#endif
16047#ifdef HAVE_PATHS_H
16048# include <paths.h>
16049#endif
16050
16051#ifdef F77_DUMMY_MAIN
16052# ifdef __cplusplus
16053 extern "C"
16054# endif
16055 int F77_DUMMY_MAIN() { return 1; }
16056#endif
16057int
16058main ()
16059{
16060 char *lastlog = _PATH_LASTLOG;
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext
16066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -s conftest.$ac_objext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 echo "$as_me:$LINENO: result: yes" >&5
16078echo "${ECHO_T}yes" >&6
16079else
16080 echo "$as_me: failed program was:" >&5
16081cat conftest.$ac_ext >&5
16082
16083 echo "$as_me:$LINENO: result: no" >&5
16084echo "${ECHO_T}no" >&6
16085 system_lastlog_path=no
16086
16087fi
16088rm -f conftest.$ac_objext conftest.$ac_ext
16089
16090
16091fi
16092rm -f conftest.$ac_objext conftest.$ac_ext
16093
16094if test -z "$conf_lastlog_location"; then
16095 if test x"$system_lastlog_path" = x"no" ; then
16096 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16097 if (test -d "$f" || test -f "$f") ; then
16098 conf_lastlog_location=$f
16099 fi
16100 done
16101 if test -z "$conf_lastlog_location"; then
16102 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16103echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16104 fi
16105 fi
16106fi
16107
16108if test -n "$conf_lastlog_location"; then
16109 cat >>confdefs.h <<_ACEOF
16110@%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16111_ACEOF
16112
16113fi
16114
16115echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16116echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16117cat >conftest.$ac_ext <<_ACEOF
16118#line $LINENO "configure"
16119#include "confdefs.h"
16120
16121#include <sys/types.h>
16122#include <utmp.h>
16123#ifdef HAVE_PATHS_H
16124# include <paths.h>
16125#endif
16126
16127#ifdef F77_DUMMY_MAIN
16128# ifdef __cplusplus
16129 extern "C"
16130# endif
16131 int F77_DUMMY_MAIN() { return 1; }
16132#endif
16133int
16134main ()
16135{
16136 char *utmp = UTMP_FILE;
16137 ;
16138 return 0;
16139}
16140_ACEOF
16141rm -f conftest.$ac_objext
16142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 echo "$as_me:$LINENO: result: yes" >&5
16154echo "${ECHO_T}yes" >&6
16155else
16156 echo "$as_me: failed program was:" >&5
16157cat conftest.$ac_ext >&5
16158 echo "$as_me:$LINENO: result: no" >&5
16159echo "${ECHO_T}no" >&6
16160 system_utmp_path=no
16161
16162fi
16163rm -f conftest.$ac_objext conftest.$ac_ext
16164if test -z "$conf_utmp_location"; then
16165 if test x"$system_utmp_path" = x"no" ; then
16166 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16167 if test -f $f ; then
16168 conf_utmp_location=$f
16169 fi
16170 done
16171 if test -z "$conf_utmp_location"; then
16172 cat >>confdefs.h <<\_ACEOF
16173@%:@define DISABLE_UTMP 1
16174_ACEOF
16175
16176 fi
16177 fi
16178fi
16179if test -n "$conf_utmp_location"; then
16180 cat >>confdefs.h <<_ACEOF
16181@%:@define CONF_UTMP_FILE "$conf_utmp_location"
16182_ACEOF
16183
16184fi
16185
16186echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16187echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16188cat >conftest.$ac_ext <<_ACEOF
16189#line $LINENO "configure"
16190#include "confdefs.h"
16191
16192#include <sys/types.h>
16193#include <utmp.h>
16194#ifdef HAVE_PATHS_H
16195# include <paths.h>
16196#endif
16197
16198#ifdef F77_DUMMY_MAIN
16199# ifdef __cplusplus
16200 extern "C"
16201# endif
16202 int F77_DUMMY_MAIN() { return 1; }
16203#endif
16204int
16205main ()
16206{
16207 char *wtmp = WTMP_FILE;
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest.$ac_objext
16213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 echo "$as_me:$LINENO: result: yes" >&5
16225echo "${ECHO_T}yes" >&6
16226else
16227 echo "$as_me: failed program was:" >&5
16228cat conftest.$ac_ext >&5
16229 echo "$as_me:$LINENO: result: no" >&5
16230echo "${ECHO_T}no" >&6
16231 system_wtmp_path=no
16232
16233fi
16234rm -f conftest.$ac_objext conftest.$ac_ext
16235if test -z "$conf_wtmp_location"; then
16236 if test x"$system_wtmp_path" = x"no" ; then
16237 for f in /usr/adm/wtmp /var/log/wtmp; do
16238 if test -f $f ; then
16239 conf_wtmp_location=$f
16240 fi
16241 done
16242 if test -z "$conf_wtmp_location"; then
16243 cat >>confdefs.h <<\_ACEOF
16244@%:@define DISABLE_WTMP 1
16245_ACEOF
16246
16247 fi
16248 fi
16249fi
16250if test -n "$conf_wtmp_location"; then
16251 cat >>confdefs.h <<_ACEOF
16252@%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16253_ACEOF
16254
16255fi
16256
16257
16258echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16259echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16260cat >conftest.$ac_ext <<_ACEOF
16261#line $LINENO "configure"
16262#include "confdefs.h"
16263
16264#include <sys/types.h>
16265#include <utmp.h>
16266#ifdef HAVE_UTMPX_H
16267#include <utmpx.h>
16268#endif
16269#ifdef HAVE_PATHS_H
16270# include <paths.h>
16271#endif
16272
16273#ifdef F77_DUMMY_MAIN
16274# ifdef __cplusplus
16275 extern "C"
16276# endif
16277 int F77_DUMMY_MAIN() { return 1; }
16278#endif
16279int
16280main ()
16281{
16282 char *utmpx = UTMPX_FILE;
16283 ;
16284 return 0;
16285}
16286_ACEOF
16287rm -f conftest.$ac_objext
16288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16289 (eval $ac_compile) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -s conftest.$ac_objext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 echo "$as_me:$LINENO: result: yes" >&5
16300echo "${ECHO_T}yes" >&6
16301else
16302 echo "$as_me: failed program was:" >&5
16303cat conftest.$ac_ext >&5
16304 echo "$as_me:$LINENO: result: no" >&5
16305echo "${ECHO_T}no" >&6
16306 system_utmpx_path=no
16307
16308fi
16309rm -f conftest.$ac_objext conftest.$ac_ext
16310if test -z "$conf_utmpx_location"; then
16311 if test x"$system_utmpx_path" = x"no" ; then
16312 cat >>confdefs.h <<\_ACEOF
16313@%:@define DISABLE_UTMPX 1
16314_ACEOF
16315
16316 fi
16317else
16318 cat >>confdefs.h <<_ACEOF
16319@%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16320_ACEOF
16321
16322fi
16323
16324echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16325echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16326cat >conftest.$ac_ext <<_ACEOF
16327#line $LINENO "configure"
16328#include "confdefs.h"
16329
16330#include <sys/types.h>
16331#include <utmp.h>
16332#ifdef HAVE_UTMPX_H
16333#include <utmpx.h>
16334#endif
16335#ifdef HAVE_PATHS_H
16336# include <paths.h>
16337#endif
16338
16339#ifdef F77_DUMMY_MAIN
16340# ifdef __cplusplus
16341 extern "C"
16342# endif
16343 int F77_DUMMY_MAIN() { return 1; }
16344#endif
16345int
16346main ()
16347{
16348 char *wtmpx = WTMPX_FILE;
16349 ;
16350 return 0;
16351}
16352_ACEOF
16353rm -f conftest.$ac_objext
16354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16355 (eval $ac_compile) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 echo "$as_me:$LINENO: result: yes" >&5
16366echo "${ECHO_T}yes" >&6
16367else
16368 echo "$as_me: failed program was:" >&5
16369cat conftest.$ac_ext >&5
16370 echo "$as_me:$LINENO: result: no" >&5
16371echo "${ECHO_T}no" >&6
16372 system_wtmpx_path=no
16373
16374fi
16375rm -f conftest.$ac_objext conftest.$ac_ext
16376if test -z "$conf_wtmpx_location"; then
16377 if test x"$system_wtmpx_path" = x"no" ; then
16378 cat >>confdefs.h <<\_ACEOF
16379@%:@define DISABLE_WTMPX 1
16380_ACEOF
16381
16382 fi
16383else
16384 cat >>confdefs.h <<_ACEOF
16385@%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16386_ACEOF
16387
16388fi
16389
16390
16391if test ! -z "$blibpath" ; then
16392 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16393 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16394echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16395fi
16396
16397if test "$PAM_MSG" = yes ; then
16398 LIBS=`echo $LIBS | sed 's/-lpam //'`
16399fi
16400if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16401 LIBS=`echo $LIBS | sed 's/-ldl //'`
16402fi
16403
16404
16405ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16406
16407cat >confcache <<\_ACEOF
16408# This file is a shell script that caches the results of configure
16409# tests run on this system so they can be shared between configure
16410# scripts and configure runs, see configure's option --config-cache.
16411# It is not useful on other systems. If it contains results you don't
16412# want to keep, you may remove or edit it.
16413#
16414# config.status only pays attention to the cache file if you give it
16415# the --recheck option to rerun configure.
16416#
16417# `ac_cv_env_foo' variables (set or unset) will be overriden when
16418# loading this file, other *unset* `ac_cv_foo' will be assigned the
16419# following values.
16420
16421_ACEOF
16422
16423# The following way of writing the cache mishandles newlines in values,
16424# but we know of no workaround that is simple, portable, and efficient.
16425# So, don't put newlines in cache variables' values.
16426# Ultrix sh set writes to stderr and can't be redirected directly,
16427# and sets the high bit in the cache file unless we assign to the vars.
16428{
16429 (set) 2>&1 |
16430 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16431 *ac_space=\ *)
16432 # `set' does not quote correctly, so add quotes (double-quote
16433 # substitution turns \\\\ into \\, and sed turns \\ into \).
16434 sed -n \
16435 "s/'/'\\\\''/g;
16436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16437 ;;
16438 *)
16439 # `set' quotes correctly as required by POSIX, so do not add quotes.
16440 sed -n \
16441 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16442 ;;
16443 esac;
16444} |
16445 sed '
16446 t clear
16447 : clear
16448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16449 t end
16450 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16451 : end' >>confcache
16452if cmp -s $cache_file confcache; then :; else
16453 if test -w $cache_file; then
16454 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16455 cat confcache >$cache_file
16456 else
16457 echo "not updating unwritable cache $cache_file"
16458 fi
16459fi
16460rm -f confcache
16461
16462test "x$prefix" = xNONE && prefix=$ac_default_prefix
16463# Let make expand exec_prefix.
16464test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16465
16466# VPATH may cause trouble with some makes, so we remove $(srcdir),
16467# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16468# trailing colons and then remove the whole line if VPATH becomes empty
16469# (actually we leave an empty line to preserve line numbers).
16470if test "x$srcdir" = x.; then
16471 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16472s/:*\$(srcdir):*/:/;
16473s/:*\${srcdir}:*/:/;
16474s/:*@srcdir@:*/:/;
16475s/^\([^=]*=[ ]*\):*/\1/;
16476s/:*$//;
16477s/^[^=]*=[ ]*$//;
16478}'
16479fi
16480
16481DEFS=-DHAVE_CONFIG_H
16482
16483
16484: ${CONFIG_STATUS=./config.status}
16485ac_clean_files_save=$ac_clean_files
16486ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16487{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16488echo "$as_me: creating $CONFIG_STATUS" >&6;}
16489cat >$CONFIG_STATUS <<_ACEOF
16490#! $SHELL
16491# Generated by $as_me.
16492# Run this file to recreate the current configuration.
16493# Compiler output produced by configure, useful for debugging
16494# configure, is in config.log if it exists.
16495
16496debug=false
16497SHELL=\${CONFIG_SHELL-$SHELL}
16498_ACEOF
16499
16500cat >>$CONFIG_STATUS <<\_ACEOF
16501
16502## --------------------- ##
16503## M4sh Initialization. ##
16504## --------------------- ##
16505
16506# Be Bourne compatible
16507if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16508 emulate sh
16509 NULLCMD=:
16510elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16511 set -o posix
16512fi
16513
16514# NLS nuisances.
16515# Support unset when possible.
16516if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16517 as_unset=unset
16518else
16519 as_unset=false
16520fi
16521
16522(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16523 { $as_unset LANG || test "${LANG+set}" != set; } ||
16524 { LANG=C; export LANG; }
16525(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16526 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16527 { LC_ALL=C; export LC_ALL; }
16528(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16529 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16530 { LC_TIME=C; export LC_TIME; }
16531(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16532 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16533 { LC_CTYPE=C; export LC_CTYPE; }
16534(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16535 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16536 { LANGUAGE=C; export LANGUAGE; }
16537(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16538 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16539 { LC_COLLATE=C; export LC_COLLATE; }
16540(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16541 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16542 { LC_NUMERIC=C; export LC_NUMERIC; }
16543(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16544 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16545 { LC_MESSAGES=C; export LC_MESSAGES; }
16546
16547
16548# Name of the executable.
16549as_me=`(basename "$0") 2>/dev/null ||
16550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16551 X"$0" : 'X\(//\)$' \| \
16552 X"$0" : 'X\(/\)$' \| \
16553 . : '\(.\)' 2>/dev/null ||
16554echo X/"$0" |
16555 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16556 /^X\/\(\/\/\)$/{ s//\1/; q; }
16557 /^X\/\(\/\).*/{ s//\1/; q; }
16558 s/.*/./; q'`
16559
16560# PATH needs CR, and LINENO needs CR and PATH.
16561# Avoid depending upon Character Ranges.
16562as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16563as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16564as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16565as_cr_digits='0123456789'
16566as_cr_alnum=$as_cr_Letters$as_cr_digits
16567
16568# The user is always right.
16569if test "${PATH_SEPARATOR+set}" != set; then
16570 echo "#! /bin/sh" >conftest.sh
16571 echo "exit 0" >>conftest.sh
16572 chmod +x conftest.sh
16573 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16574 PATH_SEPARATOR=';'
16575 else
16576 PATH_SEPARATOR=:
16577 fi
16578 rm -f conftest.sh
16579fi
16580
16581
16582 as_lineno_1=$LINENO
16583 as_lineno_2=$LINENO
16584 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16585 test "x$as_lineno_1" != "x$as_lineno_2" &&
16586 test "x$as_lineno_3" = "x$as_lineno_2" || {
16587 # Find who we are. Look in the path if we contain no path at all
16588 # relative or not.
16589 case $0 in
16590 *[\\/]* ) as_myself=$0 ;;
16591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592for as_dir in $PATH
16593do
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16597done
16598
16599 ;;
16600 esac
16601 # We did not find ourselves, most probably we were run as `sh COMMAND'
16602 # in which case we are not to be found in the path.
16603 if test "x$as_myself" = x; then
16604 as_myself=$0
16605 fi
16606 if test ! -f "$as_myself"; then
16607 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16608echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16609 { (exit 1); exit 1; }; }
16610 fi
16611 case $CONFIG_SHELL in
16612 '')
16613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16614for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16615do
16616 IFS=$as_save_IFS
16617 test -z "$as_dir" && as_dir=.
16618 for as_base in sh bash ksh sh5; do
16619 case $as_dir in
16620 /*)
16621 if ("$as_dir/$as_base" -c '
16622 as_lineno_1=$LINENO
16623 as_lineno_2=$LINENO
16624 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16625 test "x$as_lineno_1" != "x$as_lineno_2" &&
16626 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16627 CONFIG_SHELL=$as_dir/$as_base
16628 export CONFIG_SHELL
16629 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16630 fi;;
16631 esac
16632 done
16633done
16634;;
16635 esac
16636
16637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16638 # uniformly replaced by the line number. The first 'sed' inserts a
16639 # line-number line before each line; the second 'sed' does the real
16640 # work. The second script uses 'N' to pair each line-number line
16641 # with the numbered line, and appends trailing '-' during
16642 # substitution so that $LINENO is not a special case at line end.
16643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16644 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16645 sed '=' <$as_myself |
16646 sed '
16647 N
16648 s,$,-,
16649 : loop
16650 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16651 t loop
16652 s,-$,,
16653 s,^['$as_cr_digits']*\n,,
16654 ' >$as_me.lineno &&
16655 chmod +x $as_me.lineno ||
16656 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16657echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16658 { (exit 1); exit 1; }; }
16659
16660 # Don't try to exec as it changes $[0], causing all sort of problems
16661 # (the dirname of $[0] is not the place where we might find the
16662 # original and so on. Autoconf is especially sensible to this).
16663 . ./$as_me.lineno
16664 # Exit status is that of the last command.
16665 exit
16666}
16667
16668
16669case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16670 *c*,-n*) ECHO_N= ECHO_C='
16671' ECHO_T=' ' ;;
16672 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16673 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16674esac
16675
16676if expr a : '\(a\)' >/dev/null 2>&1; then
16677 as_expr=expr
16678else
16679 as_expr=false
16680fi
16681
16682rm -f conf$$ conf$$.exe conf$$.file
16683echo >conf$$.file
16684if ln -s conf$$.file conf$$ 2>/dev/null; then
16685 # We could just check for DJGPP; but this test a) works b) is more generic
16686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16687 if test -f conf$$.exe; then
16688 # Don't use ln at all; we don't have any links
16689 as_ln_s='cp -p'
16690 else
16691 as_ln_s='ln -s'
16692 fi
16693elif ln conf$$.file conf$$ 2>/dev/null; then
16694 as_ln_s=ln
16695else
16696 as_ln_s='cp -p'
16697fi
16698rm -f conf$$ conf$$.exe conf$$.file
16699
16700as_executable_p="test -f"
16701
16702# Sed expression to map a string onto a valid CPP name.
16703as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16704
16705# Sed expression to map a string onto a valid variable name.
16706as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16707
16708
16709# IFS
16710# We need space, tab and new line, in precisely that order.
16711as_nl='
16712'
16713IFS=" $as_nl"
16714
16715# CDPATH.
16716$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16717
16718exec 6>&1
16719
16720# Open the log real soon, to keep \$[0] and so on meaningful, and to
16721# report actual input values of CONFIG_FILES etc. instead of their
16722# values after options handling. Logging --version etc. is OK.
16723exec 5>>config.log
16724{
16725 echo
16726 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16727@%:@@%:@ Running $as_me. @%:@@%:@
16728_ASBOX
16729} >&5
16730cat >&5 <<_CSEOF
16731
16732This file was extended by $as_me, which was
16733generated by GNU Autoconf 2.53. Invocation command line was
16734
16735 CONFIG_FILES = $CONFIG_FILES
16736 CONFIG_HEADERS = $CONFIG_HEADERS
16737 CONFIG_LINKS = $CONFIG_LINKS
16738 CONFIG_COMMANDS = $CONFIG_COMMANDS
16739 $ $0 $@
16740
16741_CSEOF
16742echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16743echo >&5
16744_ACEOF
16745
16746# Files that config.status was made for.
16747if test -n "$ac_config_files"; then
16748 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16749fi
16750
16751if test -n "$ac_config_headers"; then
16752 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16753fi
16754
16755if test -n "$ac_config_links"; then
16756 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16757fi
16758
16759if test -n "$ac_config_commands"; then
16760 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16761fi
16762
16763cat >>$CONFIG_STATUS <<\_ACEOF
16764
16765ac_cs_usage="\
16766\`$as_me' instantiates files from templates according to the
16767current configuration.
16768
16769Usage: $0 [OPTIONS] [FILE]...
16770
16771 -h, --help print this help, then exit
16772 -V, --version print version number, then exit
16773 -d, --debug don't remove temporary files
16774 --recheck update $as_me by reconfiguring in the same conditions
16775 --file=FILE[:TEMPLATE]
16776 instantiate the configuration file FILE
16777 --header=FILE[:TEMPLATE]
16778 instantiate the configuration header FILE
16779
16780Configuration files:
16781$config_files
16782
16783Configuration headers:
16784$config_headers
16785
16786Report bugs to <bug-autoconf@gnu.org>."
16787_ACEOF
16788
16789cat >>$CONFIG_STATUS <<_ACEOF
16790ac_cs_version="\\
16791config.status
16792configured by $0, generated by GNU Autoconf 2.53,
16793 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16794
16795Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16796Free Software Foundation, Inc.
16797This config.status script is free software; the Free Software Foundation
16798gives unlimited permission to copy, distribute and modify it."
16799srcdir=$srcdir
16800INSTALL="$INSTALL"
16801_ACEOF
16802
16803cat >>$CONFIG_STATUS <<\_ACEOF
16804# If no file are specified by the user, then we need to provide default
16805# value. By we need to know if files were specified by the user.
16806ac_need_defaults=:
16807while test $# != 0
16808do
16809 case $1 in
16810 --*=*)
16811 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16812 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16813 shift
16814 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16815 shift
16816 ;;
16817 -*);;
16818 *) # This is not an option, so the user has probably given explicit
16819 # arguments.
16820 ac_need_defaults=false;;
16821 esac
16822
16823 case $1 in
16824 # Handling of the options.
16825_ACEOF
16826cat >>$CONFIG_STATUS <<_ACEOF
16827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16828 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16829 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16830_ACEOF
16831cat >>$CONFIG_STATUS <<\_ACEOF
16832 --version | --vers* | -V )
16833 echo "$ac_cs_version"; exit 0 ;;
16834 --he | --h)
16835 # Conflict between --help and --header
16836 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16837Try \`$0 --help' for more information." >&5
16838echo "$as_me: error: ambiguous option: $1
16839Try \`$0 --help' for more information." >&2;}
16840 { (exit 1); exit 1; }; };;
16841 --help | --hel | -h )
16842 echo "$ac_cs_usage"; exit 0 ;;
16843 --debug | --d* | -d )
16844 debug=: ;;
16845 --file | --fil | --fi | --f )
16846 shift
16847 CONFIG_FILES="$CONFIG_FILES $1"
16848 ac_need_defaults=false;;
16849 --header | --heade | --head | --hea )
16850 shift
16851 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16852 ac_need_defaults=false;;
16853
16854 # This is an error.
16855 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16856Try \`$0 --help' for more information." >&5
16857echo "$as_me: error: unrecognized option: $1
16858Try \`$0 --help' for more information." >&2;}
16859 { (exit 1); exit 1; }; } ;;
16860
16861 *) ac_config_targets="$ac_config_targets $1" ;;
16862
16863 esac
16864 shift
16865done
16866
16867_ACEOF
16868
16869
16870
16871
16872
16873cat >>$CONFIG_STATUS <<\_ACEOF
16874for ac_config_target in $ac_config_targets
16875do
16876 case "$ac_config_target" in
16877 # Handling of arguments.
16878 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16879 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16880 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
16881 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
16882 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16884echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16885 { (exit 1); exit 1; }; };;
16886 esac
16887done
16888
16889# If the user did not use the arguments to specify the items to instantiate,
16890# then the envvar interface is used. Set only those that are not.
16891# We use the long form for the default assignment because of an extremely
16892# bizarre bug on SunOS 4.1.3.
16893if $ac_need_defaults; then
16894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16896fi
16897
16898# Create a temporary directory, and hook for its removal unless debugging.
16899$debug ||
16900{
16901 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16902 trap '{ (exit 1); exit 1; }' 1 2 13 15
16903}
16904
16905# Create a (secure) tmp directory for tmp files.
16906: ${TMPDIR=/tmp}
16907{
16908 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16909 test -n "$tmp" && test -d "$tmp"
16910} ||
16911{
16912 tmp=$TMPDIR/cs$$-$RANDOM
16913 (umask 077 && mkdir $tmp)
16914} ||
16915{
16916 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16917 { (exit 1); exit 1; }
16918}
16919
16920_ACEOF
16921
16922cat >>$CONFIG_STATUS <<_ACEOF
16923
16924#
16925# CONFIG_FILES section.
16926#
16927
16928# No need to generate the scripts if there are no CONFIG_FILES.
16929# This happens for instance when ./config.status config.h
16930if test -n "\$CONFIG_FILES"; then
16931 # Protect against being on the right side of a sed subst in config.status.
16932 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16933 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16934s,@SHELL@,$SHELL,;t t
16935s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16936s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16937s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16938s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16939s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16940s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16941s,@exec_prefix@,$exec_prefix,;t t
16942s,@prefix@,$prefix,;t t
16943s,@program_transform_name@,$program_transform_name,;t t
16944s,@bindir@,$bindir,;t t
16945s,@sbindir@,$sbindir,;t t
16946s,@libexecdir@,$libexecdir,;t t
16947s,@datadir@,$datadir,;t t
16948s,@sysconfdir@,$sysconfdir,;t t
16949s,@sharedstatedir@,$sharedstatedir,;t t
16950s,@localstatedir@,$localstatedir,;t t
16951s,@libdir@,$libdir,;t t
16952s,@includedir@,$includedir,;t t
16953s,@oldincludedir@,$oldincludedir,;t t
16954s,@infodir@,$infodir,;t t
16955s,@mandir@,$mandir,;t t
16956s,@build_alias@,$build_alias,;t t
16957s,@host_alias@,$host_alias,;t t
16958s,@target_alias@,$target_alias,;t t
16959s,@DEFS@,$DEFS,;t t
16960s,@ECHO_C@,$ECHO_C,;t t
16961s,@ECHO_N@,$ECHO_N,;t t
16962s,@ECHO_T@,$ECHO_T,;t t
16963s,@LIBS@,$LIBS,;t t
16964s,@CC@,$CC,;t t
16965s,@CFLAGS@,$CFLAGS,;t t
16966s,@LDFLAGS@,$LDFLAGS,;t t
16967s,@CPPFLAGS@,$CPPFLAGS,;t t
16968s,@ac_ct_CC@,$ac_ct_CC,;t t
16969s,@EXEEXT@,$EXEEXT,;t t
16970s,@OBJEXT@,$OBJEXT,;t t
16971s,@build@,$build,;t t
16972s,@build_cpu@,$build_cpu,;t t
16973s,@build_vendor@,$build_vendor,;t t
16974s,@build_os@,$build_os,;t t
16975s,@host@,$host,;t t
16976s,@host_cpu@,$host_cpu,;t t
16977s,@host_vendor@,$host_vendor,;t t
16978s,@host_os@,$host_os,;t t
16979s,@CPP@,$CPP,;t t
16980s,@RANLIB@,$RANLIB,;t t
16981s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16982s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16983s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16984s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16985s,@AR@,$AR,;t t
16986s,@PERL@,$PERL,;t t
16987s,@ENT@,$ENT,;t t
16988s,@FILEPRIV@,$FILEPRIV,;t t
16989s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
16990s,@SH@,$SH,;t t
16991s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
16992s,@LD@,$LD,;t t
16993s,@LIBWRAP@,$LIBWRAP,;t t
16994s,@LIBPAM@,$LIBPAM,;t t
16995s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
16996s,@PROG_LS@,$PROG_LS,;t t
16997s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
16998s,@PROG_ARP@,$PROG_ARP,;t t
16999s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17000s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17001s,@PROG_PS@,$PROG_PS,;t t
17002s,@PROG_SAR@,$PROG_SAR,;t t
17003s,@PROG_W@,$PROG_W,;t t
17004s,@PROG_WHO@,$PROG_WHO,;t t
17005s,@PROG_LAST@,$PROG_LAST,;t t
17006s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17007s,@PROG_DF@,$PROG_DF,;t t
17008s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17009s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17010s,@PROG_IPCS@,$PROG_IPCS,;t t
17011s,@PROG_TAIL@,$PROG_TAIL,;t t
17012s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17013s,@NO_SFTP@,$NO_SFTP,;t t
17014s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17015s,@rsh_path@,$rsh_path,;t t
17016s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17017s,@xauth_path@,$xauth_path,;t t
17018s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17019s,@NROFF@,$NROFF,;t t
17020s,@MANTYPE@,$MANTYPE,;t t
17021s,@mansubdir@,$mansubdir,;t t
17022s,@user_path@,$user_path,;t t
700318f3 17023s,@piddir@,$piddir,;t t
17024CEOF
17025
17026_ACEOF
17027
17028 cat >>$CONFIG_STATUS <<\_ACEOF
17029 # Split the substitutions into bite-sized pieces for seds with
17030 # small command number limits, like on Digital OSF/1 and HP-UX.
17031 ac_max_sed_lines=48
17032 ac_sed_frag=1 # Number of current file.
17033 ac_beg=1 # First line for current file.
17034 ac_end=$ac_max_sed_lines # Line after last line for current file.
17035 ac_more_lines=:
17036 ac_sed_cmds=
17037 while $ac_more_lines; do
17038 if test $ac_beg -gt 1; then
17039 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17040 else
17041 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17042 fi
17043 if test ! -s $tmp/subs.frag; then
17044 ac_more_lines=false
17045 else
17046 # The purpose of the label and of the branching condition is to
17047 # speed up the sed processing (if there are no `@' at all, there
17048 # is no need to browse any of the substitutions).
17049 # These are the two extra sed commands mentioned above.
17050 (echo ':t
17051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17052 if test -z "$ac_sed_cmds"; then
17053 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17054 else
17055 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17056 fi
17057 ac_sed_frag=`expr $ac_sed_frag + 1`
17058 ac_beg=$ac_end
17059 ac_end=`expr $ac_end + $ac_max_sed_lines`
17060 fi
17061 done
17062 if test -z "$ac_sed_cmds"; then
17063 ac_sed_cmds=cat
17064 fi
17065fi # test -n "$CONFIG_FILES"
17066
17067_ACEOF
17068cat >>$CONFIG_STATUS <<\_ACEOF
17069for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17071 case $ac_file in
17072 - | *:- | *:-:* ) # input from stdin
17073 cat >$tmp/stdin
17074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17078 * ) ac_file_in=$ac_file.in ;;
17079 esac
17080
17081 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17082 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17084 X"$ac_file" : 'X\(//\)[^/]' \| \
17085 X"$ac_file" : 'X\(//\)$' \| \
17086 X"$ac_file" : 'X\(/\)' \| \
17087 . : '\(.\)' 2>/dev/null ||
17088echo X"$ac_file" |
17089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17091 /^X\(\/\/\)$/{ s//\1/; q; }
17092 /^X\(\/\).*/{ s//\1/; q; }
17093 s/.*/./; q'`
17094 { case "$ac_dir" in
17095 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17096 *) as_incr_dir=.;;
17097esac
17098as_dummy="$ac_dir"
17099for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17100 case $as_mkdir_dir in
17101 # Skip DOS drivespec
17102 ?:) as_incr_dir=$as_mkdir_dir ;;
17103 *)
17104 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17105 test -d "$as_incr_dir" ||
17106 mkdir "$as_incr_dir" ||
17107 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17108echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17109 { (exit 1); exit 1; }; }
17110 ;;
17111 esac
17112done; }
17113
17114 ac_builddir=.
17115
17116if test "$ac_dir" != .; then
17117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17118 # A "../" for each directory in $ac_dir_suffix.
17119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17120else
17121 ac_dir_suffix= ac_top_builddir=
17122fi
17123
17124case $srcdir in
17125 .) # No --srcdir option. We are building in place.
17126 ac_srcdir=.
17127 if test -z "$ac_top_builddir"; then
17128 ac_top_srcdir=.
17129 else
17130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17131 fi ;;
17132 [\\/]* | ?:[\\/]* ) # Absolute path.
17133 ac_srcdir=$srcdir$ac_dir_suffix;
17134 ac_top_srcdir=$srcdir ;;
17135 *) # Relative path.
17136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17138esac
17139# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17140# absolute.
17141ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17142ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17143ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17144ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17145
17146
17147 case $INSTALL in
17148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17150 esac
17151
17152 if test x"$ac_file" != x-; then
17153 { echo "$as_me:$LINENO: creating $ac_file" >&5
17154echo "$as_me: creating $ac_file" >&6;}
17155 rm -f "$ac_file"
17156 fi
17157 # Let's still pretend it is `configure' which instantiates (i.e., don't
17158 # use $as_me), people would be surprised to read:
17159 # /* config.h. Generated by config.status. */
17160 if test x"$ac_file" = x-; then
17161 configure_input=
17162 else
17163 configure_input="$ac_file. "
17164 fi
17165 configure_input=$configure_input"Generated from `echo $ac_file_in |
17166 sed 's,.*/,,'` by configure."
17167
17168 # First look for the input files in the build tree, otherwise in the
17169 # src tree.
17170 ac_file_inputs=`IFS=:
17171 for f in $ac_file_in; do
17172 case $f in
17173 -) echo $tmp/stdin ;;
17174 [\\/$]*)
17175 # Absolute (can't be DOS-style, as IFS=:)
17176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17177echo "$as_me: error: cannot find input file: $f" >&2;}
17178 { (exit 1); exit 1; }; }
17179 echo $f;;
17180 *) # Relative
17181 if test -f "$f"; then
17182 # Build tree
17183 echo $f
17184 elif test -f "$srcdir/$f"; then
17185 # Source tree
17186 echo $srcdir/$f
17187 else
17188 # /dev/null tree
17189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17190echo "$as_me: error: cannot find input file: $f" >&2;}
17191 { (exit 1); exit 1; }; }
17192 fi;;
17193 esac
17194 done` || { (exit 1); exit 1; }
17195_ACEOF
17196cat >>$CONFIG_STATUS <<_ACEOF
17197 sed "$ac_vpsub
17198$extrasub
17199_ACEOF
17200cat >>$CONFIG_STATUS <<\_ACEOF
17201:t
17202/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17203s,@configure_input@,$configure_input,;t t
17204s,@srcdir@,$ac_srcdir,;t t
17205s,@abs_srcdir@,$ac_abs_srcdir,;t t
17206s,@top_srcdir@,$ac_top_srcdir,;t t
17207s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17208s,@builddir@,$ac_builddir,;t t
17209s,@abs_builddir@,$ac_abs_builddir,;t t
17210s,@top_builddir@,$ac_top_builddir,;t t
17211s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17212s,@INSTALL@,$ac_INSTALL,;t t
17213" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17214 rm -f $tmp/stdin
17215 if test x"$ac_file" != x-; then
17216 mv $tmp/out $ac_file
17217 else
17218 cat $tmp/out
17219 rm -f $tmp/out
17220 fi
17221
17222done
17223_ACEOF
17224cat >>$CONFIG_STATUS <<\_ACEOF
17225
17226#
17227# CONFIG_HEADER section.
17228#
17229
17230# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17231# NAME is the cpp macro being defined and VALUE is the value it is being given.
17232#
17233# ac_d sets the value in "#define NAME VALUE" lines.
17234ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17235ac_dB='[ ].*$,\1#\2'
17236ac_dC=' '
17237ac_dD=',;t'
17238# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17239ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17240ac_uB='$,\1#\2define\3'
17241ac_uC=' '
17242ac_uD=',;t'
17243
17244for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17246 case $ac_file in
17247 - | *:- | *:-:* ) # input from stdin
17248 cat >$tmp/stdin
17249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17253 * ) ac_file_in=$ac_file.in ;;
17254 esac
17255
17256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17257echo "$as_me: creating $ac_file" >&6;}
17258
17259 # First look for the input files in the build tree, otherwise in the
17260 # src tree.
17261 ac_file_inputs=`IFS=:
17262 for f in $ac_file_in; do
17263 case $f in
17264 -) echo $tmp/stdin ;;
17265 [\\/$]*)
17266 # Absolute (can't be DOS-style, as IFS=:)
17267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17268echo "$as_me: error: cannot find input file: $f" >&2;}
17269 { (exit 1); exit 1; }; }
17270 echo $f;;
17271 *) # Relative
17272 if test -f "$f"; then
17273 # Build tree
17274 echo $f
17275 elif test -f "$srcdir/$f"; then
17276 # Source tree
17277 echo $srcdir/$f
17278 else
17279 # /dev/null tree
17280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17281echo "$as_me: error: cannot find input file: $f" >&2;}
17282 { (exit 1); exit 1; }; }
17283 fi;;
17284 esac
17285 done` || { (exit 1); exit 1; }
17286 # Remove the trailing spaces.
17287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17288
17289_ACEOF
17290
17291# Transform confdefs.h into two sed scripts, `conftest.defines' and
17292# `conftest.undefs', that substitutes the proper values into
17293# config.h.in to produce config.h. The first handles `#define'
17294# templates, and the second `#undef' templates.
17295# And first: Protect against being on the right side of a sed subst in
17296# config.status. Protect against being in an unquoted here document
17297# in config.status.
17298rm -f conftest.defines conftest.undefs
17299# Using a here document instead of a string reduces the quoting nightmare.
17300# Putting comments in sed scripts is not portable.
17301#
17302# `end' is used to avoid that the second main sed command (meant for
17303# 0-ary CPP macros) applies to n-ary macro definitions.
17304# See the Autoconf documentation for `clear'.
17305cat >confdef2sed.sed <<\_ACEOF
17306s/[\\&,]/\\&/g
17307s,[\\$`],\\&,g
17308t clear
17309: clear
17310s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17311t end
17312s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17313: end
17314_ACEOF
17315# If some macros were called several times there might be several times
17316# the same #defines, which is useless. Nevertheless, we may not want to
17317# sort them, since we want the *last* AC-DEFINE to be honored.
17318uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17319sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17320rm -f confdef2sed.sed
17321
17322# This sed command replaces #undef with comments. This is necessary, for
17323# example, in the case of _POSIX_SOURCE, which is predefined and required
17324# on some systems where configure will not decide to define it.
17325cat >>conftest.undefs <<\_ACEOF
17326s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17327_ACEOF
17328
17329# Break up conftest.defines because some shells have a limit on the size
17330# of here documents, and old seds have small limits too (100 cmds).
17331echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17332echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17333echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17334echo ' :' >>$CONFIG_STATUS
17335rm -f conftest.tail
17336while grep . conftest.defines >/dev/null
17337do
17338 # Write a limited-size here document to $tmp/defines.sed.
17339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17340 # Speed up: don't consider the non `#define' lines.
17341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17342 # Work around the forget-to-reset-the-flag bug.
17343 echo 't clr' >>$CONFIG_STATUS
17344 echo ': clr' >>$CONFIG_STATUS
17345 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17346 echo 'CEOF
17347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17348 rm -f $tmp/in
17349 mv $tmp/out $tmp/in
17350' >>$CONFIG_STATUS
17351 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17352 rm -f conftest.defines
17353 mv conftest.tail conftest.defines
17354done
17355rm -f conftest.defines
17356echo ' fi # egrep' >>$CONFIG_STATUS
17357echo >>$CONFIG_STATUS
17358
17359# Break up conftest.undefs because some shells have a limit on the size
17360# of here documents, and old seds have small limits too (100 cmds).
17361echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17362rm -f conftest.tail
17363while grep . conftest.undefs >/dev/null
17364do
17365 # Write a limited-size here document to $tmp/undefs.sed.
17366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17367 # Speed up: don't consider the non `#undef'
17368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17369 # Work around the forget-to-reset-the-flag bug.
17370 echo 't clr' >>$CONFIG_STATUS
17371 echo ': clr' >>$CONFIG_STATUS
17372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17373 echo 'CEOF
17374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17375 rm -f $tmp/in
17376 mv $tmp/out $tmp/in
17377' >>$CONFIG_STATUS
17378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17379 rm -f conftest.undefs
17380 mv conftest.tail conftest.undefs
17381done
17382rm -f conftest.undefs
17383
17384cat >>$CONFIG_STATUS <<\_ACEOF
17385 # Let's still pretend it is `configure' which instantiates (i.e., don't
17386 # use $as_me), people would be surprised to read:
17387 # /* config.h. Generated by config.status. */
17388 if test x"$ac_file" = x-; then
17389 echo "/* Generated by configure. */" >$tmp/config.h
17390 else
17391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17392 fi
17393 cat $tmp/in >>$tmp/config.h
17394 rm -f $tmp/in
17395 if test x"$ac_file" != x-; then
17396 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17398echo "$as_me: $ac_file is unchanged" >&6;}
17399 else
17400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17401$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17402 X"$ac_file" : 'X\(//\)[^/]' \| \
17403 X"$ac_file" : 'X\(//\)$' \| \
17404 X"$ac_file" : 'X\(/\)' \| \
17405 . : '\(.\)' 2>/dev/null ||
17406echo X"$ac_file" |
17407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17409 /^X\(\/\/\)$/{ s//\1/; q; }
17410 /^X\(\/\).*/{ s//\1/; q; }
17411 s/.*/./; q'`
17412 { case "$ac_dir" in
17413 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17414 *) as_incr_dir=.;;
17415esac
17416as_dummy="$ac_dir"
17417for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17418 case $as_mkdir_dir in
17419 # Skip DOS drivespec
17420 ?:) as_incr_dir=$as_mkdir_dir ;;
17421 *)
17422 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17423 test -d "$as_incr_dir" ||
17424 mkdir "$as_incr_dir" ||
17425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17426echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17427 { (exit 1); exit 1; }; }
17428 ;;
17429 esac
17430done; }
17431
17432 rm -f $ac_file
17433 mv $tmp/config.h $ac_file
17434 fi
17435 else
17436 cat $tmp/config.h
17437 rm -f $tmp/config.h
17438 fi
17439done
17440_ACEOF
17441
17442cat >>$CONFIG_STATUS <<\_ACEOF
17443
17444{ (exit 0); exit 0; }
17445_ACEOF
17446chmod +x $CONFIG_STATUS
17447ac_clean_files=$ac_clean_files_save
17448
17449
17450# configure is writing to config.log, and then calls config.status.
17451# config.status does its own redirection, appending to config.log.
17452# Unfortunately, on DOS this fails, as config.log is still kept open
17453# by configure, so config.status won't be able to write to it; its
17454# output is simply discarded. So we exec the FD to /dev/null,
17455# effectively closing config.log, so it can be properly (re)opened and
17456# appended to by config.status. When coming back to configure, we
17457# need to make the FD available again.
17458if test "$no_create" != yes; then
17459 ac_cs_success=:
17460 exec 5>/dev/null
17461 $SHELL $CONFIG_STATUS || ac_cs_success=false
17462 exec 5>>config.log
17463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17464 # would make configure fail if this is the last instruction.
17465 $ac_cs_success || { (exit 1); exit 1; }
17466fi
17467
17468
17469# Print summary of options
17470
17471# Someone please show me a better way :)
17472A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17473B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17474C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17475D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17476E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17477F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17478G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17479H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17480I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17481J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17482
17483echo ""
17484echo "OpenSSH has been configured with the following options:"
17485echo " User binaries: $B"
17486echo " System binaries: $C"
17487echo " Configuration files: $D"
17488echo " Askpass program: $E"
17489echo " Manual pages: $F"
17490echo " PID file: $G"
17491echo " Privilege separation chroot path: $H"
17492if test "$USES_LOGIN_CONF" = "yes" ; then
17493echo " At runtime, sshd will use the path defined in /etc/login.conf"
17494else
17495echo " sshd default user PATH: $I"
17496fi
17497if test ! -z "$superuser_path" ; then
17498echo " sshd superuser user PATH: $J"
17499fi
17500echo " Manpage format: $MANTYPE"
17501echo " PAM support: ${PAM_MSG}"
17502echo " KerberosIV support: $KRB4_MSG"
17503echo " KerberosV support: $KRB5_MSG"
17504echo " Smartcard support: $SCARD_MSG"
17505echo " AFS support: $AFS_MSG"
17506echo " S/KEY support: $SKEY_MSG"
17507echo " TCP Wrappers support: $TCPW_MSG"
17508echo " MD5 password support: $MD5_MSG"
17509echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17510echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17511echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17512echo " BSD Auth support: $BSD_AUTH_MSG"
17513echo " Random number source: $RAND_MSG"
17514if test ! -z "$USE_RAND_HELPER" ; then
17515echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17516fi
17517
17518echo ""
17519
17520echo " Host: ${host}"
17521echo " Compiler: ${CC}"
17522echo " Compiler flags: ${CFLAGS}"
17523echo "Preprocessor flags: ${CPPFLAGS}"
17524echo " Linker flags: ${LDFLAGS}"
17525echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17526
17527echo ""
17528
17529if test "x$PAM_MSG" = "xyes" ; then
17530 echo "PAM is enabled. You may need to install a PAM control file "
17531 echo "for sshd, otherwise password authentication may fail. "
17532 echo "Example PAM control files can be found in the contrib/ "
17533 echo "subdirectory"
17534 echo ""
17535fi
17536
17537if test ! -z "$NO_SFTP"; then
17538 echo "sftp-server will be disabled. Your compiler does not "
17539 echo "support 64bit integers."
17540 echo ""
17541fi
17542
17543if test ! -z "$RAND_HELPER_CMDHASH" ; then
17544 echo "WARNING: you are using the builtin random number collection "
17545 echo "service. Please read WARNING.RNG and request that your OS "
17546 echo "vendor includes kernel-based random number collection in "
17547 echo "future versions of your OS."
17548 echo ""
17549fi
17550
This page took 2.323174 seconds and 5 git commands to generate.